/*
  =================================
  ULTRA-PROFESSIONAL NOVINIUM CSS
  =================================
  Featuring: Advanced animations, 3D transforms, glassmorphism,
  clip-path reveals, locomotive scroll integration, and more
*/

/* ========== CSS CUSTOM PROPERTIES ========== */
:root {
  /* Colors */
  --color-dark: #0a0a0f;
  --color-light: #f5f5f5;
  --color-accent: #6366f1;
  --color-accent-hover: #4f46e5;
  --color-text-dark: #1a1a1f;
  --color-text-light: #ffffff;
  --color-text-muted: #a0a0a8;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-glass: rgba(255, 255, 255, 0.05);
  --color-overlay: rgba(10, 10, 15, 0.85);
  
  /* Typography */
  
  
.vazirmatn-<uniquifier> {
  font-family: "Vazirmatn", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

.wallpoet-regular {
  font-family: "Wallpoet", sans-serif;
  font-weight: 400;
  font-style: normal;
}

  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 8rem;
  --space-3xl: 12rem;
  
  /* Layout */
  --container-width: 1400px;
  --container-padding: 5vw;
  --nav-height: 80px;
  
  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-expo: cubic-bezier(0.95, 0.05, 0.795, 0.035);
  --ease-in-out-expo: cubic-bezier(0.87, 0, 0.13, 1);
  --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  background: var(--color-dark);
  color: var(--color-text-light);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: auto; /* Normal cursor - custom cursor handled by JS */
}

/* ========== CUSTOM CURSOR ========== */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--color-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999; /* Above everything */
  mix-blend-mode: difference;
  transition: transform 0.15s ease-out, width 0.15s ease-out, height 0.15s ease-out;
  transform: translate(-50%, -50%);
}

.cursor-follower {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998; /* Above everything except cursor */
  mix-blend-mode: difference;
  transition: transform 0.3s ease-out, width 0.3s ease-out, height 0.3s ease-out;
  transform: translate(-50%, -50%);
}

.cursor.active,
.cursor-follower.active {
  width: 60px;
  height: 60px;
}

/* ========== LOCOMOTIVE SCROLL ========== */
html.has-scroll-smooth {
  overflow: hidden;
}

html.has-scroll-dragging {
  user-select: none;
}

.has-scroll-smooth body {
  overflow: hidden;
}

.has-scroll-smooth [data-scroll-container] {
  min-height: 100vh;
}

[data-scroll-direction="horizontal"] [data-scroll-container] {
  height: 100vh;
  display: inline-block;
  white-space: nowrap;
}

[data-scroll-direction="horizontal"] [data-scroll-section] {
  display: inline-block;
  vertical-align: top;
  white-space: nowrap;
  height: 100%;
}

.c-scrollbar {
  position: absolute;
  right: 0;
  top: 0;
  width: 11px;
  height: 100vh;
  transform-origin: center right;
  transition: transform 0.3s, opacity 0.3s;
  opacity: 0;
}

.c-scrollbar:hover {
  transform: scaleX(1.45);
}

.c-scrollbar:hover,
.has-scroll-scrolling .c-scrollbar,
.has-scroll-dragging .c-scrollbar {
  opacity: 1;
}

.c-scrollbar_thumb {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--color-accent);
  opacity: 0.5;
  width: 7px;
  border-radius: 10px;
  margin: 2px;
  cursor: grab;
}

.has-scroll-dragging .c-scrollbar_thumb {
  cursor: grabbing;
}

/* ========== PRELOADER ========== */
.preloader-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999; /* Au-dessus de tout pendant le chargement */
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all; /* Block interactions during loading */
}

.preloader-overlay.loaded {
  pointer-events: none; /* Allow interactions after loading */
}

.preloader-bg {
  position: absolute;
  inset: 0;
  background: var(--color-dark);
  transform-origin: left;
  transform: scaleX(1);
}

.preloader-mask {
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  clip-path: circle(0% at 50% 50%);
}

.preloader-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.preloader-logo .logo-text {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text-light);
}

.logo-mark {
  font-size: 0.4em;
  vertical-align: super;
  opacity: 0.6;
}

.preloader-progress {
  margin-top: var(--space-md);
}

.progress-bar {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.progress-fill {
  height: 100%;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
}

.progress-text {
  display: block;
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dots::after {
  content: '';
  animation: dots 1.5s steps(4) infinite;
}

@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

/* ========== NAVIGATION ========== */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 9999; /* Above everything including canvas */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--container-padding);
  backdrop-filter: blur(20px);
  background: rgba(10, 10, 15, 0.9);
  border-bottom: 1px solid var(--color-border);
  transition: all 0.4s ease;
  pointer-events: all; /* Make sure nav is clickable */
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-mark {
  font-size: 0.6em;
  vertical-align: super;
  opacity: 0.6;
}

.nav-credit {
  flex: 1;
  text-align: center;
}

.nav-credit span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.5px;
}

