/* =========================================
   VARIABLES & DESIGN TOKENS
   ========================================= */
:root {
  /* Colors - vgil.fr Dark Theme equivalent */
  --bg-main: #121212;
  /* Off-dark for sections */
  --bg-alt: #070707;
  /* Absolute dark */
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --bg-glass: rgba(0, 0, 0, 0.6);
  --border-color: var(--white-alpha-10);

  --text-primary: #ffffff;
  --text-muted: #9ca3af;
  /* Gray 400 */
  --text-dark: #191919;

  --accent-cyan: #ffffff;
  /* Monochrome primary */
  --accent-blue: #ffffff;
  /* Monochrome primary */
  --accent-glow: var(--white-alpha-10);
  --white-alpha-01: rgba(255, 255, 255, 0.01);
  --white-alpha-03: rgba(255, 255, 255, 0.03);
  --white-alpha-05: rgba(255, 255, 255, 0.05);
  --white-alpha-08: rgba(255, 255, 255, 0.08);
  --white-alpha-10: rgba(255, 255, 255, 0.1);
  --white-alpha-15: rgba(255, 255, 255, 0.15);
  --white-alpha-30: rgba(255, 255, 255, 0.3);
  --white-alpha-60: rgba(255, 255, 255, 0.6);

  /* Typography */
  --font-main: 'Inter', sans-serif;
  --font-display: 'Inter', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacing */
  --nav-height: 80px;
  --section-padding: 120px;
}

/* Light Theme Variables */
body.light-theme {
  --bg-main: #f9fafb;
  --bg-alt: #ffffff;
  --bg-card: #f3f4f6;
  --bg-card-hover: #e5e7eb;
  --bg-glass: rgba(255, 255, 255, 0.8);
  --border-color: rgba(0, 0, 0, 0.1);

  --text-primary: #111827;
  --text-muted: #4b5563;
  --text-dark: #f9fafb;

  --accent-cyan: #111827;
  --accent-blue: #111827;
  --accent-glow: rgba(0, 0, 0, 0.1);
  --white-alpha-01: rgba(0, 0, 0, 0.01);
  --white-alpha-03: rgba(0, 0, 0, 0.03);
  --white-alpha-05: rgba(0, 0, 0, 0.05);
  --white-alpha-08: rgba(0, 0, 0, 0.08);
  --white-alpha-10: rgba(0, 0, 0, 0.1);
  --white-alpha-15: rgba(0, 0, 0, 0.15);
  --white-alpha-30: rgba(0, 0, 0, 0.3);
  --white-alpha-60: rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

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

::selection {
  background: var(--accent-cyan);
  color: #fff;
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: var(--section-padding) 0;
}

/* Removed Background Effects and Custom Cursor */

/* =========================================
   TYPOGRAPHY & UTILITIES
   ========================================= */
h1,
h2,
h3,
h4,
.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
}

.text-gradient {
  color: var(--text-primary);
}

.section-header {
  margin-bottom: 60px;
  display: flex;
  align-items: flex-end;
  gap: 32px;
}

.section-subtitle {
  display: none;
}

.section-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.section-header::after {
  content: '';
  flex-grow: 1;
  height: 3px;
  background: var(--white-alpha-30);
  margin-bottom: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #fff;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.05);
  transform: translateY(-2px);
}

/* =========================================
   NAVIGATION
   ========================================= */
@keyframes navbarFadeDown {
  0% {
    opacity: 0;
    transform: translate(-50%, -20px);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.navbar {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  min-width: 300px;
  height: 60px;
  border-radius: 100px;
  opacity: 0;
  animation: navbarFadeDown 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 2.8s;
  background: var(--white-alpha-01);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--white-alpha-05);
  padding: 0 32px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: var(--transition-normal);
}

.navbar.scrolled {
  background: var(--bg-glass);
  border-color: var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-brand {
  flex-shrink: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  height: 40px;
  width: auto;
}

body.dark-theme .logo-light {
  display: none;
}

body.dark-theme .logo-dark {
  display: block;
}

body.light-theme .logo-light {
  display: block;
}

body.light-theme .logo-dark {
  display: none;
}

.brand-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
  overflow: hidden;
  padding: 8px 16px;
  border-radius: 100px;
  transition: all 0.3s ease;
  display: block;
}

.nav-link.active {
  background: var(--white-alpha-10);
  color: var(--text-primary);
}

.nav-link-inner {
  position: relative;
  display: block;
  overflow: hidden;
}

.nav-link-front,
.nav-link-back {
  display: block;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

.nav-link-back {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  transform: skewY(5deg);
  transform-origin: top left;
}

.nav-link:hover .nav-link-front {
  transform: translateY(-120%) skewY(5deg);
  color: var(--text-primary);
}

.nav-link:hover .nav-link-back {
  transform: translateY(-100%) skewY(0);
  color: var(--text-primary);
}

.btn-nav {
  padding: 8px 16px;
  background: transparent;
  color: var(--text-primary);
  border: none;
}

.btn-nav:hover {
  background: transparent;
  color: var(--text-primary);
}

.btn-nav:hover .nav-link-front,
.btn-nav:hover .nav-link-back {
  color: var(--text-primary);
}

/* View Transition Theme Toggle Animation */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-old(root) {
  z-index: 1;
}

::view-transition-new(root) {
  z-index: 2;
}

/* Theme Toggle Animations */
#theme-toggle {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

#theme-toggle:hover {
  color: var(--accent-cyan);
  transform: scale(1.1);
}

#theme-toggle:hover .theme-icon-light {
  animation: spin-slow 4s linear infinite;
}

