/* =============================================
   NEO-BRUTAL PORTFOLIO - 2026 UI TRENDS
   Bold, Raw, Experimental Design
   ============================================= */

/* CSS Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =============================================
   VISUAL POLISH (SCROLLBAR & SELECTION)
   ============================================= */
::-webkit-scrollbar {
  width: 14px;
}

::-webkit-scrollbar-track {
  background: var(--text-primary);
  border-left: var(--border-thick);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-yellow);
  border: 2px solid var(--text-primary);
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

::selection {
  background: var(--accent-purple);
  color: var(--text-light);
  text-shadow: none;
}

/* =============================================
   NOISE OVERLAY
   ============================================= */
/* =============================================
   NOISE OVERLAY (REMOVED FOR PERFORMANCE)
   ============================================= */
/* #noise-overlay removed */

@import url('https://fonts.googleapis.com/css2?family=Modak&display=swap');

:root {
  /* ... existing vars ... */
  --font-modak: 'Modak', system-ui;
}

/* ... existing styles ... */

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: visible;
}

.nav-logo {
  font-family: var(--font-modak);
  font-size: 32px; /* Adjusted size for Modak */
  font-weight: 400; /* Modak is usually heavy by default */
  letter-spacing: 1px;
}
:root {
  /* Neo-Brutal Color Palette */
  --bg-primary: #f0f0f0;
  --bg-secondary: #ffffff;
  --bg-dark: #1a1a1a;
  --bg-accent: #ffe500;

  /* Bold Accent Colors */
  --accent-primary: #ff3d00;
  --accent-secondary: #00d4ff;
  --accent-tertiary: #00ff94;
  --accent-yellow: #ffe500;
  --accent-purple: #9d00ff;

  /* Text Colors */
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-light: #ffffff;
  --text-muted: #888888;

  /* Brutalist Elements - Softer */
  --border-thick: 2.5px solid var(--text-primary);
  --border-medium: 2px solid var(--text-primary);
  --border-thin: 1.5px solid var(--text-primary);
  --shadow-brutal: 3px 3px 0 var(--text-primary);
  --shadow-brutal-lg: 5px 5px 0 var(--text-primary);
  --shadow-brutal-accent: 3px 3px 0 var(--accent-primary);

  /* Border Radius - More Rounded */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  /* Typography */
  --font-primary: "Space Grotesk", -apple-system, sans-serif;
  --font-mono: "Space Mono", monospace;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Spacing */
  --section-padding: 100px;
  --container-width: 1200px;
}

/* =============================================
   BASE STYLES
   ============================================= */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  height: 100%;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  max-width: 100vw;
  /* Sticky Footer Setup */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
}

/* Grid Background Pattern */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  /* overflow: hidden; Removed to prevent clipping of rotated elements like title cards */
}

/* =============================================
   PROGRESS BAR
   ============================================= */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 6px;
  background: var(--accent-primary);
  z-index: 10000;
  transition: width 0.1s linear;
}

/* =============================================
   SCROLL INDICATOR
   ============================================= */
.scroll-indicator {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 120px;
  background: var(--text-primary);
  z-index: 100;
}

.scroll-track {
  position: absolute;
  inset: 0;
  background: var(--bg-primary);
  border: var(--border-thin);
}

.scroll-thumb {
  position: absolute;
  top: 0;
  left: -2px;
  width: 10px;
  height: 30px;
  background: var(--accent-primary);
  border: var(--border-thin);
  transition: top 0.1s linear;
}

/* =============================================
   SECTION NAVIGATION DOTS
   ============================================= */
.section-dots {
  position: fixed;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 100;
}

.brutal-dot {
  width: 14px;
  height: 14px;
  background: var(--bg-secondary);
  border: var(--border-medium);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.brutal-dot:hover {
  background: var(--accent-yellow);
  transform: scale(1.2);
}

.brutal-dot.active {
  background: var(--accent-primary);
  box-shadow: var(--shadow-brutal);
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: var(--bg-secondary);
  border-bottom: var(--border-thick);
  transition: all var(--transition-smooth);
  overflow: visible;
}

.nav.scrolled {
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: visible;
}

.nav-logo {
  font-family: var(--font-OI);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
}

.nav-logo .accent {
  color: var(--accent-primary);
}

.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-link {
  position: relative;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent-primary);
  transition: width var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
}

/* =============================================
   BRUTAL COMPONENTS
   ============================================= */

/* Brutal Card */
.brutal-card {
  background: var(--bg-secondary);
  border: var(--border-thick);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-brutal);
  transition: all var(--transition-fast);
}

.brutal-card:hover {
  box-shadow: var(--shadow-brutal-lg);
  transform: translate(-3px, -3px);
}

/* 3D Brutal Card */
.brutal-card-3d {
  background: var(--bg-secondary);
  border: var(--border-thick);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-brutal);
  transition: all var(--transition-smooth);
  transform-style: preserve-3d;
}

.brutal-card-3d:hover {
  box-shadow: var(--shadow-brutal-lg);
  transform: translate(-3px, -3px) perspective(1000px) rotateX(2deg)
    rotateY(-2deg);
}

