/* 
  Antonio Jeffrey — Modern Cinematic Portfolio Styling System
  Designed with Apple, Stripe, Linear, Vercel & Framer Aesthetics
*/

:root {
  /* Color Palette */
  --bg: #080808;
  --surface-1: #111111;
  --surface-2: #1A1A1A;
  --accent-pink: #FF4FCB;
  --accent-blue: #4DA8FF;
  --glow-pink: rgba(255, 79, 203, 0.35);
  --glow-blue: rgba(77, 168, 255, 0.35);
  --text-primary: #FFFFFF;
  --text-secondary: #BDBDBD;
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 255, 255, 0.25);
  
  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', sans-serif;
  
  /* Sizes & Spaces */
  --cursor-size: 20px;
  --header-height: 80px;
  --container-max-width: 1200px;
  
  /* Transitions */
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease-out;
}

/* --- Core Resets --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Disable body scroll lock for Lenis smooth-scroll compatibility */
html.lenis {
  height: auto;
}

.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis-smooth [data-lenis-prevent] {
  overflow: clip;
}

/* --- Premium Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-pink);
}

/* --- Typography System --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
}

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

.gradient-text {
  background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Global Layout Containers --- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2.5rem;
}

section {
  position: relative;
  padding: 10rem 0;
  overflow: hidden;
}

.section-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--accent-pink);
  margin-bottom: 1.5rem;
  display: inline-block;
  text-shadow: 0 0 10px rgba(255, 79, 203, 0.2);
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 4rem;
  letter-spacing: -0.03em;
}

/* --- Loading Screen --- */
.loader {
  position: fixed;
  inset: 0;
  background-color: var(--bg);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: all;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

.loader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  width: 85%;
  max-width: 450px;
  text-align: center;
}

.loader-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 0.3em;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.loader-progress {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.loader-bar-bg {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  margin: 1.5rem 0;
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-blue));
  box-shadow: 0 0 12px var(--accent-pink);
  transition: width 0.05s linear;
}

.loader-status {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
}

/* --- Global Animated Background Layers --- */
.bg-wrapper {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  background-color: var(--bg);
}

.bg-grid-overlay {
  position: absolute;
  inset: 0;
  background-size: 60px 60px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.18;
  will-change: transform;
}

.bg-glow-pink {
  top: -10%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: var(--accent-pink);
}

.bg-glow-blue {
  bottom: 10%;
  right: 15%;
  width: 600px;
  height: 600px;
  background: var(--accent-blue);
}

/* --- Custom Cursor --- */
.custom-cursor {
  width: var(--cursor-size);
  height: var(--cursor-size);
  border: 1.5px solid var(--text-primary);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  will-change: transform, width, height, background-color;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-cursor.cursor-hover {
  width: calc(var(--cursor-size) * 2.5);
  height: calc(var(--cursor-size) * 2.5);
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
}

.custom-cursor-glow {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 79, 203, 0.1) 0%, rgba(77, 168, 255, 0.04) 50%, transparent 80%);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: screen;
  will-change: transform;
}

@media (max-width: 991px) {
  .custom-cursor, .custom-cursor-glow {
    display: none !important;
  }
}

/* --- Header & Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  padding: 0 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  background: rgba(8, 8, 8, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition-smooth);
}

.brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  color: var(--text-primary);
  position: relative;
}

.nav {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-pink);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
}

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

.nav-cta-btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 100px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-fast);
}

.nav-cta-btn:hover {
  border-color: var(--accent-pink);
  box-shadow: 0 0 15px rgba(255, 79, 203, 0.2);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition-fast);
}

@media (max-width: 991px) {
  .header {
    padding: 0 2rem;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--surface-1);
    border-left: 1px solid var(--border);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: var(--transition-smooth);
    padding: 2rem;
  }
  
  .nav.active {
    right: 0;
  }
  
  .nav-cta-btn {
    display: none;
  }
}

/* --- Hero Section --- */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0;
}

.hero-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  position: relative;
}

.hero-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 900;
  line-height: 0.95;
  margin-bottom: 3rem;
  letter-spacing: -0.04em;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 2rem;
}

.role-wrapper {
  display: inline-block;
  position: relative;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--accent-pink);
  padding-bottom: 2px;
}

.hero-indicator {
  position: absolute;
  bottom: 3.5rem;
  left: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.indicator-line {
  width: 40px;
  height: 1px;
  background-color: var(--accent-pink);
  position: relative;
  display: inline-block;
}

.indicator-text {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--text-secondary);
}

