:root {
  --primary: #0B3D91;
  --secondary: #F7CE48;
  --accent: #2c3e6f;
  --light: #f5f8ff;
  --dark: #0a1128;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

body {
  background-color: var(--light);
  color: var(--dark);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  box-shadow: none;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

nav.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: #0B1130;
  display: flex;
  align-items: center;
}

.logo a {
  color: #0B1130;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-image {
  height: 40px;
  width: auto;
  display: block;
}

.logo span {
  color: #0B1130;
}

/* Logo star styling */
.logo .fa-star {
  color: #FFD700; /* Golden color for the star */
  margin-left: 5px;
  cursor: pointer;
  position: relative;
  animation: star-pulse 2s infinite alternate;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.7));
  transition: transform 0.3s ease;
}

.logo .fa-star:hover {
  transform: scale(1.3) rotate(20deg);
}

/* Star pulse animation */
@keyframes star-pulse {
  0% {
    filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.7));
  }
  50% {
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.9));
  }
  100% {
    filter: drop-shadow(0 0 7px rgba(255, 215, 0, 1));
  }
}

/* Star shine effect */
.logo .fa-star::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transform: scale(0);
  animation: star-shine 3s infinite;
  pointer-events: none;
}

@keyframes star-shine {
  0%, 100% {
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    transform: scale(0.3) translate(3px, -3px);
    opacity: 0.8;
  }
  20% {
    transform: scale(0.2) translate(6px, -5px);
    opacity: 0.6;
  }
  30% {
    transform: scale(0.1) translate(9px, -7px);
    opacity: 0.3;
  }
  40% {
    transform: scale(0) translate(12px, -9px);
    opacity: 0;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

/* Navbar links color when transparent */
nav:not(.scrolled) .nav-links a {
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

nav:not(.scrolled) .logo a,
nav:not(.scrolled) .logo span {
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-links a:hover {
  color: var(--accent);
}

/* Hover state when navbar is transparent */
nav:not(.scrolled) .nav-links a:hover {
  color: var(--secondary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background-color: var(--accent);
  color: white !important;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
}

.nav-cta:hover {
  background-color: #1a2d5a;
  color: white !important;
}

/* CTA button when navbar is transparent */
nav:not(.scrolled) .nav-cta {
  background-color: rgba(44, 62, 111, 0.9);
  backdrop-filter: blur(10px);
}

nav:not(.scrolled) .nav-cta:hover {
  background-color: rgba(26, 45, 90, 0.95);
}

.nav-cta::after {
  display: none;
}

.menu-icon {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: white;
  display: flex;
  justify-content: space-around;
  padding: 15px 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 900;
}

.mobile-menu a {
  color: var(--primary);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.7rem;
  transition: var(--transition);
}

.mobile-menu a i {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.mobile-menu a:hover {
  color: var(--accent);
}

/* Hero Section */
.hero {
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 20px;
  position: relative;
}

/* Hero Video Background */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
  object-fit: cover;
  opacity: 1;
}

/* Create stars - DISABLED */
.hero::before {
  display: none;
}

/* Subtle dark overlay for text readability (minimal) */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1));
  z-index: 0;
}

/* Advanced Shooting Star and Comet Animations */
@keyframes shootingStar {
  0% {
    transform: translate(0%, 0%) rotate(225deg);
    width: 0;
    opacity: 0;
  }
  10% {
    width: 40px;
    opacity: 0.7;
  }
  20% {
    width: 80px;
  }
  40% {
    width: 120px;
    opacity: 0.9;
  }
  60% {
    width: 160px;
  }
  80% {
    width: 180px;
    opacity: 0.8;
  }
  95% {
    width: 120px;
    opacity: 0.3;
  }
  100% {
    transform: translate(150%, 150%) rotate(225deg);
    width: 60px;
    opacity: 0;
  }
}

@keyframes shootingStarAlt {
  0% {
    transform: translate(0%, 0%) rotate(180deg);
    width: 0;
    opacity: 0;
  }
  10% {
    width: 30px;
    opacity: 0.7;
  }
  30% {
    width: 100px;
    opacity: 0.9;
  }
  60% {
    width: 160px;
  }
  80% {
    width: 180px;
    opacity: 0.8;
  }
  95% {
    width: 100px;
    opacity: 0.3;
  }
  100% {
    transform: translate(160%, 0%) rotate(180deg);
    width: 50px;
    opacity: 0;
  }
}

@keyframes shootingStarDiagonal {
  0% {
    transform: translate(0%, 0%) rotate(135deg);
    width: 0;
    opacity: 0;
  }
  10% {
    width: 40px;
    opacity: 0.7;
  }
  30% {
    width: 100px;
    opacity: 0.9;
  }
  60% {
    width: 180px;
  }
  80% {
    width: 220px;
    opacity: 0.8;
  }
  95% {
    width: 140px;
    opacity: 0.3;
  }
  100% {
    transform: translate(-140%, 140%) rotate(135deg);
    width: 80px;
    opacity: 0;
  }
}

@keyframes shootingStarCurved {
  0% {
    transform: translate(0%, 0%) rotate(215deg) scale(0.8);
    width: 0;
    opacity: 0;
  }
  10% {
    width: 60px;
    opacity: 0.7;
  }
  30% {
    transform: translate(30%, 25%) rotate(230deg) scale(0.9);
    width: 120px;
    opacity: 0.9;
  }
  50% {
    transform: translate(60%, 40%) rotate(245deg) scale(1);
    width: 180px;
  }
  70% {
    transform: translate(80%, 25%) rotate(230deg) scale(0.95);
    width: 200px;
  }
  85% {
    width: 160px;
    opacity: 0.6;
  }
  95% {
    width: 100px;
    opacity: 0.2;
    transform: translate(120%, 15%) rotate(220deg) scale(0.8);
  }
  100% {
    transform: translate(160%, 5%) rotate(215deg) scale(0.7);
    width: 60px;
    opacity: 0;
  }
}

/* New natural comet path animations with proper tail build-up */
@keyframes cometPath1 {
  0% {
    transform: translate(0%, 0%);
    width: 0;
    opacity: 0;
  }
  5% {
    width: 20px;
    opacity: 0.5;
  }
  15% {
    width: 60px;
    opacity: 0.8;
  }
  40% {
    width: 120px;
    opacity: 1;
  }
  70% {
    width: 160px;
    opacity: 0.9;
  }
  85% {
    width: 140px;
    opacity: 0.7;
  }
  95% {
    width: 100px;
    opacity: 0.3;
  }
  100% {
    transform: translate(150%, 100%);
    width: 60px;
    opacity: 0;
  }
}

@keyframes cometPath2 {
  0% {
    transform: translate(0%, 0%);
    width: 0;
    opacity: 0;
  }
  5% {
    width: 30px;
    opacity: 0.6;
  }
  20% {
    width: 90px;
    opacity: 0.9;
  }
  50% {
    width: 140px;
    opacity: 1;
  }
  75% {
    width: 170px;
    opacity: 0.8;
  }
  90% {
    width: 130px;
    opacity: 0.4;
  }
  97% {
    width: 90px;
    opacity: 0.2;
  }
  100% {
    transform: translate(150%, -50%);
    width: 60px;
    opacity: 0;
  }
}

@keyframes cometPath3 {
  0% {
    transform: translate(0%, 0%);
    width: 0;
    opacity: 0;
  }
  10% {
    width: 50px;
    opacity: 0.7;
  }
  40% {
    width: 130px;
    opacity: 1;
  }
  60% {
    transform: translate(50%, 40%);
    width: 160px;
    opacity: 0.9;
  }
  80% {
    transform: translate(80%, 65%);
    width: 140px;
    opacity: 0.7;
  }
  95% {
    width: 80px;
    opacity: 0.3;
  }
  100% {
    transform: translate(130%, 80%);
    width: 40px;
    opacity: 0;
  }
}

/* Twinkle animation for star heads */
@keyframes twinkle {
  0%, 100% {
    opacity: 0.4;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* New flash effect for star heads at animation end */
@keyframes exitFlash {
  0%, 85% {
    opacity: 0.4;
    transform: scale(0.8);
    box-shadow: 0 0 10px 2px white, 0 0 20px 5px rgba(255, 255, 255, 0.5);
  }
  95% {
    opacity: 1;
    transform: scale(1.8);
    box-shadow: 0 0 20px 8px white, 0 0 40px 15px rgba(255, 255, 255, 0.8);
  }
  100% {
    opacity: 0;
    transform: scale(0.2);
  }
}

/* Pulse animation for the star body */
@keyframes pulse {
  0%, 100% {
    filter: brightness(1) blur(0px);
  }
  50% {
    filter: brightness(1.3) blur(0.5px);
  }
}

/* Particle trail animation */
@keyframes fadeOut {
  0% {
    opacity: 0.6;
    transform: scale(1);
    filter: blur(1px);
  }
  100% {
    opacity: 0;
    transform: scale(0.3);
    filter: blur(3px);
  }
}

.shooting-star {
  display: none !important;
}

/* Star head */
.shooting-star::before {
  content: '';
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 0 10px 2px white, 0 0 20px 5px rgba(255, 255, 255, 0.5);
  animation: twinkle 0.8s ease-in-out infinite;
  z-index: 5;
}

/* Star trail particles */
.shooting-star::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 50%;
  width: 140%;
  height: 24px;
  background: radial-gradient(
    circle at right center,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.1) 70%,
    transparent 100%
  );
  transform: translateY(-50%);
  opacity: 0.6;
  filter: blur(4px);
  border-radius: 50%;
  animation: fadeOut 1.5s ease-out infinite;
  pointer-events: none;
}

/* Shooting star with comet-like tail */
.shooting-star.comet {
  height: 4px;
  background: linear-gradient(to right, 
    rgba(255,255,255,0) 0%, 
    rgba(176,224,230,0.1) 10%, 
    rgba(135,206,235,0.3) 30%,
    rgba(135,206,235,0.5) 60%,
    rgba(176,224,255,0.8) 80%, 
    rgba(255,255,255,1) 100%);
  filter: drop-shadow(0 0 8px #fff) 
         drop-shadow(0 0 15px rgba(105, 206, 235, 0.9)) 
         drop-shadow(0 0 25px rgba(135, 206, 250, 0.7));
}

.shooting-star.comet::before {
  width: 8px;
  height: 8px;
  right: -4px;
  box-shadow: 0 0 15px 4px white, 0 0 30px 8px rgba(135, 206, 250, 0.8);
}

.shooting-star.comet::after {
  width: 150%;
  height: 30px;
  right: -15px;
  background: radial-gradient(
    ellipse at right center,
    rgba(176, 224, 255, 0.8) 0%,
    rgba(135, 206, 250, 0.4) 40%,
    rgba(135, 206, 250, 0.1) 80%,
    transparent 100%
  );
  filter: blur(6px);
}

/* Position and timing for each shooting star */
.shooting-star:nth-child(1) {
  top: 15%;
  left: 10%;
  width: 0;
  animation: 
    cometPath1 7s cubic-bezier(0.41, 0.01, 0.57, 1) 1s infinite,
    pulse 2.5s ease-in-out infinite;
}

.shooting-star:nth-child(2) {
  top: 30%;
  left: 0%;
  width: 0;
  animation: 
    cometPath2 8s cubic-bezier(0.25, 0.1, 0.25, 1) 5s infinite,
    pulse 3s ease-in-out infinite;
}

.shooting-star:nth-child(3) {
  top: 60%;
  left: 10%;
  width: 0;
  animation: 
    cometPath3 6.5s cubic-bezier(0.42, 0, 0.58, 1) 3s infinite,
    pulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 5px #fff) 
         drop-shadow(0 0 10px rgba(255, 215, 0, 0.7)) 
         drop-shadow(0 0 15px rgba(255, 215, 0, 0.4));
  background: linear-gradient(to right, 
    rgba(255,255,255,0) 0%, 
    rgba(255,255,200,0.1) 20%, 
    rgba(255,215,0,0.4) 50%,
    rgba(255,235,150,0.8) 80%, 
    rgba(255,255,255,1) 100%);
}

.shooting-star:nth-child(3)::before {
  background-color: #fffacd;
  box-shadow: 0 0 10px 2px #fffacd, 0 0 20px 5px rgba(255, 215, 0, 0.7);
}

.shooting-star:nth-child(3)::after {
  background: radial-gradient(
    ellipse at right center,
    rgba(255, 235, 150, 0.8) 0%,
    rgba(255, 215, 0, 0.4) 40%,
    rgba(255, 215, 0, 0.1) 80%,
    transparent 100%
  );
}

/* Add more shooting stars with different angles */
.shooting-star:nth-child(4) {
  top: 25%;
  left: 80%;
  width: 0;
  animation: 
    cometPath2 10s cubic-bezier(0.5, 0.05, 0.15, 0.95) 7s infinite,
    pulse 2.2s ease-in-out infinite;
}

.shooting-star:nth-child(5) {
  top: 45%;
  left: 5%;
  width: 0;
  animation: 
    cometPath1 7.5s cubic-bezier(0.25, 0.1, 0.25, 0.9) 9s infinite,
    pulse 3.5s ease-in-out infinite;
  filter: drop-shadow(0 0 5px #fff) 
         drop-shadow(0 0 10px rgba(221, 160, 221, 0.7)) 
         drop-shadow(0 0 15px rgba(221, 160, 221, 0.4));
  background: linear-gradient(to right, 
    rgba(255,255,255,0) 0%, 
    rgba(230,200,250,0.1) 20%, 
    rgba(221,160,221,0.4) 50%,
    rgba(240,200,240,0.8) 80%, 
    rgba(255,255,255,1) 100%);
}

.shooting-star:nth-child(5)::before {
  background-color: #fae6fa;
  box-shadow: 0 0 10px 2px #fae6fa, 0 0 20px 5px rgba(221, 160, 221, 0.7);
}

.shooting-star:nth-child(5)::after {
  background: radial-gradient(
    ellipse at right center,
    rgba(240, 200, 240, 0.8) 0%,
    rgba(221, 160, 221, 0.4) 40%,
    rgba(221, 160, 221, 0.1) 80%,
    transparent 100%
  );
}

/* Additional shooting stars */
.shooting-star:nth-child(6) {
  top: 75%;
  left: 0%;
  width: 0;
  animation: 
    cometPath3 8s cubic-bezier(0.3, 0, 0.7, 1) 12s infinite,
    pulse 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 5px #fff) 
         drop-shadow(0 0 10px rgba(135, 206, 250, 0.7)) 
         drop-shadow(0 0 15px rgba(135, 206, 250, 0.4));
  background: linear-gradient(to right, 
    rgba(255,255,255,0) 0%, 
    rgba(200,220,250,0.1) 20%, 
    rgba(135,206,250,0.4) 50%,
    rgba(180,230,255,0.8) 80%, 
    rgba(255,255,255,1) 100%);
}

.shooting-star:nth-child(6)::before {
  background-color: #e6f7ff;
  box-shadow: 0 0 10px 2px #e6f7ff, 0 0 20px 5px rgba(135, 206, 250, 0.7);
}

.shooting-star:nth-child(6)::after {
  background: radial-gradient(
    ellipse at right center,
    rgba(180, 230, 255, 0.8) 0%,
    rgba(135, 206, 250, 0.4) 40%,
    rgba(135, 206, 250, 0.1) 80%,
    transparent 100%
  );
}

.shooting-star:nth-child(7) {
  top: 20%;
  left: 40%;
  width: 0;
  animation: 
    cometPath3 12s cubic-bezier(0.36, 0.05, 0.65, 0.95) 8s infinite,
    pulse 2.7s ease-in-out infinite;
  filter: drop-shadow(0 0 5px #fff) 
         drop-shadow(0 0 10px rgba(255, 182, 193, 0.7)) 
         drop-shadow(0 0 15px rgba(255, 182, 193, 0.4));
  background: linear-gradient(to right, 
    rgba(255,255,255,0) 0%, 
    rgba(255,220,220,0.1) 20%, 
    rgba(255,182,193,0.4) 50%,
    rgba(255,210,220,0.8) 80%, 
    rgba(255,255,255,1) 100%);
}

.shooting-star:nth-child(7)::before {
  background-color: #fff2f4;
  box-shadow: 0 0 10px 2px #fff2f4, 0 0 20px 5px rgba(255, 182, 193, 0.7);
}

.shooting-star:nth-child(7)::after {
  background: radial-gradient(
    ellipse at right center,
    rgba(255, 210, 220, 0.8) 0%,
    rgba(255, 182, 193, 0.4) 40%,
    rgba(255, 182, 193, 0.1) 80%,
    transparent 100%
  );
}

.shooting-star:nth-child(8) {
  top: 85%;
  left: 20%;
  width: 0;
  animation: 
    cometPath1 9s cubic-bezier(0.34, 0.05, 0.65, 0.95) 11s infinite,
    pulse 3.2s ease-in-out infinite;
}

@keyframes starsMove {
  from {
    transform: translateX(0) translateY(0);
  }
  to {
    transform: translateX(-500px) translateY(-500px);
  }
}

/* Update hero content to make it appear on top of the star field */
.hero-content {
  max-width: 600px;
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
  position: relative;
  z-index: 2;
  text-align: right;
  align-self: flex-end;
  margin-right: 5%;
  margin-top: auto;
  margin-bottom: auto;
  padding: 40px;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(5px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.hero h1 span {
  color: var(--secondary);
  display: block;
  margin-top: 5px;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 35px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.6;
  opacity: 0.95;
  font-weight: 400;
}

.cta-button {
  background-color: var(--accent);
  color: white;
  border: none;
  padding: 16px 36px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 6px 20px rgba(44, 62, 111, 0.5);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.cta-button:before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
  opacity: 0;
  transition: var(--transition);
}

.cta-button:hover {
  background-color: #1a2d5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 62, 111, 0.6);
}

.cta-button:hover:before {
  animation: shimmer 1s forwards;
}

@keyframes shimmer {
  0% {
    left: -50%;
    opacity: 0.5;
  }
  100% {
    left: 150%;
    opacity: 0;
  }
}

/* Update scroll down indicator to appear on top of stars */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  opacity: 0.8;
  color: white;
  font-size: 2rem;
  z-index: 2;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-15px);
  }
  60% {
    transform: translateX(-50%) translateY(-7px);
  }
}

/* Services Overview */
.services {
  padding: 80px 20px;
  background: linear-gradient(to bottom, var(--light), #f0f8ff);
  position: relative;
  overflow: hidden;
}

.services:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 10%, transparent 10.5%);
  background-size: 20px 20px;
  opacity: 0.3;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.8rem;
  color: var(--primary);
  position: relative;
}

.section-title:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--accent), var(--secondary));
  margin: 15px auto 0;
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.service-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  transform: translateY(20px);
  opacity: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card.animated {
  animation: fadeUp 0.6s ease forwards;
}

.service-img {
  width: 100%;
  height: 180px;
  background-color: #ddd;
  background-size: cover;
  background-position: center;
}

.service-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.service-desc {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
  flex-grow: 1;
}

/* Featured Project with Before/After */
.featured-project {
  padding: 60px 20px;
  background-color: var(--primary);
  color: white;
  position: relative;
  overflow: hidden;
}

.featured-project:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 50% 70%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 120px 120px;
  z-index: 1;
}

