/* ==========================================================================
   PREMIUM FLAT WHITE DESIGN SYSTEM - SPACE THEME WITH DUAL MODES
   ========================================================================== */

:root {
  /* Dark Theme Variables (Default) */
  --bg-deep: #000000;
  --bg-space: #000000;
  --color-primary: #ffffff;
  --color-secondary: #a3a3ac;
  --color-dim: #5c5c64;
  
  /* Accent Colors (Red & Orange) */
  --accent-red: #ef4444; /* Red */
  --accent-orange: #f97316; /* Orange */
  --accent-blue: #f97316; /* Orange */
  --accent-cyan: #ef4444; /* Red */
  --accent-pink: #ef4444; /* Red */
  --accent-purple: #ef4444; /* Red */
  --accent-green: #10b981;
  
  /* Glassmorphism Settings */
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-bg-hover: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-hover: rgba(255, 255, 255, 0.12);
  --card-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
  --glass-blur: blur(16px);
  
  /* Navigation Variables */
  --nav-bg: rgba(10, 10, 12, 0.5);
  --nav-border: rgba(255, 255, 255, 0.06);
  --nav-text: rgba(255, 255, 255, 0.45);
  --nav-text-hover: rgba(255, 255, 255, 0.95);
  --nav-active-bg: #ffffff;
  --nav-active-color: #000000;
  --status-bg: rgba(255, 255, 255, 0.03);

  /* Premium Typography Variables */
  --font-headings: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

html[data-theme="light"] {
  /* Light Theme Variables Override (Keep deep black as background) */
  --bg-deep: #000000;
  --bg-space: #000000;
  --color-primary: #ffffff;
  --color-secondary: #a3a3ac;
  --color-dim: #5c5c64;
  
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-bg-hover: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-hover: rgba(255, 255, 255, 0.12);
  --card-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
  
  --nav-bg: rgba(10, 10, 12, 0.5);
  --nav-border: rgba(255, 255, 255, 0.06);
  --nav-text: rgba(255, 255, 255, 0.45);
  --nav-text-hover: rgba(255, 255, 255, 0.95);
  --nav-active-bg: #ffffff;
  --nav-active-color: #000000;
  --status-bg: rgba(255, 255, 255, 0.03);
}

/* ==========================================================================
   RESET & GLOBAL BUILD
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--color-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  transition: background-color 0.5s ease;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  background-color: var(--bg-space);
  overflow-x: hidden;
  cursor: none;
  transition: background-color 0.5s ease, color 0.5s ease;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: none;
}

button, input, textarea {
  font-family: inherit;
  background: none;
  border: none;
  outline: none;
  cursor: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
}
html[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.15);
}

/* Smooth theme transitions on common widgets */
header, section, nav, .tilt-3d-card, .stat-card, .timeline-content, .contact-form-panel, input, textarea, button {
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

/* ==========================================================================
   BACKGROUND VISUAL EFFECTS
   ========================================================================== */

#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3;
  pointer-events: none;
  opacity: 0.35;
  transition: opacity 0.5s ease;
}

html[data-theme="light"] #starfield {
  opacity: 0.08;
}

.nebula-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(160px);
  opacity: 0.1;
  z-index: -2;
  pointer-events: none;
  mix-blend-mode: screen;
  transition: opacity 0.5s ease;
}

html[data-theme="light"] .nebula-glow {
  opacity: 0.03;
}

.nebula-glow.red {
  top: -20%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--accent-red) 0%, transparent 70%);
  animation: float-slow 35s infinite alternate ease-in-out;
}

.nebula-glow.orange {
  bottom: -15%;
  right: -5%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--accent-orange) 0%, transparent 70%);
  animation: float-slow 40s infinite alternate-reverse ease-in-out;
}

/* ==========================================================================
   WEBGL CANVAS CONTAINER
   ========================================================================== */

.transition-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.transition-image-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */

.custom-cursor {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: width 0.3s var(--transition-smooth), height 0.3s var(--transition-smooth), border-color 0.3s ease, background-color 0.3s ease;
}

html[data-theme="light"] .custom-cursor {
  border-color: rgba(15, 23, 42, 0.4);
}

