:root {
  /* Vibrant 'Prism' Palette — Indigo, Violet & Magenta */
  --primary: #FFFFFF;            /* Pure white body background */
  --primary-light: #FBFBFF;      /* Ultra-light violet-tinted background */
  --secondary: #6366F1;          /* Vibrant Indigo — main accent */
  --secondary-hover: #4F46E5;    /* Deeper indigo */
  --secondary-light: rgba(99, 102, 241, 0.12); 
  --text-main: #0F172A;          /* Deep slate-navy for titles */
  --text-body: #334155;          /* Graphite for body text */
  --text-subtitle: #475569;      /* Stronger grey for subtitles - NO LONGER DIMMED */
  --text-muted: #64748B;         /* Supportive muted text */
  --accent-magenta: #D946EF;    /* Vibrant Magenta (Prism effect) */
  --accent-violet: #8B5CF6;     /* Bright Violet */
  --text-on-dark: #F8FAFC;
  --text-on-dark-muted: #CBD5E1; 
  --accent: #F59E0B; 
  --btn-gradient: linear-gradient(135deg, var(--secondary) 0%, var(--accent-magenta) 100%);
  --prism-light: linear-gradient(90deg, var(--secondary), var(--accent-magenta), var(--accent-violet));

  /* Glass / Card Variables */
  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(99, 102, 241, 0.15);
  --glass-shadow: 0 8px 32px 0 rgba(99, 102, 241, 0.08);
  --card-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  --card-hover-shadow: 0 20px 40px rgba(99, 102, 241, 0.16);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', system-ui, sans-serif;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--primary);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  font-size: 1.05rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 16px;
  transition: var(--transition-smooth);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--btn-gradient);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-magenta) 0%, var(--secondary) 100%);
  z-index: -1;
  transition: opacity 0.4s ease;
  opacity: 0;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(217, 70, 239, 0.40);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.80);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
  box-shadow: 0 4px 20px rgba(17, 24, 39, 0.08);
  padding: 1rem 0;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
}

/* Logo on transparent header = white; on scrolled header = dark */
.logo {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: #fff;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.logo:hover {
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
  transform: scale(1.05);
  letter-spacing: 2px;
}

header.scrolled .logo {
  color: var(--text-main);
}

header.scrolled .logo:hover {
  color: var(--secondary);
  text-shadow: none;
}

.logo span {
  color: var(--secondary);
}

header.scrolled .logo span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

/* Nav links on transparent header = white */
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.90);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Nav links on scrolled header = dark */
header.scrolled .nav-links a {
  color: var(--text-main);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--secondary);
}

header.scrolled .nav-links a:hover,
header.scrolled .nav-links a.active {
  color: var(--secondary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -6px;
  left: 0;
  background: var(--prism-light);
  transition: width 0.3s ease;
}

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

/* The "Get a Quote" button in nav on transparent header */
.nav-links .btn-primary {
  color: #fff;
}

header.scrolled .nav-links .btn-primary {
  color: #fff;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

header.scrolled .mobile-menu-btn {
  color: var(--text-main);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 8rem 5% 4rem;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.90) 0%, rgba(99, 102, 241, 0.4) 50%, rgba(217, 70, 239, 0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: #FFFFFF;
  animation: fadeUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: rgba(229, 231, 235, 0.90);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
  opacity: 0;
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  animation: fadeUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s forwards;
  opacity: 0;
}

/* Sections General */
section {
  padding: 8rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 4rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-main);
}

.section-title::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background: var(--secondary);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* For titles in alternate (teal-tinted) sections */
.section-title-light {
  color: var(--text-main);
}

/* Home About Widget */
.home-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.home-about-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(17, 24, 39, 0.20);
  position: relative;
}

.home-about-img::after {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  border: 2px solid var(--secondary);
  border-radius: 12px;
  z-index: -1;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.service-card {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #fff;
  border: 1px solid rgba(37, 99, 235, 0.12);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--card-hover-shadow);
}

.service-card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-bottom: 1px solid rgba(37, 99, 235, 0.10);
  transition: var(--transition-smooth);
}

.service-card:hover .service-card-img {
  transform: scale(1.05);
}

.service-card-content {
  padding: 2.5rem 2rem;
  flex-grow: 1;
  background: #fff;
  position: relative;
  z-index: 2;
}

.service-icon {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.service-card p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Why Choose Us */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  background: #fff;
  border: 1px solid rgba(13, 148, 136, 0.10);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
}

.feature-item:hover {
  border-color: rgba(13, 148, 136, 0.30);
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
}

.feature-icon {
  color: #fff;
  font-size: 1.4rem;
  padding: 1rem;
  background: linear-gradient(135deg, var(--secondary), var(--accent-magenta));
  border-radius: 12px;
  min-width: 56px;
  height: 56px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
  flex-shrink: 0;
}

.feature-item h3 {
  color: var(--text-main);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.testimonial-card {
  padding: 3rem 2rem;
  position: relative;
  background: #fff;
  border: 1px solid rgba(37, 99, 235, 0.10);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  box-shadow: var(--card-hover-shadow);
  border-color: rgba(37, 99, 235, 0.25);
}

.quote-icon {
  font-size: 3.5rem;
  color: rgba(37, 99, 235, 0.10);
  position: absolute;
  top: 1.5rem;
  right: 2rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-body);
}

.testimonial-author {
  font-weight: 700;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.testimonial-author::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--secondary);
  flex-shrink: 0;
}

/* Footer */
footer {
  background: #111827;
  border-top: 3px solid var(--secondary);
  padding: 4rem 5% 1.5rem;
  margin-top: 2rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col .logo {
  color: #fff;
}

.footer-col h4 {
  color: #F9FAFB;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
}

.footer-col p, .footer-col ul li {
  color: #9CA3AF;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.footer-col p a {
  color: #9CA3AF;
}

.footer-col p a:hover {
  color: var(--secondary);
}

.footer-col ul li a {
  display: inline-block;
  color: #9CA3AF;
}

.footer-col ul li a:hover {
  color: #2DD4BF;
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #6B7280;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-designer {
  margin-top: 0;
  font-size: 0.75rem;
  color: #4B5563;
  letter-spacing: 0.3px;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .home-about {
    grid-template-columns: 1fr;
  }
  .home-about-img::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(13, 148, 136, 0.15);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.10);
  }

  /* When mobile menu is open, all links are dark */
  .nav-links a {
    color: var(--text-main);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-ctas {
    flex-direction: column;
  }

  section {
    padding: 5rem 5%;
  }

  .service-card-img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .feature-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .feature-icon {
    margin-bottom: 1rem;
  }
}