.nav-social .nav-time {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ========== 3D CANVAS BACKGROUND ========== */
#canvas-container {
  position: fixed;
  inset: 0;
  z-index: -1; /* Behind everything */
  pointer-events: none;
  opacity: 0.4; /* Reduce visibility so content is readable */
}

#webgl-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ========== MAIN CONTENT ========== */
.main-content {
  position: relative;
  z-index: 10; /* Above canvas */
}

[data-scroll-container] {
  position: relative;
  z-index: 10; /* Above canvas */
}

.section {
  position: relative;
  min-height: 100vh;
  padding: var(--space-3xl) var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-number {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

/* ========== HERO SECTION ========== */
.hero-section {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  padding: 0 2rem;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-xl);
}

.hero-title-line {
  display: block;
  overflow: hidden;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  z-index: 10;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--color-accent));
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
}

.scroll-text {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

/* Floating elements - Simple version */
.floating-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.float-item {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  opacity: 0.1;
  filter: blur(40px);
}

.float-1 {
  top: 20%;
  left: 10%;
}

.float-2 {
  top: 60%;
  right: 15%;
}

.float-3 {
  bottom: 10%;
  left: 50%;
}

/* Floating elements */
.floating-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.float-item {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  opacity: 0.1;
  filter: blur(40px);
}

.float-1 { top: 10%; left: 10%; }
.float-2 { top: 60%; right: 15%; width: 300px; height: 300px; }
.float-3 { bottom: 20%; left: 20%; width: 150px; height: 150px; }

/* ========== 3D CARD CAROUSEL SECTION 01 ========== */
.carousel-section {
  position: relative;
  min-height: 100vh;
  background: #1a1a2e;
  overflow: hidden;
}

.carousel-trigger {
  width: 100%;
  height: 500vh;
  position: relative;
}

.carousel-trigger::before {
  content: 'SCROLL ZONE: 500vh';
  position: fixed;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: rgba(255, 0, 0, 0.8);
  color: white;
  padding: 10px;
  font-size: 12px;
  z-index: 9999;
  border-radius: 5px;
  display: none;
}

.carousel-container {
  width: 100vw;
  height: 100vh;
  perspective: 400px;
  perspective-origin: 50% 50%;
  overflow: hidden;
  position: relative;
  opacity: 0;
}

.carousel-section .section-number {
  position: absolute;
  top: 5%;
  left: 5%;
  font-size: 10rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px rgba(10, 10, 15, 0.06);
  z-index: 1;
  pointer-events: none;
}

.carousel-header {
  position: absolute;
  top: 5%;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
  pointer-events: none;
  width: 100%;
  margin: 0 auto;
}

.carousel-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  line-height: 1;
}

.carousel-subtitle {
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.carousel-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
}

.carousel-card {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 90%;
  height: 80%;
  max-width: 700px;
  max-height: 700px;
  margin: auto;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(10, 10, 15, 0.08);
  box-shadow: 
    0 30px 80px rgba(10, 10, 15, 0.15),
    0 10px 30px rgba(99, 102, 241, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  transform-style: preserve-3d;
  transform-origin: 50% 999px -100px;
  will-change: transform, opacity;
  overflow: hidden;
}

.card-content {
  width: 100%;
  height: 100%;
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--color-text-dark);
  position: relative;
  z-index: 2;
}

.card-icon {
  font-size: 6rem;
  margin-bottom: 2rem;
  filter: drop-shadow(0 15px 40px rgba(99, 102, 241, 0.6));
  animation: iconFloat 3s ease-in-out infinite;
}

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

.carousel-card h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #0a0a0f, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.carousel-card p {
  font-size: clamp(1rem, 2vw, 1.5rem);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  color: rgba(10, 10, 15, 0.8);
  max-width: 500px;
  font-weight: 400;
}