/* --- Glassmorphism Card Spec --- */
.glass-card {
  background: rgba(17, 17, 17, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.5s, transform 0.5s, box-shadow 0.5s;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* --- About Section --- */
.about-section {
  background-color: rgba(8, 8, 8, 0.5);
}

.about-narrative {
  margin-bottom: 6rem;
  max-width: 950px;
}

.reveal-words {
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.15); /* Inactive state for GSAP */
}

/* Styling words that get high-contrast reveal */
.reveal-words span {
  display: inline-block;
  will-change: color;
  transition: color 0.1s linear;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.about-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.about-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 991px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* --- Skills Section --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.skill-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}

/* Glow effects setup */
.skill-card[data-glow-color="pink"] {
  --glow-accent: var(--glow-pink);
  --glow-accent-solid: var(--accent-pink);
}

.skill-card[data-glow-color="blue"] {
  --glow-accent: var(--glow-blue);
  --glow-accent-solid: var(--accent-blue);
}

.skill-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: radial-gradient(350px circle at var(--mx, 0) var(--my, 0), var(--glow-accent), transparent 80%);
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  border: 1px solid var(--glow-accent-solid);
}

.skill-card:hover::after {
  opacity: 1;
}

.skill-icon {
  margin-bottom: 2rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.skill-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 2;
  width: 100%;
}

.skill-list li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.skill-list li::before {
  content: '→';
  color: var(--accent-pink);
  margin-right: 0.75rem;
  font-weight: bold;
}

@media (max-width: 991px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* --- Featured Projects Section (Horizontal Pin) --- */
.projects-section {
  padding: 0;
}

.projects-sticky-pin {
  position: relative;
  height: 100vh;
  width: 100%;
}

.projects-horizontal-scroll {
  display: flex;
  height: 100%;
  width: 400vw; /* 4 screens: Intro + 3 items */
  will-change: transform;
}

.project-slide {
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6%;
  position: relative;
  background-color: var(--bg);
}

.project-intro {
  background-color: var(--surface-1);
  border-right: 1px solid var(--border);
}

.project-intro-content {
  max-width: 650px;
}

.project-intro-title {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 2rem;
}

.project-intro-content p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 3rem;
}

.swipe-hint {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-pink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hint-arrow {
  animation: bounce-right 1.5s infinite;
}

@keyframes bounce-right {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

.project-container {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 4rem;
  width: 100%;
  max-width: var(--container-max-width);
  align-items: center;
}

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

.project-index {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--accent-blue);
  margin-bottom: 1.5rem;
}

.project-info h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.project-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.meta-tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 100px;
}

.project-visual-frame {
  aspect-ratio: 16 / 10;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-1);
  position: relative;
}

.project-visual-reveal {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  /* GSAP mask/scale animations targeting */
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1); /* default scaled for zoom reveals */
  will-change: transform;
}

@media (max-width: 991px) {
  .projects-sticky-pin {
    height: auto;
  }
  .projects-horizontal-scroll {
    flex-direction: column;
    width: 100%;
    height: auto;
  }
  .project-slide {
    width: 100%;
    height: auto;
    padding: 6rem 2rem;
    border-bottom: 1px solid var(--border);
  }
  .project-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .project-visual-frame {
    order: -1;
  }
}

/* --- Creative Works Grid --- */
.creative-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.creative-card {
  padding: 0;
  border-radius: 16px;
}

.creative-img-wrapper {
  width: 100%;
  height: 250px;
  position: relative;
  overflow: hidden;
  background-color: var(--surface-1);
}

.creative-info {
  padding: 2.5rem;
}

.creative-cat {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--accent-pink);
  display: block;
  margin-bottom: 1rem;
}

.creative-info h4 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.creative-info p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* SVG Abstract Graphics styles inside card wrappers */
.abstract-graphic-1, .abstract-graphic-2, .abstract-graphic-3, .abstract-graphic-4 {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* SVG Art 1: Grid Rotator */
.abstract-graphic-1 {
  background: linear-gradient(45deg, rgba(255, 79, 203, 0.08), rgba(77, 168, 255, 0.03));
}
.abstract-graphic-1::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 15px),
              repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 15px);
  transform: rotate(15deg);
  animation: slow-pan 40s linear infinite;
}

/* SVG Art 2: Glowing Circles */
.abstract-graphic-2 {
  background: linear-gradient(135deg, rgba(77, 168, 255, 0.08), rgba(255, 79, 203, 0.03));
}
.abstract-graphic-2::before, .abstract-graphic-2::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ripple 8s ease-in-out infinite;
}
.abstract-graphic-2::before {
  width: 150px;
  height: 150px;
}
.abstract-graphic-2::after {
  width: 250px;
  height: 250px;
  animation-delay: 2s;
}

/* SVG Art 3: Diagonal Lines */
.abstract-graphic-3 {
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.02) 0%, transparent 80%);
}
.abstract-graphic-3::before {
  content: '';
  position: absolute;
  inset: -100px;
  background-image: 
    repeating-linear-gradient(45deg, var(--border) 0px, var(--border) 1px, transparent 1px, transparent 25px);
  animation: slow-pan-up 25s linear infinite;
}

/* SVG Art 4: Pulse Nodes */
.abstract-graphic-4 {
  background: linear-gradient(to top, rgba(17, 17, 17, 0.9), rgba(8, 8, 8, 0.2));
}
.abstract-graphic-4::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--glow-pink) 0%, transparent 70%);
  top: 30%;
  left: 30%;
  animation: pulse-glow 6s infinite alternate ease-in-out;
}

