/* ========================================
   STYLES.MIN.CSS - All Styles Combined
   Generated: 2026-01-13
   ======================================== */

/* ========================================
   1. BASE.CSS - Core Styles
   ======================================== */

:root {
  --bg: #030303;
  --bg-card: rgba(0, 255, 136, 0.02);
  --bg-card-hover: rgba(0, 255, 136, 0.06);
  --primary: #00ff88;
  --primary-dim: rgba(0, 255, 136, 0.1);
  --secondary: #00cc6a;
  --accent: #00ff88;
  --accent-dim: rgba(0, 255, 136, 0.1);
  --pink: #ff3366;
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.55);
  --border: rgba(0, 255, 136, 0.06);
  --border-hover: rgba(0, 255, 136, 0.25);
  --glow-primary: rgba(0, 255, 136, 0.4);
  --glow-secondary: rgba(0, 204, 106, 0.3);
  --glow-accent: rgba(0, 255, 136, 0.4);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Monaco, 'Courier New', monospace;
}

*, *::before, *::after { 
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box; 
  margin: 0; 
  padding: 0;
}

::-webkit-scrollbar { width: 10px !important; }
::-webkit-scrollbar-track { background: #0a0a0a !important; }
::-webkit-scrollbar-thumb { background: #00ff88 !important; border: none !important; border-radius: 0 !important; }
::-webkit-scrollbar-thumb:hover { background: #00cc6a !important; }

html { 
  scroll-behavior: smooth;
  scrollbar-width: auto;
  scrollbar-color: #00ff88 #0a0a0a;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  overscroll-behavior: none;
}

.hero-card, .skill-card, .project-card, .btn, .nav-cta, 
.profile-link, .social-link, .scroll-top, .story-block,
.facts-card, .tech-card, .info-item, .tech-tag {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  perspective: 1000px;
}

* { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; -webkit-appearance: none; appearance: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }
* { scrollbar-width: auto; scrollbar-color: #00ff88 #0a0a0a; }

@media (hover: none) {
  * { -webkit-tap-highlight-color: transparent; }
  a, button { touch-action: manipulation; }
}


/* ========================================
   2. LAYOUT.CSS - Container, Navbar, Footer
   ======================================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-3) var(--space-6);
  background: var(--primary);
  color: var(--bg);
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius);
  z-index: 10001;
  transition: top 0.3s ease;
}
.skip-link:focus { top: var(--space-4); outline: 2px solid var(--secondary); outline-offset: 2px; }

.page { min-height: 100vh; padding-top: 100px; position: relative; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-6); }
section { padding: var(--space-24) 0; position: relative; }

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  width: 0%;
  z-index: 1001;
  box-shadow: 0 0 20px var(--glow-primary);
}

.navbar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  width: calc(100% - 48px);
  max-width: 1200px;
  z-index: 1000;
  background: rgba(3, 3, 3, 0.98);
  border: 1px solid rgba(0, 255, 136, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 var(--space-6); }

.brand { display: flex; align-items: center; gap: var(--space-3); }
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
  color: #000;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px var(--glow-primary);
}
.brand-mark:hover { transform: scale(1.05); box-shadow: 0 0 30px var(--glow-primary); }
.brand-text { font-weight: 600; font-size: 15px; color: var(--text); }
.brand-sub { font-size: 11px; color: var(--text-muted); }

.nav-links { display: flex; align-items: center; gap: var(--space-6); }
.nav-link { font-size: 14px; color: var(--text-muted); transition: all 0.3s; position: relative; font-weight: 500; }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--primary); border-radius: 2px; transition: width 0.3s; }
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-cta {
  padding: var(--space-2) var(--space-5);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  background: var(--primary);
  color: #000;
  border: none;
  transition: all 0.3s;
  box-shadow: 0 0 15px var(--glow-primary);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 0 25px var(--glow-primary), 0 4px 15px rgba(0, 255, 136, 0.3); }

footer { 
  border-top: 1px solid rgba(255, 255, 255, 0.05); 
  padding: 60px 0 30px; 
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3)); 
  margin-top: 60px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #000;
}

.footer-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
}

.footer-role {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

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

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #000;
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom i {
  margin: 0 4px;
}

.menu-btn { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: var(--space-2); }
.menu-btn span { width: 24px; height: 2px; background: var(--text); transition: 0.3s; border-radius: 2px; }
.menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.menu-btn.active span:nth-child(2) { opacity: 0; }
.menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

.scroll-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 50px;
  height: 50px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  color: white;
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s;
  box-shadow: 0 4px 25px var(--glow-primary);
  cursor: pointer;
}
.scroll-top.show { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-6px) scale(1.1); }

a.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; }
a.brand-mark { text-decoration: none; }


/* ========================================
   3. COMPONENTS.CSS - Buttons, Badges, etc
   ======================================== */

.btn {
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  transition: all 0.3s ease;
  cursor: pointer;
  user-select: none;
}

.btn-primary { 
  background: var(--primary); 
  color: #000; 
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}
.btn-primary:hover { 
  transform: translateY(-3px); 
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost { 
  background: rgba(255, 255, 255, 0.05); 
  color: var(--text); 
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { 
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25); 
  transform: translateY(-3px);
}

/* Bubble Button Effect */
.svg-filter { position: absolute; width: 0; height: 0; visibility: hidden; }

.bubble-btn-wrap {
  position: relative;
  display: inline-block;
}

.bubble-btn {
  position: relative;
  z-index: 2;
  display: inline-block;
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.5px;
  background: none;
  transition: all 0.15s ease-out;
  cursor: pointer;
}

.bubble-btn.primary { color: #000; }
.bubble-btn.secondary { color: #fff; }

.bubble-effect {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  filter: url("#goo");
  pointer-events: none;
  z-index: 1;
}

.bubble-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: var(--primary);
  border-radius: 12px;
  transition: transform 0.15s ease-out;
}

.bubble-btn.secondary + .bubble-effect .bubble-bg {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.bubble {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0;
  transition: all 0.3s ease-out;
  pointer-events: none;
}

.bubble-btn.secondary + .bubble-effect .bubble {
  background: rgba(255, 255, 255, 0.2);
}

.bubble.top-left { top: 50%; left: 5px; }
.bubble.top-left:nth-child(2) { top: 30%; }
.bubble.top-left:nth-child(3) { top: 70%; }

.bubble.bottom-right { top: 50%; right: 5px; }
.bubble.bottom-right:nth-child(6) { top: 30%; }
.bubble.bottom-right:nth-child(7) { top: 70%; }

.bubble-btn:hover + .bubble-effect .bubble-bg {
  transform: scale(1.02);
}

.bubble-btn:active + .bubble-effect .bubble-bg {
  transform: scale(0.98);
}

.btn-full { width: 100%; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; border: none; }
.btn-full i { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.btn-full:hover { box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  width: fit-content;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  background: rgba(0, 255, 136, 0.1);
  color: var(--accent);
  border: 1px solid rgba(0, 255, 136, 0.25);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--glow-accent); animation: pulse 2s ease-in-out infinite; }

.badge { 
  padding: 6px 12px; 
  border-radius: 8px; 
  background: rgba(0, 255, 136, 0.1); 
  color: var(--accent); 
  font-size: 12px; 
  font-weight: 600; 
  border: 1px solid rgba(0, 255, 136, 0.2); 
}

.tag { 
  padding: 6px 12px; 
  border-radius: 6px; 
  font-size: 12px; 
  font-weight: 500; 
  background: rgba(255, 255, 255, 0.05); 
  color: var(--text-muted); 
  border: none;
  transition: all 0.2s ease; 
}
.tag:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { padding: var(--space-2) var(--space-3); border-radius: var(--radius); font-size: 12px; font-weight: 500; background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(0, 255, 136, 0.05)); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-secondary); transition: all 0.3s ease; }
.chip:hover { border-color: var(--primary); color: var(--primary); background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 204, 106, 0.08)); transform: translateY(-3px); }

.section-header { margin-bottom: 48px; text-align: center; }
.eyebrow { 
  font-size: 13px; 
  font-weight: 600; 
  color: var(--primary); 
  margin-bottom: 12px; 
  text-transform: uppercase; 
  letter-spacing: 0.1em; 
  display: inline-block; 
}
.section-title { 
  font-size: 40px; 
  font-weight: 700; 
  letter-spacing: -0.02em; 
  margin-bottom: 16px; 
  color: var(--text);
}
.section-desc { color: var(--text-muted); font-size: 16px; max-width: 500px; margin: 0 auto; line-height: 1.6; }

.toast { position: fixed; bottom: var(--space-6); left: 50%; transform: translateX(-50%) translateY(100px); background: var(--bg-card); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4) var(--space-6); font-size: 14px; opacity: 0; transition: all 0.4s; z-index: 9999; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { border-color: var(--accent); box-shadow: 0 0 30px var(--glow-accent); }
.toast.error { border-color: var(--pink); box-shadow: 0 0 30px rgba(255, 0, 110, 0.5); }

.coming-soon-badge { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 20px; border-radius: var(--radius); font-size: 13px; font-weight: 600; color: var(--text-muted); background: linear-gradient(135deg, rgba(0, 204, 106, 0.1), rgba(0, 255, 136, 0.1)); border: 1px dashed rgba(255, 255, 255, 0.15); }
.coming-soon-badge i { font-size: 14px; color: var(--primary); animation: pulse 2s ease-in-out infinite; }


/* ========================================
   4. SECTIONS.CSS - Hero, Skills, Projects
   ======================================== */

#hero { padding: var(--space-16) 0 var(--space-24); min-height: calc(100vh - 80px); display: flex; align-items: center; }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: center; }
.hero-content { display: flex; flex-direction: column; gap: var(--space-5); }

.hero h1 { font-size: 64px; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; background: linear-gradient(135deg, #fff 0%, var(--primary) 50%, var(--secondary) 100%); background-size: 200% 200%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: gradientMove 5s ease infinite; }
.hero h2 { font-size: 20px; font-weight: 400; color: var(--text-secondary); }
.hero p { color: var(--text-muted); font-size: 16px; line-height: 1.8; max-width: 480px; }
.hero-actions { display: flex; gap: var(--space-4); margin-top: var(--space-4); margin-bottom: var(--space-6); }
.hero-note { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }

.hero-card { 
  background: rgba(255, 255, 255, 0.02); 
  border: 1px solid rgba(255, 255, 255, 0.08); 
  border-radius: 16px; 
  padding: 24px; 
  position: relative; 
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out, box-shadow 0.3s ease;
}

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

.hero-card:hover::before {
  left: 100%;
}

.hero-card:hover { 
  border-color: rgba(0, 255, 136, 0.2);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(0, 255, 136, 0.1);
}

.card-header { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot:nth-child(1) { background: #ff5f57; }
.dot:nth-child(2) { background: #febc2e; }
.dot:nth-child(3) { background: #28c840; }

.code { font-family: var(--font-mono); font-size: 14px; background: rgba(0, 0, 0, 0.6); padding: var(--space-5); border-radius: var(--radius); margin-bottom: var(--space-4); line-height: 2; border: 1px solid var(--border); }
.code .k { color: #ff79c6; font-weight: 600; }
.code .v { color: #50fa7b; }
.code .o { color: #f8f8f2; }
.code .b { color: #ffb86c; }
.code .p { color: #8be9fd; }
.code .s { color: #f1fa8c; }
.code .n { color: #bd93f9; }
.code .f { color: #50fa7b; }
.code .c { color: #6272a4; font-style: italic; }

.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; perspective: 1000px; }
.skill-card { 
  background: rgba(255, 255, 255, 0.02); 
  border: 1px solid rgba(255, 255, 255, 0.06); 
  border-radius: 20px; 
  padding: 32px; 
  transition: transform 0.1s ease-out, box-shadow 0.3s ease, border-color 0.3s ease; 
  opacity: 0; 
  transform: translateY(30px);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(0, 255, 136, 0.15),
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: none;
  pointer-events: none;
}

.skill-card:hover::before {
  left: 100%;
  transition: left 0.6s ease;
}

.skill-card:hover {
  border-color: rgba(0, 255, 136, 0.25);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 255, 136, 0.1);
}

.skill-card.visible { opacity: 1; transform: translateY(0) rotateX(0) rotateY(0); }

.skill-icon { 
  font-size: 42px; 
  margin-bottom: 20px; 
  color: var(--primary);
  transition: transform 0.3s ease;
  display: inline-block;
}
.skill-card:hover .skill-icon { transform: scale(1.1); }
.skill-name { font-size: 18px; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.skill-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
.skill-level { 
  font-size: 11px; 
  font-weight: 600; 
  text-transform: uppercase; 
  color: var(--primary); 
  padding: 8px 14px; 
  background: rgba(0, 255, 136, 0.1); 
  border-radius: 8px; 
  display: inline-block;
  letter-spacing: 0.5px;
}

.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; perspective: 1000px; }
.project-card { 
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)); 
  border: 1px solid rgba(255, 255, 255, 0.08); 
  border-radius: 20px; 
  overflow: hidden; 
  transition: transform 0.1s ease-out, box-shadow 0.3s ease, border-color 0.3s ease; 
  opacity: 0; 
  transform: translateY(30px);
  transform-style: preserve-3d;
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(0, 255, 136, 0.1),
    rgba(255, 255, 255, 0.08),
    transparent
  );
  z-index: 10;
  pointer-events: none;
  transition: none;
}

.project-card:hover::before {
  left: 100%;
  transition: left 0.7s ease;
}

.project-card.visible { opacity: 1; transform: translateY(0); }
.project-card:hover { 
  border-color: rgba(0, 255, 136, 0.2);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 255, 136, 0.08);
}
.project-thumb { 
  height: 200px; 
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 204, 106, 0.02)); 
  position: relative; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.project-label { 
  padding: 8px 16px; 
  border-radius: 10px; 
  font-size: 12px; 
  font-weight: 600; 
  background: rgba(0, 0, 0, 0.7); 
  backdrop-filter: blur(10px); 
  position: absolute; 
  bottom: 16px; 
  left: 16px; 
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.project-body { padding: 28px; }
.project-title { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.project-text { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.project-actions { display: flex; gap: 12px; }
.project-actions a, .project-actions span { 
  flex: 1; 
  text-align: center; 
  padding: 14px 20px; 
  border-radius: 12px; 
  font-size: 14px; 
  font-weight: 600; 
  transition: all 0.3s ease; 
}
.project-actions .primary { 
  background: var(--primary); 
  color: #000; 
}
.project-actions .primary:hover { 
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 255, 136, 0.3);
}
.project-actions .secondary { 
  background: rgba(255, 255, 255, 0.05); 
  color: var(--text); 
  border: 1px solid rgba(255, 255, 255, 0.1); 
}
.project-actions .secondary:hover { 
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
.coming-soon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(0, 255, 136, 0.05);
  border: 1px dashed rgba(0, 255, 136, 0.2);
}
.coming-soon-badge i { color: var(--primary); }
.projects-note { text-align: center; margin-top: var(--space-12); color: var(--text-muted); font-size: 14px; }
.link-accent { color: var(--primary); transition: all 0.3s; }
.link-accent:hover { opacity: 0.8; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .project-thumb img { transform: scale(1.05); }


/* ========================================
   5. FORMS.CSS - Contact Form Styles
   ======================================== */

.contact-form { display: flex; flex-direction: column; gap: var(--space-4); position: relative; z-index: 2; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form-group { display: flex; flex-direction: column; gap: var(--space-2); }
.form-group label { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.form-group input, .form-group textarea { padding: var(--space-3) var(--space-4); border-radius: var(--radius); border: 1px solid var(--border); background: rgba(0, 0, 0, 0.3); color: var(--text); font-family: var(--font); font-size: 14px; transition: all 0.3s; outline: none; -webkit-appearance: none; appearance: none; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-dim), 0 0 20px var(--glow-primary); background: rgba(0, 255, 136, 0.03); }
.form-group textarea { resize: vertical; min-height: 120px; }
.btn.loading { pointer-events: none; opacity: 0.7; }
.btn.loading span:first-child { opacity: 0; }
.btn-loader { position: absolute; width: 20px; height: 20px; border: 2px solid transparent; border-top-color: white; border-radius: 50%; animation: spin 0.8s linear infinite; opacity: 0; }
.btn.loading .btn-loader { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ========================================
   6. LOADER.CSS - Matrix Hacker Style
   ======================================== */

.loader { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--bg); display: flex; align-items: center; justify-content: center; z-index: 99999; overflow: hidden; }
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.3s ease, visibility 0.3s ease; }
#loaderMatrix { display: none; }
.loader-scanlines { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: repeating-linear-gradient(0deg, transparent 0px, transparent 2px, rgba(0, 0, 0, 0.3) 2px, rgba(0, 0, 0, 0.3) 4px); pointer-events: none; z-index: 2; }
.loader-content { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.loader-logo-wrap { position: relative; width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; }
.loader-hex { position: relative; width: 100px; height: 100px; display: flex; align-items: center; justify-content: center; }
.hex-border { position: absolute; inset: 0; border: 2px solid #00ff88; clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); animation: hexRotate 4s linear infinite, hexPulse 2s ease-in-out infinite; }
@keyframes hexRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes hexPulse { 0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.5), inset 0 0 20px rgba(0, 255, 136, 0.1); border-color: #00ff88; } 50% { box-shadow: 0 0 40px rgba(0, 255, 136, 0.8), inset 0 0 30px rgba(0, 255, 136, 0.2); border-color: #00cc6a; } }
.loader-letter { font-size: 48px; font-weight: 700; color: #00ff88; text-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88, 0 0 40px #00ff88; animation: letterGlitch 3s ease-in-out infinite; position: relative; }
.loader-letter::before, .loader-letter::after { content: attr(data-text); position: absolute; top: 0; left: 0; opacity: 0.8; }
.loader-letter::before { color: #ff0040; animation: glitchLeft 0.3s ease-in-out infinite; clip-path: inset(0 65% 0 0); }
.loader-letter::after { color: #00ffff; animation: glitchRight 0.3s ease-in-out infinite; clip-path: inset(0 0 0 65%); }
@keyframes glitchLeft { 0%, 100% { transform: translate(0); } 20% { transform: translate(-3px, 2px); } 40% { transform: translate(2px, -2px); } 60% { transform: translate(-2px, 1px); } 80% { transform: translate(3px, -1px); } }
@keyframes glitchRight { 0%, 100% { transform: translate(0); } 20% { transform: translate(3px, -2px); } 40% { transform: translate(-2px, 2px); } 60% { transform: translate(2px, -1px); } 80% { transform: translate(-3px, 1px); } }
@keyframes letterGlitch { 0%, 90%, 100% { opacity: 1; } 91% { opacity: 0.8; transform: translate(-2px, 0); } 92% { opacity: 1; transform: translate(2px, 0); } 93% { opacity: 0.9; transform: translate(0, 0); } }
.loader-pulse { position: absolute; inset: -10px; border: 1px solid rgba(0, 255, 136, 0.3); border-radius: 50%; animation: pulseExpand 2s ease-out infinite; }
@keyframes pulseExpand { 0% { transform: scale(0.8); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.loader-terminal { font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 14px; color: #00ff88; background: rgba(0, 255, 136, 0.05); border: 1px solid rgba(0, 255, 136, 0.2); padding: 10px 20px; border-radius: 4px; }
.terminal-prompt { color: #00cc6a; margin-right: 8px; }
.terminal-cursor { animation: cursorBlink 0.8s step-end infinite; }
@keyframes cursorBlink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
.loader-name-wrap { text-align: center; }
.loader-name { display: block; font-size: 28px; font-weight: 700; letter-spacing: 8px; color: #fff; text-shadow: 0 0 20px rgba(0, 255, 136, 0.5); margin-bottom: 8px; }
.loader-role { display: block; font-size: 12px; letter-spacing: 4px; color: rgba(0, 255, 136, 0.7); text-transform: uppercase; }
.loader-progress-container { width: 280px; }
.loader-progress-track { position: relative; height: 4px; background: rgba(0, 255, 136, 0.1); border-radius: 2px; overflow: hidden; border: 1px solid rgba(0, 255, 136, 0.2); }
.loader-progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, #00ff88, #00cc6a, #00ff88); background-size: 200% 100%; animation: progressShine 1s linear infinite; border-radius: 2px; transition: width 0.1s ease; }
@keyframes progressShine { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.loader-progress-glow { position: absolute; top: -2px; left: 0; height: 8px; width: 30%; background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.6), transparent); animation: glowMove 1.5s ease-in-out infinite; border-radius: 4px; }
@keyframes glowMove { 0% { left: -30%; } 100% { left: 100%; } }
.loader-progress-info { display: flex; justify-content: space-between; margin-top: 12px; font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.loader-status { color: rgba(0, 255, 136, 0.6); letter-spacing: 2px; }
.loader-percent { color: #00ff88; font-weight: 600; text-shadow: 0 0 10px rgba(0, 255, 136, 0.5); }


/* ========================================
   7. EFFECTS.CSS - Animations & Effects
   ======================================== */

@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, 30px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes gradientMove { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes cardFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes dotPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(0.8); } }

/* New Subtle Animations */
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
@keyframes iconBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes borderGlow { 0%, 100% { box-shadow: 0 0 5px var(--glow-primary), 0 0 10px transparent; } 50% { box-shadow: 0 0 10px var(--glow-primary), 0 0 20px var(--glow-secondary); } }
@keyframes textGlow { 0%, 100% { text-shadow: 0 0 10px var(--glow-primary); } 50% { text-shadow: 0 0 20px var(--glow-primary), 0 0 30px var(--glow-secondary); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

.page { min-height: 100vh; }

.page-transition { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--bg); z-index: 999; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; pointer-events: none; }
.page-transition.active { opacity: 1; visibility: visible; }

body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 255, 136, 0.12), transparent 50%); pointer-events: none; z-index: -1; }
body::after { content: ''; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(ellipse at center bottom, rgba(0, 204, 106, 0.05), transparent 60%); pointer-events: none; z-index: -1; }

.grid-pattern { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-image: linear-gradient(rgba(0, 255, 136, 0.015) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 255, 136, 0.015) 1px, transparent 1px); background-size: 60px 60px; pointer-events: none; z-index: -1; opacity: 0.5; }

.ambient-bg { position: fixed; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: -2; overflow: hidden; }
.ambient-orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.4; }
.ambient-orb:nth-child(1) { width: 600px; height: 600px; background: rgba(0, 255, 136, 0.08); top: -200px; right: -100px; }
.ambient-orb:nth-child(2) { width: 500px; height: 500px; background: rgba(0, 204, 106, 0.06); bottom: -200px; left: -100px; }

.morphing-shapes { position: fixed; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: -3; overflow: hidden; }
.morph-shape { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.35; animation: morphFloat 25s ease-in-out infinite; }
@keyframes morphFloat { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, -40px) scale(1.1); } 66% { transform: translate(-30px, 30px) scale(0.9); } }
.morph-1 { width: 350px; height: 350px; background: linear-gradient(135deg, rgba(0, 255, 136, 0.06), rgba(0, 204, 106, 0.04)); top: 10%; right: -5%; }
.morph-2 { width: 300px; height: 300px; background: linear-gradient(135deg, rgba(0, 204, 106, 0.05), rgba(0, 255, 136, 0.03)); bottom: 20%; left: -3%; animation-delay: -8s; }
.morph-3 { width: 250px; height: 250px; background: linear-gradient(135deg, rgba(0, 255, 136, 0.04), rgba(0, 204, 106, 0.03)); top: 45%; left: 35%; animation-delay: -16s; }

.noise-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 1; opacity: 0.02; background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.cursor-trail { position: fixed; pointer-events: none; z-index: 1; display: none; }
@media (min-width: 1024px) and (hover: hover) { .cursor-trail { display: block; } }
.trail-dot { position: absolute; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); }

#particles { position: fixed; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: -1; }

.project-card, .section-header { opacity: 0; transform: translate3d(0, 25px, 0); }
.project-card.visible, .section-header.visible { opacity: 1; transform: translate3d(0, 0, 0); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.skill-card.visible { opacity: 1; transform: translateY(0); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.skill-card:nth-child(1) { transition-delay: 0s; }
.skill-card:nth-child(1) .skill-icon { animation-delay: 0s; }
.skill-card:nth-child(2) { transition-delay: 0.08s; }
.skill-card:nth-child(2) .skill-icon { animation-delay: 0.5s; }
.skill-card:nth-child(3) { transition-delay: 0.16s; }
.skill-card:nth-child(3) .skill-icon { animation-delay: 1s; }
.skill-card:nth-child(4) { transition-delay: 0.24s; }
.skill-card:nth-child(4) .skill-icon { animation-delay: 1.5s; }
.skill-card:nth-child(5) { transition-delay: 0.32s; }
.skill-card:nth-child(5) .skill-icon { animation-delay: 2s; }
.skill-card:nth-child(6) { transition-delay: 0.4s; }
.skill-card:nth-child(6) .skill-icon { animation-delay: 2.5s; }
.project-card:nth-child(1) { transition-delay: 0s; }
.project-card:nth-child(2) { transition-delay: 0.1s; }
.project-card:nth-child(3) { transition-delay: 0.2s; }

.gradient-text { background: linear-gradient(135deg, var(--primary), var(--secondary), var(--primary)); background-size: 200% 200%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: gradientMove 4s ease infinite; }

.text-reveal { opacity: 0; }
.text-reveal.visible { opacity: 1; }
.text-reveal .word { display: inline-block; opacity: 0; transform: translateY(20px); transition: opacity 0.4s ease, transform 0.4s ease; }
.text-reveal.visible .word { opacity: 1; transform: translateY(0); }

.floating-elements { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.floating-icon { position: absolute; font-size: 24px; color: rgba(0, 212, 255, 0.15); animation: floatIcon 20s ease-in-out infinite; }
.floating-icon:nth-child(1) { top: 15%; left: 10%; animation-duration: 18s; }
.floating-icon:nth-child(2) { top: 25%; right: 15%; animation-delay: -3s; animation-duration: 22s; color: rgba(123, 97, 255, 0.15); }
.floating-icon:nth-child(3) { bottom: 30%; left: 8%; animation-delay: -6s; animation-duration: 20s; }
.floating-icon:nth-child(4) { top: 60%; right: 10%; animation-delay: -9s; animation-duration: 24s; color: rgba(123, 97, 255, 0.15); }
.floating-icon:nth-child(5) { bottom: 15%; left: 20%; animation-delay: -12s; animation-duration: 19s; }
.floating-shape { position: absolute; border: 1px solid rgba(0, 212, 255, 0.1); animation: floatShape 25s ease-in-out infinite; }
.floating-shape:nth-child(6) { width: 60px; height: 60px; border-radius: 12px; top: 20%; right: 25%; animation-delay: -2s; transform: rotate(45deg); }
.floating-shape:nth-child(7) { width: 40px; height: 40px; border-radius: 50%; bottom: 25%; right: 30%; animation-delay: -8s; border-color: rgba(123, 97, 255, 0.1); }
.floating-shape:nth-child(8) { width: 80px; height: 80px; border-radius: 16px; top: 45%; left: 15%; transform: rotate(15deg); }
@keyframes floatIcon { 0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.15; } 25% { transform: translate(30px, -40px) rotate(10deg); opacity: 0.25; } 50% { transform: translate(-20px, -60px) rotate(-5deg); opacity: 0.15; } 75% { transform: translate(40px, -30px) rotate(15deg); opacity: 0.2; } }
@keyframes floatShape { 0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0.1; } 33% { transform: translate(50px, -50px) rotate(120deg) scale(1.1); opacity: 0.2; } 66% { transform: translate(-30px, -80px) rotate(240deg) scale(0.9); opacity: 0.15; } }

#matrixRain { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; opacity: 0.15; }

.glitch { position: relative; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; }
.glitch:hover::before { animation: glitch-1 0.3s linear infinite; color: #00ff88; z-index: -1; opacity: 0.8; }
.glitch:hover::after { animation: glitch-2 0.3s linear infinite; color: #00cc6a; z-index: -2; opacity: 0.8; }
@keyframes glitch-1 { 0%, 100% { transform: translate(0); } 20% { transform: translate(-2px, 2px); } 40% { transform: translate(-2px, -2px); } 60% { transform: translate(2px, 2px); } 80% { transform: translate(2px, -2px); } }
@keyframes glitch-2 { 0%, 100% { transform: translate(0); } 20% { transform: translate(2px, -2px); } 40% { transform: translate(2px, 2px); } 60% { transform: translate(-2px, -2px); } 80% { transform: translate(-2px, 2px); } }

.scan-lines::after { content: ''; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.1) 0px, rgba(0, 0, 0, 0.1) 1px, transparent 1px, transparent 2px); pointer-events: none; z-index: 1; opacity: 0.3; }


/* ========================================
   8. ABOUT.CSS - About Page Styles
   ======================================== */

.about-hero { padding: var(--space-16) 0 var(--space-24); position: relative; }
.about-hero::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 600px; height: 600px; background: radial-gradient(circle, rgba(0, 255, 136, 0.06) 0%, transparent 70%); pointer-events: none; z-index: -1; }
.back-link { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--text-muted); font-size: 14px; margin-bottom: var(--space-8); padding: 10px 18px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); transition: all 0.3s; }
.back-link i { transition: transform 0.3s; }
.back-link:hover { color: var(--primary); border-color: rgba(0, 255, 136, 0.2); background: rgba(0, 255, 136, 0.05); }
.back-link:hover i { transform: translateX(-4px); }
.about-hero-content { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-16); align-items: center; }
.about-hero-text { display: flex; flex-direction: column; gap: var(--space-5); animation: fadeInUp 0.8s ease forwards; }
.about-title { font-size: 56px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.about-subtitle { font-size: 17px; color: var(--text-secondary); line-height: 1.8; max-width: 500px; }

.about-profile-card { 
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)); 
  border: 1px solid rgba(255, 255, 255, 0.08); 
  border-radius: 24px; 
  padding: var(--space-8); 
  text-align: center; 
  backdrop-filter: blur(20px); 
  position: relative; 
  overflow: hidden; 
  animation: fadeInUp 0.8s ease 0.2s forwards; 
  opacity: 0; 
  transition: all 0.4s; 
}
.about-profile-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary)); background-size: 200% 100%; animation: gradientMove 3s linear infinite; }
.about-profile-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 255, 136, 0.03) 0%, transparent 50%); pointer-events: none; }
.about-profile-card:hover { border-color: rgba(0, 255, 136, 0.25); box-shadow: 0 30px 80px rgba(0, 255, 136, 0.12), 0 0 60px rgba(0, 255, 136, 0.05); transform: translateY(-8px); }
.profile-glow { position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 30% 30%, rgba(0, 255, 136, 0.1), transparent 50%); animation: float 15s ease-in-out infinite; pointer-events: none; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(10px, -10px); } }
.profile-avatar { 
  width: 110px; 
  height: 110px; 
  border-radius: 20px; 
  background: linear-gradient(135deg, var(--primary), var(--secondary)); 
  display: grid; 
  place-items: center; 
  font-size: 44px; 
  font-weight: 700; 
  color: #000; 
  margin: 0 auto var(--space-5); 
  position: relative; 
  z-index: 1; 
  box-shadow: 0 20px 50px rgba(0, 255, 136, 0.35); 
  transition: all 0.4s; 
}
.about-profile-card:hover .profile-avatar { transform: scale(1.08) rotate(3deg); box-shadow: 0 25px 60px rgba(0, 255, 136, 0.45); }
.profile-info { position: relative; z-index: 1; }
.profile-info h2 { font-size: 26px; font-weight: 700; margin-bottom: var(--space-1); letter-spacing: -0.01em; }
.profile-info p { color: var(--text-muted); font-size: 15px; margin-bottom: var(--space-4); }
.profile-status { display: inline-flex; align-items: center; gap: var(--space-2); padding: 8px 16px; border-radius: var(--radius-full); background: rgba(40, 200, 64, 0.1); border: 1px solid rgba(40, 200, 64, 0.25); font-size: 13px; font-weight: 500; color: #28c840; margin-bottom: var(--space-5); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #28c840; box-shadow: 0 0 12px rgba(40, 200, 64, 0.6); animation: pulse 2s ease-in-out infinite; }
.profile-links { display: flex; justify-content: center; gap: var(--space-3); position: relative; z-index: 1; }
.profile-link { 
  width: 50px; 
  height: 50px; 
  border-radius: 14px; 
  background: rgba(255, 255, 255, 0.04); 
  border: 1px solid rgba(255, 255, 255, 0.1); 
  display: grid; 
  place-items: center; 
  color: var(--text-secondary); 
  font-size: 18px; 
  transition: all 0.3s; 
  position: relative; 
  overflow: hidden; 
}
.profile-link::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--primary), var(--secondary)); opacity: 0; transition: opacity 0.3s; }
.profile-link i { position: relative; z-index: 1; }
.profile-link:hover { border-color: transparent; color: #000; transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0, 255, 136, 0.35); }
.profile-link:hover::before { opacity: 1; }

.about-story { padding: var(--space-20) 0; }
.story-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-12); align-items: start; }
.story-content { display: flex; flex-direction: column; gap: var(--space-6); }
.story-block { 
  padding: var(--space-8); 
  border-radius: 20px; 
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)); 
  border: 1px solid rgba(255, 255, 255, 0.06); 
  backdrop-filter: blur(10px); 
  position: relative; 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
  overflow: hidden; 
}
.story-block::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--primary), var(--secondary)); transform: scaleY(0); transform-origin: bottom; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 0 4px 4px 0; }
.story-block:hover::before { transform: scaleY(1); transform-origin: top; }
.story-block:hover { border-color: rgba(0, 255, 136, 0.15); transform: translateX(12px); box-shadow: 0 20px 50px rgba(0, 255, 136, 0.08); }
.story-number { position: absolute; top: var(--space-5); right: var(--space-5); font-size: 64px; font-weight: 800; background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 204, 106, 0.05)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; transition: all 0.4s; line-height: 1; }
.story-block:hover .story-number { transform: scale(1.1); }
.story-block h3 { font-size: 22px; font-weight: 600; margin-bottom: var(--space-3); transition: color 0.3s; letter-spacing: -0.01em; }
.story-block:hover h3 { color: var(--primary); }
.story-block p { color: var(--text-muted); font-size: 15px; line-height: 1.8; }