#theme-toggle:hover .theme-icon-dark {
  animation: moon-rock 1.5s ease-in-out infinite;
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes moon-rock {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-15deg);
  }

  75% {
    transform: rotate(15deg);
  }
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-main);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.mobile-link {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-muted);
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition-normal);
}

.mobile-menu.open .mobile-link {
  transform: translateY(0);
  opacity: 1;
}

.mobile-link.highlight {
  color: var(--accent-cyan);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-height);
  overflow: hidden;
}

/* Removed hero-bg-text */

/* Animated Dot Grid Background */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--white-alpha-15) 1.5px, transparent 1.5px);
  background-size: 40px 40px;
  background-position: 0 0;
  mask-image: radial-gradient(circle at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 70%);
  opacity: 0.8;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    background-position-y: 0px;
  }

  100% {
    background-position-y: 40px;
  }
}

@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content-anim {
  animation: heroFadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 2.7s;
  opacity: 0;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 10;
}

/* Status Dot Pulse */
@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(74, 222, 128, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
  }
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}

.hero-title {
  font-size: clamp(4rem, 12vw, 12rem);
  letter-spacing: -0.05em;

  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  color: var(--text-muted);
  margin-bottom: 24px;
  font-weight: 400;
  min-height: 48px;
}

.cursor-blink {
  animation: blink 1s step-end infinite;
  color: var(--accent-cyan);
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-social-links {
  position: absolute;
  bottom: 48px;
  left: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 20;
}

.hero-social-links a {
  color: var(--white-alpha-60);
  transition: color 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-social-links a svg {
  width: 24px;
  height: 24px;
}

.hero-social-links a:hover {
  color: var(--text-primary);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .hero-social-links {
    left: 24px;
    bottom: 32px;
    gap: 20px;
  }

  .hero-social-links a svg {
    width: 20px;
    height: 20px;
  }
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.image-container {
  position: relative;
  width: 100%;
  max-width: 450px;
  aspect-ratio: 1;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.1);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: blob 8s ease-in-out infinite;
}

@keyframes blob {

  0%,
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }

  50% {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  }
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.image-container:hover .hero-image {
  transform: scale(1.05);
}

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: 30px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.floating-badge i {
  color: var(--accent-cyan);
  width: 18px;
  height: 18px;
}

.badge-1 {
  top: 10%;
  left: -20px;
  animation: float 4s ease-in-out infinite;
}

.badge-2 {
  bottom: 15%;
  right: -20px;
  animation: float 5s ease-in-out infinite reverse;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.7;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--text-muted);
  border-radius: 20px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, 15px);
    opacity: 0;
  }
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.lead-text {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-weight: 500;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.stat-number {
  font-size: 2.5rem;
  color: var(--accent-cyan);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.about-timeline {
  position: relative;
  padding-left: 30px;
  border-left: 2px solid var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -31px;
  transform: translateX(-50%);
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-primary);
  border: 2px solid var(--bg-main);
  box-shadow: 0 0 0 4px var(--border-color);
}

.timeline-dot.empty {
  background: var(--bg-main);
  border: 2px solid var(--border-color); /* The actual ring color */
  box-shadow: 0 0 0 4px var(--bg-main); /* Cut out the timeline line */
}

.timeline-content h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.timeline-date {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* =========================================
   SKILLS SECTION
   ========================================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 40px 30px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: var(--transition-normal);
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.skill-icon {
  width: 60px;
  height: 60px;
  background: rgba(6, 182, 212, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent-cyan);
}

.skill-icon i {
  width: 30px;
  height: 30px;
}

.skill-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.skill-card p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tags span {
  font-size: 0.8rem;
  padding: 6px 12px;
  background: var(--white-alpha-05);
  border-radius: 4px;
  color: var(--text-primary);
}

/* Infinite Slider for Projects */
.projects-slider-container {
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
  mask: linear-gradient(90deg,
      transparent 0%,
      black 10%,
      black 90%,
      transparent 100%);
  -webkit-mask: linear-gradient(90deg,
      transparent 0%,
      black 10%,
      black 90%,
      transparent 100%);
}

.projects-slider-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scroll-left 40s linear infinite;
}

.projects-slider-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 15px));
  }
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, filter 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  z-index: 10;
  position: relative;
}

