/* ============================================
   MINIMALIST PORTFOLIO - STYLE SYSTEM
   Clean, Modern, Beautiful Animations
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Colors - Eye-soothing Light Theme */
  --bg-primary: #f0f4f8;
  --bg-secondary: #e8eef4;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  
  /* Accent Colors */
  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  
  /* Text Colors */
  --text-primary: #1a1a1a;
  --text-secondary: #52525b;
  --text-muted: #71717a;
  
  /* Border & Effects */
  --border-color: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --glow: 0 0 40px rgba(99, 102, 241, 0.15);
  --glow-strong: 0 0 60px rgba(99, 102, 241, 0.25);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.15);
  
  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Spacing */
  --section-padding: clamp(2.5rem, 8vw, 5rem);
  --container-max: 1200px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 12.6px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background-color: #e8eef4;
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 1s ease, background-color 1s ease, color 0.6s ease;
}

body.dark-bg {
  background-color: #000000 !important;
  color: #ffffff;
}

body.dark-bg .section-title,
body.dark-bg .involvement-section-title,
body.dark-bg #my-story .section-title,
body.dark-bg #involvement .section-title {
  color: #ffffff;
  transition: color 0.5s ease;
}

/* About section styles when dark background is active */
body.dark-bg #about .title {
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 50%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.dark-bg #about .text-container {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

body.dark-bg #about .text-container p {
  color: rgba(255, 255, 255, 0.85);
}

body.dark-bg #about .about-containers .details-container {
  border-color: rgba(255, 255, 255, 0.3);
}

/* Chess-themed Background */
body.chess-bg {
  background: 
    linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(15, 15, 35, 0.9) 50%, rgba(0, 0, 0, 0.85) 100%),
    repeating-conic-gradient(
      from 0deg,
      #1c1c3a 0deg 90deg,
      #0a0a1a 90deg 180deg
    ) !important;
  background-size: 100% 100%, 80px 80px !important;
  background-attachment: fixed !important;
  color: #ffffff;
  transition: background 1s ease, color 0.6s ease;
  position: relative;
}

body.chess-bg::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(168, 85, 247, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(236, 72, 153, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: gradient-pulse 8s ease-in-out infinite alternate;
  opacity: 0;
  transition: opacity 1s ease;
}

body.chess-bg::before {
  opacity: 1;
}

/* Global Chess Pieces Container */
.chess-pieces-bg-global {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
}

body.chess-bg .chess-pieces-bg-global {
  opacity: 1;
  z-index: 1;
}

.chess-pieces-bg-global .floating-piece {
  position: absolute;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: rgba(255, 255, 255, 0.1);
  left: var(--x);
  top: var(--start-y);
  animation: float-up var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
  text-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
  filter: blur(0.5px);
}

@keyframes float-up {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.8);
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(-120vh) rotate(360deg) scale(1.2);
    opacity: 0;
  }
}

body.chess-bg .section-title,
body.chess-bg #quick-facts .section-title,
body.chess-bg #involvement .section-title {
  color: #ffffff;
  transition: color 0.6s ease;
}

body.chess-bg #quick-facts .fact-card,
body.chess-bg #involvement .involvement-section-title {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  transition: all 0.6s ease;
}

body.chess-bg #quick-facts .fact-card h3,
body.chess-bg #quick-facts .fact-card p,
body.chess-bg #quick-facts .fact-card span,
body.chess-bg #involvement .involvement-section-title,
body.chess-bg #involvement .involvement-intro {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.6s ease;
}