/* Brutal Button */
.brutal-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--accent-primary);
  color: var(--text-light);
  border: var(--border-thick);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-brutal);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.brutal-btn:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--text-primary);
}

.brutal-btn:active {
  transform: translate(0, 0);
  box-shadow: 3px 3px 0 var(--text-primary);
}

.brutal-btn i {
  transition: transform var(--transition-fast);
}

.brutal-btn:hover i {
  transform: translateX(4px);
}

.brutal-btn-outline {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Brutal Tag */
.brutal-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-yellow);
  border: var(--border-medium);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.accent-tag {
  background: var(--accent-primary);
  color: var(--text-light);
}

/* Brutal Inset */
.brutal-inset {
  background: var(--bg-primary);
  border: var(--border-medium);
  box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Brutal Icon Box - Enhanced */
.brutal-icon-box {
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-yellow) 0%, #ffd93d 100%);
  border: 2px solid var(--text-primary);
  border-radius: 16px;
  box-shadow: 3px 3px 0 var(--text-primary);
  font-size: 26px;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.brutal-icon-box:hover {
  transform: translateY(-3px) rotate(-3deg);
  box-shadow: 5px 5px 0 var(--text-primary);
}

/* Brutal Badge */
.brutal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-secondary);
  border: var(--border-medium);
  border-radius: var(--radius-sm);
  box-shadow: 3px 3px 0 var(--text-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.brutal-badge i {
  color: var(--accent-primary);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-start; /* Move content to top */
  position: relative;
  padding-top: 140px; /* Precise control of top space */
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: var(--accent-yellow);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: -1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.greeting {
  margin-bottom: 16px;
  animation: fadeInUp 0.6s ease forwards;
}

.hero-title {
  margin-bottom: 20px;
}

.title-line {
  display: block;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.title-line:first-child {
  font-size: 24px;
  font-weight: 500;
  color: var(--text-secondary);
  animation-delay: 0.2s;
}

.title-name {
  font-family: var(--font-mono);
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  animation-delay: 0.3s;
  word-break: break-word;
}

/* Glitch Effect */
.glitch-text {
  position: relative;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.glitch-text:hover::before {
  animation: glitch1 0.3s infinite;
  color: var(--accent-secondary);
  opacity: 0.8;
}

.glitch-text:hover::after {
  animation: glitch2 0.3s infinite;
  color: var(--accent-primary);
  opacity: 0.8;
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 12px;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.4s;
}

.morph-word {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-primary);
  color: var(--text-light);
  font-family: var(--font-mono);
  font-weight: 700;
}

.hero-tagline {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.5s;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.6s;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  perspective: 1000px;
  padding: 20px;
}

.profile-card-3d {
  position: relative;
  padding: 24px; /* Reduced from 30px */
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-secondary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image-wrapper {
  position: relative;
  width: 320px; /* Significantly increased size */
  height: 320px;
  margin-bottom: 0; /* Removed margin as stats are gone */
  border-radius: var(--radius-md);
  border: var(--border-thick);
  background: var(--bg-primary);
  box-shadow: 8px 8px 0 var(--text-primary);
  transition: all 0.3s ease;
  overflow: hidden;
}

.profile-card-3d:hover .profile-image-wrapper {
  box-shadow: 10px 10px 0 var(--accent-primary);
  transform: translate(-3px, -3px);
}

.profile-image-inner {
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

.profile-image-inner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 61, 0, 0.1); 
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.profile-card-3d:hover .profile-image-inner::after {
  opacity: 1;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: none; /* Removed grayscale to look lively/professional, not mourning */
}

.profile-card-3d:hover .profile-image {
  transform: scale(1.1);
}

.profile-frame {
  display: none;
}

/* Barcode Strip ID Style */
.profile-barcode-strip {
  width: 100%;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.barcode {
  height: 30px;
  width: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--text-primary) 0px,
    var(--text-primary) 4px,
    transparent 4px,
    transparent 8px,
    var(--text-primary) 8px,
    var(--text-primary) 10px,
    transparent 10px,
    transparent 16px
  );
  opacity: 0.8;
}

.id-info {
  display: flex;
  justify-content: space-between;
  border-top: 2px solid var(--text-primary);
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.id-label {
  color: var(--text-secondary);
}

.id-status {
  background: var(--accent-primary);
  color: var(--text-light);
  padding: 2px 6px;
  border-radius: 2px;
}

.stat-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 6px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  animation: floatBadge 3s ease-in-out infinite;
  display: none;
}

.badge-1 {
  top: 10px;
  right: -20px;
}

.badge-2 {
  bottom: 60px;
  left: -30px;
  animation-delay: 1s;
}

/* Scroll Hint */
.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.8s;
}

.brutal-arrow {
  width: 36px;
  height: 50px;
  border: var(--border-medium);
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  background: var(--bg-secondary);
}

.brutal-arrow i {
  animation: scrollBounce 1.5s ease-in-out infinite;
}

/* =============================================
   SECTION STYLES
   ============================================= */
.section {
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-tag {
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

/* New Section Title Card Style */
.section-title-card {
  display: inline-block;
  padding: 16px 32px;
  background: var(--accent-yellow);
  border: var(--border-thick);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 30px;
  box-shadow: var(--shadow-brutal);
  transform: rotate(-1deg); /* Slight tilt for brutalist feel */
  transition: all var(--transition-fast);
}

.section-title-card:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: var(--shadow-brutal-lg);
}

.title-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.section.visible .title-reveal {
  opacity: 1;
  transform: translateY(0);
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* =============================================
   SECTION NAVIGATION
   ============================================= */
.section-dots {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 100;
  mix-blend-mode: difference;
  /* Optional: ensures visibility on all backgrounds */
}

.brutal-dot {
  width: 12px;
  height: 12px;
  background: transparent;
  border: 2px solid var(--text-primary);
  /* Brutalist square dots */
  border-radius: 0;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.brutal-dot:hover,
.brutal-dot.active {
  background: var(--accent-primary);
  transform: scale(1.5) rotate(45deg);
  box-shadow: 2px 2px 0 var(--text-primary);
}

@media (max-width: 768px) {
  .section-dots {
    display: none;
    /* Hide on mobile */
  }
}

/* =============================================
   FOOTER
   ============================================= */
.brutal-footer {
  background: var(--text-primary);
  color: var(--text-light);
  border-top: var(--border-thick);
  padding: 40px 0;
  margin-top: auto; /* Pushes footer to bottom */
  margin-bottom: 0 !important;
  position: relative;
  z-index: 10;
  overflow: hidden; /* Key fix */
  width: 100%;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-light); /* Ensure text is white */
  margin: 0; /* Key fix */
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  text-decoration: none;
  color: var(--text-light); /* Ensure links are white */
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--accent-yellow); /* Hover color for contrast */
  border-bottom-color: var(--accent-yellow);
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* =============================================
   JOURNEY TIMELINE
   ============================================= */
.journey-section {
  background: var(--bg-secondary);
}

/* =============================================
   PORTFOLIO HIGHLIGHTS
   ============================================= */
.portfolio-highlights {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 0px;
}

.highlight-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  overflow: hidden;
  position: relative;
}

.highlight-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-secondary);
  border-bottom: var(--border-thick);
}

.highlight-tag {
  align-self: flex-start;
  margin-bottom: 20px;
}

.highlight-card h3 {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.highlight-content p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 16px;
  max-width: 90%;
}

.highlight-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-decoration: none;
  color: var(--text-primary);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  margin-top: auto;
}