.project-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.project-type {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 500;
}

.project-type i {
  width: 16px;
  height: 16px;
}

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

.project-links a:hover {
  color: var(--accent-cyan);
}

.project-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.project-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-primary);
  opacity: 0.8;
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 60px;
  backdrop-filter: blur(10px);
}

.contact-description {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-box {
  width: 50px;
  height: 50px;
  background: rgba(6, 182, 212, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.contact-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-item a,
.contact-item span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-item a:hover {
  color: var(--accent-cyan);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid var(--border-color);
  padding: 14px 16px;
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-main);
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

.btn-block {
  width: 100%;
}

.form-status {
  margin-top: 10px;
  font-size: 0.9rem;
  text-align: center;
}

.form-status.success {
  color: #10b981;
}

.form-status.error {
  color: #ef4444;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 60px 0 24px;
  background: rgba(2, 6, 23, 0.8);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.footer-social a:hover {
  background: var(--accent-cyan);
  color: #fff;
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--white-alpha-05);
  padding-top: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.heart-icon {
  width: 14px;
  height: 14px;
  color: #ef4444;
  fill: #ef4444;
  vertical-align: middle;
}

.back-to-top {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.back-to-top:hover {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

/* =========================================
   ANIMATIONS & REVEAL EFFECTS
   ========================================= */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translate(0);
}

/* =========================================
   LAYOUT GRIDS
   ========================================= */
.about-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: flex-start;
}

.projects-slider-container {
  width: 100%;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
}

/* =========================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================= */
@media (max-width: 992px) {

  .hero-container,
  .about-grid,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .projects-slider-track {
    gap: 20px;
  }

  .hero-content {
    order: 2;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .social-links-hero {
    justify-content: center;
  }

  .hero-image-wrapper {
    order: 1;
  }

  .contact-wrapper {
    padding: 40px 24px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .section-title {
    font-size: 2rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* =========================================
   PRELOADER
   ========================================= */
.preloader {
  width: 100%;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-color: #020617;
  color: white;
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.8s cubic-bezier(0.86, 0, 0.07, 1);
}

.preloader.hide {
  transform: translateY(-100%);
}

.preloader-text {
  font-family: 'Caveat', cursive;
  font-size: 5rem;
  opacity: 0;
  animation: preloaderFadeInOut 2.5s ease-in-out forwards;
}

@keyframes preloaderFadeInOut {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }

  20% {
    opacity: 1;
    transform: scale(1);
  }

  80% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.05);
  }
}

/* =========================================
   VGIL LAYOUT STYLES
   ========================================= */

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--white-alpha-03);
  border: 1px solid var(--white-alpha-10);
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: var(--transition-normal);
}

.pill-link:hover {
  background: var(--white-alpha-10);
  transform: translateY(-2px);
}

/* Timeline */
.about-timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline-item {
  display: flex;
  gap: 24px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 24px;
  bottom: -24px;
  left: 5px;
  width: 1px;
  background: var(--white-alpha-10);
}

.timeline-item:last-child::before {
  bottom: 0;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline-content {
  flex-grow: 1;
}

/* Project Cards */
.vgil-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: 24px;
  padding: 16px;
  border: 1px solid var(--white-alpha-05);
  transition: transform 0.3s ease, filter 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  color: inherit;
  width: 350px;
  flex-shrink: 0;
}

.vgil-card:hover {
  background: var(--bg-card-hover);
  transform: scale(1.05);
  filter: brightness(1.1);
  border-color: var(--white-alpha-10);
  z-index: 10;
  position: relative;
}

.vgil-card-image {
  height: 250px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  margin-bottom: 24px;
}

.vgil-card-placeholder {
  width: 100%;
  height: 100%;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.vgil-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-normal);
}

.vgil-card-overlay span {
  display: flex;
  align-items: center;
  background: white;
  color: black;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.vgil-card:hover .vgil-card-placeholder {
  transform: scale(1.05);
}

.vgil-card:hover .vgil-card-overlay {
  opacity: 1;
}

.vgil-card:hover .vgil-card-overlay span {
  transform: translateY(0);
}

.vgil-card-content {
  padding: 0 8px;
}

.vgil-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.vgil-card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.vgil-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vgil-card-date {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.vgil-card-tech {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.vgil-card-tech::-webkit-scrollbar {
  display: none;
}

.tech-pill {
  padding: 4px 12px;
  background: var(--white-alpha-05);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Contact Form Input */
.vgil-input {
  width: 100%;
  background: var(--white-alpha-03);
  border: 1px solid var(--white-alpha-10);
  border-radius: 12px;
  padding: 16px 20px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: var(--transition-normal);
}

.vgil-input:focus {
  outline: none;
  border-color: var(--white-alpha-30);
  background: var(--white-alpha-05);
}

/* Scroll Arrow Animation */
@keyframes bounce-slow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }
}

.scroll-arrow {
  animation: bounce-slow 2s infinite ease-in-out;
}

/* Hover Utils */
.hover-white {
  transition: color 0.3s ease;
}

.hover-white:hover {
  color: var(--text-primary) !important;
}

.hover-opacity-1 {
  transition: opacity 0.3s ease;
}

.hover-opacity-1:hover {
  opacity: 1 !important;
}

/* Footer Layout */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-links-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links-col {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .footer-links-col {
    gap: 10px;
  }
}

/* =========================================
   PRELOADER (Apple 'hello' style)
   ========================================= */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #000;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out, transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.preloader.hide {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
  /* Zoom in effect */
}

.hello-svg {
  width: 300px;
  height: auto;
  overflow: visible;
  color: #ffffff;
}

.hello-path-1 {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawHello 0.8s ease-in-out forwards;
}

.hello-path-2 {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawHello 2s ease-in-out 0.7s forwards;
}

@keyframes drawHello {
  0% {
    stroke-dashoffset: 1;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

body.light-theme .preloader {
  background-color: #f9fafb;
}

body.light-theme .hello-svg {
  color: #111827;
}

/* =========================================
   FACE REVEAL ANIMATION (DIAGONAL SPLIT)
   ========================================= */
.face-reveal-container {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  border-radius: 24px;
  overflow: hidden;
  transform: translateZ(0);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.face-reveal-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.86, 0, 0.07, 1);
  transform: scale(1.1);
}

.face-reveal-container:hover .face-reveal-img,
.face-reveal-container:active .face-reveal-img {
  transform: scale(1);
}

/* The top-right curtain */
.face-reveal-container::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: #070707; /* Match section background to hide seam perfectly */
  transition: transform 0.8s cubic-bezier(0.86, 0, 0.07, 1);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 2%); /* Slight overlap */
  z-index: 1;
}

/* The bottom-left curtain */
.face-reveal-container::after {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: #070707;
  transition: transform 0.8s cubic-bezier(0.86, 0, 0.07, 1);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  z-index: 1;
}

/* Open curtains on hover */
.face-reveal-container:hover::before,
.face-reveal-container:active::before {
  transform: translate(100%, -100%);
}

.face-reveal-container:hover::after,
.face-reveal-container:active::after {
  transform: translate(-100%, 100%);
}

.face-reveal-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: opacity 0.4s ease;
  transition-delay: 0s;
  pointer-events: none;
  z-index: 2; /* above curtains */
}

.face-reveal-container:hover .face-reveal-overlay,
.face-reveal-container:active .face-reveal-overlay {
  opacity: 0;
  transition-duration: 0.3s;
}

.touch-icon {
  width: 48px !important;
  height: 48px !important;
  margin-bottom: 16px;
  animation: pulse-icon 2s infinite;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
  color: rgba(255, 255, 255, 0.9);
}

.reveal-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 20px;
  border-radius: 30px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes pulse-icon {
  0% {
    transform: scale(1) translateY(0);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.1) translateY(-5px);
    opacity: 1;
  }

  100% {
    transform: scale(1) translateY(0);
    opacity: 0.8;
  }
}

