/* ========================================
   Sawad-Inspired Portfolio Theme
   Design inspiration: sawad.framer.website
   Split-panel layout with fixed sidebar
   ======================================== */

:root {
  /* Dark theme (default) */
  --bg: #000000;
  --surface: #111111;
  --surface-hover: #1a1a1a;
  --surface-border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-secondary: #999999;
  --text-muted: #555555;
  --accent: #ffffff;
  --accent-glow: rgba(255, 255, 255, 0.1);

  /* Layout */
  --sidebar-width: 320px;
  --layout-margin: 24px;
  --content-width: 80%;

  /* Sizing */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
}

[data-theme="light"] {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface-hover: #fafafa;
  --surface-border: rgba(0, 0, 0, 0.08);
  --text: #000000;
  --text-secondary: #666666;
  --text-muted: #999999;
  --accent: #000000;
  --accent-glow: rgba(0, 0, 0, 0.08);
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  padding: var(--layout-margin);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
}

/* Animated gradient blobs in background */
body::after {
  content: "";
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  border-radius: 50%;
  top: -200px;
  left: -200px;
  animation: bgFloat 15s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

@keyframes bgFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(100px, 50px) scale(1.1);
  }
  66% {
    transform: translate(50px, 100px) scale(0.9);
  }
}

/* Second background orb */
.layout::before {
  content: "";
  position: fixed;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  border-radius: 50%;
  bottom: -150px;
  right: -150px;
  animation: bgFloat2 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

@keyframes bgFloat2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-80px, -60px) scale(1.15);
  }
}

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

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

/* ========================================
   Layout
   ======================================== */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  height: calc(100vh - var(--layout-margin) * 2);
  width: var(--content-width);
  max-width: 1600px;
  overflow: hidden;
  gap: 16px;
  border-radius: var(--radius-xl);
  position: relative;
  z-index: 1;
}

/* ========================================
   Sidebar (Fixed Left Panel - Card Style)
   ======================================== */
.sidebar {
  background: var(--text);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  height: auto;
  align-self: center;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-slow),
    background var(--transition-slow);
  z-index: 100;
  overflow: hidden;
  color: var(--bg);
  position: relative;
}

/* Sidebar decorative pattern - flowing water waves */
.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    /* Multiple wave layers for realistic water effect */ url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C200,100 400,20 600,60 C800,100 1000,20 1200,60 L1200,120 L0,120 Z' fill='%23000' fill-opacity='0.1'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C150,80 350,0 500,40 C650,80 850,0 1000,40 C1150,80 1200,40 1200,40 L1200,120 L0,120 Z' fill='%23000' fill-opacity='0.08'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,80 C300,40 500,100 700,60 C900,20 1100,80 1200,60 L1200,120 L0,120 Z' fill='%23000' fill-opacity='0.06'/%3E%3C/svg%3E");
  background-size: 200% 80px, 180% 60px, 160% 70px;
  background-position: 0% 100%, 0% 90%, 0% 80%;
  background-repeat: repeat-x;
  animation: waveFlow 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] .sidebar::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C200,100 400,20 600,60 C800,100 1000,20 1200,60 L1200,120 L0,120 Z' fill='%23fff' fill-opacity='0.12'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C150,80 350,0 500,40 C650,80 850,0 1000,40 C1150,80 1200,40 1200,40 L1200,120 L0,120 Z' fill='%23fff' fill-opacity='0.1'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,80 C300,40 500,100 700,60 C900,20 1100,80 1200,60 L1200,120 L0,120 Z' fill='%23fff' fill-opacity='0.08'/%3E%3C/svg%3E");
  background-size: 200% 80px, 180% 60px, 160% 70px;
  background-position: 0% 100%, 0% 90%, 0% 80%;
  background-repeat: repeat-x;
}

@keyframes waveFlow {
  0% {
    background-position: 0% 100%, 0% 90%, 0% 80%;
  }
  50% {
    background-position: -50% 100%, -30% 90%, -20% 80%;
  }
  100% {
    background-position: -100% 100%, -60% 90%, -40% 80%;
  }
}

/* Sidebar floating icons */
.sidebar-floating-icons {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.sidebar-icon {
  position: absolute;
  opacity: 0.12;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.sidebar-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--bg);
}