/* Subtle background pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background-image: 
    radial-gradient(circle at 10% 20%, #000000 6px, transparent 6px),
    radial-gradient(circle at 85% 15%, #000000 7px, transparent 7px),
    radial-gradient(circle at 30% 70%, #000000 6px, transparent 6px),
    radial-gradient(circle at 70% 45%, #000000 6.5px, transparent 6.5px),
    radial-gradient(circle at 50% 90%, #000000 6px, transparent 6px),
    radial-gradient(circle at 15% 50%, #000000 7px, transparent 7px),
    radial-gradient(circle at 90% 80%, #000000 6px, transparent 6px),
    radial-gradient(circle at 45% 30%, #000000 6.5px, transparent 6.5px),
    radial-gradient(circle at 5% 85%, #000000 6px, transparent 6px),
    radial-gradient(circle at 60% 10%, #000000 7px, transparent 7px),
    radial-gradient(circle at 25% 95%, #000000 6px, transparent 6px),
    radial-gradient(circle at 80% 60%, #000000 6.5px, transparent 6.5px),
    radial-gradient(circle at 35% 5%, #000000 6px, transparent 6px),
    radial-gradient(circle at 92% 35%, #000000 6.5px, transparent 6.5px),
    radial-gradient(circle at 18% 65%, #000000 7px, transparent 7px),
    radial-gradient(circle at 65% 75%, #000000 6px, transparent 6px),
    radial-gradient(circle at 40% 55%, #000000 6.5px, transparent 6.5px),
    radial-gradient(circle at 75% 25%, #000000 6px, transparent 6px),
    radial-gradient(circle at 20% 40%, #000000 7px, transparent 7px),
    radial-gradient(circle at 55% 85%, #000000 6.5px, transparent 6.5px);
  background-size: 100% 100%;
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
  animation: move-dots 120s linear infinite;
}

@keyframes move-dots {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-50%, -50%); }
}

body.dark-bg::before {
  background-image: 
    radial-gradient(circle at 10% 20%, #ffffff 6px, transparent 6px),
    radial-gradient(circle at 85% 15%, #ffffff 7px, transparent 7px),
    radial-gradient(circle at 30% 70%, #ffffff 6px, transparent 6px),
    radial-gradient(circle at 70% 45%, #ffffff 6.5px, transparent 6.5px),
    radial-gradient(circle at 50% 90%, #ffffff 6px, transparent 6px),
    radial-gradient(circle at 15% 50%, #ffffff 7px, transparent 7px),
    radial-gradient(circle at 90% 80%, #ffffff 6px, transparent 6px),
    radial-gradient(circle at 45% 30%, #ffffff 6.5px, transparent 6.5px),
    radial-gradient(circle at 5% 85%, #ffffff 6px, transparent 6px),
    radial-gradient(circle at 60% 10%, #ffffff 7px, transparent 7px),
    radial-gradient(circle at 25% 95%, #ffffff 6px, transparent 6px),
    radial-gradient(circle at 80% 60%, #ffffff 6.5px, transparent 6.5px),
    radial-gradient(circle at 35% 5%, #ffffff 6px, transparent 6px),
    radial-gradient(circle at 92% 35%, #ffffff 6.5px, transparent 6.5px),
    radial-gradient(circle at 18% 65%, #ffffff 7px, transparent 7px),
    radial-gradient(circle at 65% 75%, #ffffff 6px, transparent 6px),
    radial-gradient(circle at 40% 55%, #ffffff 6.5px, transparent 6.5px),
    radial-gradient(circle at 75% 25%, #ffffff 6px, transparent 6px),
    radial-gradient(circle at 20% 40%, #ffffff 7px, transparent 7px),
    radial-gradient(circle at 55% 85%, #ffffff 6.5px, transparent 6.5px);
  opacity: 0.15;
}

::selection {
  background: var(--accent-primary);
  color: white;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-base);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.title {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.section__text__p1 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.section__text__p2 {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  font-weight: 400;
}

/* ============================================
   NAVIGATION
   ============================================ */
#desktop-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  padding-bottom: 1.75rem;
  background: var(--accent-gradient);
  z-index: 1000;
  transition: var(--transition-base);
  border-radius: 0;
  box-shadow: 0 4px 30px rgba(99, 102, 241, 0.25);
}

#desktop-nav.scrolled {
  padding: 1.25rem 5%;
  padding-bottom: 1.5rem;
  box-shadow: 0 4px 25px rgba(99, 102, 241, 0.3);
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: var(--transition-base);
}

.nav-links a:hover {
  color: #ffffff;
}

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

/* Mobile Nav */
#hamburger-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 5%;
  background: var(--accent-gradient);
  z-index: 1000;
  border-radius: 0;
  box-shadow: 0 4px 30px rgba(99, 102, 241, 0.25);
}

.hamburger-menu {
  position: relative;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 32px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-base);
}

.hamburger-icon.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  width: 200px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition-base);
}

.menu-links.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(10px);
}

.menu-links li {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: var(--transition-fast);
}

.menu-links li:hover {
  background: var(--bg-card);
}

.menu-links a {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================
   SECTIONS - GENERAL
   ============================================ */
section {
  padding: var(--section-padding) 10%;
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
}

.section-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

/* ============================================
   HERO / PROFILE SECTION
   ============================================ */
#profile {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding-top: 5rem;
}

.section__pic-container {
  position: relative;
  width: 300px;
  height: 300px;
  flex-shrink: 0;
}

.section__pic-container::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: var(--accent-gradient);
  border-radius: 50%;
  opacity: 0.5;
  transition: var(--transition-slow);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.03); }
}

.section__pic-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  border: 5px solid var(--bg-primary);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: float-image 4s ease-in-out infinite;
}

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

.section__pic-container:hover img {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.3);
  animation-play-state: paused;
}

