@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0f1418;
  color: #f0f2f5;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Glassmorphism Styles */
.glass {
  background-color: rgba(26, 35, 41, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(36, 43, 50, 0.5);
}

.glass-strong {
  background-color: rgba(26, 35, 41, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(36, 43, 50, 0.6);
}

/* Glow Utilities */
.glow-text {
  text-shadow: 0 0 30px rgba(32, 178, 166, 0.5);
}

.glow-border {
  box-shadow: 0 0 20px rgba(32, 178, 166, 0.2),
              inset 0 0 20px rgba(32, 178, 166, 0.05);
}

.timeline-glow {
  box-shadow: 0 0 40px rgba(32, 178, 166, 0.35),
              0 0 80px rgba(32, 178, 166, 0.25);
}

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

@keyframes slowDrift {
  0%, 100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(20px, -30px);
  }
  50% {
    transform: translate(-15px, -20px);
  }
  75% {
    transform: translate(30px, 10px);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes animatedBorder {
  0% {
    stroke-dashoffset: 400;
  }
  100% {
    stroke-dashoffset: -550;
  }
}

/* Animation Utilities */
.animate-fade-in {
  animation: fadeIn 0.8s ease-out both;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.animation-delay-100 { animation-delay: 100ms !important; }
.animation-delay-200 { animation-delay: 200ms !important; }
.animation-delay-300 { animation-delay: 300ms !important; }
.animation-delay-400 { animation-delay: 400ms !important; }
.animation-delay-500 { animation-delay: 500ms !important; }
.animation-delay-600 { animation-delay: 600ms !important; }
.animation-delay-800 { animation-delay: 800ms !important; }

/* Custom Buttons & Hover States */
.animated-border {
  position: relative;
  background-color: transparent;
  transition: all 1s ease;
  overflow: visible;
}

.animated-border:hover {
  background-color: rgba(38, 196, 184, 0.15);
  backdrop-filter: blur(16px);
  box-shadow: 0 0 20px rgba(38, 196, 184, 0.2);
}

.group:hover .animated-border-path {
  animation: animatedBorder 1.5s linear infinite;
}

/* Hide scrollbar but keep functionality */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* SVG icons alignment fix */
svg {
  display: inline-block;
  vertical-align: middle;
}

/* =============================================
   PRE-LOADER
   ============================================= */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: #0f1418;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  overflow: hidden;
}

#preloader .preloader-line {
  width: 1px;
  height: 0;
  background: linear-gradient(to bottom, transparent, #20b2a6, transparent);
  opacity: 0;
}

#preloader .preloader-greeting {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(240, 242, 245, 0.5);
  opacity: 0;
  transform: translateY(10px);
}

#preloader .preloader-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  font-style: italic;
  color: #f0f2f5;
  opacity: 0;
  transform: translateY(24px);
  letter-spacing: -0.02em;
}

#preloader .preloader-name span {
  color: #20b2a6;
  text-shadow: 0 0 40px rgba(32, 178, 166, 0.6);
}

#preloader .preloader-tagline {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #20b2a6;
  opacity: 0;
  transform: translateY(10px);
}

#preloader .preloader-bar-container {
  width: clamp(120px, 30vw, 200px);
  height: 1px;
  background: rgba(36, 43, 50, 0.8);
  border-radius: 999px;
  overflow: hidden;
  opacity: 0;
}

#preloader .preloader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, transparent, #20b2a6, rgba(32, 178, 166, 0.4));
  border-radius: 999px;
}

/* =============================================
   GSAP SCROLL ANIMATION — Initial States
   (Overridden at runtime by GSAP)
   ============================================= */
.gsap-reveal {
  will-change: transform, opacity;
}

.gsap-hero-child {
  will-change: transform, opacity;
}

/* ── Hero elements: initial state is managed exclusively by GSAP at runtime.
   Do NOT add opacity:0 here — the preloader covers the page during load,
   so there is no flash-of-content issue. If GSAP fails, content stays visible. ── */

/* ── Preloader h1 resets (browser default h1 margin/padding) ── */
#preloader .preloader-name {
  margin: 0;
  padding: 0;
  line-height: 1.1;
}

/* ── About Section ── */
.about-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.about-section-label {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #20b2a6;
  margin: 0;
}

.about-section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #f0f2f5;
  margin: 0;
  line-height: 1.15;
}

.about-section-title span {
  color: #20b2a6;
}

.about-card {
  width: 100%;
}

/* Card Hover Micro-Interactions */
.glass, .cert-slide {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.glass:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -10px rgba(32, 178, 166, 0.25);
}

