@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #161616;
  --text-primary: #ffffff;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --accent: #00ff88;
  --accent-hover: #00cc6a;
  --accent-light: #33ff99;
  --accent-dark: #00aa55;
  --accent-secondary: #ff6b6b;
  --accent-tertiary: #4ecdc4;
  --success: #10b981;
  --warning: #f59e0b;
  --border: #374151;
  --border-hover: #4b5563;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-hover: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 24px 96px rgba(0, 0, 0, 0.6);
  --glow-green: 0 0 30px rgba(0, 255, 136, 0.3);
  --glow-red: 0 0 30px rgba(255, 107, 107, 0.3);
  --glow-cyan: 0 0 30px rgba(78, 205, 196, 0.3);
}

[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --accent: #22d3ee;
  --accent-hover: #0ea5e9;
  --accent-light: #38bdf8;
  --accent-dark: #0891b2;
  --accent-secondary: #dc2626;
  --accent-tertiary: #0891b2;
  --glass: rgba(255, 255, 255, 0.85);
  --glass-hover: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(0, 0, 0, 0.08);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 24px 96px rgba(0, 0, 0, 0.15);
  --glow-green: 0 0 25px rgba(34, 211, 238, 0.18);
  --glow-red: 0 0 25px rgba(220, 38, 38, 0.25);
  --glow-cyan: 0 0 25px rgba(8, 145, 178, 0.25);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Simplified Light Mode Background */
[data-theme="light"] body {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

/* Simplified Background Animation - Reduced opacity and removed complex animations */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.15;
}

.bg-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 255, 136, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
}

[data-theme="light"] .bg-grid {
  background-image: 
    linear-gradient(rgba(5, 150, 105, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 150, 105, 0.04) 1px, transparent 1px);
}

/* Simplified floating elements - fewer elements, simpler animation */
.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
}

.floating-element {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  animation: float 12s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  width: 3px;
  height: 3px;
  background: var(--accent);
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  width: 2px;
  height: 2px;
  background: var(--accent-secondary);
  top: 60%;
  left: 85%;
  animation-delay: 4s;
}

/* Simplified Header - Removed complex backdrop effects */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  background: rgba(10, 10, 10, 0.9);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

[data-theme="light"] .header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(5, 150, 105, 0.1);
}

.header.scrolled {
  padding: 1rem 0;
  box-shadow: var(--shadow);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Simplified Logo - Keep the main effect but reduce complexity */
.logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  transition: transform 0.2s ease;
}

.logo::before {
  content: '< ';
  color: var(--accent);
}

.logo::after {
  content: ' />';
  color: var(--accent);
}

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

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

/* Simplified Nav Links - Keep underline effect but remove complex backgrounds */
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  transition: color 0.2s ease;
  position: relative;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
  transform: translateX(-50%);
  border-radius: 1px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link.active::before,
.nav-link:hover::before {
  width: 50%;
}

/* Simplified Theme Toggle - Keep the main interaction */
.theme-toggle {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  width: 60px;
  height: 32px;
  cursor: pointer;
  transition: border-color 0.3s ease;
  display: flex;
  align-items: center;
  position: relative;
  padding: 2px;
}

[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.theme-toggle-ball {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 50%;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.theme-toggle:hover {
  border-color: var(--accent);
}

[data-theme="light"] .theme-toggle-ball {
  transform: translateX(28px);
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

/* Main Content */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  min-height: 100vh;
}

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

.section {
  padding: 4rem 0 4rem;
  animation: fadeInUp 0.8s ease;
  min-height: 100vh;
  scroll-margin-top: 100px; /* Account for fixed header */
}

/* Section-specific styling */
#about {
  padding-top: 4.5rem; /* Reduced padding for first section */
}

#experience {
  background: var(--bg-secondary);
  position: relative;
  padding-top: 4.5rem;
}

#experience::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

#skills {
  background: var(--bg-primary);
  position: relative;
  padding-top: 4.5rem;
}

#skills::before {
  content: '';
  position: absolute;
  top: 2.5rem;
  left: 0;
  width: 4px;
  height: 60px;
  background: linear-gradient(180deg, var(--accent), transparent);
  border-radius: 2px;
  z-index: 2;
}

/* Ensure sections don't conflict with each other */
.section {
  position: relative;
  z-index: 1;
}