.section__text {
  max-width: 500px;
}

.section__text .title {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  white-space: nowrap;
  min-height: 3rem;
  min-width: 280px;
  text-align: left;
  display: flex;
  align-items: center;
}

/* Typing Animation Styles */
#typing-name {
  display: inline-block;
  transition: color 0.3s ease, font-family 0.3s ease;
}

.cursor {
  display: inline-block;
  margin-left: 2px;
  font-weight: 400;
  color: var(--accent-primary);
  animation: blink 1s infinite;
}

.role-cursor {
  font-size: 1.2rem;
  color: var(--accent-secondary);
}

#typing-role {
  display: inline-block;
  min-width: 1px;
}

.section__text__p2 {
  display: flex;
  align-items: center;
  min-height: 1.5em;
}

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

/* Buttons */
.btn-container {
  display: flex;
  gap: 1.25rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-color-1 {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-color-1:hover {
  box-shadow: 0 10px 35px rgba(99, 102, 241, 0.45);
}

.btn-color-2 {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-hover);
}

.btn-color-2:hover {
  background: var(--bg-card);
  border-color: var(--accent-primary);
}

/* Social Icons */
#socials-container {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

#socials-container .icon {
  width: 35px;
  height: 35px;
  padding: 7px;
  background: var(--bg-card);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-base);
  filter: none;
  opacity: 1;
}

#socials-container .icon:hover {
  background: var(--accent-primary);
  opacity: 1;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
#about {
  padding-top: 5.4rem;
}

#about .section__pic-container {
  width: 300px;
  height: 380px;
  border-radius: 24px;
  overflow: hidden;
  margin: 0;
  position: relative;
  animation: frame-glow 3s ease-in-out infinite;
}

@keyframes frame-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3), 0 0 40px rgba(139, 92, 246, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5), 0 0 60px rgba(139, 92, 246, 0.35);
  }
}

#about .section__pic-container::before {
  border-radius: 24px;
}

#about .section__pic-container img {
  border-radius: 20px;
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#about .section__pic-container:hover img {
  transform: scale(1.03) rotate(1deg);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.25);
}

.about-pic {
  border-radius: 20px !important;
}

.about-details-container {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.about-containers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
}

.details-container {
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 20px;
  padding: 1.35rem;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.details-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--accent-gradient);
  transition: width 0.6s ease;
  z-index: 0;
  border-radius: 20px;
}

.details-container h3,
.details-container p {
  transition: color 0.4s ease;
  position: relative;
  z-index: 1;
}

.details-container .icon {
  position: relative;
  z-index: 1;
}

.details-container:hover::before {
  width: 100%;
}

.details-container:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.45);
}

.details-container:hover h3,
.details-container:hover p {
  color: #ffffff;
}

.details-container .icon {
  width: 31px;
  height: 31px;
  margin-bottom: 0.9rem;
  filter: brightness(0);
  opacity: 0.8;
}

.details-container h3 {
  font-size: 0.95rem;
  color: #000000;
  margin-bottom: 0.45rem;
}

.details-container p {
  font-size: 0.81rem;
  color: rgba(0, 0, 0, 0.85);
  line-height: 1.6;
}

.text-container {
  padding: 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  transition: all 0.4s ease;
}

.text-container:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.text-container p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.8;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
#experience {
  padding-top: 4rem;
  padding-left: 0;
  padding-right: 0;
  width: 100%;
  overflow: hidden;
}

.skills-track {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 0;
  width: max-content;
  animation: scroll-skills-rtl 20s linear infinite;
  will-change: transform;
}

.skills-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-skills-rtl {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.skill-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem;
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--accent-gradient);
  transition: width 0.6s ease;
  z-index: 0;
  border-radius: 20px;
}

.skill-card:hover::before {
  width: 100%;
}

.skill-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.45);
}

.skill-card .skill-logo,
.skill-card .icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: var(--transition-base);
  position: relative;
  z-index: 1;
}

.skill-card:hover .skill-logo,
.skill-card:hover .icon {
  transform: scale(1.15);
}

/* Static Skills Grid (Experience Page) */
.skills-grid-static {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* New Skills Grid - Clean Design */
.skills-grid-new {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.skill-category-card {
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.skill-category-card:hover {
  background: #000000;
  border-color: #000000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.category-icon {
  font-size: 2.5rem;
}

.skill-category-header h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  font-weight: 700;
  transition: color 0.4s ease;
}

.skill-category-card:hover .skill-category-header h3 {
  color: #ffffff;
}

.skill-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-secondary);
  border-radius: 14px;
  transition: all 0.3s ease;
}

.skill-item img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.skill-item span {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
}