.highlight-link i {
  transition: transform 0.3s ease;
}

.highlight-link:hover {
  color: var(--accent-primary);
}

.highlight-link:hover i {
  transform: translateX(5px);
}

.highlight-image {
  height: 250px;
  overflow: hidden;
  position: relative;
  background: var(--text-primary);
}

.highlight-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.highlight-card:hover .highlight-image img {
  transform: scale(1.05);
}

/* Collection Card Styles */
.collection-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  /* Uniform Lofi Aspect Ratio */
  margin-bottom: 16px;
}

.col-img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  /* Slight padding inside the stack */
  height: 90%;
  transform: translate(-50%, -50%);
  /* Centered default */
  object-fit: cover;
  border: var(--border-thin);
  border-radius: 4px;
  transition: all 0.4s ease;
  background: #fff;
  /* Ensure stack items have bg */
}

/* Stack Logic */
.col-img.main {
  z-index: 3;
  transform: translate(-50%, -50%) rotate(0deg);
}

.col-img.sub-1 {
  z-index: 2;
  transform: translate(-50%, -50%) rotate(5deg);
  opacity: 1;
  background: #f0f0f0;
}

.col-img.sub-2 {
  z-index: 1;
  transform: translate(-50%, -50%) rotate(-5deg);
  opacity: 0.9;
  background: #e0e0e0;
}

/* Fan Effect on Hover */
.portfolio-item:hover .col-img.main {
  transform: translate(-50%, -60%) rotate(0deg);
  /* Move up slightly */
}

.portfolio-item:hover .col-img.sub-1 {
  transform: translate(-35%, -45%) rotate(10deg);
  /* Fan right */
}

.portfolio-item:hover .col-img.sub-2 {
  transform: translate(-65%, -45%) rotate(-10deg);
  /* Fan left */
}

.collection-info {
  margin-top: auto;
  /* Push to bottom */
  padding: 0 5px;
}

.collection-info h3 {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.2;
}

.collection-info p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.count-badge {
  display: inline-block;
  padding: 4px 8px;
  background: var(--text-primary);
  color: var(--text-light);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 1px;
}

.portfolio-item:hover .count-badge {
  background: var(--accent-primary);
}

@media (min-width: 900px) {
  .highlight-card {
    flex-direction: row;
    height: 350px;
  }

  .highlight-content {
    flex: 1;
    border-bottom: none;
    border-right: var(--border-thick);
  }

  .highlight-image {
    flex: 1.2;
    height: 100%;
  }

  .highlight-card:nth-child(even) {
    flex-direction: row-reverse;
  }

  .highlight-card:nth-child(even) .highlight-content {
    border-right: none;
    border-left: var(--border-thick);
  }
}

