:root {
  --primary-blue: #2874f0;
  --accent-yellow: #ffd814;
  --marketing-green: #36b37e;
  --marketing-purple: #7a5fff;
  --marketing-orange: #ff9f1c;
  --light-bg: #f1f3f6;
  --dark-bg: #121212;
  --text-light: #f5f5f5;
  --text-dark: #212121;

  --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-deep: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* ==== DARK MODE ==== */
body.dark {
  background: var(--dark-bg);
  color: var(--text-light);
}
body.dark header,
body.dark footer {
  background: #1e1e1e;
}
body.dark .section h2,
body.dark .nav-links a {
  color: var(--accent-yellow);
}
body.dark .btn.primary {
  background: var(--marketing-orange);
  color: #fff;
}
body.dark .btn.secondary {
  border-color: var(--accent-yellow);
  color: var(--accent-yellow);
}
body.dark .nav-links a:hover {
  color: var(--marketing-purple);
}
body.dark .service-card {
  background: #1f1f1f;
  color: #eee;
}

/* ==== BASE STYLES ==== */
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--light-bg);
  color: var(--text-dark);
  transition: background 0.4s ease, color 0.4s ease;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

img {
  max-width: 100%;
  display: block;
}


/* ==== HEADER ==== */
header {
  background: var(--primary-blue);
  padding: 1rem 0;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-light);
  animation: slideDown 0.6s ease forwards;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 800;
  color: var(--accent-yellow);
  animation: pulseLogo 3s ease-in-out infinite;
}

@keyframes pulseLogo {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.logo img {
  height: 50px;
  margin-right: 12px;
  transition: filter 0.3s ease;
}
.logo:hover img {
  filter: brightness(1.6) hue-rotate(120deg);
}

/* ==== NAVIGATION ==== */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-yellow);
  transition: width 0.3s;
}
.nav-links a:hover::after {
  width: 100%;
}

/* ==== MARQUEE ==== */
.marquee {
  background-color: #e3f2fd;
  color: #0d47a1;
  padding: 0.5rem;
  font-weight: bold;
  font-size: 1rem;
  animation: fadeIn 1s ease forwards;
}

/* ==== HERO ==== */
.hero {
  background: linear-gradient(to right, var(--primary-blue), #1e88e5);
  color: white;
  padding: 5rem 0 2rem;
  text-align: center;
  animation: fadeInUp 0.8s ease both;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin: auto;
}

/* ==== ANIMATIONS ==== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ==== BUTTONS ==== */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn.primary {
  background: var(--accent-yellow);
  color: var(--text-dark);
}
.btn.secondary {
  background: transparent;
  border: 2px solid white;
  color: white;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ==== DARK MODE TOGGLE ==== */
.toggle-theme {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: var(--marketing-purple);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  z-index: 2000;
  transition: background 0.3s ease;
}
.toggle-theme:hover {
  background: var(--marketing-orange);
}

/* ==== SECTION ==== */
.section {
  padding: 4rem 0;
  animation: fadeIn 0.8s ease both;
}
.section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-blue);
  font-weight: 700;
  margin-bottom: 2rem;
}

/* ==== ABOUT ==== */
.about-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}
.about-flex img {
  max-width: 480px;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
}
.about-text {
  max-width: 500px;
  font-size: 1.1rem;
}

/* ==== SERVICES ==== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.service-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-deep);
}
.service-card h3 {
  color: var(--marketing-green);
  font-weight: 600;
}

/* ==== CONTACT ==== */
#contact h2 {
  text-align: center;
  color: #0284c7; /* Tailwind's blue-600 */
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

/* ==== FOOTER ==== */
footer {
  background: var(--primary-blue);
  color: #e3f2fd;
  padding: 3rem 0;
}
.footer-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4rem;
}
.footer-links h4 {
  margin-bottom: 0.5rem;
  color: var(--accent-yellow);
}
.footer-links ul {
  list-style: none;
  padding: 0;
}
.footer-links a {
  color: #e3f2fd;
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--accent-yellow);
  text-decoration: underline;
}
footer p {
  margin-top: 2rem;
  font-size: 0.9rem;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .about-flex {
    flex-direction: column;
  }
  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }
}