.custom-cursor-dot {
  width: 4px;
  height: 4px;
  background-color: var(--color-primary);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.1s ease, background-color 0.3s ease;
}

.custom-cursor.hovered {
  width: 40px;
  height: 40px;
  border-color: rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .custom-cursor.hovered {
  border-color: rgba(15, 23, 42, 0.15);
  background-color: rgba(15, 23, 42, 0.05);
}

.custom-cursor-dot.hovered {
  transform: translate(-50%, -50%) scale(1.5);
}

@media (hover: none) and (pointer: coarse) {
  .custom-cursor, .custom-cursor-dot {
    display: none !important;
  }
  body {
    cursor: auto !important;
  }
}

/* ==========================================================================
   HEADER / TOP BAR
   ========================================================================== */

.top-nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 6%;
  z-index: 99;
  background: transparent !important;
  backdrop-filter: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  pointer-events: none;
}

.logo-link, .nav-home-btn {
  pointer-events: auto;
}

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

.nav-logo {
  height: 120px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.04);
}

.nav-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-home-btn svg {
  transition: transform 0.3s ease;
}

.nav-home-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.1);
}

.nav-home-btn:hover svg {
  transform: scale(1.1);
}

/* ==========================================================================
   LAYOUT WRAPPER
   ========================================================================== */

.content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 80px;
}

.section-header {
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-secondary);
  margin-bottom: 12px;
}

.section-heading {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  color: var(--color-primary);
  font-family: var(--font-headings);
}

/* ==========================================================================
   1. HERO SECTION - WITH BACKDROP IMAGE AND GEOMETRIC GRID OVERLAYS
   ========================================================================== */

.hero-section {
  position: relative;
  height: 100vh;
  text-align: center;
  align-items: center;
  justify-content: center;
  padding: 0;
  
  /* Responsive covers pointing to raw image path with dark overlays */
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.95) 100%), url('img/hero%20image.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transition: background-image 0.5s ease;
}

html[data-theme="light"] .hero-section {
  /* Light theme image overlay */
  background-image: linear-gradient(to bottom, rgba(248, 250, 252, 0.45) 0%, rgba(248, 250, 252, 0.98) 100%), url('img/hero%20image.png');
}

/* Futuristic grid repeating layout */
.hero-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 45px 45px;
  background-position: center center;
  z-index: 0;
  pointer-events: none;
}

html[data-theme="light"] .hero-grid-overlay {
  background-image: linear-gradient(rgba(15, 23, 42, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
}

.hero-content {
  max-width: 900px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Identical and bold text scaling based on highlighted photo reference */
.hero-name {
  font-size: 4.8rem;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 5px;
  color: var(--color-primary);
  font-family: var(--font-headings);
  animation: reveal-text 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title {
  font-size: 4.8rem;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 28px;
  color: var(--color-primary);
  font-family: var(--font-headings);
  animation: reveal-text-delayed 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-subtitle {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-secondary);
  line-height: 1.75;
  max-width: 500px;
  margin: 0 auto;
  animation: fade-up 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scroll indicator */
.scroll-down-indicator {
  position: absolute;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-dim);
}

.scroll-down-indicator .mouse {
  width: 18px;
  height: 28px;
  border: 1.5px solid var(--color-dim);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.scroll-down-indicator .wheel {
  width: 3px;
  height: 5px;
  background-color: var(--color-primary);
  border-radius: 99px;
  animation: mouse-scroll 1.6s infinite;
}

/* ==========================================================================
   2. ABOUT ME SECTION - PREMIUM RED/ORANGE DUAL GRID
   ========================================================================== */

.about-section {
  background-color: #000000 !important; /* Deep black bg */
  padding: 120px 0 100px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-main-img {
  width: 100%;
  max-width: 450px;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  filter: grayscale(100%) contrast(1.1) brightness(0.85);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.about-main-img:hover {
  transform: scale(1.02);
  filter: grayscale(100%) contrast(1.2) brightness(0.95);
}

.about-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ef4444; /* Red tag */
  letter-spacing: 2px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.about-main-title {
  font-size: 3.2rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-headings);
  line-height: 1.1;
  margin-bottom: 15px;
  letter-spacing: -1px;
}

.about-main-title .accent-text {
  color: #f97316; /* Orange text */
}

.about-title-line {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #ef4444, #f97316);
  margin-bottom: 25px;
  border-radius: 99px;
}

.about-desc-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-secondary);
  margin-bottom: 35px;
}

.about-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  width: 100%;
}

.about-feature-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-icon {
  color: #f97316; /* Orange icon */
  filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.4));
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-feature-item h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-sans);
}