@media (max-width: 900px) {
  .skills-grid-new {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .skill-items {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Legacy - Full Stack Showcase (kept for compatibility) */
.fullstack-showcase {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: stretch;
}

.stack-column {
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
}

.stack-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.stack-icon {
  font-size: 1.8rem;
}

.stack-header h3 {
  font-size: 1.4rem;
  color: var(--text-primary);
  font-weight: 700;
}

.stack-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.stack-skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.mini-skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.mini-skill:hover {
  background: #000000;
}

.mini-skill:hover span {
  color: #ffffff;
}

.mini-skill img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.mini-skill:hover img {
  filter: brightness(0) invert(1);
}

.mini-skill .mini-emoji {
  font-size: 1.75rem;
  line-height: 1;
}

.mini-skill span {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Stack Divider */
.stack-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.divider-line {
  width: 3px;
  flex: 1;
  background: linear-gradient(180deg, transparent, var(--accent-primary), transparent);
  border-radius: 3px;
}

.divider-text {
  background: var(--accent-gradient);
  color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

/* Language Highlights */
.language-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.lang-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.75rem;
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.lang-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  transition: height 0.4s ease;
  z-index: 1;
}

.java-card::after {
  background: linear-gradient(90deg, #f89820, #5382a1);
}

.python-card::after {
  background: linear-gradient(90deg, #3776ab, #ffd43b);
}

.lang-card:hover::after {
  height: 6px;
}

.lang-icon {
  width: 70px;
  height: 70px;
  background: var(--bg-secondary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lang-icon img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.lang-icon .lang-emoji {
  font-size: 2.5rem;
  line-height: 1;
}

.lang-info h4 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.lang-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.lang-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lang-tags span {
  padding: 0.35rem 0.75rem;
  background: var(--bg-secondary);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--accent-primary);
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.lang-tags span:hover {
  background: #000000;
  color: #ffffff;
}

/* Tools Section */
.tools-section {
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
}

.tools-title {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.tools-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  cursor: pointer;
}

.tool-item:hover {
  background: #000000;
  border-color: #000000;
}

.tool-item:hover span {
  color: #ffffff;
}

.tool-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.tool-item:hover img {
  filter: brightness(0) invert(1);
}

.tool-item img.no-filter {
  filter: none !important;
}

.tool-item .tool-emoji {
  font-size: 2rem;
  line-height: 1;
}

.tool-item span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Responsive Skills */
@media (max-width: 900px) {
  .fullstack-showcase {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .stack-divider {
    flex-direction: row;
    padding: 1rem 0;
  }
  
  .divider-line {
    height: 3px;
    width: auto;
    flex: 1;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  }
  
  .language-highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .stack-skills {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .lang-card {
    flex-direction: column;
    text-align: center;
  }
  
  .lang-icon {
    margin: 0 auto;
  }
  
  .lang-tags {
    justify-content: center;
  }
  
  .tools-grid {
    gap: 1rem;
  }
  
  .tool-item {
    padding: 0.75rem 1rem;
  }
}

.skill-card-static {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.skill-card-static::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--accent-gradient);
  transition: width 0.6s ease;
  z-index: 0;
  border-radius: 20px;
}

.skill-card-static h3 {
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.skill-card-static:hover::before {
  width: 100%;
}

.skill-card-static:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.45);
}

.skill-card-static .skill-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.skill-card-static:hover .skill-logo {
  transform: none;
}

.skill-card-static h3 {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.skill-card-static:hover h3 {
  color: #ffffff;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
#projects {
  padding-top: 4rem;
}

.projects-grid,
.about-containers.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.project-card,
.details-container.color-container {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
}

.project-card h2,
.project-card .project-title,
.project-card .project-desc,
.details-container.color-container h2,
.details-container.color-container .project-title,
.details-container.color-container .project-desc {
  transition: all 0.4s ease;
}

.project-card:hover,
.details-container.color-container:hover {
  background: #000000;
  border-color: var(--accent-primary);
  box-shadow: 0 25px 50px rgba(99, 102, 241, 0.35);
}

.project-card:hover h2,
.project-card:hover .project-title,
.project-card:hover .project-desc,
.details-container.color-container:hover h2,
.details-container.color-container:hover .project-title,
.details-container.color-container:hover .project-desc {
  color: #ffffff;
}

.project-card .article-container,
.details-container.color-container .article-container {
  height: 180px;
  overflow: hidden;
}

.project-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: all 0.6s ease;
}

.project-card:hover .project-img,
.details-container.color-container:hover .project-img {
  transform: scale(1.08);
}

.project-card h2,
.project-title {
  font-size: 1.1rem;
  color: var(--text-primary);
  padding: 1.25rem 1.5rem 0.5rem;
  margin: 0;
  font-weight: 600;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0 1.5rem;
  flex-grow: 1;
  line-height: 1.7;
}

.project-card .btn-container,
.details-container.color-container .btn-container {
  padding: 1.25rem 1.5rem;
  margin-top: auto;
}

.project-btn {
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  background: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #e5e7eb !important;
  transition: all 0.3s ease;
}

.project-btn:hover {
  background: #f3f4f6 !important;
  border-color: var(--accent-primary) !important;
  transform: translateY(-3px);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
#contact {
  padding-top: 12rem;
  padding-bottom: 4rem;
  text-align: left;
  min-height: 100vh;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-left {
  padding-right: 1.5rem;
}

.contact-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Animated Contact Illustration */
.contact-animation {
  position: relative;
  width: 400px;
  height: 400px;
}

.contact-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid;
  animation: contact-rotate 20s linear infinite;
}

.contact-circle-1 {
  width: 100%;
  height: 100%;
  border-color: var(--accent-primary);
  opacity: 0.3;
  animation-duration: 25s;
}

.contact-circle-2 {
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
  border-color: var(--accent-secondary);
  opacity: 0.4;
  animation-direction: reverse;
  animation-duration: 20s;
}

.contact-circle-3 {
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
  border-color: #a855f7;
  opacity: 0.5;
  animation-duration: 15s;
}

.contact-center-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: white;
  box-shadow: 0 0 60px rgba(99, 102, 241, 0.5);
  animation: pulse-center 2s ease-in-out infinite;
}

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

@keyframes pulse-center {
  0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 60px rgba(99, 102, 241, 0.5); }
  50% { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 0 80px rgba(99, 102, 241, 0.7); }
}

/* Floating contact icons */
.floating-contact-icon {
  position: absolute;
  width: 50px;
  height: 50px;
  background: var(--bg-card);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  animation: float-contact 4s ease-in-out infinite;
}

.floating-contact-icon:nth-child(1) { top: 5%; left: 10%; animation-delay: 0s; }
.floating-contact-icon:nth-child(2) { top: 10%; right: 5%; animation-delay: 0.5s; }
.floating-contact-icon:nth-child(3) { bottom: 15%; left: 5%; animation-delay: 1s; }
.floating-contact-icon:nth-child(4) { bottom: 5%; right: 10%; animation-delay: 1.5s; }

@keyframes float-contact {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
}

.contact-info-upper-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 850px;
}

.contact-info-container {
  background: #000000;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: left;
  width: 100%;
  min-height: 90px;
  position: relative;
  overflow: hidden;
}

.contact-info-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--accent-gradient);
  transition: width 0.6s ease;
  z-index: 0;
  border-radius: 20px;
}

.contact-info-container:hover::before {
  width: 100%;
}

.contact-info-container h3,
.contact-info-container a,
.contact-info-container div {
  transition: color 0.4s ease;
  position: relative;
  z-index: 1;
}

.contact-info-container > div {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: visible;
}

.contact-info-container:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.45);
}

.contact-info-container:hover h3 {
  color: #ffffff;
}

.contact-icon {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
}

.contact-info-container:hover .contact-icon {
  transform: scale(1.15);
}

.contact-info-container h3 {
  font-size: 1rem;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 0.25rem;
  white-space: nowrap;
}

.contact-info-container p {
  margin: 0;
  white-space: nowrap;
  overflow: visible;
}

.contact-info-container a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: inline-block;
}