@keyframes slow-pan {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes slow-pan-up {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50px); }
}

@keyframes ripple {
  0%, 100% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.8; border-color: rgba(77, 168, 255, 0.2); }
}

@keyframes pulse-glow {
  0% { opacity: 0.2; transform: scale(0.9); }
  100% { opacity: 0.5; transform: scale(1.1); }
}

@media (max-width: 768px) {
  .creative-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* --- Experience Timeline --- */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-line-container {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  pointer-events: none;
}

.timeline-svg {
  width: 100%;
  height: 100%;
}

.timeline-path-active {
  stroke-dasharray: 800;
  stroke-dashoffset: 800; /* GSAP updates this */
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 2rem 3rem;
  display: flex;
  flex-direction: column;
}

.timeline-item.left-item {
  left: 0;
  align-items: flex-end;
  text-align: right;
}

.timeline-item.right-item {
  left: 50%;
  align-items: flex-start;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 4.5rem;
  width: 16px;
  height: 16px;
  background-color: var(--bg);
  border: 2.5px solid var(--accent-pink);
  border-radius: 50%;
  z-index: 5;
  box-shadow: 0 0 10px var(--accent-pink);
}

.left-item .timeline-dot {
  right: -8px;
}

.right-item .timeline-dot {
  left: -8px;
}

.timeline-card {
  width: 100%;
  max-width: 400px;
}

.timeline-date {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-pink);
  margin-bottom: 0.75rem;
}

.timeline-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.timeline-card p {
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .timeline-line-container {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding: 2rem 0 2rem 3.5rem;
    align-items: flex-start !important;
    text-align: left !important;
  }
  .timeline-dot {
    left: 12px !important;
  }
}

/* --- Services Section --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 3rem;
}

.service-icon {
  color: var(--accent-blue);
  margin-bottom: 2rem;
  background: rgba(77, 168, 255, 0.05);
  padding: 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(77, 168, 255, 0.15);
}

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

.service-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* --- Contact Section --- */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: flex-start;
}

.contact-header {
  position: sticky;
  top: 120px;
}

.contact-title {
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.contact-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 4rem;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
}

.info-value {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-primary);
}

.hover-underline:hover {
  color: var(--accent-pink);
  text-decoration: underline;
}

.contact-form-card {
  padding: 4rem;
}

.form-group {
  position: relative;
  margin-bottom: 3.5rem;
  width: 100%;
}

.form-input {
  width: 100%;
  padding: 0.8rem 0;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--text-primary);
  z-index: 1;
}

.form-label {
  position: absolute;
  top: 0.8rem;
  left: 0;
  font-size: 1rem;
  color: var(--text-secondary);
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: left top;
}

.form-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--border);
  transition: var(--transition-fast);
}

/* Floating labels effect */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  transform: translateY(-24px) scale(0.8);
  color: var(--accent-pink);
}

.form-input:focus ~ .form-line {
  background-color: var(--accent-pink);
  box-shadow: 0 1px 5px rgba(255, 79, 203, 0.3);
}

.error-msg {
  position: absolute;
  bottom: -22px;
  left: 0;
  font-size: 0.75rem;
  color: #ff4d4d;
  opacity: 0;
  transform: translateY(-5px);
  transition: var(--transition-fast);
}

.form-group.has-error .error-msg {
  opacity: 1;
  transform: translateY(0);
}

.form-group.has-error .form-line {
  background-color: #ff4d4d;
}

/* Textarea tweaks */
textarea.form-input {
  resize: none;
}

/* Magnetic submit button */
.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 2.5rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
  width: 100%;
}

.btn-text {
  position: relative;
  z-index: 2;
}

.btn-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-blue));
  opacity: 0;
  z-index: 1;
  transition: opacity 0.4s ease;
}

.submit-btn:hover {
  border-color: transparent;
  box-shadow: 0 0 30px rgba(255, 79, 203, 0.3);
}

.submit-btn:hover .btn-glow {
  opacity: 1;
}

.form-feedback {
  margin-top: 2rem;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-align: center;
}

.form-feedback.success {
  color: #4dff88;
  text-shadow: 0 0 10px rgba(77, 255, 136, 0.2);
}

.form-feedback.error {
  color: #ff4d4d;
}

@media (max-width: 991px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .contact-header {
    position: static;
  }
  .contact-form-card {
    padding: 3rem 2rem;
  }
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  background-color: var(--bg);
  padding: 6rem 0 3rem 0;
}

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

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  margin-bottom: 1.5rem;
}

.footer-tagline {
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.system-time {
  font-family: monospace;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--accent-blue);
  background: rgba(77, 168, 255, 0.03);
  border: 1px solid rgba(77, 168, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  display: inline-block;
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links-group h5 {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.footer-links-group a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-links-group a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  padding-top: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