.feature-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--color-secondary);
}

/* ==========================================================================
   3. 3D SHAPE STYLE COMPETENCY CARDS (Skills Section)
   ========================================================================== */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  perspective: 1500px;
}

.skills-category-card {
  position: relative;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 28px;
  padding: 40px 30px;
  backdrop-filter: var(--glass-blur);
  transform-style: preserve-3d;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.skills-category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(239, 68, 68, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.skills-category-card:hover::before {
  opacity: 1;
}

.skills-category-card:hover {
  border-color: rgba(249, 115, 22, 0.2);
  box-shadow: 0 30px 60px rgba(239, 68, 68, 0.1);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--color-primary);
  transform: translateZ(35px);
}

.skills-category-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 35px;
  transform: translateZ(25px);
  font-family: var(--font-headings);
  letter-spacing: -0.3px;
}

.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateZ(20px);
}

.skill-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.25s ease;
}

.skill-list-item:hover {
  transform: translateX(4px);
}

.sk-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 7px #f97316;
  flex-shrink: 0;
}

.skill-list-item:nth-child(even) .sk-dot {
  background: #ef4444;
  box-shadow: 0 0 7px #ef4444;
}

.sk-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  font-family: var(--font-sans);
}

.sk-line {
  flex: 1;
  border-bottom: 2px dotted rgba(255, 255, 255, 0.12);
  margin-bottom: 2px;
  min-width: 20px;
}

/* ==========================================================================
   4. PROJECTS SECTION - 3D TILT CARDS
   ========================================================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  perspective: 1200px;
}

.project-card {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.project-img-container {
  height: 170px;
  width: 100%;
  position: relative;
  background: rgba(0, 0, 0, 0.15);
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(15px);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.project-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-thumbnail {
  transform: scale(1.06);
}

/* Info container for project */
.project-info {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
  transform: translateZ(10px);
}

.project-meta {
  font-size: 0.7rem;
  color: var(--color-dim);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.project-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-primary);
  font-family: var(--font-headings);
}

.project-info p {
  font-size: 0.85rem;
  color: var(--color-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.project-tags span {
  font-size: 0.68rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  color: var(--color-secondary);
  padding: 4px 10px;
  border-radius: 99px;
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: var(--transition-fast);
}

.project-link-btn svg {
  transition: transform 0.3s ease;
}

.project-link-btn:hover svg {
  transform: translate(2px, -2px);
}

/* ==========================================================================
   5. EXPERIENCE TIMELINE SECTION
   ========================================================================== */

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 10px;
  width: 2px;
  height: 96%;
  background: linear-gradient(to bottom, var(--accent-red), rgba(239, 68, 68, 0.15) 50%, transparent 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 45px;
  padding-left: 60px;
}

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

.timeline-marker {
  position: absolute;
  left: 20px;
  top: 4px;
  transform: translateX(-50%);
  z-index: 10;
}

.marker-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-space);
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  transition: var(--transition-smooth);
}

.timeline-item:hover .marker-dot {
  background: var(--accent-red);
  border-color: var(--accent-red);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.8);
}

.timeline-content {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--card-shadow);
}

.timeline-item:hover .timeline-content {
  border-color: rgba(239, 68, 68, 0.25);
  background: var(--glass-bg-hover);
  transform: translateX(8px);
  box-shadow: 0 25px 50px rgba(239, 68, 68, 0.06);
}

.timeline-date {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-red);
  background: rgba(239, 68, 68, 0.05);
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 14px;
  border: 1px solid rgba(239, 68, 68, 0.2);
  letter-spacing: 0.5px;
}

