/* =========================================
   VARIABLES & THEME
   ========================================= */
:root {
  /* Colors - Dark Navy & Gold Base */
  --color-primary: hsl(220, 50%, 15%); /* Dark Navy */
  --color-primary-light: hsl(220, 40%, 25%);
  --color-secondary: hsl(45, 100%, 50%); /* Gold */
  --color-secondary-hover: hsl(45, 100%, 45%);
  --color-bg: hsl(220, 30%, 8%);
  --color-surface: hsl(220, 30%, 12%);
  --color-text: hsl(220, 20%, 95%);
  --color-text-muted: hsl(220, 10%, 75%);
  --color-border: hsl(220, 20%, 20%);
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Shadows */
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-md: 0 10px 15px rgba(0,0,0,0.2);
  --shadow-lg: 0 20px 25px rgba(0,20,50,0.3);
  --shadow-glow: 0 0 20px rgba(255, 191, 0, 0.3);
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
}

/* =========================================
   RESET & BASE
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
}

p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================
   UTILITIES
   ========================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

.text-gold { color: var(--color-secondary); }
.text-primary { color: var(--color-primary); }
.text-gray { color: var(--color-text-muted); }
.text-sm { font-size: 0.875rem; }
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.bg-darker { background-color: var(--color-surface); }
.hover-gold:hover { color: var(--color-secondary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: all var(--transition-base);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--color-secondary);
  color: var(--color-bg);
}

.btn-primary:hover {
  background-color: var(--color-secondary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn-outline:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-nav {
  padding: 0.5rem 1rem;
  background-color: rgba(255, 191, 0, 0.1);
  color: var(--color-secondary);
  border: 1px solid var(--color-secondary);
}

.btn-nav:hover {
  background-color: var(--color-secondary);
  color: var(--color-bg);
}

.btn-glow {
  box-shadow: var(--shadow-glow);
  animation: pulse-glow 2s infinite;
}

/* Section Header styling */
.section-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(255, 191, 0, 0.1);
  color: var(--color-secondary);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.section-desc {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-base);
  padding: 1.5rem 0;
  background-color: transparent;
}

.navbar.scrolled {
  background-color: rgba(14, 20, 31, 0.95); /* surface mixed with bg */
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--color-border);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

.nav-link {
  font-weight: 500;
  font-size: 0.9375rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-secondary);
  transition: width var(--transition-fast);
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: background-color var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  left: 0;
  transition: transform var(--transition-base), top var(--transition-base);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.menu-toggle.active .hamburger { background-color: transparent; }
.menu-toggle.active .hamburger::before { transform: rotate(45deg); top: 0; }
.menu-toggle.active .hamburger::after { transform: rotate(-45deg); top: 0; }

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 6rem;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 10;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.stars {
  color: var(--color-secondary);
  font-size: 1.25rem;
  letter-spacing: 2px;
}

/* Mockup Card (Hero Image Placeholder) */
.hero-image {
  position: relative;
}

.glass-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mockup-card {
  padding: 1.5rem;
  transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
  transition: transform var(--transition-slow);
}

.mockup-card:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.circles {
  display: flex;
  gap: 6px;
}

.circles i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
}

.circles i:nth-child(1) { background: #ff5f56; }
.circles i:nth-child(2) { background: #ffbd2e; }
.circles i:nth-child(3) { background: #27c93f; }

.mockup-body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mockup-stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 3rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-secondary);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mockup-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 100px;
}

.mockup-chart .bar {
  flex: 1;
  background: var(--color-primary-light);
  border-radius: 4px 4px 0 0;
  transition: height 1s ease-out;
  animation: grow-up 1.5s ease-out forwards;
  transform-origin: bottom;
}

/* Decorative Background */
.glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 1;
  opacity: 0.15;
  pointer-events: none;
}

.blob-1 {
  top: -100px;
  right: -100px;
  background: var(--color-secondary);
  animation: float 10s ease-in-out infinite alternate;
}

.blob-2 {
  bottom: -100px;
  left: -200px;
  background: #3b82f6;
  animation: float 12s ease-in-out infinite alternate-reverse;
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 191, 0, 0.3);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  padding: 1rem;
  background-color: rgba(255, 191, 0, 0.1);
  border-radius: var(--radius-md);
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
}

.check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: rgba(255, 191, 0, 0.2);
  color: var(--color-secondary);
  border-radius: 50%;
  font-style: normal;
  font-size: 0.875rem;
}

.image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(45deg, var(--color-surface), var(--color-primary-light));
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.abstract-shape {
  position: relative;
  width: 60%;
  height: 60%;
}

.circle-large {
  position: absolute;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  border: 2px solid var(--color-secondary);
  top: 10%;
  left: 10%;
  animation: rotate 20s linear infinite;
  border-style: dashed;
}

.square-tilted {
  position: absolute;
  width: 60%;
  height: 60%;
  background-color: var(--color-primary);
  top: 20%;
  left: 20%;
  transform: rotate(45deg);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite alternate;
}

/* =========================================
   TESTIMONIALS SECTION
   ========================================= */
   
/* Added margin to push testimonials up from cta */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
  z-index: 2;
}

.testimonial-card {
  background-color: var(--color-bg);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  right: 2rem;
  font-size: 6rem;
  font-family: var(--font-heading);
  color: rgba(255, 191, 0, 0.1);
  line-height: 1;
}

.testimonial-text {
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--color-bg);
}

.bg-gradient {
  background: linear-gradient(135deg, var(--color-secondary), #ff8a00);
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 700;
  color: var(--color-text);
}

.author-role {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* =========================================
   CTA SECTION
   ========================================= */
.cta-section {
  padding: 4rem 0 8rem;
  position: relative;
}

.cta-card {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,191,0,0.1) 0%, transparent 60%);
  z-index: 0;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.cta-desc {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
}

.cta-card .btn {
  position: relative;
  z-index: 1;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background-color: var(--color-surface);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-heading {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--color-text-muted);
}

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

.footer-contact p, .footer-contact a {
  margin-bottom: 0.5rem;
  display: block;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes float {
  0% { transform: translateY(0) rotate(0); }
  100% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(255, 191, 0, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(255, 191, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 191, 0, 0); }
}

@keyframes grow-up {
  0% { transform: scaleY(0); }
  100% { transform: scaleY(1); }
}

/* Intersection Observer Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.is-visible,
.fade-in-left.is-visible,
.fade-in-right.is-visible {
  opacity: 1;
  transform: translate(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* =========================================
   MEDIA QUERIES
   ========================================= */
@media (max-width: 992px) {
  .hero-content, .about-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text {
    order: 1;
  }
  
  .hero-image {
    order: 2;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .hero-cta-group {
    justify-content: center;
  }
  
  .about-content {
    order: 1;
  }
  
  .about-image {
    order: 2;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .feature-list li {
    justify-content: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--color-bg);
    flex-direction: column;
    padding: 2rem;
    transition: left var(--transition-base);
    overflow-y: auto;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-link {
    font-size: 1.25rem;
    padding: 1rem 0;
    width: 100%;
    text-align: center;
  }
  
  .btn-nav {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .btn {
    width: 100%;
  }
  
  .hero-cta-group, .mockup-chart {
    gap: 0.5rem;
  }
}