.card-tech {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

.tech-tag {
  padding: 0.75rem 2rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1.5px solid rgba(99, 102, 241, 0.3);
  border-radius: 50px;
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  font-weight: 700;
  color: #6366f1;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tech-tag:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.6);
  color: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
}

.card-stats {
  display: flex;
  gap: 4rem;
  margin-top: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(10, 10, 15, 0.6);
  margin-top: 0.75rem;
  font-weight: 600;
}

/* Scroll Arrow */
.scroll-arrow {
  position: fixed;
  bottom: 5vh;
  left: 50%;
  transform: translateX(-50%);
  height: 8vh;
  opacity: 0.7;
  z-index: 10;
  transition: opacity 0.3s;
}

.scroll-arrow:hover {
  opacity: 1;
}

/* ========== HORIZONTAL SCROLL SECTION ========== */
.horizontal-section {
  height: 100vh;
  padding: 0;
  overflow: hidden;
}

.horizontal-trigger {
  height: 100vh;
  overflow: visible;
}

.horizontal-wrapper {
  display: flex;
  flex-wrap: nowrap;
  height: 100vh;
  will-change: transform;
}

.horizontal-panel {
  flex-shrink: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--container-padding);
}

.panel-intro,
.panel-cta {
  text-align: center;
}

.panel-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
}

.panel-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.panel-project {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-3xl) 10vw;
}

.project-visual {
  position: relative;
  height: 70vh;
  overflow: hidden;
  border-radius: 20px;
}

.project-image {
  width: 100%;
  height: 100%;
  position: relative;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-info {
  padding: var(--space-lg);
}

.project-number {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: var(--space-sm);
}

.project-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.project-desc {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.tag {
  padding: 0.5rem 1rem;
  background: var(--color-glass);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-xl);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 1.5rem 3rem;
  background: var(--color-accent);
  color: var(--color-text-light);
  text-decoration: none;
  font-weight: 600;
  border-radius: 100px;
  transition: all 0.4s var(--ease-out-expo);
}

.cta-button:hover {
  background: var(--color-accent-hover);
  transform: scale(1.05);
}

.cta-arrow {
  font-size: 1.5rem;
  transition: transform 0.4s var(--ease-out-expo);
}

.cta-button:hover .cta-arrow {
  transform: translateX(5px);
}

/* ========== SKILLS SECTION ========== */
.skills-section {
  background: var(--color-light);
  color: var(--color-text-dark);
}

.skills-wrapper {
  max-width: var(--container-width);
  width: 100%;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.skill-card {
  padding: var(--space-xl);
  background: white;
  border-radius: 20px;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.skill-icon {
  width: 80px;
  height: 80px;
  margin-bottom: var(--space-md);
}

.skill-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2;
}

.skill-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.skill-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* ========== CONTACT SECTION ========== */
.contact-section {
  background: var(--color-dark);
  color: var(--color-text-light);
}

.contact-wrapper {
  max-width: var(--container-width);
  width: 100%;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.contact-text {
  font-size: 1.25rem;
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-link {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  text-decoration: none;
  color: var(--color-text-light);
  transition: transform 0.3s var(--ease-out-expo);
}

.contact-link:hover {
  transform: translateX(10px);
}

.link-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.link-value {
  font-size: 1.25rem;
  font-weight: 600;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.25rem;
  background: var(--color-glass);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text-light);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all 0.3s var(--ease-out-expo);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 1.25rem 2.5rem;
  background: var(--color-accent);
  color: var(--color-text-light);
  border: none;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
}

.submit-button:hover {
  background: var(--color-accent-hover);
  transform: scale(1.05);
}

.button-arrow {
  font-size: 1.5rem;
  transition: transform 0.4s var(--ease-out-expo);
}

.submit-button:hover .button-arrow {
  transform: translateX(5px);
}

/* ========== FOOTER ========== */
.main-footer {
  padding: var(--space-xl) var(--container-padding);
  background: var(--color-dark);
  border-top: 1px solid var(--color-border);
}

.footer-content {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.footer-mark {
  font-size: 0.6em;
  vertical-align: super;
  opacity: 0.6;
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s var(--ease-out-expo);
}

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

/* ========== SPLIT TEXT ANIMATIONS ========== */
.split-chars,
.split-words,
.split-lines {
  overflow: hidden;
}

.split-chars .char,
.split-words .word,
.split-lines .line {
  display: inline-block;
  overflow: hidden;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
  :root {
    --space-3xl: 8rem;
    --space-2xl: 6rem;
    --container-padding: 4vw;
  }
  
  .about-content,
  .contact-content,
  .panel-project {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: clamp(2.5rem, 10vw, 8rem);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .horizontal-panel {
    padding: var(--space-lg);
  }
}

/* ========== UTILITIES ========== */
.no-scroll {
  overflow: hidden;
}

.visible {
  opacity: 1 !important;
  visibility: visible !important;
}

.invisible {
  opacity: 0 !important;
  visibility: hidden !important;
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========== PERFORMANCE OPTIMIZATIONS ========== */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* ========== END OF CSS ========== */