/* Position sidebar icons */
.sidebar-icon.s-icon-1 {
  top: 8%;
  left: 10%;
  animation: sidebarFloat1 9s infinite;
}
.sidebar-icon.s-icon-2 {
  top: 20%;
  right: 8%;
  animation: sidebarFloat2 11s infinite;
}
.sidebar-icon.s-icon-3 {
  top: 45%;
  left: 6%;
  animation: sidebarFloat3 8s infinite;
}
.sidebar-icon.s-icon-4 {
  top: 60%;
  right: 12%;
  animation: sidebarFloat4 10s infinite;
}
.sidebar-icon.s-icon-5 {
  bottom: 25%;
  left: 12%;
  animation: sidebarFloat5 12s infinite;
}
.sidebar-icon.s-icon-6 {
  bottom: 10%;
  right: 6%;
  animation: sidebarFloat6 9s infinite;
}

@keyframes sidebarFloat1 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.1;
  }
  50% {
    transform: translate(8px, 12px) rotate(15deg);
    opacity: 0.18;
  }
}

@keyframes sidebarFloat2 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.12;
  }
  50% {
    transform: translate(-10px, 8px) rotate(-10deg);
    opacity: 0.2;
  }
}

@keyframes sidebarFloat3 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.1;
  }
  50% {
    transform: translate(6px, -10px) scale(1.1);
    opacity: 0.18;
  }
}

@keyframes sidebarFloat4 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.12;
  }
  50% {
    transform: translate(-8px, -6px) rotate(12deg);
    opacity: 0.2;
  }
}

@keyframes sidebarFloat5 {
  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
    opacity: 0.1;
  }
  50% {
    transform: translateY(-15px) rotate(8deg);
    opacity: 0.18;
  }
}

@keyframes sidebarFloat6 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.12;
  }
  50% {
    transform: translate(10px, 10px) scale(1.15);
    opacity: 0.2;
  }
}

/* Animated gradient orbs on sidebar */
.sidebar::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(128, 128, 128, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  top: -50px;
  right: -50px;
  animation: floatOrb 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-20px, 30px) scale(1.1);
    opacity: 0.8;
  }
}

.sidebar-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  text-align: center;
  gap: 24px;
  position: relative;
  z-index: 1;
}

/* Floating tech icons across entire screen */
.floating-icons-container {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.floating-icon {
  position: absolute;
  opacity: 0.15;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.floating-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--text);
}

/* Position icons across entire screen */
.floating-icon.icon-1 {
  top: 5%;
  left: 3%;
  animation: iconFloat1 8s infinite;
}
.floating-icon.icon-2 {
  top: 15%;
  right: 8%;
  animation: iconFloat2 10s infinite;
}
.floating-icon.icon-3 {
  top: 35%;
  left: 5%;
  animation: iconFloat3 9s infinite;
}
.floating-icon.icon-4 {
  bottom: 25%;
  right: 4%;
  animation: iconFloat4 7s infinite;
}
.floating-icon.icon-5 {
  bottom: 10%;
  left: 8%;
  animation: iconFloat5 11s infinite;
}
.floating-icon.icon-6 {
  top: 8%;
  left: 25%;
  animation: iconFloat6 9s infinite;
}
.floating-icon.icon-7 {
  top: 55%;
  right: 6%;
  animation: iconFloat1 12s infinite;
}
.floating-icon.icon-8 {
  bottom: 40%;
  left: 2%;
  animation: iconFloat2 8s infinite;
}
.floating-icon.icon-9 {
  top: 70%;
  right: 12%;
  animation: iconFloat3 10s infinite;
}
.floating-icon.icon-10 {
  top: 25%;
  left: 12%;
  animation: iconFloat4 9s infinite;
}
.floating-icon.icon-11 {
  bottom: 55%;
  right: 3%;
  animation: iconFloat5 11s infinite;
}
.floating-icon.icon-12 {
  top: 45%;
  left: 1%;
  animation: iconFloat6 8s infinite;
}
.floating-icon.icon-13 {
  bottom: 8%;
  right: 25%;
  animation: iconFloat1 10s infinite;
}
.floating-icon.icon-14 {
  top: 85%;
  left: 15%;
  animation: iconFloat2 9s infinite;
}
.floating-icon.icon-15 {
  top: 3%;
  right: 20%;
  animation: iconFloat3 11s infinite;
}
.floating-icon.icon-16 {
  bottom: 20%;
  left: 20%;
  animation: iconFloat4 8s infinite;
}

/* Larger screens - show more icons and bigger */
@media (min-width: 1200px) {
  .floating-icon svg {
    width: 32px;
    height: 32px;
  }
  .floating-icon {
    opacity: 0.18;
  }
}

