@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Brand Colors from Zentrix Global */
  --th-bg-dark: #0e1116;
  --th-bg-secondary: #121721;
  --th-bg-tertiary: #1a202c;
  --th-primary: #4fe3d7;
  --th-secondary: #0e78c8;
  --th-text-light: #e6ebef;
  --th-text-muted: #bfc7cf;
  
  /* Gradients */
  --th-gradient-primary: linear-gradient(135deg, var(--th-primary), var(--th-secondary));
  --th-gradient-subtle: linear-gradient(180deg, rgba(79, 227, 215, 0.1) 0%, rgba(14, 120, 200, 0.05) 100%);
  --th-gradient-border: linear-gradient(90deg, rgba(79, 227, 215, 0.3), rgba(14, 120, 200, 0.3));

  /* Glassmorphism */
  --th-glass-bg: rgba(18, 23, 33, 0.6);
  --th-glass-border: rgba(255, 255, 255, 0.05);
  --th-glass-blur: blur(12px);

  /* Shadows */
  --th-shadow-glow: 0 0 20px rgba(79, 227, 215, 0.2);
  --th-shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);

  /* Spacing */
  --th-space-xs: 0.5rem;
  --th-space-sm: 1rem;
  --th-space-md: 2rem;
  --th-space-lg: 4rem;
  --th-space-xl: 8rem;

  /* Typography */
  --th-font-main: 'Poppins', sans-serif;
  --th-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

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

ul {
  list-style: none;
}

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

/* =========================================
   TYPOGRAPHY
========================================= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--th-space-md);
  color: #fff;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  letter-spacing: -1px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.text-gradient {
  background: var(--th-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

p {
  margin-bottom: var(--th-space-sm);
  color: var(--th-text-muted);
  font-size: 1.125rem;
  font-weight: 300;
}

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

.section {
  padding: var(--th-space-xl) 0;
  position: relative;
}

.grid {
  display: grid;
  gap: var(--th-space-md);
}

.grid-cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.text-center { text-align: center; }

/* =========================================
   COMPONENTS
========================================= */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--th-transition);
  border: none;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--th-gradient-primary);
  color: var(--th-bg-dark);
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--th-shadow-glow);
}

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

.btn-outline {
  background: transparent;
  color: var(--th-text-light);
  border: 1px solid rgba(79, 227, 215, 0.5);
}

.btn-outline:hover {
  background: rgba(79, 227, 215, 0.1);
  border-color: var(--th-primary);
  transform: translateY(-2px);
}

/* Glass Card */
.glass-card {
  background: var(--th-glass-bg);
  backdrop-filter: var(--th-glass-blur);
  -webkit-backdrop-filter: var(--th-glass-blur);
  border: 1px solid var(--th-glass-border);
  border-radius: 20px;
  padding: var(--th-space-md);
  transition: var(--th-transition);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(79, 227, 215, 0.3);
  box-shadow: 0 10px 40px rgba(79, 227, 215, 0.1);
}

/* Navbar */
.th-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  transition: var(--th-transition);
  background: transparent;
}

.th-navbar.scrolled {
  background: rgba(14, 17, 22, 0.85);
  backdrop-filter: blur(20px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo span {
  color: var(--th-primary);
}

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

.nav-links a {
  font-weight: 500;
  font-size: 1rem;
  color: var(--th-text-light);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--th-primary);
  transition: var(--th-transition);
}

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

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

/* Footer */
.th-footer {
  background: var(--th-bg-secondary);
  padding: var(--th-space-xl) 0 2rem;
  border-top: 1px solid var(--th-glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--th-space-md);
  margin-bottom: var(--th-space-lg);
}

.footer-col h4 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--th-text-muted);
  font-size: 1rem;
}

.footer-links a:hover {
  color: var(--th-primary);
  padding-left: 5px;
}

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

/* =========================================
   ANIMATION CLASSES (For JS Triggers)
========================================= */
.gsap-reveal {
  opacity: 0;
  transform: translateY(30px);
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 991px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--th-bg-secondary);
    flex-direction: column;
    padding: 6rem 2rem;
    transition: var(--th-transition);
    border-left: 1px solid var(--th-glass-border);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .mobile-menu-btn {
    display: block;
    z-index: 101;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  :root {
    --th-space-xl: 4rem;
    --th-space-lg: 2rem;
  }
}