/* Light theme adjustments for sections */
[data-theme="light"] #experience {
  background: rgba(248, 250, 252, 0.8);
}

[data-theme="light"] #skills {
  background: rgba(255, 255, 255, 0.9);
}

/* Smooth transition for section backgrounds */
#experience,
#skills {
  transition: background-color 0.3s ease;
}

/* Simplified Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - 4rem);
}

.hero-content {
  position: relative;
}

.hero-content::before {
  content: '';
  position: absolute;
  top: -2rem;
  left: -2rem;
  width: 4px;
  height: 60px;
  background: linear-gradient(180deg, var(--accent), transparent);
  border-radius: 2px;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  position: relative;
}

.hero-content h1::after {
  content: '_';
  color: var(--accent);
  animation: blink 1.5s infinite;
  font-family: 'JetBrains Mono', monospace;
}

.hero-content .subtitle {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
}

.hero-content .description {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
  font-size: 1.1rem;
  line-height: 1.7;
  font-weight: 400;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Simplified Buttons - Keep main hover effects but remove complex animations */
.btn {
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  position: relative;
  font-family: 'JetBrains Mono', monospace;
  min-width: 140px;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--bg-primary);
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3);
}

.btn-secondary {
  background: var(--glass);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: var(--glass-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--accent);
}

[data-theme="light"] .btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

[data-theme="light"] .btn-secondary:hover {
  background: rgba(5, 150, 105, 0.05);
}

/* Simplified Profile Section - Keep the main visual impact */
.hero-image {
  display: flex;
  justify-content: center;
  position: relative;
}

.profile-container {
  position: relative;
  width: 380px;
  height: 380px;
}

/* Simplified Profile Ring - Keep one main ring animation */
.profile-ring {
  position: absolute;
  border: 2px solid transparent;
  border-radius: 50%;
  animation: rotate 15s linear infinite;
}

.profile-ring:nth-child(1) {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--accent), transparent, var(--accent-secondary), transparent);
  background-clip: border-box;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 2px var(--bg-primary);
}

[data-theme="light"] .profile-ring:nth-child(1) {
  background: linear-gradient(45deg, var(--accent), transparent, var(--accent-tertiary), transparent);
}

.profile-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--glass-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

[data-theme="light"] .profile-image {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border: 3px solid rgba(5, 150, 105, 0.1);
}

.profile-image:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 0 40px rgba(0, 255, 136, 0.3);
}

[data-theme="light"] .profile-image:hover {
  box-shadow: 0 12px 48px rgba(5, 150, 105, 0.2);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Status Indicators - Keep simple pulse */
.status-indicators {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  position: relative;
}

.status-dot.online {
  background: var(--accent);
  animation: pulse 2s infinite;
}

.status-dot.busy {
  background: var(--accent-secondary);
}

/* Simplified Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 0.75rem;
  z-index: 1000;
  box-shadow: var(--shadow);
  max-width: 90vw;
  overflow-x: auto;
}

[data-theme="light"] .mobile-nav {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(5, 150, 105, 0.15);
}

.mobile-nav-content {
  display: flex;
  gap: 0.5rem;
}

.mobile-nav-item {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.7rem;
  cursor: pointer;
  text-align: center;
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  min-width: 60px;
  white-space: nowrap;
}

.mobile-nav-item.active {
  color: var(--bg-primary);
  background: var(--accent);
}

[data-theme="light"] .mobile-nav-item.active {
  color: white;
}

.mobile-nav-item:hover:not(.active) {
  color: var(--accent);
  background: var(--glass-hover);
}

[data-theme="light"] .mobile-nav-item:hover:not(.active) {
  background: rgba(5, 150, 105, 0.08);
}

/* Simplified Animations */
@keyframes fadeInUp {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

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

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

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes floatY {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.tool-item.revealed {
  animation: floatY 2.8s ease-in-out infinite alternate;
}

/* Modern Glassmorphism for Info Paragraphs - No Blur, Animated Glow */
.info-paragraph {
  background: rgba(20, 30, 40, 0.72);
  border-radius: 1.5rem;
  border: 1.5px solid rgba(0,255,136,0.12);
  border-left: 4px solid var(--accent);
  box-shadow: 0 8px 32px rgba(0,255,136,0.08), 0 2px 8px rgba(0,0,0,0.10);
  padding: 2.2rem 2.2rem 2.2rem 2.8rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
  /* No blur */
  transition: box-shadow 0.3s, border-color 0.3s;
}
.info-paragraph::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-light), var(--accent));
  filter: drop-shadow(0 0 8px var(--accent));
  opacity: 0.85;
  animation: borderGlow 2.2s linear infinite alternate;
  z-index: 1;
}
@keyframes borderGlow {
  0% { filter: drop-shadow(0 0 8px var(--accent)); opacity: 0.85; }
  100% { filter: drop-shadow(0 0 18px var(--accent-light)); opacity: 1; }
}
.info-paragraph:hover {
  box-shadow: 0 12px 48px rgba(0,255,136,0.13), 0 4px 16px rgba(0,0,0,0.13);
  border-left-color: var(--accent-light);
}