/* =============================================
   PORTFOLIO SECTION
   ============================================= */
.portfolio-marquee-container {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  overflow: visible;
  /* Allow overflow to prevent clipping hover effects */
  padding: 0 0 80px 0;
  /* Increased padding */
}

.portfolio-marquee {
  display: flex;
  overflow: visible;
  /* Ensure shadows aren't clipped */
  user-select: none;
  gap: 30px;
}

/* Standard Grid Layout */
.portfolio-marquee-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 10px 24px 40px 24px;
  /* Added horizontal padding */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-item {
  width: 100%;
  height: auto;
  border: var(--border-thick);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-brutal);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Restored Dynamic Focus Effect */
.portfolio-marquee-track:hover .portfolio-item {
  opacity: 0.5;
  transform: scale(0.98);
  filter: grayscale(100%);
}

.portfolio-marquee-track .portfolio-item:hover {
  opacity: 1;
  transform: scale(1.05) rotate(1deg);
  /* Subtle pop */
  filter: grayscale(0%);
  box-shadow: var(--shadow-brutal-lg);
  border-color: var(--accent-primary);
  z-index: 10;
}

.portfolio-item::after {
  content: attr(data-category);
  /* Dynamic category label */
  position: absolute;
  bottom: 12px;
  left: 0;
  width: 100%;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.portfolio-item:hover::after {
  color: var(--accent-primary);
}

@media (max-width: 900px) {
  .portfolio-marquee-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 40px 20px;
    justify-items: center;
  }
}

@media (max-width: 600px) {
  .portfolio-marquee-track {
    grid-template-columns: 1fr;
    max-width: 400px;
    padding: 10px 24px 40px 24px;
    justify-items: center;
  }

  .portfolio-item {
    max-width: 100%;
  }
}

.portfolio-cta {
  display: flex;
  justify-content: center;
  margin-top: 60px;
  margin-bottom: 40px;
}

.btn-large {
  padding: 18px 32px;
  font-size: 16px;
  letter-spacing: 2px;
}

.btn-large i {
  font-size: 20px;
}

@media (max-width: 768px) {
  .portfolio-item {
    width: 300px;
    height: 200px;
  }

  .portfolio-marquee-track {
    gap: 20px;
  }
}

.journey-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Neo-Brutal Timeline Line */
.timeline-line-brutal {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 8px;
  background: var(--text-primary);
  transform: translateX(-50%);
  border: 2px solid var(--text-primary);
}

/* Hide old elements */
.brutal-line,
.timeline-road {
  display: none;
}

/* Hide pseudo-elements */
.journey-timeline::before,
.journey-timeline::after {
  display: none;
}

.timeline-item {
  position: relative;
  display: flex;
  margin-bottom: 70px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Alternating layout - Neo-brutal style */
.timeline-item:nth-child(odd) {
  justify-content: flex-start;
  padding-right: calc(50% + 50px);
}

.timeline-item:nth-child(even) {
  justify-content: flex-end;
  padding-left: calc(50% + 50px);
}

/* Connector lines - hidden, replaced by chat arrow */
.timeline-item::before {
  display: none;
}

/* Neo-Brutal Markers - Square rotated */
.brutal-marker {
  position: absolute;
  left: 50%;
  top: 25px;
  width: 24px;
  height: 24px;
  background: var(--bg-secondary);
  border: 3px solid var(--text-primary);
  border-radius: 6px;
  transform: translateX(-50%) rotate(45deg);
  z-index: 3;
  transition: all 0.3s ease;
  box-shadow: 3px 3px 0 var(--text-primary);
}

.brutal-marker::before {
  display: none;
}

.brutal-marker.active {
  background: var(--accent-primary);
  border-color: var(--text-primary);
  box-shadow: 4px 4px 0 var(--text-primary);
}

/* Neo-Brutal timeline cards - Chat Box Style */
.timeline-card {
  position: relative;
  padding: 24px;
  max-width: 360px;
  background: var(--bg-secondary);
  border: 3px solid var(--text-primary);
  border-radius: 8px;
  box-shadow: 6px 6px 0 var(--text-primary);
  transition: all 0.3s ease;
}

/* Chat box arrow pointer - pointing to path */
.timeline-card::before {
  content: '';
  position: absolute;
  top: 30px;
  width: 0;
  height: 0;
  border-style: solid;
}

/* Arrow pointing RIGHT (for left-side cards) */
.timeline-item:nth-child(odd) .timeline-card::before {
  right: -18px;
  border-width: 12px 0 12px 15px;
  border-color: transparent transparent transparent var(--text-primary);
}

/* Arrow inner (background color) for odd items */
.timeline-item:nth-child(odd) .timeline-card::after {
  content: '';
  position: absolute;
  top: 33px;
  right: -11px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 0 9px 12px;
  border-color: transparent transparent transparent var(--bg-secondary);
}

/* Arrow pointing LEFT (for right-side cards) */
.timeline-item:nth-child(even) .timeline-card::before {
  left: -18px;
  border-width: 12px 15px 12px 0;
  border-color: transparent var(--text-primary) transparent transparent;
}

/* Arrow inner (background color) for even items */
.timeline-item:nth-child(even) .timeline-card::after {
  content: '';
  position: absolute;
  top: 33px;
  left: -11px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 12px 9px 0;
  border-color: transparent var(--bg-secondary) transparent transparent;
}

.timeline-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0 var(--text-primary);
}