.story-aside { display: flex; flex-direction: column; gap: var(--space-5); position: sticky; top: 100px; }
.facts-card, .tech-card { 
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)); 
  border: 1px solid rgba(255, 255, 255, 0.06); 
  border-radius: 20px; 
  padding: var(--space-6); 
  backdrop-filter: blur(10px); 
  transition: all 0.4s; 
}
.facts-card:hover, .tech-card:hover { border-color: rgba(0, 255, 136, 0.15); box-shadow: 0 20px 50px rgba(0, 255, 136, 0.08); transform: translateY(-5px); }
.facts-card h4, .tech-card h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--primary); margin-bottom: var(--space-5); display: flex; align-items: center; gap: var(--space-3); font-weight: 600; }
.facts-card h4::before, .tech-card h4::before { content: ''; width: 24px; height: 3px; background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: 2px; }
.facts-grid { display: flex; flex-direction: column; gap: var(--space-3); }
.fact-item { display: grid; grid-template-columns: auto 1fr; gap: 4px var(--space-4); padding: var(--space-4); border-radius: 12px; background: rgba(255, 255, 255, 0.02); border: 1px solid transparent; transition: all 0.3s; }
.fact-item:hover { background: rgba(0, 255, 136, 0.03); border-color: rgba(0, 255, 136, 0.1); transform: translateX(5px); }
.fact-icon { grid-row: span 2; font-size: 18px; color: var(--primary); display: flex; align-items: center; transition: transform 0.3s; width: 42px; height: 42px; background: rgba(0, 255, 136, 0.1); border-radius: 10px; justify-content: center; }
.fact-item:hover .fact-icon { transform: scale(1.1); }
.fact-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.fact-value { font-size: 14px; font-weight: 600; color: var(--text); }
.tech-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-tag { 
  padding: 10px 16px; 
  border-radius: 10px; 
  font-size: 13px; 
  font-weight: 500; 
  background: rgba(255, 255, 255, 0.03); 
  border: 1px solid rgba(255, 255, 255, 0.08); 
  color: var(--text-secondary); 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
  cursor: default; 
}
.tech-tag:hover { border-color: var(--primary); color: var(--primary); background: rgba(0, 255, 136, 0.08); transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0, 255, 136, 0.12); }

