/* ==========================================================================
   ROOT VARIABLES
   ========================================================================== */
:root {
  /* Color Palette */
  --primary: #1a202c;
  --secondary: #000000;
  --accent: #000000;
  --accent-light: #ff0e0e;
  --gradient: linear-gradient(135deg, #000000 0%, #e5e5e0 100%);
  --gradient-hover: linear-gradient(135deg, #ff0e0e 0%, #ff0e0e 100%);
  --white: #e5e5e0;
  --black: #000000;
  --gray-50: #e5e5e0;
  --gray-100: #ffffff;
  --gray-200: #e4e4e0;
  --gray-300: #000000;
  --gray-400: #000000;
  --gray-500: #000000;
  --gray-600: #000000;
  --gray-700: #000000;
  --gray-800: #000000;
  --gray-900: #000000;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  
  /* Spacing */
  --container-max: 1200px;
  --container-padding: 2rem;
  --section-padding: 8rem 0;
  --section-padding-mobile: 4rem 0;
  
  /* Animation */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
  --transition-slow: 0.6s ease;
  --cubic-bezier: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  
  /* Z-index Scale */
  --z-loader: 10000;
  --z-mobile-menu: 9000;
  --z-header: 1000;
  --z-cursor: 9999;
  --z-modal: 8000;
  --z-project-cursor: 9998;
  --z-project-modal: 9997;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.loading {
  overflow: hidden;
}

body.menu-open {
  overflow: hidden;
}

/* Add after line 100 in css.txt (in body styles) */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%; /* Prevents font scaling on iOS */
    text-rendering: optimizeLegibility;
}

/* Specific fix for loading animation text */
.outro-title h1 {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision; /* More consistent across devices */
    font-weight: 600 !important; /* Explicit weight prevents faux-bold */
}


/* Hardware acceleration for smooth animations */
.cursor,
.cursor-inner,
.header,
.project-card,
.service-card,
.project-cursor,
.project-modal-container {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--gray-900);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin: 0;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.skip-nav {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--accent);
  color: var(--white);
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  z-index: calc(var(--z-loader) + 1);
  transition: top var(--transition-fast);
}

.skip-nav:focus {
  top: 6px;
}

/* Buttons */
/* Fix button proportions on mobile */
@media (max-width: 768px) {
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        padding: 16px 24px !important;
        font-size: 0.95rem !important;
        min-height: 52px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        line-height: 1.4 !important;
    }
    
    .btn-text {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        word-wrap: break-word !important;
        line-height: 1.3 !important;
    }
    
    .btn-arrow {
        display: inline-block !important;
        margin-left: 8px !important;
        flex-shrink: 0 !important;
    }
    
    .hero-cta {
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100% !important;
    }
    
    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
    }
}

.btn-primary,
.btn-secondary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 50px;
  transition: all var(--transition-medium);
  cursor: pointer;
  border: none;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: black;
  color: var(--white);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
  background: var(--gradient-hover);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: black;
  color: var(--white);
  border: 2px solid var(--gray-300);
}

.btn-secondary:hover {
  background: #ffd939;
  color: var(--white);
  border-color: #ffd939;
}

.btn-outline {
  background: var(--black);
  color: var(--black);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: #ff0e0e;
  color: var(--white);
  border: #ff0e0e;
}

.btn-arrow {
  transition: transform var(--transition-fast);
}

.btn-primary:hover .btn-arrow,
.btn-outline:hover .btn-arrow {
  transform: translateX(4px);
}

.mobile-menu-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  padding: 1rem;
  cursor: pointer;
  z-index: 1000;
  width: 40px;
  height: 40px;
}

.mobile-menu-close .close-line {
  position: absolute;
  top: 5px;
  right: 10px;
  left: 10px;
  width: 30px;
  height: 2px;
  background-color: white;
}

.mobile-menu-close .close-line:first-child {
  transform: rotate(45deg);
}

.mobile-menu-close .close-line:last-child {
  transform: rotate(-45deg);
}

/* ==========================================================================
   LOADING SCREEN
   ========================================================================== */
.loader {
  position: fixed;
  inset: 0;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-loader);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.loaded {
  opacity: 0;
  visibility: hidden;
}

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

.loader-logo {
  margin-bottom: 2rem;
  color: var(--accent);
}

.loader-circle {
  animation: drawCircle 2s ease-in-out infinite;
}

@keyframes drawCircle {
  0% {
    stroke-dashoffset: 157;
  }
  50% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -157;
  }
}

.loader-text {
  color: var(--gray-600);
}

.loader-percentage {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: fixed;
  height: 100px;
  top: 0;
  left: 0;
  right: 0;
  background: black;
  backdrop-filter: blur(20px);
  border-bottom: black;
  z-index: var(--z-header);
  transition: all var(--transition-medium);
}

.header.scrolled {
  background: black;
}

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

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #e5e5e0;
  transition: transform var(--transition-medium);
}

.logo:hover {
  transform: scale(1.05);
}

.logo-animation {
  margin-right: 12px;
  color: #e5e5e0;
}

.logo-svg {
  transition: transform var(--transition-slow);
}

.logo:hover .logo-svg {
  transform: rotate(360deg);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-weight: 600;
  font-size: 1.1rem;
}

.full-name {
  font-size: 0.85rem;
  color: #e5e5e0;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-medium);
}

.logo:hover .full-name {
  opacity: 1;
  transform: translateY(0);
}

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

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #e5e5e0;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 1rem;
  transition: all var(--transition-medium);
}