.featured-project .container {
  position: relative;
  z-index: 2;
}

.before-after {
  margin: 30px auto;
  max-width: 450px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  aspect-ratio: 2 / 3;
}

.before-after-imgs {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 2 / 3;
}

.before-img, .after-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.before-img {
  background-image: url('../images/before.jpg');
  z-index: 1;
  clip-path: inset(0 0 0 0);
  will-change: clip-path;
}

.after-img {
  background-image: url('../images/after.jpg');
  z-index: 0;
  clip-path: inset(0 0 0 0);
  will-change: clip-path;
}

.slider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: white;
  z-index: 2;
  cursor: ew-resize;
}

.slider:after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  background-color: white;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.before-text, .after-text {
  position: absolute;
  bottom: 20px;
  color: white;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 5px 15px;
  border-radius: 4px;
  font-size: 0.9rem;
  z-index: 3;
}

.before-text {
  left: 20px;
}

.after-text {
  right: 20px;
}

/* Color Palette Tool */
.color-tool {
  padding: 80px 20px;
  background-color: #f9f9ff;
  position: relative;
  overflow: hidden;
}

.color-tool:after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(44,62,111,0.1) 0%, transparent 70%);
  top: -150px;
  right: -150px;
  border-radius: 50%;
}

.color-tool:before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(247,206,72,0.1) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  border-radius: 50%;
}

