/* ==================== ROOT VARIABLES ==================== */
:root {
  --bg-dark: #0a0a0a;
  --text-primary: #e5dfcf;
  --accent-orange: #ff5a3c;
  --text-muted: #9a978a;
  --border-subtle: rgba(229, 223, 207, 0.18);
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
  --font-primary: "Google Sans", "Inter Tight", sans-serif;
  --font-secondary: "Google Sans", "Inter", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

html {
  overflow-y: scroll;
  scrollbar-width: none; /* Firefox */
}

body {
  font-family: var(--font-secondary);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
  display: none;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 20% 30%,
      rgba(255, 90, 60, 0.03) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(229, 223, 207, 0.02) 0%,
      transparent 40%
    ),
    /* Subtle film grain effect */
      url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E');
  pointer-events: none;
  z-index: 1;
}

/* ==================== CUSTOM CURSOR ==================== */
.custom-cursor {
  width: 26px;
  height: 26px;
  border: 1px solid var(--text-primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  mix-blend-mode: difference;
  transition: all 0.1s ease-out;
  backdrop-filter: invert(1);
  /* Performance optimization */
  will-change: transform;
}

.custom-cursor.hover {
  width: 48px;
  height: 48px;
  border-color: var(--accent-orange);
  background: rgba(255, 90, 60, 0.1);
}

/* Typography hover effect - scales cursor when hovering over large text */
.custom-cursor.typography-hover {
  transform: translate(-50%, -50%) scale(6) translate3d(0, 0, 0);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Ensure both hover states work together */
.custom-cursor.hover.typography-hover {
  width: 48px;
  height: 48px;
  border-color: var(--accent-orange);
  background: rgba(255, 90, 60, 0.1);
  transform: translate(-50%, -50%) scale(6) translate3d(0, 0, 0);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* .cursor-trail - Removed as requested */

/* ==================== CINEMATIC 3-STAGE PRELOADER ==================== */
.loader-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  z-index: 999;
  opacity: 1;
  transition: opacity 0.8s ease;
  overflow: hidden;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

/* Logo Wrapper (220px x 220px) */
.logo-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Stage 1 & 2: Core Logo */
.logo-core-container {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.logo-core-container.active {
  opacity: 1;
  transform: scale(1);
}

.logo-core {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

/* Stage 3: Complete Logo */
.logo-complete-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  transform-origin: center center;
  /* Add smooth transition for scale transform handled by JavaScript */
  transition: opacity 0.35s ease, transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.logo-complete-container.active {
  opacity: 1;
  pointer-events: all;
  /* Transform will be handled by JavaScript for smooth zoom */
}

.logo-complete {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

/* Progress Ring (absolute around logo) */
.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.progress-ring.active {
  opacity: 1;
  pointer-events: all;
}

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

.progress-track {
  /* Background circle - always visible */
}

.progress-circle {
  stroke-dasharray: 628; /* 2 * π * 100 */
  stroke-dashoffset: 628;
}

/* Percentage Text (below logo) */
.progress-text {
  margin-top: 16px;
  text-align: center;
  font-family: "Inter Tight", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #e5dfcf;
  letter-spacing: 2px;
  transition: all 0.3s ease;
}

/* Start Button (Stage 3) */
.start-button-loader {
  background: transparent;
  border: 1px solid #e5dfcf;
  color: #e5dfcf;
  padding: 14px 48px;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(60px);
  pointer-events: none;
  margin-top: -40px; /* Move button more upward */
}

.start-button-loader.active {
  opacity: 1;
  transform: translateY(-30px); /* Move up 30px when active */
  pointer-events: all;
}

.start-button-loader:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  box-shadow: 0 0 20px rgba(255, 90, 60, 0.3);
}

.loader-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ==================== START SCREEN ==================== */
.start-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-medium);
}

.start-screen.active {
  opacity: 1;
  pointer-events: all;
}

.start-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.start-button {
  background: transparent;
  border: 2px solid var(--text-primary);
  color: var(--text-primary);
  padding: 1rem 2.5rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.start-button:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  box-shadow: 0 0 20px rgba(255, 90, 60, 0.3);
  transform: translateY(-2px);
}

/* ==================== NAVIGATION ==================== */
.navigation {
  position: fixed;
  top: clamp(1.5rem, 5vh, 3.5rem); /* Moved up from 2rem */
  right: clamp(1rem, 3vw, 2rem); /* Adjusted for mobile */
  display: flex;
  flex-direction: column;
  gap: 0rem;
  z-index: 1000;
  align-items: flex-end;
}

.nav-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  height: 1rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  text-decoration: none;
  margin-bottom: -0.1rem;
}

.nav-text-roll {
  position: relative;
  display: block;
  overflow: hidden;
  line-height: 0.75;
  text-align: right;
  font-family: var(--font-primary);
  font-size: clamp(12px, 3vw, 14px);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  text-decoration-line: none;
  text-decoration-style: none;
  text-decoration-color: none;
}

.nav-text-initial,
.nav-text-hover-roll {
  display: block;
  opacity: 0.3;
  transition: none;
  text-decoration: none;
  text-decoration-line: none;
  text-decoration-style: none;
  text-decoration-color: none;
}

.nav-text-hover-roll {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
}

.nav-item:hover .nav-text-initial,
.nav-item.active .nav-text-initial {
  opacity: 1;
  transition: opacity 0.25s ease-out;
}

.nav-item:hover .nav-text-hover-roll,
.nav-item.active .nav-text-hover-roll {
  opacity: 1;
  transition: opacity 0.25s ease-out;
}

.nav-item:hover .nav-text-roll,
.nav-item.active .nav-text-roll {
  opacity: 1;
  text-decoration: none;
  text-decoration-line: none;
  text-decoration-style: none;
  text-decoration-color: none;
}

.nav-item:hover .nav-text-initial span {
  transform: translateY(-100%);
}

.nav-item:hover .nav-text-hover-roll span {
  transform: translateY(-100%);
}

.nav-text-initial span,
.nav-text-hover-roll span {
  display: inline-block;
  transition: transform 0.35s ease-in-out;
  transition-delay: var(--delay, 0s);
}

/* Mobile-specific fixes for navigation */
@media (max-width: 768px) {
  .nav-item:not(.active) .nav-text-initial,
  .nav-item:not(.active) .nav-text-hover-roll {
    opacity: 0.3 !important;
    transition: opacity 0.25s ease-out !important;
  }

  .nav-item.active .nav-text-initial,
  .nav-item.active .nav-text-hover-roll {
    opacity: 1 !important;
    transition: opacity 0.25s ease-out !important;
  }

  .nav-item:active .nav-text-initial,
  .nav-item:active .nav-text-hover-roll {
    opacity: 1;
  }

  /* Force remove hover states on mobile to prevent persistent highlighting */
  .nav-item:hover .nav-text-initial,
  .nav-item:hover .nav-text-hover-roll {
    opacity: 0.3 !important;
  }

  /* Ensure active state takes priority over hover */
  .nav-item.active:hover .nav-text-initial,
  .nav-item.active:hover .nav-text-hover-roll {
    opacity: 1 !important;
  }
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.main-content.visible {
  opacity: 1;
}

.section {
  min-height: 100vh;
  padding: 8rem 2rem;
  display: flex;
  align-items: center;
  position: relative;
}

.section-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
  overflow: hidden;
  padding-left: 10%;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 30%;
  margin-right: 25%;
}

/* ==================== HERO DOWNLOAD CIRCLE ==================== */
.hero-download-circle {
  position: absolute;
  bottom: 122px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
}

.download-circle-link {
  display: block;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: none;
  background: transparent;
  position: relative;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
  cursor: pointer;
}

.download-circle-link:hover {
  transform: scale(1.05);
}

.press-button-svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.text-rotate-group {
  transform-origin: 100px 100px;
  animation: rotateTextClockwise 10s linear infinite;
}

.press-button-svg text {
  fill: #d8d2c4;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 4px;
  text-anchor: middle;
  dominant-baseline: middle;
}

.center-hand-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 2px));
  width: 20px;
  height: 32px;
  transition: transform 0.35s ease;
  pointer-events: none;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
}