.contact-info-container:hover a {
  color: #ffffff;
}

/* ============================================
   EXPERIENCE PAGE SPECIFIC
   ============================================ */
.experience-sections-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.experience-details-container {
  margin-top: 1rem;
}

.experience-sub-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.experience-row {
  margin-top: 3rem;
}

/* Hackathon Cards */
.hackathons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.hackathon-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hackathon-title,
.hackathon-card p {
  transition: color 0.3s ease;
}

.hackathon-card:hover {
  background: #000000;
  border-color: var(--accent-primary);
  box-shadow: var(--glow);
}

.hackathon-card:hover .hackathon-title,
.hackathon-card:hover p {
  color: #ffffff;
}

.hackathon-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.hackathon-title {
  font-size: 1.1rem;
  color: var(--text-primary);
  padding: 1.25rem 1.5rem 0.5rem;
}

.hackathon-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0 1.5rem 1.5rem;
  line-height: 1.6;
}

/* Certification Cards */
.certifications-container {
  display: grid;
  gap: 1.5rem;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow: hidden;
  padding: 1.5rem;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cert-info h3,
.cert-info p {
  transition: color 0.3s ease;
}

.cert-card:hover {
  background: #000000;
  border-color: var(--accent-primary);
}

.cert-card:hover .cert-info h3,
.cert-card:hover .cert-info p {
  color: #ffffff;
}

.cert-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  filter: none !important;
}