.color-palette {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 20px 0;
  margin: 30px 0;
  gap: 15px;
  scrollbar-width: none;
}

.color-palette::-webkit-scrollbar {
  display: none;
}

/* Color Swatch Styling */
.color-swatch {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 90px;
  display: flex;
  flex-direction: column;
  margin: 5px;
}

.color-swatch:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.color-swatch.active {
  transform: translateY(-5px);
  box-shadow: 0 0 0 2px var(--accent), 0 5px 15px rgba(0, 0, 0, 0.15);
}

.color-name {
  padding: 8px 4px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  height: auto;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  word-wrap: break-word;
  hyphens: auto;
}

.visualizer {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  margin-top: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.room-preview {
  width: 100%;
  height: 350px;
  background-image: url('../images/living-room.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Room Visualizer Enhancements */
.wall-section-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%; 
  height: 100%;
  pointer-events: none;
  transition: background-color 0.3s ease-in-out;
}

.color-label {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  z-index: 10;
}

.selected-swatch {
  transform: scale(1.05) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25) !important;
}

/* Room Type Buttons */
.room-type-selector {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.room-type-btn {
  background-color: #eee;
  color: #333;
  border: none;
  padding: 8px 15px;
  margin: 0 5px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.room-type-btn.active {
  background-color: var(--accent);
  color: white;
}

/* Portfolio Preview */
.portfolio-preview {
  padding: 80px 20px;
  background-color: var(--light);
  position: relative;
  overflow: hidden;
}

.portfolio-preview:before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11,61,145,0.05) 0%, transparent 70%);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.portfolio-item {
  position: relative;
  height: 250px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transform: scale(0.95);
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-item:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(44,62,111,0.2), transparent 70%);
  z-index: 1;
}