.download-circle-link:hover .center-hand-icon {
  transform: translate(-50%, calc(-50% + 2px)) scale(1.1);
}

@keyframes rotateTextClockwise {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-download-circle {
    bottom: 40px;
  }

  .download-circle-link {
    width: 85px;
    height: 85px;
  }
}

.hero-text-stack {
  margin-bottom: 2rem;
  transform: translateY(-30px);
}

.hero-name {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0 0 1.5rem 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  white-space: nowrap;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-name.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-line {
  font-family: var(--font-primary);
  font-size: clamp(4.2rem, 9vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.78;
  margin: 0;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-line.orange {
  color: var(--accent-orange);
}

.hero-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-subtext {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
}

.hero-subtext.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-visual {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-image: url("SERON.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.2;
}

.portrait-silhouette {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 400px;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(229, 223, 207, 0.05) 100%
  );
  border-radius: 20px;
  filter: blur(20px);
  opacity: 0.3;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 40px;
  background: var(--text-muted);
  border-radius: 1px;
  overflow: hidden;
}

.scroll-line {
  width: 100%;
  height: 30%;
  background: var(--text-primary);
  border-radius: 1px;
  animation: scrollPulse 2s infinite;
}

/* ==================== ABOUT SECTION ==================== */
.about-section {
  background: linear-gradient(
      135deg,
      rgba(255, 90, 60, 0.03) 0%,
      transparent 50%
    ),
    var(--bg-dark);
}

.section-title {
  font-family: var(--font-primary);
  font-size: clamp(12px, 3vw, 14px);
  font-weight: 600;
  letter-spacing: 0.18em;
  margin-bottom: 4rem;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.section-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-content {
  display: block;
  max-width: 1100px;
  padding-left: clamp(0.5rem, 3vw, 2rem);
  position: relative;
  line-height: 1.15;
}

.about-text {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--text-primary);
  position: relative;
  z-index: 2;
  word-break: keep-all;
  hyphens: none;
  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  overflow-wrap: normal;
  text-align: left;
  font-kerning: normal;
  -webkit-font-kerning: normal;
}

.about-line {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  margin-bottom: 0;
  will-change: transform, opacity;
  text-align: left;
  white-space: normal;
  word-wrap: normal;
  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
  font-variant-ligatures: common-ligatures;
  -webkit-font-variant-ligatures: common-ligatures;
  display: block;
  line-height: 1;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.about-line.visible,
section.about-section .about-line.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.about-line:nth-child(1) {
  transition-delay: 0s !important;
}
.about-line:nth-child(2) {
  transition-delay: 0.12s !important;
}
.about-line:nth-child(3) {
  transition-delay: 0.24s !important;
}
.about-line:nth-child(4) {
  transition-delay: 0.36s !important;
}
.about-line:nth-child(5) {
  transition-delay: 0.48s !important;
}

/* Mobile-specific styling for about text */
@media (max-width: 768px) {
  .about-line {
    font-size: clamp(1.5rem, 5vw, 2.2rem) !important;
    line-height: 1.2;
    font-weight: 700;
    word-break: keep-all;
    hyphens: none;
    white-space: normal;
    margin-bottom: 0.5rem;
  }

  .about-text {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
  }
}

.accent-word {
  color: var(--accent-orange);
  white-space: nowrap;
  display: inline-block;
}

.about-visual {
  position: absolute;
  top: 50%;
  right: -100px;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  z-index: 1;
  pointer-events: none;
}

.orange-circle {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: var(--accent-orange);
  opacity: 0.85;
  filter: blur(40px);
  animation: pulseGlow 4s infinite;
  position: relative;
  right: -100px;
}

/* ==================== SKILLS SECTION ==================== */
.skills-section {
  background: 
        /* Subtle film grain overlay */ url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E'),
    var(--bg-dark);
  position: relative;
  padding: clamp(1.5rem, 5vw, 3rem);
}

.skills-container {
  width: 100%;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

/* ==================== SKILLS ROWS CONTAINER ==================== */
.skills-rows-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0 calc(-1 * clamp(1.5rem, 5vw, 3rem));
}

.skill-row {
  width: 100vw;
  height: clamp(90px, 12vh, 110px);
  border-bottom: 1px solid rgba(229, 223, 207, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  margin-left: calc(-1 * clamp(1.5rem, 5vw, 3rem));
  margin-right: calc(-1 * clamp(1.5rem, 5vw, 3rem));
  padding-left: clamp(1.5rem, 5vw, 3rem);
  padding-right: clamp(1.5rem, 5vw, 3rem);
}

.skill-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  cursor: pointer;
  pointer-events: auto;
}

.skill-row:hover::before,
.skill-row.hover::before {
  background-color: rgba(255, 90, 60, 0.05);
}

/* Mobile-specific hover behavior */
@media (max-width: 900px) {
  .skill-row::before {
    z-index: 0;
  }
  
  .skill-row:hover::before,
  .skill-row.toggled::before {
    background-color: rgba(255, 90, 60, 0.05);
  }
  
  .skill-row.expanded::before {
    background-color: rgba(255, 90, 60, 0.05);
  }
}

.skill-row:last-child {
  border-bottom: none;
}

.category-text {
  font-family: "Inter Tight", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 700;
  text-transform: uppercase;
  color: #e5dfcf;
  padding-left: clamp(1rem, 3vw, 2rem);
  z-index: 2;
  position: relative;
  transition: color 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.orange-bar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 0%;
  background-color: #ff5a3c;
  z-index: 1;
  transition: all 0.7s ease;
  transform: translate(-50%, -50%);
  transform-origin: center;
  pointer-events: none;
}

.skill-row:hover .orange-bar,
.skill-row.hover .orange-bar {
  height: 100%;
  transform: translate(-50%, -50%);
}

.skill-row:hover .category-text,
.skill-row.hover .category-text {
  color: #0a0a0a;
}

/* ==================== INLINE SKILLS LIST ==================== */
.skills-inline {
  position: absolute;
  right: clamp(1rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 2;
}

.skill-row:hover .skills-inline,
.skill-row.hover .skills-inline {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile skills inline positioning */
@media (max-width: 900px) {
  .skill-row {
    height: 77px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    overflow: hidden;
  }
  
  .category-text {
    transform: translateY(5px);
    position: relative;
    left: 0;
    padding-left: clamp(1rem, 3vw, 2rem);
    z-index: 2;
    width: auto;
  }
  
  .skills-inline {
    position: relative;
    left: 0;
    padding-left: clamp(1rem, 3vw, 2rem);
    top: 15px;
    width: calc(100% - clamp(2rem, 6vw, 4rem));
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 2;
    pointer-events: none;
  }
  
  .skill-row:hover .skills-inline,
  .skill-row.expanded .skills-inline {
    opacity: 1;
    transform: translateX(0px);
    pointer-events: auto;
  }
}

.skill-row:hover .skill-item,
.skill-row.hover .skill-item {
  font-weight: 700;
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
}

.skill-item {
  font-family: "Inter Tight", sans-serif;
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  color: #0a0a0a;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.skill-separator {
  color: #0a0a0a;
  opacity: 0.7;
  font-weight: 300;
}

/* Add bullet separators between skill items on mobile */
@media (max-width: 900px) {
  .skills-inline .skill-item:not(:last-child)::after {
    content: " • ";
    margin: 0 0.5rem;
    color: #0a0a0a;
    opacity: 0.7;
    font-weight: 300;
  }
}

/* Mobile typography adjustments */
@media (max-width: 900px) {
  .skill-item {
    font-size: 14px;
  }
  
  .category-text {
    font-size: clamp(22px, 4.8vw, 32px);
  }
}

/* ==================== PROJECTS SECTION ==================== */
.projects-section {
  background: linear-gradient(
      -135deg,
      rgba(229, 223, 207, 0.02) 0%,
      transparent 50%
    ),
    var(--bg-dark);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

/* Tablet adjustments */
@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
}

.project-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 15px;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  /* Improve touch targets on mobile */
  min-height: 350px;
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-orange);
  box-shadow: 0 20px 40px rgba(255, 90, 60, 0.15);
  background: rgba(255, 90, 60, 0.03);
}

/* Mobile touch enhancements for project cards */
@media (max-width: 768px) {
  .project-card {
    transition: all 0.3s ease;
  }
  
  .project-card:active {
    transform: translateY(-5px);
    border-color: var(--accent-orange);
    background: rgba(255, 90, 60, 0.05);
  }
}

.project-header {
  margin-bottom: 1.5rem;
}

.project-name {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.project-subtitle {
  font-family: var(--font-secondary);
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.project-points {
  list-style: none;
}

.project-points li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.project-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-orange);
}

.project-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.view-project-hover {
  color: var(--accent-orange);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: right;
  margin-top: 1.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.project-card:hover .view-project-hover {
  opacity: 1;
  transform: translateY(0);
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 15px;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
  backdrop-filter: blur(10px);
}

/* ==================== EDUCATION SECTION ==================== */
.education-section {
  background: var(--bg-dark);
}

.timeline {
  position: relative;
  max-width: 600px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: linear-gradient(
    to bottom,
    #ff5a3c 0%,
    #ff5a3c 90%,
    transparent 100%
  );
  box-shadow: 0 0 8px rgba(255, 90, 60, 0.3);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 60px;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 1.3rem;
  width: 14px;
  height: 14px;
  border: 2px solid #ff5a3c;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 4px rgba(255, 90, 60, 0.2);
  z-index: 2;
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 1.8rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ff5a3c;
  z-index: 3;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item.visible::before {
  animation: nodeAppear 0.6s ease forwards;
}

.timeline-item.visible::after {
  animation: dotAppear 0.6s ease 0.2s forwards;
}

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

.timeline-content {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.8rem;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

.institution {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  position: relative;
}

.degree {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.years {
  font-size: 0.9rem;
  color: var(--accent-orange);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.cgpa,
.percentage {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==================== EXPERIENCE SECTION ==================== */
.experience-section {
  background: linear-gradient(
      135deg,
      rgba(255, 90, 60, 0.03) 0%,
      transparent 50%
    ),
    var(--bg-dark);
}

.experience-timeline {
  position: relative;
  max-width: 600px;
}

.experience-timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: linear-gradient(
    to bottom,
    #ff5a3c 0%,
    #ff5a3c 90%,
    transparent 100%
  );
  box-shadow: 0 0 8px rgba(255, 90, 60, 0.3);
}

.experience-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 60px;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

.experience-item::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 1.3rem;
  width: 14px;
  height: 14px;
  border: 2px solid #ff5a3c;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 4px rgba(255, 90, 60, 0.2);
  z-index: 2;
}

.experience-item::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 1.8rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ff5a3c;
  z-index: 3;
}

.experience-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.experience-item.visible::before {
  animation: nodeAppear 0.6s ease forwards;
}

.experience-item.visible::after {
  animation: dotAppear 0.6s ease 0.2s forwards;
}

.experience-content {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.8rem;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

.role {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.company {
  font-size: 1.2rem;
  color: var(--accent-orange);
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.duration {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.experience-points {
  list-style: none;
}

.experience-points li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.experience-points li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent-orange);
  font-weight: bold;
}

/* ==================== CONNECT CALL-OUT ==================== */
.connect-callout {
  font-family: var(--font-primary);
  font-size: clamp(4.2rem, 9vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.78;
  margin: 0;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  color: var(--text-primary);
  cursor: default;
  text-transform: uppercase;
}

.connect-callout.visible {
  opacity: 1;
  transform: translateY(0);
}

.orange-highlight {
  color: var(--accent-orange);
  display: inline-block;
}

/* ==================== CONTACT SECTION ==================== */
.contact-section {
  background-color: #0a0a0a;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(4rem, 8vw, 7rem) 2rem;
  position: relative;
}

.connect-header {
  margin-bottom: 3rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

.contact-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: "Inter Tight", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(229, 223, 207, 0.7);
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.section-title.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== THREE-COLUMN GRID LAYOUT ==================== */
.contact-three-column-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  column-gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
  width: 100%;
}

/* ==================== CONTACT COLUMN ==================== */
.contact-column {
  display: flex;
  flex-direction: column;
}

/* ==================== CONTACT LINKS ==================== */
.contact-link {
  font-family: "Inter Tight", sans-serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.2;
  color: #e5dfcf;
  text-decoration: none;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
}

/* Hover effect for contact links to match skills section */
.contact-link span {
  position: relative;
  z-index: 2;
  transition: color 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-link span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 0%;
  background-color: #ff5a3c;
  z-index: -1;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateY(-50%);
}

.contact-link:hover span::before {
  height: 100%;
  transform: translateY(-50%);
}

.contact-link:hover span {
  color: #0a0a0a;
}

/* ==================== TRIANGLE INDICATOR ==================== */
.triangle-indicator {
  width: 12px;
  height: 12px;
  background: #ff5a3c;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

/* ==================== CONTACT INFO ==================== */
.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-value {
  font-size: 12px;
  opacity: 0.5;
  margin-bottom: 1.5rem;
}

.contact-label {
  font-size: 0.9rem;
  color: rgba(229, 223, 207, 0.7);
  margin-bottom: 0.4rem;
  font-family: "Inter Tight", sans-serif;
}

.contact-value {
  font-size: 1rem;
  color: #e5dfcf;
  margin-bottom: 1rem; /* Reduced from 2rem to 1rem */
  font-family: "Inter Tight", sans-serif;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 900px) {
  .contact-three-column-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ==================== ANIMATIONS ==================== */
@keyframes logoPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes logoDraw {
  0% {
    stroke-dashoffset: 283;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes pathDraw {
  0% {
    stroke-dashoffset: 200;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes scrollPulse {
  0% {
    transform: translateY(-10px);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(20px);
    opacity: 0;
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.1);
  }
}

@keyframes nodeAppear {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes dotAppear {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes lineDraw {
  0% {
    height: 0;
  }
  100% {
    height: 100%;
  }
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
  .custom-cursor,
  .cursor-trail {
    display: none;
  }

  body::before {
    background-image: radial-gradient(
        circle at 20% 30%,
        rgba(255, 90, 60, 0.03) 0%,
        transparent 40%
      ),
      radial-gradient(
        circle at 80% 70%,
        rgba(229, 223, 207, 0.02) 0%,
        transparent 40%
      );
  }

  body {
    cursor: auto;
  }

  /* Show navigation on mobile - remove display: none */
  .navigation {
    display: flex;
    top: 1rem;
    right: 1rem;
  }

  .nav-text,
  .nav-text-hover {
    font-size: 0.7rem;
    letter-spacing: 1px;
  }

  .section {
    padding: 6rem 1.5rem;
  }

  /* Remove padding and adjust height for skills section on mobile */
  .skills-section {
    padding: 30px 1.5rem;
    min-height: auto;
  }

  /* Reduce section title margin on mobile */
  .section-title {
    margin-bottom: 1rem;
  }

  /* Specific adjustment for skills section title */
  #skills .section-title {
    margin-bottom: 0.5rem;
  }

  .about-content {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    max-width: 100%;
  }

  .about-text {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    word-break: keep-all;
    hyphens: none;
    -webkit-hyphens: none;
    overflow-wrap: normal;
  }

  .about-visual {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 100%;
    height: 200px;
    margin-top: 2rem;
    margin-bottom: -12rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .orange-circle {
    width: 200px;
    height: 200px;
    right: 0;
    opacity: 0.85;
    filter: blur(25px);
  }

  .about-line {
    font-size: 32px !important;
    margin-bottom: 0.5rem;
    text-align: left;
    line-height: 1;
    font-weight: 700;
    word-break: keep-all;
    hyphens: none;
    -webkit-hyphens: none;
    overflow-wrap: normal;
    white-space: normal;
  }

  .section-title {
    margin-bottom: 2.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }

  .project-card {
    padding: 1.5rem;
    height: 240px;
    min-height: 240px;
  }

  .project-header {
    margin-bottom: 1rem;
  }

  .project-name {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
  }

  .project-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .project-points {
    margin-bottom: 1rem;
  }

  .project-points li {
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    padding-left: 1.2rem;
  }

  .project-points li::before {
    top: 0.5rem;
    width: 5px;
    height: 5px;
  }

  .view-project-hover {
    margin-top: 0.5rem;
    font-size: 0.8rem;
  }

  /* Skills section responsive */
  .skills-rows-container {
    gap: 0;
    margin: 0 calc(-1 * 1.5rem);
  }

  .skill-row {
    height: clamp(70px, 10vh, 90px);
    margin-left: calc(-1 * 1.5rem);
    margin-right: calc(-1 * 1.5rem);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .contact-links {
    flex-direction: column;
    gap: 1rem;
  }

  .custom-cursor {
    width: 20px;
    height: 20px;
  }

  .custom-cursor.hover {
    width: 35px;
    height: 35px;
  }

  .section-title {
    font-size: 14px;
  }

  .hero-name {
    font-size: clamp(10px, 3vw, 14px);
  }

  .hero-text-stack {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: clamp(8px, 4vw, 12px);
    margin-bottom: 1rem;
  }

  .hero-line {
    font-size: clamp(3rem, 11vw, 4.8rem);
  }

  /* Make all section titles identical on mobile */
  .section-title {
    font-size: 14px !important;
    font-family: var(--font-primary) !important;
    letter-spacing: 0.18em !important;
    color: var(--text-primary) !important;
    margin-bottom: 1.5rem !important;
  }

  /* Projects section specific mobile adjustments */
  #projects .section-title {
    margin-bottom: 1.5rem;
  }

  /* Position Skills title slightly to the left */
  #skills .section-title {
    margin-left: -10px;
  }

  .about-content {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .about-text {
    font-size: clamp(1.4rem, 6vw, 2.2rem);
    line-height: 1.2;
    letter-spacing: 0.01em;
    word-break: keep-all;
    hyphens: none;
    -webkit-hyphens: none;
    overflow-wrap: normal;
  }

  .about-line {
    font-size: 32px !important;
    margin-bottom: 0.5rem;
    hyphens: none;
    -webkit-hyphens: none;
    line-height: 1;
    font-weight: 700;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .navigation {
    top: 0.5rem;
    right: 0.5rem;
  }

  .section {
    padding: 4rem 1rem;
  }

  /* Remove skills section padding on small mobile */
  .skills-section {
    padding: 30px 1rem;
    min-height: auto;
  }

  /* Skills section mobile */
  .skill-row {
    height: clamp(60px, 8vh, 75px);
    margin-left: calc(-1 * 1rem);
    margin-right: calc(-1 * 1rem);
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .category-text {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .skills-inline {
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .skill-item {
    font-size: 0.8rem;
  }

  .skill-separator {
    display: none;
  }
}

/* Extra small mobile adjustments */
@media (max-width: 480px) {
  .project-card {
    padding: 1.2rem;
    height: 240px;
    min-height: 240px;
  }
  
  .project-name {
    font-size: 1.3rem;
  }
  
  .project-subtitle {
    font-size: 0.8rem;
  }
  
  .project-points li {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }
  
  .view-project-hover {
    margin-top: -1rem;
    font-size: 0.75rem;
  }
}

/* ==================== CUSTOM SCROLL PROGRESS INDICATOR ==================== */
.scroll-progress-container {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  height: 60vh;
  width: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-progress-track {
  width: 6px;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  position: relative;
}

.scroll-progress-fill {
  position: absolute;
  top: 0;
  width: 6px;
  height: 0%;
  background: #ff5a3c;
  border-radius: 999px;
  transition: height 0.15s linear;
}

/* .scroll-progress-cap - Removed as requested */

.scroll-percentage {
  position: absolute;
  right: -35px; /* Increased space between bar and percentage */
  top: 0;
  transform: translateY(-50%);
  font-family: "Inter Tight", sans-serif;
  font-size: 14px;
  color: #ff5a3c;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  transition: top 0.15s linear;
}

/* Hide on mobile */
@media (max-width: 768px) {
  .scroll-progress-container {
    display: none;
  }
}

/* ==================== UTILITY CLASSES ==================== */
.fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.slide-in {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

/* ==================== TEXT ALIGNMENT OPTIMIZATION ==================== */
.text-optimize {
  text-align: left;
  word-break: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
}

.responsive-text {
  font-kerning: normal;
  -webkit-font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  -webkit-font-variant-ligatures: common-ligatures;
}