.nav-link:hover {
  color: #ffd939;
}

.nav-text {
  font-size: 1rem;
}

.nav-number {
  font-size: 0.75rem;
  color: #e5e5e0;
  opacity: 0;
  transform: translateY(-10px);
  transition: all var(--transition-medium);
}

.nav-link:hover .nav-number {
  opacity: 1;
  transform: translateY(0);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #e5e5e0;
  transform: translateX(-50%);
  transition: width var(--transition-medium);
}

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

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-line {
  width: 100%;
  height: 2px;
  background: #e5e5e0;
  transition: all var(--transition-medium);
  transform-origin: center;
}

.menu-toggle.active .menu-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .menu-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .menu-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Progress Bar */
.scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: black;
}

.progress-bar {
  height: 100%;
  background: #ffd939;
  width: 0%;
  transition: width 0.1s ease;
}

/* ==========================================================================
   MOBILE MENU
   ========================================================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ff0e0e;
  z-index: var(--z-mobile-menu);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-medium);
}

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

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 2rem;
  text-align: center;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--white);
  font-size: 2rem;
  font-weight: 600;
  opacity: 0;
  transform: translateX(-50px);
  transition: all var(--transition-medium);
}

.mobile-menu.active .mobile-nav-link {
  opacity: 1;
  transform: translateX(0);
}

.mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-nav-link:nth-child(4) { transition-delay: 0.4s; }

.mobile-nav-number {
  font-size: 1rem;
  color: var(--accent);
}

.mobile-menu-footer {
  margin-top: auto;
}

.mobile-menu-tagline {
  color: var(--gray-400);
  margin-top: 1rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 8rem 2rem 0;
  background-color: #e5e5e0;
}

.hero-content-wrapper {
  position: relative;
  z-index: 1;
  max-width: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 0;
  bottom: 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  right: 0;
  bottom: 0;
  z-index: -1;
  overflow: visible;
}

/* ==========================================================================
   HERO DOCUMENT BUTTONS - BALANCED LAYOUT (HIGHER POSITION)
   ========================================================================== */

/* Base styles for both containers */
.hero-document-buttons {
  position: absolute;
  bottom: 5.75rem; /* MOVED UP - was 2rem, now matches top stacked button position */
  z-index: 10;
  opacity: 0;
  animation: slideIn 0.8s ease 2.5s forwards;
}

/* Left button (Resume) */
.hero-doc-left {
  left: 2rem;
  transform: translateX(-20px);
}

/* Right button (Portfolio) */
.hero-doc-right {
  right: 2rem;
  transform: translateX(20px);
}

/* Animation for buttons */
@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Individual button styling */
.doc-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  background: black;
  backdrop-filter: blur(10px);
  color: #e5e5e0;
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-primary);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hover effects */
.doc-button:hover {
  background: #ff0e0e;
  box-shadow: 0 10px 30px rgba(255, 14, 14, 0.3);
}

/* Left button hover - slides right */
.hero-doc-left .doc-button:hover {
  transform: translateX(5px);
}

/* Right button hover - slides left */
.hero-doc-right .doc-button:hover {
  transform: translateX(-5px);
}

.doc-button svg {
  flex-shrink: 0;
}

/* ==========================================================================
   MOBILE RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  .hero-document-buttons {
    bottom: 4rem; /* Adjusted proportionally for mobile */
  }
  
  .hero-doc-left {
    left: 1rem;
  }
  
  .hero-doc-right {
    right: 1rem;
  }
  
  .doc-button {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }
  
  .doc-button svg {
    width: 18px;
    height: 18px;
  }
}

/* Keep buttons on sides even on very small screens */
@media (max-width: 480px) {
  .hero-document-buttons {
    bottom: 6rem; /* Slightly lower on small screens */
  }
  
  .hero-doc-left {
    left: 0.75rem; /* Closer to edge */
  }
  
  .hero-doc-right {
    right: 0.75rem; /* Closer to edge */
  }
  
  .doc-button {
    padding: 0.6rem 1rem; /* Smaller padding */
    font-size: 0.75rem; /* Smaller text */
    gap: 0.5rem; /* Less gap between icon and text */
  }
  
  .doc-button svg {
    width: 14px; /* Smaller icon */
    height: 14px;
  }
  
  /* Adjust hover for mobile - subtle lift */
  .hero-doc-left .doc-button:hover,
  .hero-doc-right .doc-button:hover {
    transform: translateY(-2px);
  }
}


/* ==========================================================================
   TOOLS INFINITE SCROLLING MARQUEE
   ========================================================================== */

.tools-marquee-wrapper {
    width: 100%;
    background: linear-gradient(90deg, #e5e5e0 0%, #e5e5e0 100%, #e5e5e0 100%);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid #e5e5e0;
    position: relative;
    overflow: hidden;
    margin-top: -5rem;
}

.tools-slider {
    width: 100%;
    height: var(--height);
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        transparent,
        #000 50% 50%,
        transparent
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        #000 50% 50%,
        transparent
    );
}

.tools-list {
    display: flex;
    width: 100%;
    min-width: calc(var(--width) * var(--quantity));
    position: relative;
    height: var(--height);
}

