/* Reset + base */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0a0a0f;
  color: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Animated gradient background */
.bg-gradient {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  opacity: 0.1;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.15) rotate(3deg); }
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.25rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10,10,15,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 1000;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea, #f093fb);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background: rgba(10,10,15,0.95);
    padding: 1rem 0;
    display: none;
  }
  
  .nav-links li { padding: 0.75rem 1.25rem; }
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.25s;
  position: relative;
}
.nav-links a:hover { color: #f093fb; }
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.4rem;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 5%;
  position: relative;
  overflow: hidden;
}

.floating-shapes { position: absolute; width: 100%; height: 100%; overflow: hidden; z-index: 0; }

.shape { position: absolute; border-radius: 50%; filter: blur(80px); animation: float 20s infinite; }
.shape1 { width: 400px; height: 400px; background: rgba(102,126,234,0.3); top: 8%; left: 8%; animation-delay: 0s;}
.shape2 { width: 300px; height: 300px; background: rgba(240,147,251,0.3); bottom: 18%; right: 12%; animation-delay: 4s;}
.shape3 { width: 350px; height: 350px; background: rgba(118,75,162,0.25); top: 50%; left: 50%; transform: translate(-30%, -10%); animation-delay: 9s;}

@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-30px) scale(1.06); }
  66% { transform: translate(-30px,30px) scale(0.96); }
}

.hero-content { z-index: 1; max-width: 920px; animation: fadeInUp 1s ease; }

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

.hero h1 {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, #f093fb 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p { font-size: 1.15rem; color: rgba(255,255,255,0.88); margin-bottom: 2rem; }

/* Service header / hero specific to services page */
.service-header {
  position: relative;
  width: 100%;
  min-height: 36vh;
  max-height: 520px;
  /* use a filename without spaces for portability (see services.html note) */
  background-image: url('seo5.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 4.5rem; /* leave space for fixed nav */
}
.service-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,15,0.2), rgba(10,10,15,0.6));
  z-index: 0;
}
.service-header-overlay { position: relative; z-index: 1; text-align: center; padding: 3.5rem 5%; }
.service-header-content h1 { font-size: 2.6rem; font-weight: 900; margin-bottom: 0.5rem; color: #fff; }
.service-header-content p { color: rgba(255,255,255,0.95); font-size: 1.05rem; }

@media (max-width: 900px) {
  .service-header { min-height: 28vh; padding-top: 5rem; }
  .service-header-content h1 { font-size: 1.9rem; }
}

.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  box-shadow: 0 10px 40px rgba(102,126,234,0.35);
}
.btn-secondary { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.12); padding: 0.8rem 1.6rem; }

/* Sections */
.services, .testimonials, .cta-section, .portfolio, .about-section { padding: 5.5rem 5%; position: relative; }

/* Section titles */
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title h2 {
  font-size: 2.4rem; font-weight: 800;
  background: linear-gradient(135deg, #fff, #f093fb);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-title p { font-size: 1rem; color: rgba(255,255,255,0.65); }

/* Grids */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.service-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 1.8rem;
  transition: all 0.35s;
  cursor: pointer;
  backdrop-filter: blur(8px);
  text-decoration: none;
  color: inherit;
}
.service-card:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(240,147,251,0.35);
  box-shadow: 0 20px 60px rgba(102,126,234,0.18);
}

.service-icon { font-size: 2.2rem; margin-bottom: 0.9rem; display: inline-block; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }

.service-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; color: #f093fb; }
.service-card p { color: rgba(255,255,255,0.8); line-height: 1.5; }

/* Stats */
.stats { padding: 3rem 5%; background: linear-gradient(135deg, rgba(102,126,234,0.04), rgba(240,147,251,0.04)); text-align: center; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; max-width: 900px; margin: 0 auto; }
.stat-item h3 { font-size: 2rem; font-weight: 900; background: linear-gradient(135deg, #667eea, #f093fb); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-item p { color: rgba(255,255,255,0.7); }

/* Testimonials */
.testimonials { padding: 4rem 5%; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; max-width: 1200px; margin: 0 auto; }
.testimonial-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; padding: 1.25rem; transition: 0.3s; }
.testimonial-card:hover { transform: scale(1.03); border-color: rgba(240,147,251,0.35); }
.stars { color: #ffd700; font-size: 1.05rem; margin-bottom: 0.6rem; }
.testimonial-card p { color: rgba(255,255,255,0.85); font-style: italic; margin-bottom: 0.6rem; }
.author { color: #f093fb; font-weight: 600; }

/* CTA Section */
.cta-section { padding: 4rem 5%; text-align: center; background: linear-gradient(135deg, rgba(102,126,234,0.06), rgba(118,75,162,0.06)); border-radius: 12px; margin: 2rem auto; max-width: 1100px; }

/* Increase vertical spacing for CTA button and content */
.cta-section p { margin-bottom: 1.25rem; }
.cta-section .btn { margin-top: 1.5rem; }
.cta-section .btn.btn-primary { padding: 1rem 2rem; }

/* About page */
.about-banner { height: 36vh; display:flex; align-items:center; justify-content:center; text-align:center; padding-top:3.5rem; }
.about-banner h1 { font-size: 2.6rem; background: linear-gradient(135deg,#fff,#f093fb); background-clip: text; -webkit-background-clip:text; -webkit-text-fill-color:transparent; }

.about-section { max-width: 1100px; margin: 0 auto; }
.about-content { display:grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items:center; }
.about-content p { color: rgba(255,255,255,0.87); line-height:1.7; }
.about-img {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  max-height: 420px; /* desktop visual limit */
  position: relative;
  box-shadow: 0 18px 40px rgba(2,6,23,0.55);
}

/* Responsive image inside about section */
.about-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* keeps image cropped nicely */
  transition: transform 0.6s ease, filter 0.4s ease;
}
.about-img:hover .about-image {
  transform: scale(1.03);
  filter: saturate(1.04) contrast(1.02);
}

/* Caption overlay */
.img-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  background: linear-gradient(90deg, rgba(2,6,23,0.72), rgba(2,6,23,0.28));
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  max-width: 70%;
  box-shadow: 0 6px 18px rgba(2,6,23,0.45);
}

@media (max-width: 900px) {
  .about-img { max-height: 320px; }
  .img-caption { font-size: 0.9rem; max-width: 80%; left: 0.9rem; right: 0.9rem; }
}

@media (max-width: 600px) {
  .about-img { max-height: 220px; }
  .img-caption { font-size: 0.85rem; bottom: 0.8rem; left: 0.75rem; right: 0.75rem; }
}

/* Info boxes */
.info-boxes { margin-top: 2rem; display:grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 1rem; }
.info-box { background: rgba(255,255,255,0.03); padding: 1.25rem; border-radius: 12px; border: 1px solid rgba(255,255,255,0.06); }
.info-box h3 { color:#f093fb; margin-bottom:0.6rem; }

/* Contact form elements */
form label { display:block; margin-bottom: 0.6rem; }
input[type="text"], input[type="email"], textarea {
  width: 100%; padding: 0.9rem 0.9rem; border-radius: 10px; border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02); color: #fff; outline: none; font-size: 0.95rem;
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.45); }

/* Footer */
footer { padding: 2.5rem 5%; text-align: center; border-top: 1px solid rgba(255,255,255,0.06); color: rgba(255,255,255,0.6); margin-top: 2rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero h1 { font-size: 2rem; }
  .about-content { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .mobile-toggle { display: inline-block; }
  
  /* Mobile nav toggle visibility */
  nav.nav-open .nav-links { display: flex; }
}