/* Medium screens */
@media (max-width: 1124px) {
  .floating-icon svg {
    width: 24px;
    height: 24px;
  }
  .floating-icon {
    opacity: 0.12;
  }
  /* Hide some icons on smaller screens */
  .floating-icon.icon-10,
  .floating-icon.icon-12,
  .floating-icon.icon-14,
  .floating-icon.icon-16 {
    display: none;
  }
}

/* Small screens */
@media (max-width: 768px) {
  .floating-icon svg {
    width: 20px;
    height: 20px;
  }
  .floating-icon {
    opacity: 0.1;
  }
  /* Hide more icons on mobile */
  .floating-icon.icon-6,
  .floating-icon.icon-8,
  .floating-icon.icon-11,
  .floating-icon.icon-13,
  .floating-icon.icon-15 {
    display: none;
  }
}

@keyframes iconFloat1 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.12;
  }
  50% {
    transform: translate(15px, 20px) rotate(10deg);
    opacity: 0.22;
  }
}

@keyframes iconFloat2 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.14;
  }
  50% {
    transform: translate(-20px, 15px) rotate(-12deg);
    opacity: 0.24;
  }
}

@keyframes iconFloat3 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.13;
  }
  50% {
    transform: translate(10px, -18px) scale(1.1);
    opacity: 0.23;
  }
}

@keyframes iconFloat4 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.12;
  }
  50% {
    transform: translate(-12px, -10px) rotate(15deg);
    opacity: 0.22;
  }
}

@keyframes iconFloat5 {
  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
    opacity: 0.14;
  }
  50% {
    transform: translateY(-25px) rotate(8deg);
    opacity: 0.24;
  }
}

@keyframes iconFloat6 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.13;
  }
  50% {
    transform: translate(12px, 18px) scale(1.15);
    opacity: 0.23;
  }
}

/* Profile */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.profile-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--surface-border);
  transition: transform var(--transition-base),
    border-color var(--transition-base);
}

.profile-img:hover {
  transform: scale(1.05);
  border-color: var(--text-muted);
}

.profile-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: transform var(--transition-base);
  cursor: default;
}

.profile-name:hover {
  transform: scale(1.05);
}

.profile-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--bg);
  opacity: 0.7;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform var(--transition-base), opacity var(--transition-base);
  cursor: default;
}

.profile-title:hover {
  transform: scale(1.05);
  opacity: 1;
}

.profile-bio {
  font-size: 14px;
  color: var(--bg);
  opacity: 0.5;
  line-height: 1.6;
  max-width: 240px;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--bg);
  border-radius: var(--radius-md);
  color: var(--bg);
  opacity: 0.7;
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--bg);
  color: var(--text);
  transform: translateY(-2px) rotate(10deg) scale(1.1);
  opacity: 1;
}

/* Theme Toggle */
.theme-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--bg);
  border-radius: var(--radius-md);
  color: var(--bg);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
}

.theme-toggle:hover {
  background: var(--bg);
  color: var(--text);
  transform: rotate(15deg) scale(1.1);
}

.icon-sun,
.icon-moon {
  position: absolute;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.8);
}

.icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

[data-theme="light"] .icon-sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}

[data-theme="light"] .icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.8);
}

/* Sidebar Credit */
.sidebar-credit {
  font-size: 11px;
  color: var(--bg);
  opacity: 0.5;
  margin-top: auto;
}

.sidebar-credit a {
  color: var(--bg);
  opacity: 0.7;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity var(--transition-base), transform var(--transition-base);
  display: inline-block;
}

.sidebar-credit a:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* ========================================
   Main Content Area (Scrollable - Card Style)
   ======================================== */
.main-content {
  /* background: var(--surface); */
  /* border: 1px solid var(--surface-border); */
  /* border-radius: var(--radius-xl); */
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  position: relative;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.main-content::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* ========================================
   Navigation Bar (Icon-based)
   ======================================== */
.navbar {
  position: fixed;
  right: calc(var(--layout-margin) + 8px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: 12px;
  z-index: 50;
}

.nav-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  transition: all var(--transition-base);
  position: relative;
}

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

.nav-link.active {
  background: var(--text);
  color: var(--bg);
}

/* Profile nav link - hidden on desktop, visible on mobile */
.nav-profile {
  display: none;
}

/* Tooltip */
.nav-link::before {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 12px);
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: all var(--transition-fast);
}

.nav-link:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* ========================================
   Sections
   ======================================== */