.tools-item {
    width: var(--width);
    height: var(--height);
    position: absolute;
    left: 100%;
    animation: toolsAutoRun 15s linear infinite;
    transition: filter 0.3s, transform 0.3s;
    animation-delay: calc((15s / var(--quantity)) * (var(--position) - 1) - 15s) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tools-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(50%) brightness(50%) invert(0) opacity(1);
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* Animation keyframes */
@keyframes toolsAutoRun {
    from {
        left: 100%;
    }
    to {
        left: calc(var(--width) * -1);
    }
}

/* Hover effects */
.tools-slider:hover .tools-item {
    animation-play-state: paused !important;
}

.tools-item:hover img {
    filter: grayscale(0%) brightness(1) invert(0) opacity(1);
    transform: scale(1.15);
}

/* ==========================================================================
   MOBILE RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .tools-marquee-wrapper {
        padding: 0.5rem 0;
    }
    
    .tools-slider {
        --width: 60px !important;
        --height: 50px !important;
    }
    
    .tools-item {
        animation-duration: 12s !important;
        animation-delay: calc((12s / var(--quantity)) * (var(--position) - 1) - 12s) !important;
    }
}

@media (max-width: 480px) {
    .tools-marquee-wrapper {
        padding: 0.5rem 0;
    }
    
    .tools-slider {
        --width: 50px !important;
        --height: 40px !important;
    }
    
    .tools-item {
        animation-duration: 10s !important;
        animation-delay: calc((10s / var(--quantity)) * (var(--position) - 1) - 10s) !important;
    }
}



/* Fix Lottie animation full visibility */
.lottie-container {
    position: absolute;
    top: 50% !important;  /* Center vertically */
    left: 50%;
    width: 120% !important;  /* Slightly larger for better coverage */
    height: 120% !important;
    transform: translate(-50%, -50%) !important;
    z-index: -1;
}

.lottie-container svg,
.lottie-container canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

@media (max-width: 768px) {
    .lottie-container {
        width: 50% !important;  /* Even larger on mobile */
        height: 50% !important;
        top: 50% !important;  /* Ensure centering */
        left: 50%;
        transform: translate(-50%, -50%) scale(0.85) !important;
    }
    
    .hero {
        min-height: 100vh !important;
        overflow: hidden !important;
    }
}
@media (max-width: 480px) {
    .lottie-container {
        transform: translate(-50%, -50%) scale(0.75) !important;
    }
}

.lottie-container svg {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  bottom: 0;
}

.lottie-container svg,
.lottie-container canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-description {
  margin: 0 0 1.5rem 0;
  margin-top: 10px !important;
  opacity: 0;
  padding: 0;
  transform: translateY(30px);
  transition: all var(--transition-medium);
  transition-delay: 0.8s;
  width: 100%;
  padding-top: 0 !important;
}

.hero-description p {
  font-size: 2.15rem !important;
  color: white;
  line-height: 1.6;
  margin: 0;
  padding-top: 0 !important;
  font-family: var(--font-primary) !important;
}

.hero-cta {
  display: flex;
  margin: 0;
  gap: 1.5rem;
  opacity: 0;
  padding: 0;
  transform: translateY(30px);
  transition: all var(--transition-medium);
  transition-delay: 1s;
}


.hero-stats {
  position: relative; 
  display: flex;
  justify-content: center;
  gap: 8rem !important;
  margin-top: 3rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-medium);
  transition-delay: 1.2s;
}

.stat-item {
  text-align: right;
  padding: 0;
  border: none;
}

.stat-number {
  font-size: 4rem !important;
  font-weight: 700;
  color: white;
  font-family: var(--font-display);
}