.timeline-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
  font-family: var(--font-headings);
}

.company-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-secondary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-orange);
  background: rgba(249, 115, 22, 0.06);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(249, 115, 22, 0.25);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.timeline-content p {
  font-size: 0.85rem;
  color: var(--color-secondary);
  line-height: 1.65;
}

.timeline-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-content li {
  font-size: 0.82rem;
  color: var(--color-secondary);
  line-height: 1.5;
  position: relative;
  padding-left: 18px;
}

.timeline-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-red);
}

/* ==========================================================================
   6. CONTACT SECTION
   ========================================================================== */

.contact-section {
  position: relative;
  background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.75) 50%, rgba(0, 0, 0, 0.95) 100%), url('img/connect_section.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 32px;
  padding: 80px 48px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  margin-bottom: 80px;
}

.contact-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}

.contact-info-panel h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  font-family: var(--font-headings);
}

.contact-info-panel p {
  color: var(--color-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 40px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.contact-method-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 18px 24px;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.method-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.contact-method-item:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateX(6px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.contact-method-item:hover .method-icon {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: scale(1.05);
}

.contact-method-item.copy-email:hover {
  border-color: rgba(239, 68, 68, 0.25);
  box-shadow: 0 15px 40px rgba(239, 68, 68, 0.08);
}

.contact-method-item.copy-phone:hover {
  border-color: rgba(249, 115, 22, 0.25);
  box-shadow: 0 15px 40px rgba(249, 115, 22, 0.08);
}

.method-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.method-details .label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-dim);
  font-weight: 700;
}

.method-details a, .method-details .val {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-primary);
}

.method-details a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--status-bg);
  border: 1px solid var(--glass-border);
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.social-links a:hover {
  color: var(--color-primary);
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
}

/* Connect Details Interactivity */
.copy-hint {
  font-size: 0.65rem;
  color: var(--accent-orange);
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-left: 6px;
  font-weight: 600;
  text-transform: none;
}

.contact-method-item:hover .copy-hint {
  opacity: 0.85;
}

.copy-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.3;
  transition: var(--transition-smooth);
  margin-left: auto;
  color: var(--color-primary);
}

.contact-method-item:hover .copy-action-btn {
  opacity: 0.9;
  color: var(--accent-red);
}

/* Contact Channels Panel */
.contact-channels-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 35px;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.connect-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 35px 28px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
  overflow: hidden;
  transform-style: preserve-3d;
  box-shadow: var(--card-shadow);
}

html[data-theme="light"] .connect-card {
  background: rgba(15, 23, 42, 0.015);
}

.connect-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.connect-card.github-card::before {
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(239, 68, 68, 0.08) 0%, transparent 60%);
}

.connect-card.resume-card::before {
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(249, 115, 22, 0.08) 0%, transparent 60%);
}

.connect-card:hover::before {
  opacity: 1;
}

.connect-card .card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: var(--transition-smooth);
  transform: translateZ(35px);
}

.connect-card:hover .card-icon {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
}

.connect-card.github-card:hover .card-icon {
  color: var(--accent-red);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.25);
}

.connect-card.resume-card:hover .card-icon {
  color: var(--accent-orange);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.25);
  border-color: rgba(249, 115, 22, 0.25);
}

.connect-card .card-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateZ(25px);
}

.connect-card .card-content h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-headings);
  letter-spacing: -0.3px;
}

.connect-card .card-content p {
  font-size: 0.82rem;
  color: var(--color-secondary);
  line-height: 1.6;
}

.connect-card .card-link-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-dim);
  transition: var(--transition-smooth);
  transform: translateZ(20px);
}

.connect-card:hover .card-link-label {
  color: var(--color-primary);
}

.connect-card.github-card:hover {
  border-color: rgba(239, 68, 68, 0.25);
  box-shadow: 0 30px 60px rgba(239, 68, 68, 0.12);
}

.connect-card.resume-card:hover {
  border-color: rgba(249, 115, 22, 0.25);
  box-shadow: 0 30px 60px rgba(249, 115, 22, 0.12);
}