.cert-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cert-info h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.cert-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

.cert-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  background: var(--accent-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  flex-shrink: 0;
  white-space: nowrap;
}

.cert-link:hover {
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.cert-card:hover .cert-link {
  color: #ffffff;
  background: var(--accent-gradient);
}

/* ============================================
   ABOUT PAGE SPECIFIC
   ============================================ */
#about-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
}

.about-hero-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 5rem;
  align-items: center;
}

.about-hero-text {
  max-width: 700px;
}

.about-hero-description {
  color: var(--text-secondary);
  font-size: 1.2rem;
  line-height: 1.9;
  margin-top: 1.25rem;
}

.about-hero-image {
  position: relative;
}

.hero-image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
}

.hero-image-frame::before {
  content: '';
  position: absolute;
  inset: -5px;
  background: var(--accent-gradient);
  border-radius: 28px;
  z-index: -1;
  animation: hero-glow 3s ease-in-out infinite;
  opacity: 0.5;
}

@keyframes hero-glow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.04); }
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: float-image 4s ease-in-out infinite;
}

.hero-image-frame:hover img {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.3);
  animation-play-state: paused;
}

/* Quick Facts */
#quick-facts {
  padding-top: 2rem;
}

.section-title {
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
  transition: color 0.5s ease;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.fact-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.fact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--accent-gradient);
  transition: width 0.6s ease;
  z-index: 0;
  border-radius: 20px;
}

.fact-card:hover::before {
  width: 100%;
}

.fact-card h3,
.fact-card p,
.fact-card span,
.fact-icon {
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.fact-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.35);
}

.fact-card:hover h3,
.fact-card:hover p,
.fact-card:hover span {
  color: #ffffff;
}

.fact-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.fact-card h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.fact-card p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.fact-card span {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* My Story */
#my-story {
  padding-top: 2rem;
}

.story-with-image {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}

.story-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.story-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.story-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--accent-gradient);
  transition: width 0.6s ease;
  z-index: 0;
  border-radius: 20px;
}

.story-card:hover::before {
  width: 100%;
}

.story-card h3,
.story-card p {
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.story-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 12px 35px rgba(99, 102, 241, 0.35);
}

.story-card:hover h3,
.story-card:hover p {
  color: #ffffff;
}

.story-card h3 {
  font-size: 1.25rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.story-card p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.story-image {
  position: sticky;
  top: 100px;
}

.profile-image-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.profile-image-frame::before {
  content: '';
  position: absolute;
  inset: -5px;
  background: linear-gradient(45deg, #6366f1, #a855f7, #6366f1);
  border-radius: 24px;
  z-index: -1;
  animation: journey-glow 4s ease-in-out infinite;
  opacity: 0.5;
}

@keyframes journey-glow {
  0%, 100% { opacity: 0.4; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.8; transform: scale(1.03) rotate(1deg); }
}

.profile-image-frame img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: float-image 4s ease-in-out infinite;
}

.profile-image-frame:hover img {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.3);
  animation-play-state: paused;
}

/* Chess Section */
#chess-section {
  padding: 6rem 10%;
  position: relative;
  min-height: 100vh;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  box-sizing: border-box;
  background: 
    linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(15, 15, 35, 0.9) 50%, rgba(0, 0, 0, 0.85) 100%),
    repeating-conic-gradient(
      from 0deg,
      #1c1c3a 0deg 90deg,
      #0a0a1a 90deg 180deg
    );
  background-size: 100% 100%, 80px 80px;
  background-attachment: local;
  overflow: hidden;
}

#chess-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(168, 85, 247, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(236, 72, 153, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: gradient-pulse 8s ease-in-out infinite alternate;
}

@keyframes gradient-pulse {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* Chess Pieces Container for Chess Section Only */
#chess-section .chess-pieces-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

#chess-section .floating-piece {
  position: absolute;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: rgba(255, 255, 255, 0.1);
  left: var(--x);
  top: var(--start-y);
  animation: float-up var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
  text-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
  filter: blur(0.5px);
}

@keyframes float-up {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.8);
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(-120vh) rotate(360deg) scale(1.2);
    opacity: 0;
  }
}

/* Glowing border effect */
#chess-section > .section-title::before {
  content: '♔';
  margin-right: 15px;
  animation: piece-glow 2s ease-in-out infinite alternate;
}

#chess-section > .section-title::after {
  content: '♚';
  margin-left: 15px;
  animation: piece-glow 2s ease-in-out infinite alternate;
  animation-delay: 1s;
}