.stat-label {
  font-size: 0.9rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-description.visible,
.hero-cta.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-stats.visible {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.scroll-indicator {
  position: relative;
  top: 1rem;
  bottom: 0rem;
  left: 12.5%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: fadeInUp 1s ease 2s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--gray-400);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: red;
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%, 20% { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(16px); opacity: 0; }
}

.scroll-text {
  font-size: 0.8rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Updated Hero Section - Animation Only */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  margin-top: 100px;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.lottie-container {
  position: absolute;
  top: 60%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.lottie-container svg {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.hero-content-section {
  position: relative;
  padding: 4rem 0;
  background: #e5e5e0;
  z-index: 10;
}

.hero-content-section .container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Remove wrapper styles since content is now separate */
.hero-content-wrapper {
  display: none;
}

/* Updated Content Styles */
.hero-description {
  text-align: center;
  margin: 0;
  opacity: 1;
  transform: none;
  transition: none;
  width: 100%;
  max-width: 600px;
}

.hero-description p {
  font-size: 1.25rem;
  color: var(--gray-800);
  line-height: 1.8;
  font-family: var(--font-primary);
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  opacity: 1;
  transform: none;
  transition: none;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stats {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 2rem;
  opacity: 1;
  transform: none;
  transition: none;
}

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

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section-header {
  margin-bottom: 4rem;
}

.section-header.centered {
  text-align: center;
}

.section-number {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 600px;
}

.section-header.centered .section-description {
  margin: 0 auto;
}

/* ==========================================================================
   WORK SECTION
   ========================================================================== */
.work-section {
  padding: var(--section-padding);
  background: var(--gray-50);
}

/* ==========================================================================
   INTERACTIVE PROJECTS SHOWCASE - FIXED
   ========================================================================== */
.interactive-projects {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 4rem;
  overflow: hidden;
  display: block !important; /* Force show for now */
}

.projects-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.interactive-project {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--gray-300);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.interactive-project:last-of-type {
  border-bottom: 1px solid var(--gray-300);
}

.interactive-project:hover {
  opacity: 0.7;
  background: rgba(102, 126, 234, 0.02);
}

.interactive-project:hover .project-title {
  transform: translateX(-10px);
  color: var(--accent);
}

.interactive-project:hover .project-subtitle {
  transform: translateX(10px);
  color: var(--accent);
}

.interactive-project .project-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 0;
  font-weight: 500;
  transition: all 0.4s var(--cubic-bezier);
  color: var(--gray-800);
  font-family: var(--font-display);
}

.interactive-project .project-subtitle {
  transition: all 0.4s var(--cubic-bezier);
  font-weight: 400;
  color: var(--gray-600);
  font-size: 1.1rem;
  margin: 0;
}

.project-modal-container {
  height: 300px;
  width: 400px;
  position: fixed;
  background: var(--white);
  overflow: hidden;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  z-index: var(--z-project-modal);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s var(--cubic-bezier), transform 0.3s var(--cubic-bezier);
  will-change: transform, left, top;
}

.project-modal-container.active {
  opacity: 1;
  transform: scale(1);
}

.project-modal-slider {
  height: 100%;
  width: 100%;
  position: absolute;
  transition: top 0.5s var(--cubic-bezier);
}

.project-modal {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  overflow: hidden;
}

.project-modal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-modal:hover img {
  transform: scale(1.05);
}

.project-cursor {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: black;
  color: var(--white);
  position: fixed;
  z-index: var(--z-project-cursor);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  will-change: transform, left, top;
}

.project-cursor.active {
  display: flex !important;
}

.project-cursor-label {
  width: 100%;
  text-align: center;
  background-color: transparent;
}

/* Traditional Projects Grid (Fallback) */
.traditional-projects-grid {
  display: none !important; /* Hide for now */
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.project-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-medium);
  cursor: pointer;
}

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

.project-card.featured {
  grid-column: span 2;
}

.project-card.large {
  grid-column: span 2;
  grid-row: span 2;
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.project-card.large .project-image {
  height: 400px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
  opacity: 0;
  transition: opacity var(--transition-medium);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  color: var(--white);
}

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

.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.project-type {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.project-year {
  font-size: 0.9rem;
  opacity: 0.7;
}

.project-link {
  color: var(--white);
  padding: 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
}

.project-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.project-content {
  padding: 2rem;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  background: var(--gray-200);
  color: var(--gray-700);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

.project-description {
  color: var(--gray-600);
  line-height: 1.6;
}

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

.work-cta .btn-text {
  color: #e5e5e0;
}

.work-cta .btn-arrow  {
  color: #e5e5e0;
}

/* ==========================================================================
   Slider Section
   ========================================================================== */

.aboutme-sliderContainer {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: flex-start; /* Changed from center */
  align-items: center;
  height: 350px;
  padding: 20px 0;
  background-color: var(--white);
}

.aboutme-slider {
  display: flex;
  white-space: nowrap;
  will-change: transform;
  /* Remove any transform here - JavaScript will handle it */
}

.aboutme-slider p {
  display: inline-block;
  margin: 0;
  font-family: var(--font-display);
  font-size: 230px;
  line-height: 1;
  padding-right: 50px;
  color: var(--black);
  flex-shrink: 0; /* Prevent shrinking */
}

/* Remove conflicting positioning rules */
/* .aboutme-slider p:nth-of-type(2) - REMOVED */
/* .aboutme-slider p.secondText - REMOVED */

@media (max-width: 600px) {
  .aboutme-slider p { 
    font-size: 8vw; 
  }
  
  .aboutme-sliderContainer {
    height: 200px; /* Adjust height for mobile */
  }
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
  padding-bottom: 20px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-text {
  margin-bottom: 3rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--gray-600);
  font-size: 1.1rem;
}

.about-skills h3 {
  margin-bottom: 2rem;
  color: var(--gray-800);
}

.skills-grid {
  display: grid;
  gap: 1.5rem;
}

.skill-item {
  display: grid;
  gap: 0.5rem;
}

.skill-name {
  font-weight: 500;
  color: var(--gray-700);
}

.skill-bar {
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: #ffd939;
  width: 0%;
  transition: width 1s ease;
  border-radius: 3px;
}

.about-visual {
  display: grid;
  gap: 2rem;
}

.about-image-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.about-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.about-decoration {
  position: absolute;
  top: -50px;
  right: -50px;
  z-index: -1;
  opacity: 0.6;
}

.experience-highlights {
  display: grid;
  gap: 1.5rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition-medium);
}

.highlight-item:hover {
  transform: translateY(-5px);
}

.highlight-icon {
  font-size: 2rem;
  min-width: 60px;
}

.highlight-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--gray-800);
}

.highlight-content p {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin: 0;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-section {
  padding: var(--section-padding);
  background: var(--gray-50);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.service-card {
  background: var(--white);
  padding: 3rem 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  transition: all var(--transition-medium);
}

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

.service-card.featured {
  background: black;
  color: var(--white);
  transform: scale(1.05);
}

.service-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.service-icon {
  margin-bottom: 2rem;
  color: var(--accent);
}

.service-card.featured .service-icon {
  color: var(--white);
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--gray-800);
}

.service-card.featured .service-title {
  color: var(--white);
}

.service-description {
  color: var(--gray-600);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.service-card.featured .service-description {
  color: rgba(255, 255, 255, 0.9);
}

.service-features {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
}

.service-features li {
  padding: 0.5rem 0;
  color: var(--gray-600);
  position: relative;
  padding-left: 1.5rem;
}

.service-card.featured .service-features li {
  color: rgba(255, 255, 255, 0.9);
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.service-card.featured .service-features li::before {
  color: var(--white);
}

.service-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.service-card.featured .service-price {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.services-cta {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.services-cta h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--gray-800);
}

.services-cta p {
  color: var(--gray-600);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials-section {
  padding: var(--section-padding);
  background: var(--gray-900);
  color: var(--white);
}

.testimonials-section .section-title {
  color: var(--white);
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
  margin-bottom: 3rem;
  min-height: 300px;
}

.testimonial-slide {
  padding: 3rem;
  text-align: center;
  opacity: 0;
  transform: translateX(100%);
  transition: all var(--transition-medium);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.testimonial-slide.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
}

.testimonial-stars {
  color: #ffd700;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.testimonial-content blockquote {
  font-size: 1.5rem;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info {
  text-align: left;
}

.author-name {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
}

.author-title {
  color: var(--gray-400);
  font-size: 0.9rem;
}

.testimonials-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.testimonial-nav {
  background: none;
  border: 2px solid var(--white);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.testimonial-nav:hover {
  background: var(--white);
  color: var(--gray-900);
}

.testimonial-dots {
  display: flex;
  gap: 0.5rem;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.testimonial-dot.active {
  background: var(--white);
}



/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
  padding: var(--section-padding);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
}

.contact-details {
  margin: 3rem 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-icon {
  color: var(--accent);
  margin-top: 0.25rem;
}

.contact-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--gray-800);
}

.contact-content p {
  color: var(--gray-600);
  margin: 0;
}

.contact-content a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-content a:hover {
  color: var(--accent-light);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  padding: 0.75rem 1.5rem;
  background: black;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  transition: all var(--transition-fast);
  font-weight: 500;
}

.social-link:hover {
  background: #ffd939;
  color: black;
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form-container {
  background: var(--gray-50);
  padding: 3rem;
  border-radius: 20px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--gray-700);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid black;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-fast);
  background: var(--white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: black;
}

.form-input.error,
.form-textarea.error {
  border-color: #e53e3e;
}

.field-error {
  color: #e53e3e;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

.form-message {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-weight: 500;
}

.form-message.success {
  background: #c6f6d5;
  color: #22543d;
  border: 1px solid #9ae6b4;
}

.form-message.error {
  background: #fed7d7;
  color: #742a2a;
  border: 1px solid #feb2b2;
}

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

.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.checkbox-label input {
  opacity: 0;
  position: absolute;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-300);
  border-radius: 4px;
  position: relative;
  transition: all var(--transition-fast);
}

.checkbox-label input:checked + .checkmark {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox-label input:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  color: var(--white);
  font-size: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.form-submit {
  width: 100%;
  margin-top: 1rem;
  justify-content: center;
}

.btn-text {
 color: white; 
}

.btn-arrow {
  color: #ffffff;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 4rem 0 2rem;
}

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

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

.footer-logo {
  color: var(--accent);
}

.footer-tagline {
  color: var(--white);
  margin: 0;
  font-family: var(--font-primary);
}

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

.footer-column h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: var(--white);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-column a:hover {
  color: #ffd939;
}

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

/* ==========================================================================
   CUSTOM CURSOR - OPTIMIZED
   ========================================================================== */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: transparent;
  border: 2px solid white;
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  opacity: 0;
  will-change: transform, width, height, border-color, background-color;
  transition: width 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              height 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.15s ease,
              background-color 0.15s ease,
              opacity 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .cursor {
    opacity: 1;
  }
  
  /* Hide default cursor everywhere */
  *, *::before, *::after {
    cursor: none !important;
  }
  
  /* Allow cursor on form inputs */
  input, textarea, select {
    cursor: text !important;
  }
  
  /* Allow cursor on input buttons */
  input[type="button"], 
  input[type="submit"], 
  input[type="reset"],
  button {
    cursor: none !important;
  }
}

.cursor.grow {
  width: 50px;
  height: 50px;
  border-color: white;
  background: transparent;
}

.cursor.text {
  width: 3px;
  height: 20px;
  background: #ff0e0e;
  border: none;
  border-radius: 2px;
}

.cursor.header-hover {
  width: 40px;
  height: 40px;
  border-color: white;
  background: transparent;
}

.cursor-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  background: black;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.15s ease, transform 0.15s ease;
  opacity: 1;
}

.cursor.grow .cursor-inner,
.cursor.text .cursor-inner,
.cursor.header-hover .cursor-inner {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
}

/* ==========================================================================
   LOADING ANIMATION STYLES - No Box Backgrounds for Tags
   ========================================================================== */

/* Prevent flash before JS sets initial states */
.preloader .intro-title h1,
.preloader .outro-title h1,
.split-overlay .intro-title h1,
.split-overlay .outro-title h1,
.tags-overlay {
  visibility: hidden;
}

/* Helper classes to fully hide nodes after drop */
.hide-node { 
  visibility: hidden; 
  opacity: 0; 
  pointer-events: none; 
}

.display-none { 
  display: none !important; 
}

/* Loading Animation Layers */
.preloader, 
.split-overlay, 
.tags-overlay { 
  position: fixed; 
  inset: 0; 
  width: 100vw; 
  height: 100vh; 
}

.preloader, 
.split-overlay { 
  background-color: #0a0a0a; 
  color: #ffffff; 
}

.preloader { z-index: 10001; }
.split-overlay { z-index: 10000; }
.tags-overlay { z-index: 10002; pointer-events: none; }

/* Title centering for loading animation */
.preloader .intro-title, 
.preloader .outro-title,
.split-overlay .intro-title, 
.split-overlay .outro-title {
  position: absolute; 
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%);
  width: 100%; 
  text-align: center;
}

/* Loading animation typography */
.preloader h1,
.split-overlay h1 {
  text-transform: uppercase; 
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 600; 
  line-height: 1; 
  color: #ffffff;
  font-family: var(--font-display);
}

/* Ensure outro title can be moved horizontally for merge */
.outro-title {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Tags positioning - NO BOX BACKGROUNDS */
.tags-overlay .tag { 
  position: absolute; 
  width: max-content; 
  color: #e5e5e0; 
  overflow: visible;
  background-color: transparent !important;
}

.tags-overlay .tag p {
  text-transform: uppercase; 
  font-size: clamp(0.8rem, 2vw, 1.2rem);
  font-weight: 600; 
  color: #e5e5e0;
  font-family: var(--font-display);
  background-color: transparent;
  padding: 8px 16px;
  margin: 0;
  white-space: nowrap;
}

.tags-overlay .tag-1 { 
  top: clamp(10%, 15%, 20%); 
  left: clamp(10%, 15%, 20%); 
}

.tags-overlay .tag-2 { 
  bottom: clamp(10%, 15%, 20%); 
  left: clamp(15%, 25%, 35%); 
}

.tags-overlay .tag-3 { 
  bottom: clamp(20%, 30%, 40%); 
  right: clamp(10%, 15%, 20%); 
}

/* Split wrappers (SplitType defaults) with responsive margins */
.intro-title .char, 
.outro-title .char, 
.card .char {
  position: relative; 
  display: inline-block; 
  overflow: hidden;
}

.intro-title .char, 
.outro-title .char { 
  margin: clamp(0.2rem, 1.5vw, 0.75rem);
}

/* Hidden states for animation */
.intro-title .char span, 
.outro-title .char span, 
.tags-overlay .tag .word {
  position: relative; 
  display: inline-block; 
  transform: translateY(-100%); 
  will-change: transform;
}

.card .char span { 
  position: relative; 
  display: inline-block; 
  transform: translateY(100%); 
  will-change: transform; 
}

/* First char pivot */
.intro-title .first-char { 
  transform-origin: center center; 
}

/* Ensure transforms are GPU-friendly */
.intro-title .char span, 
.outro-title .char span, 
.card .char span {
  will-change: transform;
}

/* ==========================================
   RESPONSIVE DESIGN - ENHANCED
   ========================================== */

/* Tablet & Below (1024px) */
@media (max-width: 1024px) {
    :root {
        --section-padding: 5rem 0;
    }
    
    /* Navigation */
    .nav-menu {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    /* Header */
    .header {
        height: 70px;
    }
    
    .nav-container {
        padding: 0.75rem 1.5rem;
    }
    
    /* Hero section */
    .hero {
        min-height: 80vh;
        padding: 5rem 1.5rem 2rem;
    }
    
    .hero-content-section {
        padding: 3rem 1.5rem;
    }
    
    .hero-description p {
        font-size: 1.75rem !important;
    }
    
    .hero-stats {
        gap: 3rem !important;
    }
    
    .stat-number {
        font-size: 3rem !important;
    }
    
    /* Grids */
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* Projects */
    .project-card.featured,
    .project-card.large {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .interactive-project {
        padding: 2rem 1rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .project-modal-container {
        width: 300px;
        height: 200px;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    :root {
        --container-padding: 1.25rem;
        --section-padding: 4rem 0;
    }
    
    /* ===== HEADER ===== */
    .header {
        height: 60px;
    }
    
    .nav-container {
        padding: 0.75rem 1.25rem;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
    
    .brand-name {
        font-size: 1rem;
    }
    
    /* ===== HERO SECTION ===== */
    .hero {
        min-height: auto;
        height: auto;
        padding: 4rem 1.25rem 2rem;
        margin-top: 60px;
    }
    
    .lottie-container {
        width: 100% !important;
        height: 100% !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        position: absolute !important;
    }
    
    .hero-content-section {
        padding: 2.5rem 1.25rem;
    }
    
    .hero-description {
        margin-bottom: 1.5rem;
        max-width: 100%;
    }
    
    .hero-description p {
        font-size: 1.25rem !important;
        line-height: 1.6;
    }
    
    /* CTA Buttons */
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
    }
    
    /* Stats */
    .hero-stats {
        flex-direction: column;
        gap: 2rem !important;
        margin-top: 2rem;
        width: 100%;
    }
    
    .stat-item {
        text-align: center;
        width: 100%;
    }
    
    .stat-number {
        font-size: 2.5rem !important;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* Scroll indicator */
    .scroll-indicator {
        display: none;
    }
    
    /* ===== LOADING ANIMATION ===== */
    .preloader h1,
    .split-overlay h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }
    
    .intro-title .char,
    .outro-title .char {
        margin: 0.15rem;
    }
    
    .tags-overlay .tag p {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
    
    /* ===== TYPOGRAPHY ===== */
    .section-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .lead {
        font-size: 1.125rem;
    }
    
    /* ===== ABOUT ME SLIDER ===== */
    .aboutme-sliderContainer {
        height: 200px;
    }
    
    .aboutme-slider p {
        font-size: clamp(80px, 20vw, 150px);
    }
    
    /* ===== WORK SECTION ===== */
    .traditional-projects-grid {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .interactive-projects {
        display: none !important;
    }
    
    .project-image {
        height: 250px;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    /* ===== SERVICES ===== */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .service-card.featured {
        transform: scale(1);
    }
    
    /* ===== TESTIMONIALS ===== */
    .testimonial-content blockquote {
        font-size: 1.125rem;
    }
    
    .testimonials-navigation {
        gap: 1rem;
    }
    
    .testimonial-nav {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    /* ===== CONTACT FORM ===== */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-container {
        padding: 2rem 1.5rem;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: 0.875rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* ===== FOOTER ===== */
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
    }
    
    /* Typography */
    .section-title {
        font-size: clamp(1.75rem, 8vw, 2rem);
    }
    
    .hero-description p {
        font-size: 1.125rem !important;
    }
    
    /* Stats */
    .stat-number {
        font-size: 2rem !important;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* Buttons */
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        padding: 14px 24px;
        font-size: 0.9rem;
    }
    
    /* Contact */
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 auto;
    }
    
    /* Social links */
    .social-links {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .social-link {
        width: 100%;
        justify-content: center;
    }
    
    /* Loading animation */
    .preloader h1,
    .split-overlay h1 {
        font-size: clamp(1.5rem, 12vw, 2.5rem);
    }
    
    .tags-overlay .tag p {
        font-size: 0.6rem;
        padding: 4px 8px;
    }
    
    /* Hide complex interactions */
    .project-modal-container,
    .project-cursor {
        display: none !important;
    }
    
    /* About me slider */
    .aboutme-slider p {
        font-size: clamp(60px, 18vw, 120px);
    }
    
    .aboutme-sliderContainer {
        height: 150px;
    }
}

/* Landscape Mobile Phones */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 3rem 1.25rem 1.5rem;
    }
    
    .hero-content-section {
        padding: 2rem 1.25rem;
    }
    
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2rem !important;
    }
    
    .stat-item {
        flex: 1 1 calc(50% - 1rem);
        min-width: 120px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Disable custom cursor */
    .cursor,
    .project-cursor {
        display: none !important;
    }
    
    * {
        cursor: default !important;
    }
    
    /* Enlarge touch targets */
    .btn-primary,
    .btn-secondary,
    .btn-outline,
    .social-link,
    .nav-link,
    .menu-toggle {
        min-height: 44px;
        padding: 12px 24px;
    }
    
    /* Remove hover effects */
    .project-card:hover,
    .service-card:hover,
    .btn-primary:hover {
        transform: none;
    }
    
    /* Hide interactive projects */
    .interactive-projects {
        display: none !important;
    }
    
    .traditional-projects-grid {
        display: grid !important;
    }
}

/* High DPI Screens (Retina) */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
    .project-image img,
    .about-image {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    .cursor,
    .project-cursor {
        display: none !important;
    }
    
    *,
    *::before,
    *::after {
        cursor: auto !important;
    }
    
    .hero-title .title-word,
    .logo-svg,
    .scroll-wheel {
        animation: none !important;
        transition: none !important;
    }
}

/* ============================================
   DUAL POPUP SYSTEM STYLES
   ============================================ */

/* ============================================
   POPUP 1: STICKY BADGE (Bottom Right)
   ============================================ */
.sticky-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
    opacity: 0;
    transform: translateX(400px);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 380px;
}

.sticky-popup.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

/* Close button positioned relative to .sticky-popup */
.sticky-close {
    position: absolute;
    top: -10px;  /* Position ABOVE the content box */
    right: -10px; /* Position to the RIGHT of content box */
    background: rgba(0, 0, 0, 0.8);
    border: 3px solid white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10; /* Above content */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.sticky-close:hover {
    background: #ff4444;
    transform: rotate(90deg) scale(1.1);
    border-color: #ff4444;
}

.sticky-close svg {
    pointer-events: none;
}

/* Content box (gradient background) */
.sticky-content {
    background: #ffd939;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
    position: relative; /* Keep this */
}

/* Rest of styles stay the same... */
.sticky-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid black;
}

.badge-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.badge-text {
    flex: 1;
}

.badge-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: black;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.badge-subtitle {
    font-size: 0.9rem;
    color: black;
    margin: 0;
}

.sticky-cta {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    background: black;
    color: #e5e5e0;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sticky-cta:hover {
    background: #ff0e0e;
    color: #e5e5e0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sticky-popup {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: 100%;
    }
    
    .sticky-close {
        width: 40px;
        height: 40px;
        font-size: 22px;
        top: -12px;
        right: -12px;
    }
    
    .sticky-content {
        padding: 1.25rem;
    }
}


/* ============================================
   POPUP 2: EXIT INTENT MODAL (Full Screen)
   ============================================ */
.exit-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.exit-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.exit-modal {
    background: #e5e5e0;
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.exit-modal-overlay.active .exit-modal {
    transform: scale(1);
}

.exit-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #333;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.exit-modal-close:hover {
    background: #ff0e0e;
    transform: rotate(90deg);
}

.exit-modal-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
}

.exit-modal-left {
    background: #ffd939;
    padding: 4rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px 0 0 20px;
}

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

.decoration-icon {
    font-size: 8rem;
    display: block;
    animation: float 3s ease-in-out infinite;
}

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

.exit-modal-right {
    padding: 4rem 3rem;
}

.exit-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.exit-modal-subtitle {
    font-size: 1.3rem;
    color: #000000;
    font-weight: 600;
    margin-bottom: 1rem;
}

.exit-modal-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #000000;
    margin-bottom: 2rem;
}

.exit-modal-benefits {
    margin-bottom: 2rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    font-size: 1rem;
    color: #000000;
}

.benefit-icon {
    width: 24px;
    height: 24px;
    background: #ffd939;
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.exit-modal-urgency {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.1));
    border-left: 4px solid #ffd939;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-size: 1rem;
    color: #000000;
}

.exit-modal-urgency strong {
    color: #ff0e0e;
    font-size: 1.1rem;
}

.exit-modal-cta {
    display: block;
    width: 100%;
    padding: 1.5rem 2rem;
    background: #000000;
    color: #e5e5e0;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: #000000;
    margin-bottom: 1rem;
}

.exit-modal-cta:hover {
    background: #ff0e0e;
    transform: translateY(-3px);
    box-shadow: black;
}

.exit-modal-note {
    text-align: center;
    font-size: 0.85rem;
    color: #000000;
    margin: 0;
}

/* ============================================
   RESPONSIVE (Mobile)
   ============================================ */
@media (max-width: 768px) {
    .sticky-popup {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: 100%;
    }
    
    .sticky-content {
        padding: 1.25rem;
    }
    
    .badge-title {
        font-size: 1rem;
    }
    
    .badge-subtitle {
        font-size: 0.85rem;
    }
    
    .exit-modal-content {
        grid-template-columns: 1fr;
    }
    
    .exit-modal-left {
        display: none; /* Hide decoration on mobile */
    }
    
    .exit-modal-right {
        padding: 3rem 2rem;
    }
    
    .exit-modal-title {
        font-size: 2rem;
    }
    
    .exit-modal-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .exit-modal-right {
        padding: 2rem 1.5rem;
    }
    
    .exit-modal-title {
        font-size: 1.75rem;
    }
}


/* ==========================================
   MOBILE ISSUE FIXES - NEW
   ========================================== */

/* Mobile Loading Animation Fixes - Cross-Device Compatible */

/* Base mobile adjustments - All devices 768px and below */
@media (max-width: 768px) {
    .outro-title {
        letter-spacing: -0.03em !important;
        word-spacing: -0.4em !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        white-space: nowrap !important;
        font-feature-settings: "kern" 1; /* Enable kerning */
        text-rendering: geometricPrecision !important;
    }
    
    .outro-title .word {
        display: inline-flex !important;
        flex-direction: row !important;
        margin: 0 -0.1em !important;
        white-space: nowrap !important;
    }
    
    .outro-title .char {
        margin: 0 0.02em !important;
        padding: 0 !important;
        display: inline-block !important;
        transform: translateZ(0); /* GPU acceleration */
    }
}

/* Smaller phones like iPhone SE and smaller Android */
@media (max-width: 480px) {
    .outro-title {
        letter-spacing: -0.02em !important;
        word-spacing: -0.35em !important;
        font-size: clamp(2.5rem, 13vw, 3.5rem) !important;
    }
    
    .outro-title .word {
        margin: 0 -0.08em !important;
    }
    
    .outro-title .char {
        margin: 0 0.03em !important;
    }
}

/* Android-specific fixes - targets Chrome on Android */
/* Android-specific fixes - targets Chrome on Android */
@supports (-webkit-appearance: none) {
    @media (max-width: 768px) and (hover: none) {
        .outro-title {
            letter-spacing: 0.08em !important; /* Positive for consistent spacing */
            word-spacing: normal !important;
            gap: 0.15em !important; /* Add gap between word containers */
        }
        
        .outro-title .word {
            display: inline-flex !important;
            margin: 0 !important; /* Reset negative margins */
            gap: 0.1em !important; /* Space between B's in the BB word */
        }
        
        .outro-title .word:first-child {
            margin-right: -0.3em !important; /* Pull D closer to BB */
        }
        
        .outro-title .char {
            margin: 0 !important; /* Let letter-spacing handle it */
        }
    }
}

@media (max-width: 480px) and (hover: none) {
    .outro-title {
        letter-spacing: 0.06em !important;
        gap: 0.25em !important;
    }
    
    .outro-title .word {
        gap: 0.08em !important;
    }
    
    .outro-title .word:first-child {
        margin-right: -0.1em !important;
    }
}


 

/* Fix 3: Contact Section Layout */
@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 1.25rem !important;
    }
    
    .contact-header {
        margin-bottom: 2rem;
    }
    
    .contact-header .section-number {
        display: block;
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }
    
    .contact-header .section-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        line-height: 1.2;
        word-break: break-word;
        hyphens: auto;
    }
    
    .contact-info {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        width: 100%;
    }
    
    .contact-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
        width: 100%;
    }
    
    .contact-details {
        width: 100%;
    }
    
    .contact-details h3 {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-details p,
    .contact-details a {
        font-size: 0.95rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

/* Fix 4: Prevent Horizontal Scroll/Zoom Issues */
html {
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
}

body {
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }
    
    .container,
    .section,
    .hero-content-section,
    .contact-grid,
    .aboutme-sliderContainer {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    img, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* Fix 5: Burger Menu Visibility */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #e5e5e0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}



/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
  .header,
  .mobile-menu,
  .cursor,
  .project-cursor,
  .scroll-indicator {
    display: none !important;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
  
  section {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
