/* =========================================
   VARIABLES & THEME CONFIGURATION
   ========================================= */
:root {
  /* Colors - Premium Deep Blue / Slate Palette */
  --bg-dark: #0f172a;
  /* Slate 900 */
  --bg-darker: #020617;
  /* Slate 950 */
  --bg-light: #f8fafc;
  /* Slate 50 */
  --bg-white: #ffffff;

  --primary: #3b82f6;
  /* Blue 500 */
  --primary-light: #60a5fa;
  /* Blue 400 */
  --primary-dark: #1e40af;
  /* Blue 800 */

  --accent: #38bdf8;
  /* Light Blue 400 */

  --text-main: #334155;
  /* Slate 700 */
  --text-dark: #0f172a;
  /* Slate 900 */
  --text-light: #94a3b8;
  /* Slate 400 */
  --text-white: #f8fafc;
  /* Slate 50 */

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', var(--font-sans);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Box Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 25px -5px rgba(56, 189, 248, 0.3);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* =========================================
     RESET & BASE STYLES
     ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--text-dark);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 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;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wrap {
  flex-wrap: wrap;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-10 {
  margin-top: 2.5rem;
}

.mt-16 {
  margin-top: 4rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.pt-6 {
  padding-top: 1.5rem;
}

.pt-32 {
  padding-top: 8rem;
}

.pb-20 {
  padding-bottom: 5rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.max-w-xs {
  max-width: 20rem;
}

.text-white {
  color: var(--text-white);
}

.text-dark {
  color: var(--text-dark);
}

.text-gray-400 {
  color: var(--text-light);
}

.text-gray-500 {
  color: #64748b;
}

.text-gray-600 {
  color: #475569;
}

.bg-light {
  background-color: var(--bg-white);
}

.border-t {
  border-top: 1px solid;
}

.border-gray-800 {
  border-color: #1e293b;
}

.hover-white:hover {
  color: var(--text-white);
}

.section {
  padding: 6rem 0;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.align-center {
  align-items: center;
}

/* =========================================
     BUTTONS
     ========================================= */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  border-radius: 9999px;
  /* Pill shape */
  font-family: var(--font-display);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-white);
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-white);
  border-color: var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--glass-bg);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* =========================================
     NAVIGATION
     ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  transition: all var(--transition-fast);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.75rem 0;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
}

.header-logo-img {
  height: 96px;
  width: auto;
  filter: invert(1) brightness(100);
  transition: all var(--transition-fast);
}

.footer-logo-img {
  height: 112px;
  margin-bottom: 1rem;
  filter: invert(1) brightness(100);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-light);
  font-size: 0.95rem;
}

.navbar:not(.scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.8);
}

.navbar:not(.scrolled) .nav-link:hover {
  color: var(--bg-white);
}

.nav-link:hover {
  color: var(--text-white);
}

.navbar.scrolled .nav-link:hover {
  color: var(--primary-light);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--bg-white);
  transition: all var(--transition-fast);
}

/* =========================================
     HERO & DARK SECTIONS 
     ========================================= */
.dark-section {
  background-color: var(--bg-dark);
  color: var(--text-white);
  position: relative;
  overflow: hidden;
}

.dark-section h1,
.dark-section h2,
.dark-section h3 {
  color: var(--text-white);
}

/* Ambient glow effects behind hero */
.glow-bg {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  max-width: 100vw;
}

.glow-bg-1 {
  top: -200px;
  left: -200px;
}

.glow-bg-2 {
  bottom: -200px;
  right: -200px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
}

.badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title span {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-light);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero Stats Glassmorphism */
.hero-stats {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--bg-white);
  margin-bottom: 0.5rem;
}

.stat-text {
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =========================================
     SECTIONS & COMPONENTS
     ========================================= */
.section-header {
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section-title span {
  color: var(--primary);
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-main);
}

/* Services / Expertise Cards */
.interactive-card {
  background: var(--bg-white);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-smooth);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  top: 0;
}

.interactive-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(59, 130, 246, 0.2);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all var(--transition-fast);
}

.card-icon svg {
  width: 32px;
  height: 32px;
}

.interactive-card:hover .card-icon {
  background: var(--primary);
  color: var(--bg-white);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-text {
  margin-bottom: 1.5rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.feature-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* About Section */
.highlight-box {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  background: rgba(59, 130, 246, 0.03);
  margin-bottom: 1rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

.highlight-box h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.highlight-box p {
  font-size: 0.95rem;
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.abstract-shape {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
}

.circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  opacity: 0.8;
}

.circle-1 {
  width: 80%;
  height: 80%;
  top: 0;
  right: 0;
  animation: float 6s ease-in-out infinite;
}

.circle-2 {
  width: 60%;
  height: 60%;
  bottom: 10%;
  left: 0;
  background: linear-gradient(135deg, #1e40af 0%, var(--primary) 100%);
  animation: float 8s ease-in-out infinite reverse;
}

.glass-overlay {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  width: 110%;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-overlay h3 {
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.4;
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(5deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* CTA & Footer */
.cta-section {
  padding: 8rem 0;
}

.contact-card {
  max-width: 500px;
  padding: 3rem 2rem;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.email-icon {
  width: 80px;
  height: 80px;
  background: rgba(56, 189, 248, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  color: var(--accent);
}

.email-icon svg {
  width: 40px;
  height: 40px;
}

.email-link {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--bg-white);
  font-family: var(--font-display);
  margin-bottom: 1rem;
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-underline-offset: 8px;
}

.email-link:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.contact-subtext {
  color: var(--text-light);
  font-size: 0.95rem;
}

.footer {
  background: var(--bg-darker);
  color: var(--text-white);
  padding: 4rem 0 2rem 0;
  border-top: 1px solid rgba(56, 189, 248, 0.1);
}

.footer h4 {
  color: var(--bg-white);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-links a {
  display: block;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.footer-links a:hover {
  color: var(--primary-light);
}

/* =========================================
     ANIMATIONS
     ========================================= */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, visibility;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================
     RESPONSIVE DESIGN
     ========================================= */
@media (max-width: 768px) {
  .glow-bg {
    display: none;
  }

  .container {
    padding: 0 1rem;
  }

  .hero {
    padding-top: 6rem;
    padding-bottom: 3rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 1rem;
  }

  .glass-card {
    padding: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .section {
    padding: 3.5rem 0;
    overflow: hidden;
  }

  .grid-3 {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .about-visual {
    display: none;
    /* Hide complex animation on mobile for better performance and space */
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 2rem 0;
    gap: 1.5rem;
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out;
    border-bottom: 1px solid var(--glass-border);
    visibility: hidden;
    opacity: 0;
  }

  .nav-links.active {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
  }

  .nav-link {
    color: var(--bg-white) !important;
    font-size: 1.2rem;
  }

  .glass-overlay {
    width: 100%;
    padding: 1.5rem;
    top: 50%;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .header-logo-img {
    height: 48px;
    /* Slightly smaller top logo on mobile */
  }

  .footer-logo-img {
    height: 64px;
    /* Slightly smaller bottom logo on mobile */
  }

  .footer {
    padding: 3rem 0 1.5rem 0;
    text-align: center;
  }

  .footer-links {
    margin-top: 2rem;
    margin-bottom: 2rem;
    width: 100%;
  }

  .footer-contact {
    width: 100%;
  }
}