.section {
  padding: 80px 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section:first-of-type {
  padding-top: 60px;
}

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 40px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.title-muted {
  color: var(--text-muted);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  min-height: 100vh;
}

.hero-badge {
  display: inline-block;
  width: auto;
  padding: 14px 28px;
  background: var(--bg);
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 32px;
  margin-right: auto;
  overflow: hidden;
  position: relative;
  z-index: 1;
  cursor: default;
  --mouse-x: 50%;
  --mouse-y: 50%;
}

.hero-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 150px at var(--mouse-x) var(--mouse-y),
    var(--text) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
  pointer-events: none;
}

.hero-badge:hover::before {
  opacity: 1;
}

.hero-badge-text {
  position: relative;
  z-index: 1;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  transition: none;
}

.hero-badge:hover .hero-badge-text {
  background: radial-gradient(
    circle 150px at var(--mouse-x) var(--mouse-y),
    var(--bg) 0%,
    var(--text) 60%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title {
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-title .highlight {
  color: var(--text);
}

/* Hero Grid (Bento) */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  grid-template-rows: repeat(2, 180px);
  gap: 16px;
  max-width: 900px;
}

/* Stat Cards */
.stat-card {
  background: var(--bg);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease 0.1s;
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: var(--text);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transform-origin: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.stat-card:hover::before {
  transform: translate(-50%, -50%) scale(1.5);
}

.stat-card .stat-label,
.stat-card .stat-number {
  position: relative;
  z-index: 2;
  transition: color 0.3s ease 0.1s;
}

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

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--text-muted);
  color: var(--bg);
}

.stat-card:hover .stat-label {
  color: var(--bg);
  opacity: 0.7;
}

.stat-number {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Visual Cards */
.visual-card {
  grid-column: span 2;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--surface-border);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-base);
}

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

.visual-card:hover {
  transform: translateY(-4px);
  border-color: var(--text-muted);
}

.visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.visual-card:hover img {
  transform: scale(1.05);
}

/* ========================================
   Projects Grid
   ======================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 900px;
}

.project-card {
  background: var(--bg);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease 0.1s;
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: var(--text);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transform-origin: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.project-card:hover::before {
  transform: translate(-50%, -50%) scale(1.5);
}

.project-card .project-label,
.project-card .project-desc,
.project-card .project-title,
.project-card .project-icon {
  position: relative;
  z-index: 2;
  transition: color 0.3s ease 0.1s;
}

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

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--text-muted);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  color: var(--bg);
}

.project-card:hover .project-label,
.project-card:hover .project-desc {
  color: var(--bg);
  opacity: 0.7;
}

.project-card.featured {
  grid-column: span 2;
  padding: 36px;
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.project-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.project-card.featured .project-title {
  font-size: 26px;
}

.project-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.project-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-top: 6px;
}

.project-link.muted {
  color: var(--text-muted);
}

.project-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: var(--radius-md);
  font-size: 28px;
}

.project-card.featured .project-icon {
  width: 80px;
  height: 80px;
  font-size: 36px;
}

/* ========================================
   Experience Grid
   ======================================== */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  max-width: 900px;
}

.experience-card {
  background: var(--bg);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease 0.1s;
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.experience-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: var(--text);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transform-origin: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.experience-card:hover::before {
  transform: translate(-50%, -50%) scale(1.5);
}

.experience-card .experience-company,
.experience-card .experience-role,
.experience-card .experience-date,
.experience-card .experience-desc {
  position: relative;
  z-index: 2;
  transition: color 0.3s ease 0.1s;
}

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

.experience-card:hover {
  transform: translateY(-4px);
  border-color: var(--text-muted);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  color: var(--bg);
}

.experience-card:hover .experience-company,
.experience-card:hover .experience-role {
  color: var(--bg);
}

.experience-card:hover .experience-date,
.experience-card:hover .experience-desc {
  color: var(--bg);
  opacity: 0.7;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.experience-company {
  font-size: 13px;
  font-weight: 600;
}

.experience-date {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.experience-role {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.experience-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ========================================
   Tools Grid
   ======================================== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 900px;
}

/* If enough space → 3 columns */
@media (min-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tool-card {
  background: var(--bg);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease 0.1s;
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: var(--text);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transform-origin: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.tool-card:hover::before {
  transform: translate(-50%, -50%) scale(1.5);
}

.tool-card .tool-icon,
.tool-card .tool-name,
.tool-card .tool-desc {
  position: relative;
  z-index: 2;
  transition: color 0.3s ease 0.1s;
}

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

.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--text-muted);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  color: var(--bg);
}

.tool-card:hover .tool-desc {
  color: var(--bg);
  opacity: 0.7;
}

.tool-icon {
  font-size: 28px;
  line-height: 1;
}

.tool-name {
  font-size: 13px;
  font-weight: 700;
}

.tool-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* ========================================
   Achievements Grid
   ======================================== */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
}

.achievement-card {
  background: var(--bg);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease 0.1s;
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.achievement-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: var(--text);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transform-origin: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.achievement-card:hover::before {
  transform: translate(-50%, -50%) scale(1.5);
}

.achievement-card .achievement-icon,
.achievement-card h3,
.achievement-card p {
  position: relative;
  z-index: 2;
  transition: color 0.3s ease 0.1s;
}

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

.achievement-card:hover {
  transform: translateY(-4px);
  border-color: var(--text-muted);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  color: var(--bg);
}

.achievement-card:hover p {
  color: var(--bg);
  opacity: 0.7;
}

.achievement-icon {
  font-size: 36px;
  line-height: 1;
}

.achievement-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}

.achievement-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-card {
  background: var(--bg);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 700px;
  text-align: center;
}

.contact-text {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
}

.contact-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-xl);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--surface-border);
}