/* Responsive for mobile */
@media (max-width: 700px) {
  .info-paragraph {
    padding: 1.2rem 1rem 1.2rem 1.3rem;
    border-radius: 1rem;
  }
}

/* Enhanced Reveal Animation with Stagger, Scale (No Blur) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  /* No filter: blur */
  transition: opacity 0.8s cubic-bezier(0.22,0.61,0.36,1), transform 0.8s cubic-bezier(0.22,0.61,0.36,1);
  will-change: opacity, transform;
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: none;
}
.reveal-on-scroll.staggered {
  transition-delay: var(--stagger-delay, 0s);
}

/* Reveal on Scroll Animation */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22,0.61,0.36,1), transform 0.8s cubic-bezier(0.22,0.61,0.36,1);
  will-change: opacity, transform;
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    padding: 0 1.5rem;
  }
  
  .nav {
    display: none;
  }
  
  .mobile-nav {
    display: block;
  }
  
  .main {
    padding: 0 1.5rem 8rem;
  }
  
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .profile-container {
    width: 300px;
    height: 300px;
  }
  
  .profile-image {
    width: 240px;
    height: 240px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .right-content {
    position: static;
    order: -1;
  }

  .interests-container {
    margin-bottom: 2rem;
  }

  .gallery-controls {
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content .subtitle {
    font-size: 1.1rem;
  }
  
  .profile-container {
    width: 260px;
    height: 260px;
  }
  
  .profile-image {
    width: 200px;
    height: 200px;
  }
}

    /* Prevent scroll during page load */
    body {
      scroll-behavior: auto;
    }
    
    .extended-content {
      margin-top: 2rem;
      padding: 4rem 0;
      opacity: 0;
      transform: translateY(80px) scale(0.95);
      transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      position: relative;
    }

    .extended-content.revealed {
      opacity: 1;
      transform: translateY(0) scale(1);
    }

    /* Stagger animations for individual elements */
    .info-paragraph {
      margin-bottom: 3rem;
      padding: 2rem;
      background: var(--glass);
      border: 1px solid var(--glass-border);
      border-radius: 16px;
      backdrop-filter: blur(10px);
      position: relative;
      overflow: hidden;
      opacity: 0;
      transform: translateY(40px);
      transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .extended-content.revealed .info-paragraph {
      opacity: 1;
      transform: translateY(0);
      transition-delay: 0.1s;
      box-shadow: 0 0 30px rgba(0, 255, 136, 0.1);
    }

    .gallery-controls {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      margin-bottom: 0;
      opacity: 0;
      transform: translateY(40px);
      transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .extended-content.revealed .gallery-controls {
      opacity: 1;
      transform: translateY(0);
      transition-delay: 0.2s;
    }

    .interests-container {
      background: var(--glass);
      border: 1px solid var(--glass-border);
      border-radius: 16px;
      padding: 2rem;
      backdrop-filter: blur(10px);
      opacity: 0;
      transform: translateY(40px);
      transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      min-height: 650px;
    }

    .extended-content.revealed .interests-container {
      opacity: 1;
      transform: translateY(0);
      transition-delay: 0.3s;
      box-shadow: 0 0 30px rgba(0, 255, 136, 0.1);
    }

    /* Full width section for paragraph 1 and gallery buttons */
    .full-width-section {
      margin-bottom: 4rem;
    }

    /* Grid layout only for paragraph 2 and Beyond the Code */
    .content-grid {
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: start;
      gap: 3rem;
    }

    .left-content {
      max-width: 700px;
    }

    .info-paragraph::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 4px;
      height: 100%;
      background: linear-gradient(180deg, var(--accent), var(--accent-light));
    }

    .info-paragraph p {
      color: var(--text-secondary);
      line-height: 1.8;
      font-size: 1.15rem;
      margin: 0;
    }

    .gallery-btn {
      background: var(--glass);
      border: 1px solid var(--glass-border);
      border-radius: 12px;
      padding: 1.5rem;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      gap: 1rem;
      text-align: left;
      position: relative;
      overflow: hidden;
    }

    .gallery-btn::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
      transition: left 0.5s ease;
    }

    .gallery-btn:hover::before {
      left: 100%;
    }

    .gallery-btn:hover {
      border-color: var(--accent);
      transform: translateX(4px);
      box-shadow: 0 8px 32px rgba(0, 255, 136, 0.2);
    }

    .gallery-btn-icon {
      width: 24px;
      height: 24px;
      color: var(--accent);
      flex-shrink: 0;
    }

    .gallery-btn-icon svg {
      width: 100%;
      height: 100%;
    }

    .gallery-btn-content {
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
    }

    .gallery-btn-title {
      font-weight: 600;
      color: var(--text-primary);
      font-size: 0.95rem;
    }

    .gallery-btn-subtitle {
      font-size: 0.8rem;
      color: var(--text-muted);
    }

    .right-content,
    .interests-container {
      height: auto !important;
      min-height: 0 !important;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
    }

    .interests-collage {
      position: relative;
      border-radius: 12px;
      overflow: hidden;
      width: 100%;
      max-width: 500px;
      margin: 0 auto;
      display: block;
    }

    .collage-image {
      width: 100%;
      height: auto;
      object-fit: unset;
      display: block;
      border-radius: 12px;
    }

    .interests-header {
      margin-bottom: 1.5rem;
      position: relative;
    }

    .interests-header h3 {
      font-size: 1.3rem;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 0.5rem;
    }

    .interests-line {
      width: 60px;
      height: 3px;
      background: linear-gradient(90deg, var(--accent), var(--accent-light));
      border-radius: 2px;
    }

    /* New Gallery Modal Styles */
    .gallery-modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0, 0, 0, 0.95);
      z-index: 2000;
      display: none;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: opacity 0.3s ease;
      outline: none;
    }

    .gallery-modal.active {
      display: flex;
      opacity: 1;
    }

    .modal-backdrop {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: transparent;
    }

    .gallery-close {
      position: absolute;
      top: 0.5rem;
      right: 2rem;
      background: rgba(0, 0, 0, 0.7);
      border: none;
      color: white;
      width: 48px;
      height: 48px;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
      z-index: 2003;
      backdrop-filter: blur(10px);
    }

    .gallery-close:hover {
      background: rgba(255, 255, 255, 0.2);
      transform: scale(1.1);
    }

    .gallery-close svg {
      width: 20px;
      height: 20px;
    }

    .gallery-title {
      position: absolute;
      top: 0.5rem;
      left: 2rem;
      color: white;
      font-size: 1.2rem;
      font-weight: 600;
      z-index: 2003;
      background: rgba(0, 0, 0, 0.7);
      padding: 0.75rem 1.5rem;
      border-radius: 25px;
      backdrop-filter: blur(10px);
    }

    .gallery-container {
      position: relative;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2001;
    }

    .gallery-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(0, 0, 0, 0.7);
      border: none;
      color: white;
      width: 60px;
      height: 60px;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
      z-index: 2002;
      backdrop-filter: blur(10px);
    }

    .gallery-nav:hover {
      background: rgba(255, 255, 255, 0.2);
      transform: translateY(-50%) scale(1.1);
    }

    .gallery-nav:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    .gallery-nav:disabled:hover {
      transform: translateY(-50%) scale(1);
      background: rgba(0, 0, 0, 0.7);
    }

    .gallery-prev {
      left: 2rem;
    }

    .gallery-next {
      right: 2rem;
    }

    .gallery-nav svg {
      width: 24px;
      height: 24px;
    }

    .gallery-image-container {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 2rem;
    }

    .gallery-image {
      max-width: 95vw;
      max-height: 80vh;
      object-fit: contain;
      border-radius: 8px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
      transition: opacity 0.3s ease;
      width: auto;
      height: auto;
    }

    .gallery-loader {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      display: none;
    }

    .gallery-loader.active {
      display: block;
    }

    .loader-spinner {
      width: 40px;
      height: 40px;
      border: 3px solid rgba(255, 255, 255, 0.3);
      border-radius: 50%;
      border-top-color: white;
      animation: spin 1s ease-in-out infinite;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    .gallery-counter {
      position: absolute;
      bottom: 10rem;
      left: 50%;
      transform: translateX(-50%);
      color: white;
      background: rgba(0, 0, 0, 0.7);
      padding: 0.5rem 1rem;
      border-radius: 20px;
      font-size: 0.9rem;
      z-index: 2003;
      backdrop-filter: blur(10px);
      opacity: 1;
      transition: opacity 0.5s ease;
    }

    .gallery-counter.fade-out {
      opacity: 0;
    }

    .gallery-thumbnails {
      position: absolute;
      bottom: 1rem;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 0.5rem;
      z-index: 2003;
      max-width: 70%;
      overflow-x: auto;
      padding: 0.5rem;
      background: rgba(0, 0, 0, 0.5);
      border-radius: 10px;
      backdrop-filter: blur(10px);
    }

    .gallery-thumbnails::-webkit-scrollbar {
      height: 4px;
    }

    .gallery-thumbnails::-webkit-scrollbar-track {
      background: rgba(255, 255, 255, 0.1);
      border-radius: 2px;
    }

    .gallery-thumbnails::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.3);
      border-radius: 2px;
    }

    .gallery-thumbnail {
      width: 50px;
      height: 35px;
      object-fit: cover;
      border-radius: 4px;
      cursor: pointer;
      opacity: 0.6;
      transition: all 0.3s ease;
      border: 2px solid transparent;
      flex-shrink: 0;
    }

    .gallery-thumbnail:hover {
      opacity: 0.8;
    }

    .gallery-thumbnail.active {
      opacity: 1;
      border-color: var(--accent, #00ff88);
    }

    @media (max-width: 768px) {
      .extended-content {
        margin-top: 4rem;
      }

      .extended-content::before {
        width: 60px;
        top: -2rem;
      }

      .extended-content::after {
        width: 30px;
        top: -1.5rem;
      }

      .full-width-section::before {
        top: -1.5rem;
        font-size: 0.7rem;
      }

      .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
      }

      .right-content {
        position: static;
        order: -1;
      }

      .interests-container {
        margin-bottom: 2rem;
      }

      .gallery-controls {
        margin-bottom: 2rem;
      }

      .gallery-close,
      .gallery-title {
        top: 0.5rem;
      }

      .gallery-close {
        right: 1rem;
        width: 40px;
        height: 40px;
      }

      .gallery-title {
        left: 1rem;
        font-size: 1rem;
        padding: 0.5rem 1rem;
      }

      .gallery-nav {
        width: 50px;
        height: 50px;
      }

      .gallery-prev {
        left: 1rem;
      }

      .gallery-next {
        right: 1rem;
      }

      .gallery-counter {
        bottom: 8rem;
      }

      .gallery-thumbnails {
        bottom: 0.5rem;
        max-width: 90%;
      }

      .gallery-thumbnail {
        width: 45px;
        height: 30px;
      }
    }

    [data-theme="light"] .info-paragraph {
      background: rgba(255, 255, 255, 0.9);
      border: 1px solid rgba(5, 150, 105, 0.15);
    }

    [data-theme="light"] .gallery-btn {
      background: rgba(255, 255, 255, 0.9);
      border: 1px solid rgba(5, 150, 105, 0.15);
    }

    [data-theme="light"] .gallery-btn:hover {
      box-shadow: 0 8px 32px rgba(5, 150, 105, 0.15);
    }

    [data-theme="light"] .interests-container {
      background: rgba(255, 255, 255, 0.9);
      border: 1px solid rgba(5, 150, 105, 0.15);
    }

    /* Remove extra margin on .main and .section */
    .main, .section {
      margin-top: 0 !important;
    }

    @media (max-width: 900px) {
      #about::before,
      #experience::before,
      #skills::before {
        display: none;
      }
    }
    
    