/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(to right, #f9f9f9, #e3f2fd);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #333;
  line-height: 1.6;
}

/* Header Styles */
.main-header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 40px;
  margin-right: 10px;
}

.site-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3f51b5;
}

.main-nav {
  transition: all 0.3s ease;
}

.nav-list {
  display: flex;
  list-style: none;
}

.nav-list li {
  margin-left: 25px;
}

.nav-list a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-list a:hover {
  color: #3f51b5;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #333;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Main Content Styles */
.container {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  max-width: 800px;
  width: 90%;
  margin: 30px auto;
  flex: 1;
}

h1 {
  color: #3f51b5;
  font-size: 1.8rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-small {
  width: 40px;
  height: 40px;
  margin-right: 15px;
}

.subtitle {
  font-size: 1rem;
  color: #555;
  margin-bottom: 25px;
  text-align: center;
}

.timer-controls {
  margin-bottom: 30px;
}

label {
  display: block;
  margin: 15px 0 5px;
  color: #333;
  text-align: left;
  font-weight: 500;
}

input {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 10px;
}

button {
  width: 100%;
  padding: 12px;
  background-color: #3f51b5;
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
  margin: 15px 0;
}

button:hover {
  background-color: #303f9f;
}

.countdown {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
  padding: 15px;
  background-color: rgb(203, 244, 203);
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #2c3e50;
}

.time-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.time-box span {
  font-size: 0.8rem;
  font-weight: normal;
  margin-top: 5px;
}

/* Sections */
section {
  background-color: #fafafa;
  padding: 25px;
  margin: 30px 0;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.07);
}

h2 {
  color: #2c3e50;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

p, li {
  color: #333;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 10px;
  text-align: justify;
}

ol {
  padding-left: 20px;
}

ol li {
  margin-bottom: 10px;
}

/* Footer Styles */
.main-footer {
  background-color: #2c3e50;
  color: #fff;
  padding: 40px 0 20px;
  width: 100%;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: #3f51b5;
}

.footer-section p {
  color: #ecf0f1;
  margin-bottom: 15px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #ecf0f1;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #3f51b5;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  color: #fff;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #3f51b5;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Chat Icon */
.chat-icon {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  text-decoration: none;
}

.chat-bubble {
  width: 50px;
  height: 50px;
  background-color: #8800f8;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.chat-bubble svg {
  width: 25px;
  height: 25px;
}

.chat-wave {
  position: absolute;
  width: 80px;
  height: 80px;
  background: #8800f8;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  opacity: 0.4;
  animation: wave 2s infinite linear;
}

@keyframes wave {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.4;
  }
  70% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0;
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transform: translateY(-150%);
    opacity: 0;
  }

  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-list {
    flex-direction: column;
  }

  .nav-list li {
    margin: 10px 0;
  }

  .countdown {
    flex-wrap: wrap;
  }

  .time-box {
    margin: 5px;
    min-width: 45px;
  }

  .chat-icon {
    bottom: 20px;
    right: 20px;
  }

  .chat-bubble {
    width: 45px;
    height: 45px;
  }

  .chat-wave {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 15px;
  }

  .site-name {
    font-size: 1.2rem;
  }

  .logo {
    height: 30px;
  }

  .container {
    padding: 20px;
  }

  h1 {
    font-size: 1.5rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}