.about-contact-section { padding: var(--space-24) 0; padding-top: 120px; position: relative; }
.about-contact-section::before { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 800px; height: 400px; background: radial-gradient(ellipse, rgba(0, 255, 136, 0.05) 0%, transparent 70%); pointer-events: none; z-index: -1; }
.contact-header { text-align: center; margin-bottom: var(--space-12); }
.contact-wrapper { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-8); max-width: 1000px; margin: 0 auto; }
.contact-form-card { 
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)); 
  border: 1px solid rgba(255, 255, 255, 0.08); 
  border-radius: 24px; 
  padding: var(--space-8); 
  backdrop-filter: blur(10px); 
  transition: all 0.4s; 
  position: relative; 
  z-index: 1; 
}
.contact-form-card::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, transparent, var(--primary), transparent); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.4s; pointer-events: none; z-index: -1; }
.contact-form-card:hover::before, .contact-form-card:focus-within::before { opacity: 1; }
.contact-form-card:hover, .contact-form-card:focus-within { box-shadow: 0 30px 80px rgba(0, 255, 136, 0.1); transform: translateY(-5px); }
.contact-info-card { display: flex; flex-direction: column; gap: 14px; }
.info-item { 
  display: flex; 
  align-items: center; 
  gap: 18px; 
  padding: 20px; 
  border-radius: 16px; 
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)); 
  border: 1px solid rgba(255, 255, 255, 0.06); 
  transition: all 0.3s ease; 
}
.info-item:hover { border-color: rgba(0, 255, 136, 0.2); background: rgba(0, 255, 136, 0.03); transform: translateX(8px); }
.info-icon { 
  width: 52px; 
  height: 52px; 
  border-radius: 14px; 
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 255, 136, 0.05)); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  color: var(--primary); 
  font-size: 20px; 
  flex-shrink: 0; 
  transition: all 0.3s;
}
.info-item:hover .info-icon { transform: scale(1.1); box-shadow: 0 8px 25px rgba(0, 255, 136, 0.2); }
.info-content { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.info-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 500; }
.info-value { font-size: 15px; transition: color 0.3s; word-break: break-word; overflow-wrap: break-word; font-weight: 500; }
a.info-value:hover { color: var(--primary); }
.social-links { display: flex; gap: var(--space-3); margin-top: var(--space-4); }
.social-link { 
  flex: 1; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: var(--space-2); 
  padding: 14px; 
  border-radius: 14px; 
  background: rgba(255, 255, 255, 0.03); 
  border: 1px solid rgba(255, 255, 255, 0.08); 
  font-size: 13px; 
  font-weight: 600; 
  color: var(--text-secondary); 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}