@keyframes piece-glow {
  0% { 
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    opacity: 0.7;
  }
  100% { 
    text-shadow: 0 0 30px rgba(168, 85, 247, 0.8), 0 0 60px rgba(99, 102, 241, 0.4);
    opacity: 1;
  }
}

#chess-section .section-title {
  color: #ffffff;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.6s ease;
}

.chess-content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
  position: relative;
  z-index: 2;
}

.chess-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.chess-achievement {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
  border: 1px solid rgba(99, 102, 241, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.6s ease;
}

body.chess-bg .chess-achievement {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
  border: 1px solid rgba(99, 102, 241, 0.4);
  backdrop-filter: blur(10px);
}

.chess-achievement::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-gradient);
}

.achievement-badge {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

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

.chess-achievement h3 {
  font-size: 1.4rem;
  color: #ffffff;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  transition: color 0.6s ease;
}

body.chess-bg .chess-achievement h3 {
  color: #ffffff;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.chess-achievement p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
  transition: color 0.6s ease;
}

body.chess-bg .chess-achievement p {
  color: rgba(255, 255, 255, 0.85);
}

/* FIDE Profile Button */
.fide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 1.2rem 2.5rem;
  background: linear-gradient(135deg, #b58863 0%, #8b6914 50%, #d4a84b 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.15rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 25px rgba(181, 136, 99, 0.5);
  position: relative;
  overflow: hidden;
  margin-top: 1.5rem;
  width: 100%;
  max-width: 320px;
}

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

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

.fide-btn:hover {
  box-shadow: 0 10px 35px rgba(181, 136, 99, 0.7);
}

.fide-icon {
  font-size: 1.5rem;
  animation: piece-bounce 2s ease-in-out infinite;
}

@keyframes piece-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.chess-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.chess-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1.25rem;
  transition: all 0.6s ease;
}

body.chess-bg .chess-detail-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.chess-detail-item:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
  background: rgba(99, 102, 241, 0.1);
}

.detail-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.chess-detail-item h4 {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
  transition: color 0.6s ease;
}

body.chess-bg .chess-detail-item h4 {
  color: #ffffff;
}

.chess-detail-item p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  transition: color 0.6s ease;
}

body.chess-bg .chess-detail-item p {
  color: rgba(255, 255, 255, 0.7);
}

/* FIDE Card Special Styling */
.chess-detail-item.fide-card {
  grid-column: 1 / -1;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(181, 136, 99, 0.05) 0%, rgba(139, 105, 20, 0.08) 100%);
  border: 1px solid rgba(181, 136, 99, 0.2);
}

body.chess-bg .chess-detail-item.fide-card {
  background: linear-gradient(135deg, rgba(181, 136, 99, 0.1) 0%, rgba(139, 105, 20, 0.15) 100%);
  border: 1px solid rgba(181, 136, 99, 0.3);
}

.chess-detail-item.fide-card:hover {
  border-color: rgba(181, 136, 99, 0.4);
  box-shadow: 0 6px 25px rgba(181, 136, 99, 0.2);
  background: linear-gradient(135deg, rgba(181, 136, 99, 0.1) 0%, rgba(139, 105, 20, 0.15) 100%);
}

body.chess-bg .chess-detail-item.fide-card:hover {
  border-color: rgba(181, 136, 99, 0.6);
  box-shadow: 0 6px 25px rgba(181, 136, 99, 0.3);
  background: linear-gradient(135deg, rgba(181, 136, 99, 0.15) 0%, rgba(139, 105, 20, 0.2) 100%);
}

.chess-detail-item.fide-card .detail-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.fide-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.chess-detail-item.fide-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.chess-detail-item.fide-card p {
  margin-bottom: 1.25rem;
}

.chess-detail-item.fide-card .fide-btn {
  margin-top: 0;
  width: auto;
  max-width: none;
  padding: 0.875rem 1.75rem;
  font-size: 0.9rem;
}

.chess-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 2rem;
}

.chess-featured-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(99, 102, 241, 0.2);
  background: #000;
}

.chess-featured-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.chess-featured-image:hover img {
  transform: scale(1.03);
}

body.chess-bg .chess-featured-image {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.2);
}

.chess-secondary-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.chess-image-small {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(99, 102, 241, 0.2);
  background: #000;
}

.chess-image-small img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.chess-image-small:hover img {
  transform: scale(1.05);
}

body.chess-bg .chess-image-small {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
}

.chess-gallery {
  display: none;
}