/* Availability & Status Card */
.availability-status-card {
  padding: 28px 30px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition-smooth);
  box-shadow: var(--card-shadow);
}

html[data-theme="light"] .availability-status-card {
  background: rgba(15, 23, 42, 0.015);
}

.availability-status-card:hover {
  border-color: var(--glass-border-hover);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.status-text {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-green);
}

.availability-status-card p {
  font-size: 0.85rem;
  color: var(--color-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   7. FLOATING CAPSULE NAVIGATION - WITH MODERN SLIDING INDICATOR
   ========================================================================== */

.pill-navigation {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 1000;
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  border-radius: 999px;
  padding: 5px 8px;
  backdrop-filter: blur(24px);
  box-shadow: var(--card-shadow);
  animation: slide-up-nav 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: background-color 0.5s ease, border-color 0.5s ease;
}

.nav-links-container {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
}

/* Sliding active indicator capsule */
.nav-active-indicator {
  position: absolute;
  height: 32px;
  background: var(--nav-active-bg);
  border-radius: 999px;
  z-index: 0;
  transition: left 0.38s cubic-bezier(0.25, 1, 0.5, 1), width 0.38s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.12);
}

html[data-theme="light"] .nav-active-indicator {
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.08);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--nav-text);
  transition: color 0.3s ease;
  position: relative;
  z-index: 1; /* Sits above sliding capsule */
  background: none !important; /* Managed dynamically by indicators */
  box-shadow: none !important;
}

.nav-dot {
  width: 0px;
  height: 0px;
  background-color: var(--nav-active-color);
  border-radius: 50%;
  transition: var(--transition-smooth);
  opacity: 0;
}

.nav-link:hover {
  color: var(--nav-text-hover);
}

.nav-link.active {
  color: var(--nav-active-color) !important;
}

.nav-link.active .nav-dot {
  width: 4px;
  height: 4px;
  opacity: 1;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */

.toast-container {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: rgba(10, 10, 15, 0.92);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 14px 18px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  animation: toast-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

html[data-theme="light"] .toast {
  background: rgba(255, 255, 255, 0.92);
  color: #000;
}

.toast.success {
  border-left: 3px solid var(--accent-green);
}

/* ==========================================================================
   SCROLL REVEAL UTILITIES
   ========================================================================== */

.scroll-reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */

@keyframes float-slow {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes pulse-green {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes mouse-scroll {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(5px); opacity: 0.3; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes slide-up-nav {
  0% { transform: translateX(-50%) translateY(30px); opacity: 0; }
  100% { transform: translateX(-50%) translateY(0); opacity: 1; }
}

@keyframes toast-in {
  0% { transform: translateX(40px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes reveal-text {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes reveal-text-delayed {
  0% { opacity: 0; transform: translateY(20px); }
  30% { opacity: 0; }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fade-up {
  0% { opacity: 0; transform: translateY(15px); }
  50% { opacity: 0; }
  100% { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 1024px) {
  .section-heading {
    font-size: 2.2rem;
  }
  .hero-name {
    font-size: 3.6rem;
  }
  .hero-title {
    font-size: 3.6rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-profile-box {
    max-width: 280px;
  }
  .skills-grid, .projects-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .top-nav-bar {
    height: 70px;
  }
  .status-container {
    display: none;
  }
  .hero-name {
    font-size: 2.4rem;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .skills-grid, .projects-grid {
    grid-template-columns: 1fr;
    perspective: none;
  }
  .tilt-3d-card {
    transform: none !important;
    box-shadow: var(--card-shadow) !important;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .connect-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .pill-navigation {
    width: 92%;
    bottom: 20px;
    padding: 3px;
  }
  .nav-link {
    padding: 6px 12px;
    font-size: 0.7rem;
    gap: 4px;
  }
  .nav-link .nav-text {
    display: none;
  }
  .nav-link .nav-dot {
    width: 6px;
    height: 6px;
    opacity: 0.6;
    background-color: var(--color-dim);
  }
  .nav-link.active .nav-dot {
    width: 8px;
    height: 8px;
    background-color: var(--nav-active-color);
    opacity: 1;
  }
}