.timeline-item:nth-child(odd) .timeline-card,
.timeline-item:nth-child(even) .timeline-card {
  border-radius: 8px;
}

.timeline-card.highlight {
  border-color: var(--accent-primary);
  box-shadow: 6px 6px 0 var(--accent-primary);
  background: var(--bg-secondary);
}

/* Highlight card arrows */
.timeline-item:nth-child(odd) .timeline-card.highlight::before {
  border-color: transparent transparent transparent var(--accent-primary);
}

.timeline-item:nth-child(even) .timeline-card.highlight::before {
  border-color: transparent var(--accent-primary) transparent transparent;
}

.timeline-card.highlight:hover {
  box-shadow: 10px 10px 0 var(--accent-primary);
}

.timeline-year {
  margin-bottom: 12px;
  display: inline-block;
}

.timeline-card h3 {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.timeline-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.brutal-icon {
  position: absolute;
  bottom: -18px;
  right: 20px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-yellow);
  border: 3px solid var(--text-primary);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--text-primary);
  font-size: 20px;
  transition: all 0.3s ease;
}

.timeline-card:hover .brutal-icon {
  transform: scale(1.1) rotate(-5deg);
}

.accent-icon {
  background: var(--accent-primary);
  color: var(--text-light);
}

/* Perspective Card */
.perspective-card {
  transform-style: preserve-3d;
  transition: transform var(--transition-smooth);
}

.perspective-card:hover {
  transform: perspective(1000px) rotateY(5deg) rotateX(2deg);
}

.timeline-item:nth-child(even) .perspective-card:hover {
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
}

/* =============================================
   SERVICES SECTION
   ============================================= */