/* Responsive Chess Section */
@media (max-width: 900px) {
  .chess-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .chess-images {
    position: static;
    order: -1;
  }
  
  .chess-featured-image img {
    max-height: 350px;
  }
  
  .chess-secondary-images {
    grid-template-columns: 1fr 1fr;
  }
  
  .chess-image-small img {
    height: 160px;
  }
  
  .chess-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  #chess-section {
    padding: 4rem 5%;
    min-height: auto;
  }
  
  #chess-section::before {
    background-size: 100% 100%, 50px 50px;
  }
  
  .chess-featured-image img {
    max-height: 280px;
  }
  
  .chess-secondary-images {
    grid-template-columns: 1fr;
  }
  
  .chess-image-small img {
    height: 200px;
  }
  
  .floating-piece {
    font-size: 1.5rem;
  }
  
  #chess-section .section-title::before,
  #chess-section .section-title::after {
    display: none;
  }
  
  .fide-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
  }
}

/* Involvement Section */
#involvement {
  padding-top: 2rem;
}

.involvement-item {
  margin-top: 2rem;
}

.involvement-content {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  padding: 2rem;
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.involvement-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
}

.involvement-text h3 {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.involvement-role {
  color: var(--accent-primary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.involvement-text p:last-child {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.7;
}

.involvement-section-title {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.involvement-intro {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.ieee-activities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.activity-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.activity-content h4,
.activity-content p {
  transition: color 0.3s ease;
}

.activity-card:hover {
  background: #000000;
  border-color: var(--accent-primary);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.activity-card:hover .activity-content h4,
.activity-card:hover .activity-content p {
  color: #ffffff;
}

.activity-image img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.activity-content {
  padding: 1.25rem;
}

.activity-content h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.activity-content p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--accent-gradient);
  padding: 4rem 5%;
  text-align: center;
  position: relative;
  margin-top: 4rem;
  border-radius: 0;
  box-shadow: 0 -4px 30px rgba(99, 102, 241, 0.2);
  z-index: 10;
}

body.chess-bg footer {
  background: var(--accent-gradient);
  position: relative;
  z-index: 10;
}

body.dark-bg footer {
  background: var(--accent-gradient);
  position: relative;
  z-index: 10;
}

.footer-wave {
  display: none;
}

footer .nav-links {
  justify-content: center;
  margin-bottom: 2rem;
}

footer .nav-links a {
  font-size: 1.05rem;
}

footer > p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

.nav-links-container {
  display: flex;
  justify-content: center;
}

/* ============================================
   ANIMATIONS
   ============================================ */
/* Fade In Up */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
}

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.5s; }

/* Scale In */
@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Float animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Large Desktop - Scale down for very large screens */
@media (min-width: 1920px) {
  html {
    font-size: 11.7px;
  }
  
  .section__pic-container {
    width: 280px;
    height: 280px;
  }
}

/* Desktop and Laptop - Standard sizing */
@media (min-width: 1025px) and (max-width: 1919px) {
  html {
    font-size: 12.6px;
  }
}

@media (max-width: 1024px) {
  #profile {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .section__pic-container {
    width: 240px;
    height: 240px;
  }
  
  .section-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  #about .section__pic-container {
    margin: 0 auto;
  }
  
  .about-hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .about-hero-image {
    order: -1;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .story-with-image {
    grid-template-columns: 1fr;
  }
  
  .story-image {
    display: none;
  }
  
  .involvement-content {
    grid-template-columns: 1fr;
  }
  
  .ieee-activities {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 11.7px;
  }
  
  #desktop-nav {
    display: none;
  }
  
  #hamburger-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  section {
    padding: 3rem 5%;
  }
  
  #profile {
    padding-top: 7rem;
  }
  
  .btn-container {
    justify-content: center;
  }
  
  #socials-container {
    justify-content: center;
  }
  
  .about-containers {
    grid-template-columns: 1fr;
  }
  
  .contact-info-upper-container {
    grid-template-columns: 1fr;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-left {
    padding-right: 0;
    text-align: center;
  }
  
  .contact-info-upper-container {
    max-width: 100%;
    justify-items: center;
  }
  
  .contact-right {
    order: -1;
  }
  
  .contact-animation {
    width: 280px;
    height: 280px;
  }
  
  .contact-center-icon {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }
  
  .floating-contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .cert-card {
    flex-direction: column;
  }
  
  .cert-img {
    width: 100%;
    height: 180px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 10.8px;
  }
  
  .title {
    font-size: 1.5rem;
  }
  
  .section__pic-container {
    width: 180px;
    height: 180px;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
  }
  
  .section__text .title {
    min-width: 200px;
    white-space: normal;
  }
  
  .facts-grid {
    grid-template-columns: 1fr;
  }
  
  .skills-grid-static {
    grid-template-columns: repeat(2, 1fr);
  }
}