.social-link:hover { background: linear-gradient(135deg, var(--primary), var(--secondary)); border-color: transparent; color: #000; box-shadow: 0 12px 30px rgba(0, 255, 136, 0.3); transform: translateY(-3px); }
.reveal-item { opacity: 0; transform: translateY(30px); transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal-item.visible { opacity: 1; transform: translateY(0); }


/* ========================================
   9. RESPONSIVE.CSS - Media Queries
   ======================================== */

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: var(--space-10); }
  .hero-content { align-items: center; }
  .hero h1 { font-size: 52px; }
  .hero p { max-width: 100%; }
  .hero-card { max-width: 450px; margin: 0 auto; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: 36px; }
  .about-title { font-size: 48px; }
  .about-hero-content { grid-template-columns: 1fr; gap: var(--space-8); text-align: center; }
  .about-hero-text { align-items: center; }
  .about-profile-card { max-width: 380px; margin: 0 auto; }
  .story-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .story-aside { position: static; flex-direction: column; gap: var(--space-4); }
  .facts-card, .tech-card { width: 100%; }
  .contact-wrapper { grid-template-columns: 1fr; gap: var(--space-6); }
}

@media (max-width: 768px) {
  .nav-links { position: fixed; top: 90px; left: 24px; right: 24px; background: rgba(10, 10, 10, 0.95); backdrop-filter: blur(20px); flex-direction: column; padding: var(--space-5); gap: var(--space-2); border: 1px solid rgba(0, 255, 136, 0.1); border-radius: var(--radius-lg); display: none; }
  .nav-links.active { display: flex; }
  .nav-links .nav-link { padding: var(--space-3); text-align: center; font-size: 15px; border-radius: var(--radius); min-height: 44px; display: flex; align-items: center; justify-content: center; }
  .nav-link::after, .nav-link::before { display: none; }
  .nav-cta { margin-top: var(--space-2); padding: var(--space-3) var(--space-6); text-align: center; min-height: 44px; }
  .menu-btn { display: flex; }
  .skills-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .projects-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  section { padding: var(--space-12) 0; }
  .section-header { margin-bottom: var(--space-8); }
  .section-title { font-size: 32px; }
  .eyebrow::before, .eyebrow::after { display: none; }
  .footer-content { flex-direction: column; gap: 30px; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 20px; }
  .footer-social { justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; width: 100%; max-width: 280px; gap: var(--space-3); }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .ambient-orb:nth-child(1) { width: 250px; height: 250px; opacity: 0.3; }
  .ambient-orb:nth-child(2) { width: 200px; height: 200px; opacity: 0.25; }
  .ambient-orb:nth-child(3), .morph-3, .noise-overlay, .floating-elements { display: none; }
  .cursor-trail { display: none !important; }
  .morph-1, .morph-2 { width: 180px; height: 180px; opacity: 0.2; }
  .grid-pattern { opacity: 0.3; }
  .scroll-top { width: 44px; height: 44px; bottom: var(--space-4); right: var(--space-4); }
  .about-hero-content { grid-template-columns: 1fr; gap: var(--space-10); text-align: center; }
  .about-hero-text { align-items: center; }
  .about-profile-card { max-width: 400px; margin: 0 auto; }
  .story-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .story-aside { position: static; flex-direction: column; gap: var(--space-4); }
  .facts-card, .tech-card { width: 100%; min-width: unset; }
  .contact-wrapper { grid-template-columns: 1fr; gap: var(--space-6); }
  .contact-form-card { order: 1; }
  .contact-info-card { order: 2; gap: 12px; }
  .social-links { flex-direction: row; gap: var(--space-2); }
  .info-item { 
    display: flex; 
    flex-direction: row; 
    align-items: center; 
    gap: 14px; 
    padding: 16px; 
    text-align: left; 
  }
  .info-icon { 
    width: 46px; 
    height: 46px; 
    min-width: 46px;
    font-size: 18px; 
    border-radius: 12px;
    flex-shrink: 0;
  }
  .info-content { 
    display: flex;
    flex-direction: column; 
    align-items: flex-start; 
    gap: 2px;
    min-width: 0;
    flex: 1;
  }
  .info-label { font-size: 10px; }
  .info-value { 
    font-size: 14px; 
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .form-row { grid-template-columns: 1fr; }
  .about-contact-section { padding: var(--space-12) 0; }
  .back-link { font-size: 13px; margin-bottom: var(--space-6); padding: 8px 14px; }
  .about-subtitle { font-size: 15px; max-width: 100%; }
  .about-hero { padding: var(--space-10) 0 var(--space-16); }
  .skill-card, .project-card, .story-block, .facts-card, .tech-card, .contact-form-card, .contact-info-card { opacity: 0; transform: translateY(30px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .skill-card.visible, .project-card.visible, .story-block.visible, .facts-card.visible, .tech-card.visible, .contact-form-card.visible, .contact-info-card.visible, .reveal-item.visible { opacity: 1; transform: translateY(0); }
  .hero-card { animation: mobileSlideUp 0.6s ease 0.2s forwards; opacity: 0; }
  @keyframes mobileSlideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
  .btn:active { transform: scale(0.95); transition: transform 0.1s ease; }
  .about-profile-card { animation: mobileFloat 4s ease-in-out infinite; }
  @keyframes mobileFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
  .pill { animation: mobilePillGlow 2s ease-in-out infinite; }
  @keyframes mobilePillGlow { 0%, 100% { box-shadow: 0 0 10px rgba(0, 255, 136, 0.2); } 50% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.4); } }
  .scroll-top.show { animation: mobileBounce 2s ease-in-out infinite; }
  @keyframes mobileBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
}

@media (max-width: 480px) {
  :root { --space-24: 48px; --space-16: 40px; --space-12: 32px; }
  .container { padding: 0 var(--space-4); }
  .navbar-inner { height: 56px; padding: 0 var(--space-4); }
  .page { padding-top: 90px; }
  .nav-links { top: 80px; left: 16px; right: 16px; }
  .brand-mark { width: 38px; height: 38px; font-size: 15px; }
  .brand-text { font-size: 13px; }
  .brand-sub { font-size: 10px; }
  .hero h1 { font-size: 36px; line-height: 1.2; margin-bottom: var(--space-3); }
  .hero h2 { font-size: 14px; line-height: 1.5; margin-bottom: var(--space-4); }
  .hero p { font-size: 13px; line-height: 1.7; margin-bottom: var(--space-5); }
  .hero-card { padding: var(--space-4); margin-top: var(--space-4); }
  .code { font-size: 10px; padding: var(--space-3); line-height: 1.8; }
  .btn { padding: var(--space-3) var(--space-5); font-size: 13px; }
  .pill { font-size: 11px; padding: 5px 10px; margin-bottom: var(--space-3); }
  .section-title { font-size: 28px; line-height: 1.3; margin-bottom: var(--space-3); }
  .section-desc { font-size: 13px; line-height: 1.7; }
  .skill-card { padding: var(--space-4); }
  .skill-icon { font-size: 32px; margin-bottom: var(--space-2); }
  .skill-name { font-size: 15px; line-height: 1.4; margin-bottom: var(--space-2); }
  .skill-desc { font-size: 12px; line-height: 1.6; margin-bottom: var(--space-2); }
  .project-thumb { height: 140px; }
  .project-body { padding: var(--space-4); }
  .project-title { font-size: 16px; line-height: 1.4; margin-bottom: var(--space-2); }
  .project-text { font-size: 12px; line-height: 1.6; margin-bottom: var(--space-3); }
  .project-actions { flex-direction: column; gap: var(--space-2); }
  .toast { left: var(--space-3); right: var(--space-3); transform: translateX(0) translateY(100px); }
  .toast.show { transform: translateX(0) translateY(0); }
  .ambient-orb:nth-child(1) { width: 200px; height: 200px; }
  .ambient-orb:nth-child(2) { width: 150px; height: 150px; }
  .morph-1, .morph-2 { width: 150px; height: 150px; }
  .grid-pattern { display: none; }
  .about-title { font-size: 40px; line-height: 1.2; }
  .story-block { padding: var(--space-6); border-radius: 16px; }
  .story-block h3 { font-size: 18px; line-height: 1.4; margin-bottom: var(--space-2); }
  .story-block p { font-size: 14px; line-height: 1.7; }
  .story-number { font-size: 48px; top: var(--space-4); right: var(--space-4); }
  .contact-form-card { padding: var(--space-5); border-radius: 18px; }
  .contact-info-card { gap: 10px; }
  .profile-avatar { width: 80px; height: 80px; font-size: 32px; border-radius: 16px; }
  .profile-link { width: 44px; height: 44px; font-size: 16px; border-radius: 12px; }
  .about-profile-card { padding: var(--space-6); border-radius: 20px; }
  .profile-info h2 { font-size: 20px; line-height: 1.4; }
  .profile-status { font-size: 12px; padding: 6px 14px; }
  .facts-card, .tech-card { padding: var(--space-5); min-width: 100%; border-radius: 16px; }
  .fact-icon { width: 38px; height: 38px; font-size: 16px; }
  .tech-tag { font-size: 12px; padding: 8px 12px; }
  .info-item { padding: 14px; border-radius: 12px; gap: 12px; }
  .info-icon { width: 42px; height: 42px; min-width: 42px; font-size: 16px; border-radius: 10px; }
  .info-value { font-size: 13px; }
  .social-links { flex-direction: row; margin-top: var(--space-2); }
  .social-link { padding: 12px 10px; font-size: 11px; border-radius: 10px; gap: 6px; }
  .loader-hex { width: 80px; height: 80px; }
  .loader-letter { font-size: 36px; }
  .loader-name { font-size: 22px; letter-spacing: 4px; }
  .loader-progress-container { width: 220px; }
  .loader-terminal { font-size: 12px; padding: 8px 16px; }
}

@media (max-width: 360px) {
  .container { padding: 0 var(--space-3); }
  .brand-text, .brand-sub { display: none; }
  .hero h1 { font-size: 26px; }
  .hero-card { padding: var(--space-3); margin-left: -4px; margin-right: -4px; }
  .code { font-size: 9px; }
  .section-title { font-size: 22px; }
  .project-card { margin-left: -4px; margin-right: -4px; border-radius: var(--radius); }
  .skill-card { padding: var(--space-3); }
  .about-profile-card { padding: var(--space-5); border-radius: 18px; }
  .contact-form-card { padding: var(--space-4); border-radius: 16px; }
  .story-block { padding: var(--space-5); border-radius: 14px; }
  .story-number { font-size: 40px; }
  .profile-avatar { width: 70px; height: 70px; font-size: 28px; border-radius: 14px; }
  .profile-link { width: 40px; height: 40px; font-size: 15px; border-radius: 10px; }
  .facts-card, .tech-card { border-radius: 14px; }
  .info-item { padding: 12px; border-radius: 10px; gap: 10px; }
  .info-icon { width: 38px; height: 38px; min-width: 38px; font-size: 14px; border-radius: 8px; }
  .info-label { font-size: 9px; }
  .info-value { font-size: 12px; }
  .social-link { padding: 10px 8px; border-radius: 8px; font-size: 10px; }
  .about-contact-section { padding: var(--space-10) 0; }
}

@media (hover: none) {
  .skill-card:hover, .project-card:hover, .hero-card:hover { transform: translateZ(0); }
  .btn-primary:hover::before { transform: scaleX(0); }
  .skill-card:active, .project-card:active { transform: scale(0.98) translateZ(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .ambient-orb, .morphing-shapes, .cursor-trail, #particles, .floating-elements { display: none; }
}

@media (min-resolution: 2dppx) {
  .hero-card, .skill-card, .project-card { will-change: transform; }
}


/* ========================================
   10. STABILITY FIXES - Technical Only
   No visual changes - Responsiveness fixes
   ======================================== */

/* Prevent horizontal overflow on all devices */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Fix for 320px devices - prevent text overflow */
@media (max-width: 320px) {
  .container { padding: 0 12px; }
  .hero h1 { font-size: 24px; word-break: break-word; }
  .hero h2 { font-size: 13px; }
  .hero p { font-size: 12px; }
  .section-title { font-size: 20px; word-break: break-word; }
  .about-title { font-size: 32px; word-break: break-word; }
  .navbar { width: calc(100% - 24px); }
  .navbar-inner { padding: 0 12px; }
  .nav-links { left: 12px; right: 12px; }
  .brand-mark { width: 34px; height: 34px; font-size: 14px; }
  .pill { font-size: 10px; padding: 4px 8px; }
  .code { font-size: 8px; overflow-x: auto; }
  .hero-card { margin-left: -8px; margin-right: -8px; }
  .skill-card, .project-card { margin-left: 0; margin-right: 0; }
  .project-thumb { height: 120px; }
  .profile-avatar { width: 60px; height: 60px; font-size: 24px; }
  .profile-link { width: 36px; height: 36px; font-size: 14px; }
  .story-number { font-size: 36px; }
  .loader-hex { width: 60px; height: 60px; }
  .loader-letter { font-size: 28px; }
  .loader-name { font-size: 18px; letter-spacing: 2px; }
  .loader-progress-container { width: 180px; }
  .social-link { padding: 8px 6px; font-size: 9px; }
  .info-icon { width: 34px; height: 34px; min-width: 34px; font-size: 12px; }
  .info-value { font-size: 11px; }
  .btn { padding: 10px 16px; font-size: 12px; }
  .bubble-btn { padding: 12px 20px; font-size: 12px; }
}

/* Ensure images don't break layout */
img {
  max-width: 100%;
  height: auto;
}

/* Fix potential overflow from code blocks */
.code, pre {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

/* Ensure long emails/URLs don't break layout */
.info-value, 
.footer-links a,
a[href^="mailto"] {
  word-break: break-all;
  overflow-wrap: anywhere;
}

/* Fix touch targets for mobile accessibility (min 44px) */
@media (max-width: 768px) {
  .nav-link, .nav-cta, .btn, .bubble-btn,
  .profile-link, .social-link, .scroll-top,
  .footer-social a, .project-actions a {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Ensure form inputs are accessible */
  .form-group input,
  .form-group textarea {
    min-height: 44px;
    font-size: 16px; /* Prevents iOS zoom on focus */
  }
}

/* Fix navbar on landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .nav-links {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
  .page { padding-top: 80px; }
}

/* Fix hero section on short screens */
@media (max-height: 600px) {
  #hero { 
    min-height: auto; 
    padding: var(--space-8) 0 var(--space-12);
  }
}

/* Ensure cards don't overflow container */
.hero-card,
.skill-card,
.project-card,
.about-profile-card,
.story-block,
.facts-card,
.tech-card,
.contact-form-card,
.info-item {
  max-width: 100%;
  box-sizing: border-box;
}

/* Fix flex items from overflowing */
.hero-actions,
.tags,
.tech-tags,
.profile-links,
.social-links,
.footer-links,
.footer-social {
  flex-wrap: wrap;
}

/* Ensure grid doesn't overflow */
.skills-grid,
.projects-grid,
.story-grid,
.contact-wrapper,
.about-hero-content {
  max-width: 100%;
}

/* Fix for very narrow screens - ensure single column */
@media (max-width: 400px) {
  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .bubble-btn-wrap {
    width: 100%;
  }
  
  .bubble-btn {
    width: 100%;
    text-align: center;
  }
}

/* Safe area insets for notched devices */
@supports (padding: max(0px)) {
  .navbar {
    padding-left: max(var(--space-6), env(safe-area-inset-left));
    padding-right: max(var(--space-6), env(safe-area-inset-right));
  }
  
  .container {
    padding-left: max(var(--space-6), env(safe-area-inset-left));
    padding-right: max(var(--space-6), env(safe-area-inset-right));
  }
  
  footer {
    padding-bottom: max(30px, env(safe-area-inset-bottom));
  }
  
  @media (max-width: 480px) {
    .container {
      padding-left: max(var(--space-4), env(safe-area-inset-left));
      padding-right: max(var(--space-4), env(safe-area-inset-right));
    }
  }
}

/* Fix loader on all screen sizes */
.loader-content {
  max-width: 90vw;
  padding: 0 var(--space-4);
}

/* Ensure toast doesn't overflow */
.toast {
  max-width: calc(100vw - 32px);
  word-break: break-word;
}

/* Fix ambient effects from causing overflow */
.ambient-bg,
.morphing-shapes,
.floating-elements,
.grid-pattern {
  overflow: hidden;
  pointer-events: none;
}

/* Tablet specific fixes (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero { gap: var(--space-8); }
  .hero h1 { font-size: 48px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .about-hero-content { gap: var(--space-8); }
  .story-grid { gap: var(--space-8); }
  .contact-wrapper { gap: var(--space-6); }
}

/* Large desktop (1920px+) - ensure content doesn't stretch too wide */
@media (min-width: 1920px) {
  .container { max-width: 1400px; }
}

/* Print styles - basic support */
@media print {
  .loader, .ambient-bg, .morphing-shapes, .floating-elements,
  .grid-pattern, .noise-overlay, .cursor-trail, #particles,
  .scroll-top, .page-transition { display: none !important; }
  
  body { background: white; color: black; }
  .navbar { position: static; }
}