.services-section {
  background: var(--bg-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 10px;
}

.service-card {
  padding: 40px 30px;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-icon {
  margin: 0 auto 24px;
}

.service-card h3 {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.service-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.brutal-mini-tag {
  padding: 6px 12px;
  background: var(--bg-primary);
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* =============================================
   EXPERIENCE SECTION
   ============================================= */
.experience-section {
  background: var(--bg-secondary);
}

.experience-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 10px;
}

.experience-card {
  padding: 32px;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

.experience-card.visible {
  opacity: 1;
  transform: translateX(0);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.exp-title-group h3 {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.exp-company {
  font-size: 15px;
  color: var(--text-secondary);
}

.exp-meta {
  text-align: right;
}

.brutal-badge-sm {
  display: inline-block;
  padding: 6px 12px;
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.brutal-badge-sm.current {
  background: var(--accent-tertiary);
}

.brutal-badge-sm.freelance {
  background: var(--accent-yellow);
}

.brutal-badge-sm.past {
  background: var(--accent-secondary);
  color: var(--text-light);
}

.exp-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.exp-highlights {
  list-style: none;
}

.exp-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  font-size: 15px;
  border-bottom: 1px dashed var(--text-muted);
}

.exp-highlights li:last-child {
  border-bottom: none;
}

.exp-highlights i {
  color: var(--accent-primary);
  margin-top: 4px;
}

/* =============================================
   SKILLS SECTION - BENTO GRID
   ============================================= */
.skills-section {
  background: var(--bg-primary);
}

.skills-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 10px;
}

.bento-item {
  padding: 24px 24px 30px 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.bento-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Bento Sizes */
.bento-large {
  grid-column: span 2;
}

.bento-medium {
  grid-column: span 1;
  grid-row: span 2;
}

.bento-small {
  grid-column: span 1;
}

/* Bento Icon - Enhanced */
.bento-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-yellow) 0%, #ffd93d 100%);
  border: 2px solid var(--text-primary);
  border-radius: 14px;
  box-shadow: 2px 2px 0 var(--text-primary);
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 14px;
  transition: all 0.3s ease;
}

.bento-icon:hover {
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 var(--text-primary);
}

.bento-icon.accent-bg {
  background: var(--accent-primary);
  color: var(--text-light);
}

.bento-icon.tech-bg {
  background: var(--accent-secondary);
  color: var(--text-light);
}

.bento-icon.soft-bg {
  background: var(--accent-tertiary);
  color: var(--text-primary);
}

.bento-item h3 {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

/* Bento Tags */
.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bento-tag {
  padding: 8px 14px;
  background: var(--bg-primary);
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

/* Random rotation for playful look */
.bento-tag:nth-child(1) {
  transform: rotate(-2deg);
}

.bento-tag:nth-child(2) {
  transform: rotate(1deg);
}

.bento-tag:nth-child(3) {
  transform: rotate(-1deg);
}

.bento-tag:nth-child(4) {
  transform: rotate(2deg);
}

.bento-tag:nth-child(5) {
  transform: rotate(-1.5deg);
}

.bento-tag:nth-child(6) {
  transform: rotate(1.5deg);
}

.bento-tag:hover {
  background: var(--accent-yellow);
  transform: rotate(0deg) translateY(-3px) scale(1.05);
}

/* =============================================
   PORTFOLIO SECTION
   ============================================= */
.portfolio-marquee-container {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  padding: 20px 0;
  /* Increased padding to prevent clipping */
}

/* ... existing marquee styles ... */

.portfolio-item {
  flex-shrink: 0;
  width: 320px;
  /* Adjusted width for better proportion */
  height: 380px;
  /* Increased height for card style */
  border: var(--border-thick);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-secondary);
  box-shadow: var(--shadow-brutal);
  transition: all var(--transition-fast);
  padding: 36px;
  /* Inner padding for 'frame' look */
  display: flex;
  flex-direction: column;
}

.portfolio-item-img {
  width: 100%;
  height: 240px;
  /* Fixed height for image */
  object-fit: cover;
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

/* Placeholder title/meta to make it look like a card */
.portfolio-item::after {
  content: "VIEW PROJECT";
  position: absolute;
  bottom: 15px;
  left: 0;
  width: 100%;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

/* Note: Since I can't easily add data-id to all HTML in one go without a big replace, I'll skip the attr() and just style the container */

.portfolio-item-caption {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed #ccc;
}

/* =============================================
   MARQUEE DIVIDER
   ============================================= */
.marquee-divider {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  /* Increased padding */
  background: var(--accent-yellow);
  border-top: var(--border-medium);
  border-bottom: var(--border-medium);
  transform: rotate(-2deg) scale(1.1);
  margin: -30px -5%;
  /* Increased negative margin overlap */
  z-index: 10;
  width: 110%;
  left: -5%;
  display: flex;
  /* Ensure centering */
  align-items: center;
}

.marquee-divider.marquee-reverse {
  transform: rotate(2deg) scale(1.1);
  background: var(--accent-primary);
}

.marquee-divider.marquee-reverse .marquee-track span {
  color: var(--text-light);
}

.marquee-divider.marquee-reverse .marquee-track {
  animation-direction: reverse;
}

/* =============================================
   MARQUEE (PERFORMANCE OPTIMIZED)
   ============================================= */
.marquee-track {
  display: flex;
  white-space: nowrap;
  gap: 40px;
  animation: marqueeScroll 20s linear infinite;
  will-change: transform; /* Hint for GPU */
}

.marquee-track span {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 3px;
  text-transform: uppercase;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-section {
  background: var(--accent-yellow);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-card {
  padding: 40px 30px;
  text-align: center;
  background: var(--bg-secondary);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.contact-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-icon {
  margin: 0 auto 24px;
}

.contact-card h3 {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-card p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.contact-link {
  font-size: 14px;
}

.location-text {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
}

/* Social Section */
.social-section {
  text-align: center;
}

.social-section h3 {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.brutal-btn-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 22px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: var(--radius-md);
}

.brutal-btn-icon:hover {
  background: var(--accent-primary);
  color: var(--text-light);
}

/* =============================================
   FOOTER
   ============================================= */
.brutal-footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 40px 0;
  border-top: var(--border-thick);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1px;
}

.footer-nav {
  display: flex;
  gap: 30px;
}

.footer-nav a {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--accent-yellow);
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(1deg);
  }
}

@keyframes floatBadge {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes scrollBounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }
}

@keyframes glitch1 {
  0%,
  100% {
    clip-path: inset(0 0 90% 0);
    transform: translate(-2px, -2px);
  }

  25% {
    clip-path: inset(20% 0 60% 0);
    transform: translate(2px, 2px);
  }

  50% {
    clip-path: inset(40% 0 40% 0);
    transform: translate(-2px, 2px);
  }

  75% {
    clip-path: inset(60% 0 20% 0);
    transform: translate(2px, -2px);
  }
}

@keyframes glitch2 {
  0%,
  100% {
    clip-path: inset(90% 0 0 0);
    transform: translate(2px, 2px);
  }

  25% {
    clip-path: inset(60% 0 20% 0);
    transform: translate(-2px, -2px);
  }

  50% {
    clip-path: inset(40% 0 40% 0);
    transform: translate(2px, -2px);
  }

  75% {
    clip-path: inset(20% 0 60% 0);
    transform: translate(-2px, 2px);
  }
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-grid-bg {
    display: none;
  }

  .hero-cta {
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .section-dots,
  .scroll-indicator {
    display: none;
  }

  .scroll-hint {
    bottom: 20px;
    font-size: 10px;
  }

  .brutal-arrow {
    width: 32px;
    height: 44px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 50px;
  }

  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hero-content {
    gap: 30px;
  }

  .hero-tagline {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 16px;
    right: 16px;
    background: var(--bg-secondary);
    border: 3px solid var(--text-primary);
    border-radius: var(--radius-md);
    flex-direction: column;
    padding: 16px;
    gap: 0;
    box-shadow: var(--shadow-brutal);
    z-index: 9999;
  }

  .nav-menu.active {
    display: flex !important;
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    letter-spacing: 1px;
    margin-bottom: 4px;
    display: inline-block;
    position: relative;
  }

  .nav-link::after {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 16px;
    width: 0;
    height: 3px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
  }

  .nav-link:last-child {
    margin-bottom: 0;
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    width: calc(100% - 32px);
  }

  .nav-link:hover,
  .nav-link.active {
    background: transparent;
    color: var(--accent-primary);
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  /* Clean Mobile Timeline */
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding: 0 0 0 60px; /* Space for line */
    justify-content: flex-start;
    transform: none;
    width: 100%;
  }

  /* Move Line to Left (Container Relative) */
  .timeline-line-brutal {
    left: 20px;
    transform: translateX(-50%);
  }

  /* Adjust Markers (Item Relative, Offset Matches Container Line) */
  .brutal-marker {
    left: 0; /* Aligns with Container Left: 20px due to padding */
    top: 28px;
    transform: translateX(-50%) rotate(45deg);
    z-index: 5;
  }

  /* HORIZONTAL CONNECTOR LINE */
  .timeline-item::before {
    display: block !important;
    content: '';
    position: absolute;
    left: 0; /* Start at Marker center */
    top: 37px;
    width: 60px; /* Reach the card content (padding-left 60px) */
    height: 3px;
    background: var(--text-primary);
    z-index: 1;
  }

  /* Cards fill remaining width */
  .timeline-card {
    width: 100%;
    max-width: 100%;
    margin-top: 5px; /* Slight offset */
  }

  /* RESET ARROWS to Point LEFT for ALL cards */
  .timeline-item:nth-child(odd) .timeline-card::before,
  .timeline-item:nth-child(even) .timeline-card::before {
    left: auto;
    right: 100%; /* Position on left edge */
    top: 24px;
    border-width: 10px 14px 10px 0;
    border-color: transparent var(--text-primary) transparent transparent;
    z-index: 2;
  }

  .timeline-item:nth-child(odd) .timeline-card::after,
  .timeline-item:nth-child(even) .timeline-card::after {
    left: auto;
    right: 100%;
    top: 25px; /* Adjust for border width diff */
    border-width: 9px 13px 9px 0;
    border-color: transparent var(--bg-secondary) transparent transparent;
    z-index: 3;
  }

  /* Reset odd/even specific overrides from desktop */
  .timeline-item:nth-child(odd) .timeline-card::before {
     right: 100%; left: auto; /* Force reset */
  }

  /* Remove old pseudo elements if any (but keep item::before active now) */
  .journey-timeline::before,
  .journey-timeline::after {
    display: none;
  }

  .timeline-item {
    margin-bottom: 50px;
  }

  .timeline-card {
    max-width: 100%;
    padding: 20px;
    border-radius: 12px 12px 12px 4px !important;
  }

  .timeline-card h3 {
    font-size: 17px;
  }

  .timeline-card p {
    font-size: 14px;
  }

  .profile-image-wrapper {
    width: 180px;
    height: 180px;
  }

  .profile-stats {
    gap: 10px;
  }

  .floating-badge {
    display: none;
  }

  .stat-item {
    padding: 10px;
  }

  .stat-number {
    font-size: 24px;
  }

  .stat-label {
    font-size: 10px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .brutal-icon {
    width: 36px;
    height: 36px;
    font-size: 14px;
    bottom: -12px;
  }

  .service-card,
  .experience-card,
  .bento-item,
  .contact-card {
    padding: 20px 16px;
  }

  .service-card h3,
  .experience-card h3,
  .contact-card h3,
  .bento-item h3 {
    font-size: 15px;
  }

  .service-card p,
  .contact-card p {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .services-grid,
  .skills-bento,
  .contact-grid,
  .experience-list {
    gap: 14px;
  }

  .brutal-icon-box {
    width: 56px;
    height: 56px;
    font-size: 22px;
  }

  /* Bento responsive - single column */
  .skills-bento {
    grid-template-columns: 1fr;
  }

  .bento-large,
  .bento-medium,
  .bento-small {
    grid-column: span 1;
    grid-row: span 1;
  }

  .bento-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .bento-tags {
    gap: 6px;
  }

  .bento-tag {
    padding: 6px 10px;
    font-size: 11px;
  }

  .exp-highlights li {
    padding: 10px 0;
    font-size: 14px;
  }

  /* Disable ALL 3D and hover effects on mobile */
  .brutal-card-3d:hover,
  .perspective-card:hover,
  .brutal-card:hover,
  .timeline-card:hover,
  .service-card:hover,
  .experience-card:hover,
  .bento-item:hover,
  .contact-card:hover,
  [data-tilt]:hover {
    transform: none !important;
    box-shadow: var(--shadow-brutal) !important;
  }

  .brutal-icon-box:hover,
  .bento-icon:hover,
  .brutal-icon:hover {
    transform: none !important;
  }

  .profile-card-3d {
    animation: none;
  }

  .perspective-card {
    transform-style: flat;
  }

  /* Portfolio Mobile Adjustments */
  .portfolio-marquee-track {
    gap: 20px;
    padding: 30px 10px;
  }

  .portfolio-item {
    width: 100%;
    max-width: 280px;
    /* Resize for mobile */
    height: 300px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 40px;
  }

  .container {
    padding: 0 16px;
  }

  .title-name {
    font-size: 24px;
  }

  .title-line:first-child {
    font-size: 18px;
  }

  .section-title {
    font-size: 20px;
  }

  .section-tag {
    padding: 5px 10px;
    font-size: 10px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 10px;
  }

  .brutal-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 12px;
  }

  .profile-image-wrapper {
    width: 160px;
    height: 160px;
  }

  .profile-card-3d {
    padding: 20px;
  }

  .exp-header {
    flex-direction: column;
    gap: 10px;
  }

  .exp-meta {
    text-align: left;
  }

  .brutal-icon-box {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .contact-grid,
  .skills-grid {
    gap: 14px;
  }

  .social-links {
    gap: 10px;
  }

  .brutal-btn-icon {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }

  .nav-logo {
    font-size: 22px;
  }

  .morph-word {
    font-size: 13px;
    padding: 3px 10px;
  }
}

/* =============================================
   MODAL STYLES
   ============================================= */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  padding: 20px;
}

.modal-content {
  background-color: var(--bg-secondary);
  margin: 5% auto;
  padding: 20px;
  border: var(--border-thick);
  width: 100%;
  max-width: 1000px;
  position: relative;
  box-shadow: var(--shadow-brutal-lg);
  animation: fadeInUp 0.4s ease;
}

.close-modal {
  color: var(--text-primary);
  float: right;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  line-height: 20px;
}

.close-modal:hover,
.close-modal:focus {
  color: var(--accent-primary);
  text-decoration: none;
  cursor: pointer;
}

#modalTitle {
  font-family: var(--font-mono);
  text-transform: uppercase;
  margin-bottom: 20px;
  border-bottom: var(--border-medium);
  padding-bottom: 10px;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 10px;
}

.modal-gallery img {
  width: 100%;
  height: auto;
  border: var(--border-thin);
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.modal-gallery img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-brutal);
}

/* =============================================
   REVEAL ANIMATIONS
   ============================================= */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-item:nth-child(1) {
  transition-delay: 0s;
}

.reveal-item:nth-child(2) {
  transition-delay: 0.15s;
}

.reveal-item:nth-child(3) {
  transition-delay: 0.3s;
}

/* Portfolio Item Clickable */
.portfolio-item {
  cursor: pointer;
}

.portfolio-item:hover {
  cursor: pointer;
}

/* =============================================
   MODAL STYLES
   ============================================= */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-content {
  background: var(--bg-secondary);
  margin: 5% auto;
  padding: 30px;
  width: 90%;
  max-width: 1000px;
  max-height: 85vh;
  overflow-y: auto;
  border: var(--border-thick);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-brutal-lg);
  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px;
  font-weight: bold;
  color: var(--text-primary);
  cursor: pointer;
  transition: color 0.2s ease;
  z-index: 10;
}

.close-modal:hover {
  color: var(--accent-primary);
}

#modalTitle {
  font-family: var(--font-mono);
  font-size: 24px;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: var(--border-medium);
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 10px;
}

.modal-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  border: var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-brutal);
  transition: all 0.3s ease;
  cursor: pointer;
  background: var(--bg-primary);
}

.modal-gallery img:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: var(--shadow-brutal-lg);
  border-color: var(--accent-primary);
}

@media (max-width: 600px) {
  .modal-content {
    margin: 5% auto;
    padding: 15px;
    width: 95%;
  }

  .modal-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .modal-gallery img {
    height: 150px;
  }

  #modalTitle {
    font-size: 16px;
  }
}

/* Lightbox for full image view */
.lightbox {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border: var(--border-thick);
  border-radius: var(--radius-md);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 100000;
}

.lightbox-close:hover {
  color: var(--accent-primary);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  font-size: 40px;
  color: white;
  padding: 20px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--accent-primary);
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

@media (max-width: 768px) {
  .lightbox-nav {
    font-size: 24px;
    width: 40px;
    height: 40px;
    padding: 10px;
  }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

/* Fix collection-info layout */
.collection-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.collection-info h3 {
  font-size: 14px;
  margin-bottom: 0;
}

.collection-info p {
  margin-bottom: 0;
  font-size: 11px;
}

.count-badge {
  align-self: flex-start;
  margin-top: 4px;
}

/* Mobile fix for collection-info */
@media (max-width: 600px) {
  .collection-info {
    gap: 4px;
    padding: 0;
  }

  .collection-info h3 {
    font-size: 12px;
    line-height: 1.2;
  }

  .collection-info p {
    font-size: 10px;
    line-height: 1.2;
  }

  .count-badge {
    font-size: 8px;
    padding: 3px 6px;
    margin-top: 2px;
  }

  .portfolio-item {
    padding: 10px;
  }

  .collection-preview {
    margin-bottom: 8px;
  }
}