.mobile-hidden {
  display: block;
}

.desktop-hidden {
  display: none;
}

@media (max-width: 768px) {
  .mobile-hidden {
    display: none !important;
  }

  .desktop-hidden {
    display: block !important;
  }
}

/* =========================================
   EXPANDING CARDS
   ========================================= */
.expanding-cards-container {
  display: grid;
  width: 100%;
  max-width: 1152px;
  margin: 40px auto 0;
  gap: 12px;
  height: 600px;
  list-style: none;
  padding: 0;
  transition: grid-template-columns 0.5s ease-out, grid-template-rows 0.5s ease-out;
}

@media (max-width: 767px) {
  .expanding-cards-container {
    height: 700px;
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .expanding-cards-container {
    height: 500px;
    grid-template-rows: 1fr;
  }
}

.expanding-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(0, 243, 255, 0.2);
  background-color: var(--bg-alt);
  min-height: 0;
  min-width: 0;
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.05);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.expanding-card:hover, .expanding-card.active {
  border-color: rgba(0, 243, 255, 0.6);
  box-shadow: 0 0 25px rgba(0, 243, 255, 0.3), 0 0 50px rgba(0, 243, 255, 0.15);
  z-index: 2;
}

@media (min-width: 768px) {
  .expanding-card {
    min-width: 80px;
  }
}