.btn-outline:hover {
  background: var(--surface);
  border-color: var(--text-muted);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: 40px 60px;
  border-top: 1px solid var(--surface-border);
  color: var(--text-muted);
  font-size: 13px;
}

/* ========================================
   Mobile Menu Toggle
   ======================================== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: calc(var(--layout-margin) + 8px);
  left: calc(var(--layout-margin) + 8px);
  z-index: 200;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  color: var(--text);
  cursor: pointer;
}

.mobile-menu-toggle.active {
  background: var(--text);
  color: var(--bg);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1200px) {
  :root {
    --sidebar-width: 230px;
    --content-width: 85%;
  }

  .hero-grid .stat-card:nth-child(3) {
    grid-column: span 1;
  }

  .hero-grid .visual-card:nth-child(4) {
    grid-column: span 2;
  }

  .hero-grid .visual-card:nth-child(5) {
    grid-column: span 1;
  }

  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1124px) {
  :root {
    --layout-margin: 16px;
    --content-width: 90%;
  }

  .layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100vh - var(--layout-margin) * 2);
  }

  .sidebar {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    transform: none;
    z-index: 1;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
  }

  .sidebar-content {
    padding: 32px 24px;
    gap: 20px;
  }

  .profile-img {
    width: 100px;
    height: 100px;
  }

  .profile-name {
    font-size: 20px;
  }

  .social-links {
    gap: 8px;
  }

  .social-link {
    width: 40px;
    height: 40px;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
  }

  .sidebar-credit {
    display: none;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .main-content {
    height: auto;
    overflow: visible;
  }

  body {
    overflow: auto;
    align-items: flex-start;
  }

  .navbar {
    right: calc(var(--layout-margin) + 8px);
    padding: 8px;
  }

  .nav-link {
    width: 36px;
    height: 36px;
  }

  .nav-link::before {
    display: none;
  }

  .nav-profile {
    display: flex;
  }

  .section {
    padding: 60px 24px;
    padding-right: 80px;
    min-height: auto;
  }

  .section:first-of-type {
    padding-top: 40px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid .stat-card,
  .hero-grid .visual-card {
    grid-column: span 1;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-column: span 1;
  }

  .experience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --layout-margin: 12px;
    --content-width: 95%;
  }

  .sidebar-content {
    padding: 24px 20px;
    gap: 16px;
  }

  .profile-img {
    width: 80px;
    height: 80px;
  }

  .profile-name {
    font-size: 18px;
  }

  .profile-title {
    font-size: 12px;
  }

  .profile-bio {
    font-size: 13px;
  }

  .section {
    padding: 48px 20px;
    padding-right: 70px;
    min-height: auto;
  }

  .hero-title {
    font-size: 22px;
  }

  .stat-number {
    font-size: 32px;
  }

  .experience-grid,
  .achievements-grid {
    grid-template-columns: 1fr;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-card {
    padding: 32px 24px;
  }

  .contact-links {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .footer {
    padding: 32px 20px;
    padding-right: 70px;
  }
}

@media (max-width: 480px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid .visual-card {
    height: 160px;
  }

  .project-card {
    padding: 20px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-icon {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .navbar {
    bottom: 16px;
    top: auto;
    right: 50%;
    transform: translateX(50%);
    flex-direction: row;
  }
}