.portfolio-item:hover {
  transform: scale(1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 20px;
  color: white;
  transform: translateY(100%);
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
}

/* Testimonial */
.testimonial {
  padding: 60px 20px;
  background-color: var(--primary);
  color: white;
  text-align: center;
}

.testimonial-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  font-weight: 600;
  margin-bottom: 5px;
}

.testimonial-position {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Contact CTA */
.contact-cta {
  padding: 60px 20px;
  text-align: center;
  background-color: var(--light);
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: 40px 20px 100px;
  text-align: center;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-logo a {
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
}

.footer-links a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--accent);
  transform: translateY(-3px);
}

.copyright {
  margin-top: 30px;
  opacity: 0.6;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 767px) {
  .hero-content {
    max-width: 90%;
    margin-right: 5%;
    margin-left: 5%;
    padding: 30px 25px;
    text-align: center;
    align-self: center;
  }
  
  .hero h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }
  
  .hero p {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  
  .cta-button {
    padding: 14px 28px;
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .container {
    padding: 0 40px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .hero p {
    font-size: 1.25rem;
  }
  
  .before-after {
    max-width: 600px;
    aspect-ratio: 2 / 3;
  }
  
  .before-after-imgs {
    height: 100%;
    aspect-ratio: 2 / 3;
  }
  
  .mobile-menu {
    display: none;
  }
  
  nav {
    padding: 20px 40px;
  }
  
  .nav-links {
    display: flex;
  }
  
  .menu-icon {
    display: none;
  }
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
  }
  
  .menu-icon {
    display: block;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 60px;
  }
  
  .hero-content {
    max-width: 650px;
    padding: 50px;
  }
  
  .hero h1 {
    font-size: 4rem;
  }
  
  .hero p {
    font-size: 1.35rem;
  }
}

/* Advanced comet paths with dramatic tails */
@keyframes advancedCometPath1 {
  0% {
    transform: translate(0%, 0%);
    width: 0;
    opacity: 0;
  }
  5% {
    width: 30px;
    opacity: 0.6;
  }
  20% {
    width: 120px;
    opacity: 0.9;
  }
  50% {
    transform: translate(60%, 40%);
    width: 220px;
    opacity: 1;
  }
  80% {
    width: 180px;
    opacity: 0.8;
  }
  90% {
    width: 120px;
    opacity: 0.5;
  }
  97% {
    width: 80px;
    opacity: 0.2;
    transform: translate(120%, 80%);
  }
  100% {
    transform: translate(180%, 120%);
    width: 40px;
    opacity: 0;
  }
}

@keyframes advancedCometPath2 {
  0% {
    transform: translate(0%, 0%);
    width: 0;
    opacity: 0;
  }
  5% {
    width: 40px;
    opacity: 0.7;
  }
  15% {
    width: 100px;
    opacity: 0.9;
  }
  40% {
    transform: translate(40%, -20%);
    width: 200px;
    opacity: 1;
  }
  70% {
    transform: translate(80%, -35%);
    width: 240px;
    opacity: 0.9;
  }
  90% {
    width: 160px;
    opacity: 0.5;
    transform: translate(120%, -38%);
  }
  97% {
    width: 100px;
    opacity: 0.2;
  }
  100% {
    transform: translate(170%, -40%);
    width: 60px;
    opacity: 0;
  }
}

/* Specialized comet animations for last two shooting stars (with comet class) */
.shooting-star.comet:nth-child(7) {
  width: 0;
  height: 5px;
  animation: 
    advancedCometPath1 14s cubic-bezier(0.25, 0.1, 0.25, 1) 2s infinite,
    pulse 2.2s ease-in-out infinite;
  background: linear-gradient(to right, 
    rgba(255,255,255,0) 0%, 
    rgba(176,224,230,0.05) 5%, 
    rgba(135,206,235,0.2) 20%,
    rgba(135,206,235,0.4) 40%,
    rgba(176,224,255,0.7) 70%, 
    rgba(255,255,255,1) 100%);
  filter: drop-shadow(0 0 10px #fff) 
        drop-shadow(0 0 20px rgba(105, 206, 235, 0.9)) 
        drop-shadow(0 0 35px rgba(135, 206, 250, 0.7));
}

.shooting-star.comet:nth-child(7)::before {
  width: 10px;
  height: 10px;
  right: -5px;
  box-shadow: 0 0 20px 5px white, 0 0 40px 10px rgba(135, 206, 250, 0.8);
  animation: exitFlash 14s ease-in-out 2s infinite;
}

.shooting-star.comet:nth-child(7)::after {
  width: 200%;
  height: 40px;
  right: -20px;
  filter: blur(8px);
}

.shooting-star.comet:nth-child(8) {
  width: 0;
  height: 5px;
  animation: 
    advancedCometPath2 16s cubic-bezier(0.36, 0.05, 0.65, 0.95) 6s infinite,
    pulse 2.5s ease-in-out infinite;
  background: linear-gradient(to right, 
    rgba(255,255,255,0) 0%, 
    rgba(240,248,255,0.05) 5%, 
    rgba(196,222,255,0.2) 20%,
    rgba(135,206,250,0.4) 40%,
    rgba(70,130,180,0.7) 70%, 
    rgba(255,255,255,1) 100%);
  filter: drop-shadow(0 0 10px #fff) 
        drop-shadow(0 0 20px rgba(135, 206, 250, 0.9)) 
        drop-shadow(0 0 35px rgba(70, 130, 180, 0.7));
}

.shooting-star.comet:nth-child(8)::before {
  width: 12px;
  height: 12px;
  right: -6px;
  box-shadow: 0 0 20px 5px white, 0 0 40px 10px rgba(70, 130, 180, 0.8);
  animation: exitFlash 16s ease-in-out 6s infinite;
}

.shooting-star.comet:nth-child(8)::after {
  width: 220%;
  height: 50px;
  right: -25px;
  filter: blur(10px);
  background: radial-gradient(
    ellipse at right center,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(135, 206, 250, 0.5) 30%,
    rgba(70, 130, 180, 0.2) 70%,
    transparent 100%
  );
}

.shooting-star:nth-child(4)::before {
  animation: exitFlash 10s ease-in-out 7s infinite;
}

.shooting-star:nth-child(1)::before {
  animation: exitFlash 7s ease-in-out 1s infinite;
}

#stars-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

#stars-container canvas {
  position: absolute;
  top: 0;
  left: 0;
}

@media (max-width: 768px) {
  .color-palette {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
  }
  
  .color-swatch {
    width: 100%;
    margin: 0;
  }
  
  .color-name {
    font-size: 0.7rem;
    padding: 6px 2px;
  }
}

/* Bottom Navigation */
.bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--dark);
  padding: 10px 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #fff;
  opacity: 0.7;
  transition: var(--transition);
  font-size: 0.7rem;
}

.bottom-nav a i {
  font-size: 1.2rem;
  margin-bottom: 3px;
}

.bottom-nav a:hover,
.bottom-nav a.active {
  opacity: 1;
  color: var(--accent);
}

@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }
} 