.expanding-card .card-bg-img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: all 0.3s ease-out;
  transform: scale(1.1);
}

.expanding-card.active .card-bg-img {
  transform: scale(1);
}

.expanding-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.expanding-card.active .card-overlay {
  opacity: 0.95;
}

.expanding-card .card-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 20px;
}

.expanding-card .card-title-vertical {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
  opacity: 1;
  transition: all 0.3s ease-out;
  white-space: nowrap;
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
}

@media (min-width: 768px) {
  .expanding-card .card-title-vertical {
    top: auto;
    bottom: 20px;
    left: 48px;
    transform-origin: left bottom;
    transform: rotate(-90deg);
  }
}

.expanding-card.active .card-title-vertical {
  opacity: 0;
}

.expanding-card .card-icon {
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transition: all 0.3s ease-out 0.075s;
}

.expanding-card.active .card-icon {
  opacity: 1;
}

.expanding-card .card-title-expanded {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  opacity: 0;
  transition: all 0.3s ease-out 0.15s;
  margin: 0;
  line-height: 1.2;
}

.expanding-card.active .card-title-expanded {
  opacity: 1;
}

.expanding-card .card-desc {
  width: 100%;
  max-width: 320px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  opacity: 0;
  transition: all 0.3s ease-out 0.225s;
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.expanding-card.active .card-desc {
  opacity: 1;
}

.expanding-card .card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  opacity: 0;
  transition: all 0.3s ease-out 0.3s;
  margin-top: 8px;
}

.expanding-card.active .card-tech {
  opacity: 1;
}

.expanding-card .card-tech .tech-pill {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  color: white;
  backdrop-filter: blur(4px);
}

.expanding-card .card-link {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  opacity: 0;
  transition: all 0.3s ease-out 0.3s;
  background: rgba(0, 243, 255, 0.4);
  border: 1px solid rgba(0, 243, 255, 0.6);
  padding: 8px;
  border-radius: 50%;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.expanding-card .card-link:hover {
  background: rgba(0, 243, 255, 0.8);
  border-color: rgba(0, 243, 255, 1);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.6);
}

.expanding-card.active .card-link {
  opacity: 1;
}

/* =========================================
   NEW FEATURES STYLES
   ========================================= */

/* Hero Particles */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Below content */
  pointer-events: none;
}


/* Custom Cursor */
body {
  /* Hiding default cursor is optional, we'll keep it but provide a custom one */
  cursor: default; 
}

a, button, .expanding-card, input, textarea {
  cursor: pointer;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--text-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, background-color 0.2s ease, width 0.2s ease, height 0.2s ease;
  mix-blend-mode: difference; /* For a cool inversion effect */
}

.custom-cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--text-primary);
  background: transparent;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
  mix-blend-mode: difference;
}

.custom-cursor.hover {
  transform: translate(-50%, -50%) scale(1.5);
}

.custom-cursor-follower.hover {
  width: 60px;
  height: 60px;
  background: var(--white-alpha-10);
}

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

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  backdrop-filter: blur(10px);
  pointer-events: all;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.success {
  border-left: 4px solid #10b981;
}

.toast.error {
  border-left: 4px solid #ef4444;
}

.toast-icon {
  width: 20px;
  height: 20px;
}

.toast.success .toast-icon {
  color: #10b981;
}

.toast.error .toast-icon {
  color: #ef4444;
}