/* ============================
   DESIGN SYSTEM & VARIABLES
   ============================ */
:root {
  /* Primary Gold/Yellow Palette */
  --gold: #ffd700;
  --gold-light: #ffe55c;
  --gold-dark: #c9a800;
  --amber: #ffc107;
  --honey: #f5a623;

  /* Dark Backgrounds */
  --bg-primary: #050505;
  --bg-secondary: #0a0a0f;
  --bg-tertiary: #111118;
  --bg-card: rgba(15, 15, 25, 0.7);
  --bg-card-hover: rgba(25, 25, 40, 0.8);

  /* Text Colors */
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0b0;
  --text-muted: #6b6b80;

  /* Utility */
  --border-color: rgba(255, 215, 0, 0.12);
  --glow-gold: 0 0 30px rgba(255, 215, 0, 0.3);
  --glow-gold-strong: 0 0 60px rgba(255, 215, 0, 0.5);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);

  /* Typography */
  --font-heading: "Outfit", sans-serif;
  --font-body: "Space Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Spacing */
  --section-padding: 80px 0;
  --container-width: 1200px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Light Mode Theme */
[data-theme="light"] {
  --bg-primary: #f8f8fa;
  --bg-secondary: #eeeef2;
  --bg-tertiary: #e4e4ea;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(240, 240, 245, 0.95);
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a60;
  --text-muted: #8888a0;
  --border-color: rgba(200, 170, 0, 0.2);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.08);
  --gold: #c9a800;
  --gold-light: #d4b800;
  --glow-gold: 0 0 30px rgba(200, 170, 0, 0.15);
  --glow-gold-strong: 0 0 60px rgba(200, 170, 0, 0.25);
}

[data-theme="light"] .hero-bg-grid {
  background-image:
    linear-gradient(rgba(200, 170, 0, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 170, 0, 0.06) 1px, transparent 1px);
}

[data-theme="light"] .navbar {
  background: rgba(248, 248, 250, 0.9);
}

[data-theme="light"] .social-sidebar a {
  background: rgba(248, 248, 250, 0.9);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--bg-primary);
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

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

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================
   NOISE OVERLAY
   ============================ */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
}

.gold {
  color: var(--gold);
}

.section {
  padding: var(--section-padding);
  position: relative;
}

/* ============================
   CUSTOM CURSOR
   ============================ */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transition: transform 0.1s ease;
  will-change: transform;
}

.cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition:
    transform 0.3s ease,
    width 0.3s ease,
    height 0.3s ease,
    border-color 0.3s ease;
  will-change: transform;
}

.cursor-follower.hover {
  width: 56px;
  height: 56px;
  border-color: var(--gold-light);
  background: rgba(255, 215, 0, 0.08);
}

/* ============================
   PRELOADER
   ============================ */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  text-align: center;
}

.preloader-ring {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(255, 215, 0, 0.1);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

.preloader-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: 6px;
  color: var(--text-primary);
}

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

/* ============================
   PARTICLE CANVAS
   ============================ */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ============================
   NAVBAR
   ============================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-smooth);
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2rem;
  color: var(--text-primary);
  transition: transform var(--transition-smooth);
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--text-secondary);
  transition: all var(--transition-smooth);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition-smooth);
  border-radius: 1px;
}

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

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link-cta {
  background: var(--gold);
  color: var(--bg-primary) !important;
  font-weight: 600;
  border-radius: 50px;
  padding: 8px 24px;
}

.nav-link-cta::after {
  display: none;
}

.nav-link-cta:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--glow-gold);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  width: 28px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-smooth);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background: var(--gold);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  background: var(--gold);
}

/* ============================
   SECTION HEADER
   ============================ */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gold);
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.2);
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-top: 16px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: none;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.6s ease,
    height 0.6s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

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

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: var(--glow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}

.btn-outline:hover {
  background: rgba(255, 215, 0, 0.08);
  transform: translateY(-3px);
  box-shadow: var(--glow-gold);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ============================
   HERO SECTION
   ============================ */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 24px 40px;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 215, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 215, 0, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    black 30%,
    transparent 70%
  );
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold);
  background: rgba(255, 215, 0, 0.06);
  border: 1px solid rgba(255, 215, 0, 0.15);
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 32px;
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.1);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
  }
}

.hero-title {
  font-family: var(--font-heading);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-greeting {
  display: block;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.hero-name {
  display: block;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 900;
  background: linear-gradient(
    135deg,
    var(--gold),
    var(--gold-light),
    var(--amber),
    var(--gold)
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero-typed-wrapper {
  display: block;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 500;
  color: var(--text-secondary);
  min-height: 50px;
}

.hero-typed {
  color: var(--gold-light);
}

.typed-cursor {
  color: var(--gold);
  font-weight: 300;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.8;
  opacity: 1 !important;
  transform: none !important;
}

/* Hero Achievement Badge */
.hero-achievement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.hero-achievement-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold);
  background: rgba(255, 215, 0, 0.06);
  border: 1px solid rgba(255, 215, 0, 0.2);
  padding: 8px 18px;
  border-radius: 50px;
  animation: pulse-glow 3s ease-in-out infinite;
}

.hero-achievement-item i {
  font-size: 0.9rem;
}

.hero-achievement-item strong {
  color: var(--gold-light);
}

.hero-achievement-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.5;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: var(--border-color);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 1;
  }
  50% {
    transform: scaleY(0.5);
    opacity: 0.3;
  }
}

/* ============================
   ABOUT SECTION
   ============================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.5fr;
  gap: 50px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
}

.about-image-frame {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    var(--shadow-card),
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(255, 215, 0, 0.08);
  transform: perspective(800px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
  animation: photo-float 6s ease-in-out infinite;
}

.about-image-frame:hover {
  transform: perspective(800px) rotateY(0deg) rotateX(0deg) scale(1.02);
  box-shadow:
    var(--shadow-card),
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(255, 215, 0, 0.15);
}

@keyframes photo-float {
  0%, 100% { transform: perspective(800px) rotateY(-5deg) rotateX(2deg) translateY(0); }
  50% { transform: perspective(800px) rotateY(-3deg) rotateX(1deg) translateY(-8px); }
}

.about-image-frame::before {
  content: "";
  position: absolute;
  inset: -3px;
  background: linear-gradient(
    135deg,
    var(--gold),
    transparent 40%,
    var(--gold-light) 60%,
    transparent 80%,
    var(--gold)
  );
  background-size: 400% 400%;
  border-radius: 50%;
  z-index: -1;
  animation: border-glow 4s ease infinite;
}

@keyframes border-glow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.about-image {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: contrast(1.05) saturate(1.1);
}

.about-image-frame:hover .about-image {
  transform: scale(1.05);
  filter: contrast(1.1) saturate(1.2) brightness(1.05);
}

.about-image-decoration {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border: 2px solid var(--gold);
  border-radius: 20px;
  opacity: 0.3;
}

.about-image-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--gold);
  color: var(--bg-primary);
  padding: 12px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: var(--glow-gold);
}

.about-subtitle {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 20px;
  line-height: 1.5;
}

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

.about-text strong {
  color: var(--text-primary);
}

.about-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}

.about-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all var(--transition-smooth);
}

.about-info-item:hover {
  border-color: var(--gold);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.about-info-item i {
  color: var(--gold);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.info-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Language Pills */
.about-languages {
  margin: 24px 0;
}

.languages-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.languages-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.lang-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 50px;
  transition: all var(--transition-smooth);
}

.lang-pill:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--glow-gold);
}

.lang-flag {
  font-size: 1.2rem;
}

.lang-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.lang-level {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--bg-primary);
  background: var(--gold);
  padding: 2px 8px;
  border-radius: 20px;
}

/* ============================
   FUN FACTS SECTION
   ============================ */
.funfacts-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .funfacts-grid { grid-template-columns: repeat(3, 1fr); }
}

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

.funfact-card {
  text-align: center;
  padding: 28px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: all var(--transition-smooth);
}

.funfact-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: var(--glow-gold);
}

.funfact-icon {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.funfact-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.funfact-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* ============================
   SKILLS SECTION
   ============================ */
.skills {
  background: var(--bg-secondary);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.skill-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 36px;
  transition: all var(--transition-smooth);
  overflow: hidden;
}

.skill-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: var(--glow-gold);
}

.skill-card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.04), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.skill-card:hover .skill-card-glow {
  opacity: 1;
}

.skill-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 14px;
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: var(--gold);
  transition: all var(--transition-smooth);
}

.skill-card:hover .skill-icon {
  background: var(--gold);
  color: var(--bg-primary);
  box-shadow: var(--glow-gold);
}

.skill-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.skill-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 18px;
  line-height: 1.6;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 12px;
  background: rgba(255, 215, 0, 0.06);
  border: 1px solid rgba(255, 215, 0, 0.12);
  border-radius: 20px;
  color: var(--gold);
}

.skill-level {
  height: 4px;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.skill-level-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  width: 0;
  transition: width 1.5s ease-out;
}

/* ============================
   PROJECTS SECTION
   ============================ */
.project-featured {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 48px;
  transition: all var(--transition-smooth);
}

.project-featured:hover {
  border-color: var(--gold);
  box-shadow: var(--glow-gold);
}

.project-featured-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at top left,
    rgba(255, 215, 0, 0.06),
    transparent 60%
  );
}

.project-featured-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 48px;
  position: relative;
  z-index: 1;
}

.project-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.project-featured-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 16px;
}

.project-featured-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.project-featured-desc strong {
  color: var(--text-primary);
}

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

.project-tech-stack span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 6px 16px;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 20px;
  color: var(--gold);
}

/* Mockup */
.project-featured-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-mockup {
  width: 100%;
  max-width: 420px;
  perspective: 1000px;
}

.mockup-screen {
  background: var(--bg-tertiary);
  border-radius: 16px;
  border: 1px solid rgba(255, 215, 0, 0.15);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: rotateY(-5deg) rotateX(3deg);
  transition: transform 0.6s ease;
}

.project-featured:hover .mockup-screen {
  transform: rotateY(0) rotateX(0);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 215, 0, 0.05);
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.3);
}

.mockup-dots span:first-child {
  background: #ff5f56;
}
.mockup-dots span:nth-child(2) {
  background: #ffbd2e;
}
.mockup-dots span:last-child {
  background: #27c93f;
}

.mockup-url {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mockup-body {
  padding: 40px 24px;
  text-align: center;
}

.mockup-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 16px;
}

.mockup-logo i {
  font-size: 2rem;
}

.mockup-text {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.mockup-qr {
  font-size: 4rem;
  color: var(--gold);
  margin-bottom: 20px;
  animation: pulse-glow 3s infinite;
}

.mockup-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #27c93f;
  background: rgba(39, 201, 63, 0.1);
  border: 1px solid rgba(39, 201, 63, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
}

/* Project Cards Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: var(--glow-gold);
}

.project-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.project-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 12px;
  color: var(--gold);
  font-size: 1.2rem;
}

.project-card-links a {
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: color var(--transition-fast);
}

.project-card-links a:hover {
  color: var(--gold);
}

.project-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.project-card-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-card-tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 10px;
  background: rgba(255, 215, 0, 0.06);
  border: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: 14px;
  color: var(--gold);
}

/* ============================
   EXPERIENCE / TIMELINE
   ============================ */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--gold), rgba(255, 215, 0, 0.1));
}

.timeline-item {
  position: relative;
  width: 50%;
  padding-right: 60px;
  padding-bottom: 60px;
}

.timeline-item-right {
  margin-left: 50%;
  padding-right: 0;
  padding-left: 60px;
}

.timeline-dot {
  position: absolute;
  right: -20px;
  top: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.9rem;
  z-index: 2;
  box-shadow: var(--glow-gold);
}

.timeline-item-right .timeline-dot {
  right: auto;
  left: -20px;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px;
  transition: all var(--transition-smooth);
}

.timeline-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--glow-gold);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 8px;
  display: block;
}

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

.timeline-org {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.timeline-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.timeline-tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 10px;
  background: rgba(255, 215, 0, 0.06);
  border: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: 12px;
  color: var(--gold);
}

/* ============================
   ACHIEVEMENTS SECTION
   ============================ */
.achievements {
  background: var(--bg-secondary);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.achievement-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.achievement-card:hover {
  transform: translateY(-8px);
}

.achievement-shine {
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(
    135deg,
    transparent 30%,
    rgba(255, 215, 0, 0.05) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  transition: all 0.8s ease;
}

.achievement-card:hover .achievement-shine {
  top: -50%;
  left: -50%;
}

.achievement-gold {
  border-color: rgba(255, 215, 0, 0.3);
}

.achievement-gold:hover {
  box-shadow: 0 10px 40px rgba(255, 215, 0, 0.2);
  border-color: var(--gold);
}

.achievement-silver {
  border-color: rgba(192, 192, 192, 0.2);
}

.achievement-silver:hover {
  box-shadow: 0 10px 40px rgba(192, 192, 192, 0.15);
  border-color: #c0c0c0;
}

.achievement-special {
  border-color: rgba(255, 215, 0, 0.15);
}

.achievement-special:hover {
  box-shadow: 0 10px 40px rgba(255, 215, 0, 0.15);
  border-color: var(--gold);
}

.achievement-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.achievement-gold .achievement-icon {
  color: var(--gold);
}
.achievement-silver .achievement-icon {
  color: #c0c0c0;
}
.achievement-special .achievement-icon {
  color: var(--gold);
}

.achievement-rank {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.achievement-gold .achievement-rank {
  color: var(--gold);
}
.achievement-silver .achievement-rank {
  color: #c0c0c0;
}
.achievement-special .achievement-rank {
  color: var(--gold);
}

.achievement-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.achievement-event {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.achievement-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ============================
   EDUCATION SECTION
   ============================ */
.education-grid {
  max-width: 700px;
  margin: 0 auto;
}

.education-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.education-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: var(--glow-gold);
}

.education-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--gold), var(--amber));
  border-radius: 20px 0 0 20px;
}

.education-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 16px;
  color: var(--gold);
  font-size: 1.5rem;
}

.education-degree {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.education-school {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.education-year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 12px;
}

.education-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ============================
   CONTACT SECTION
   ============================ */
.contact {
  background: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  margin-bottom: 16px;
  transition: all var(--transition-smooth);
}

.contact-item:hover {
  border-color: var(--gold);
  transform: translateX(5px);
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 12px;
  color: var(--gold);
  font-size: 1.1rem;
}

.contact-item h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-item p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.contact-socials {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: all var(--transition-smooth);
}

.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(255, 215, 0, 0.08);
  transform: translateY(-3px);
  box-shadow: var(--glow-gold);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 18px 16px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-smooth);
  cursor: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-group label {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--transition-smooth);
  pointer-events: none;
}

.form-group textarea ~ label {
  top: 20px;
  transform: none;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: 8px;
  font-size: 0.7rem;
  color: var(--gold);
  transform: none;
}

.form-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 0 0 12px 12px;
  transition: all var(--transition-smooth);
}

.form-group input:focus ~ .form-line,
.form-group textarea:focus ~ .form-line {
  left: 0;
  width: 100%;
}

/* ============================
   FOOTER
   ============================ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  text-align: center;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2rem;
  margin-bottom: 12px;
}

.footer-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ============================
   RESPONSIVE DESIGN
   ============================ */
@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
  .project-featured-content {
    grid-template-columns: 1fr;
    padding: 32px;
  }
  .achievements-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  body {
    cursor: auto;
  }

  .cursor,
  .cursor-follower {
    display: none;
  }

  /* Nav Mobile */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 40px;
    transition: right var(--transition-smooth);
    border-left: 1px solid var(--border-color);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    font-size: 1.2rem;
    padding: 14px 20px;
  }

  /* Layout */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-wrapper {
    max-width: 350px;
    margin: 0 auto;
  }

  .about-info-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  /* Timeline Mobile */
  .timeline-line {
    left: 20px;
  }

  .timeline-item,
  .timeline-item-right {
    width: 100%;
    margin-left: 0;
    padding-left: 60px;
    padding-right: 0;
  }

  .timeline-dot,
  .timeline-item-right .timeline-dot {
    left: 0;
    right: auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-divider {
    display: none;
  }

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

  .education-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }
}

/* ============================
   MARQUEE STRIP
   ============================ */
.marquee-strip {
  overflow: hidden;
  background: var(--gold);
  padding: 14px 0;
  white-space: nowrap;
  position: relative;
  z-index: 5;
  transform: rotate(-1deg) scale(1.02);
  margin: -10px 0;
}

.marquee-track {
  display: inline-flex;
  gap: 32px;
  animation: marquee-scroll 20s linear infinite;
}

.marquee-track span {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--bg-primary);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.marquee-dot {
  color: rgba(5, 5, 5, 0.4) !important;
  font-size: 0.6rem !important;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================
   GLITCH EFFECT
   ============================ */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  overflow: hidden;
  clip-path: inset(0);
}

.glitch::before {
  -webkit-text-fill-color: var(--gold);
  animation: glitch-before 4s infinite linear;
}

.glitch::after {
  -webkit-text-fill-color: var(--amber);
  animation: glitch-after 4s infinite linear;
}

@keyframes glitch-before {
  0%, 92%, 100% { clip-path: inset(0 0 100% 0); }
  93% { clip-path: inset(20% 0 40% 0); transform: translateX(-4px); }
  94% { clip-path: inset(60% 0 10% 0); transform: translateX(4px); }
  95% { clip-path: inset(0 0 100% 0); transform: translateX(0); }
}

@keyframes glitch-after {
  0%, 94%, 100% { clip-path: inset(0 0 100% 0); }
  95% { clip-path: inset(40% 0 20% 0); transform: translateX(4px); }
  96% { clip-path: inset(10% 0 60% 0); transform: translateX(-4px); }
  97% { clip-path: inset(0 0 100% 0); transform: translateX(0); }
}

/* ============================
   FLOATING SHAPES
   ============================ */
.floating-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.shape {
  position: absolute;
  border: 1.5px solid rgba(255, 215, 0, 0.15);
  opacity: 0.5;
}

.shape-1 {
  width: 60px;
  height: 60px;
  top: 15%;
  left: 8%;
  border-radius: 12px;
  animation: float-rotate 12s ease-in-out infinite;
}

.shape-2 {
  width: 40px;
  height: 40px;
  top: 25%;
  right: 10%;
  border-radius: 50%;
  animation: float-rotate 10s ease-in-out infinite reverse;
}

.shape-3 {
  width: 50px;
  height: 50px;
  bottom: 20%;
  left: 12%;
  border-radius: 50%;
  animation: float-rotate 14s ease-in-out infinite 1s;
}

.shape-4 {
  width: 35px;
  height: 35px;
  bottom: 30%;
  right: 8%;
  border-radius: 8px;
  transform: rotate(45deg);
  animation: float-rotate 11s ease-in-out infinite 2s;
}

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

/* ============================
   SECTION DIVIDERS
   ============================ */
.section-divider {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  margin-bottom: -1px;
  line-height: 0;
}

.section-divider svg {
  display: block;
  width: 100%;
  height: 16px;
}

.section-divider-flip {
  transform: scaleY(-1);
}

/* ============================
   ACTIVE NAV LINK
   ============================ */
.nav-link.active-link {
  color: var(--gold);
}

.nav-link.active-link::after {
  transform: scaleX(1);
}

/* ============================
   SCROLL PROGRESS BAR
   ============================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--amber));
  width: 0%;
  z-index: 10002;
  transition: width 0.05s linear;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* ============================
   QUOTE SECTION
   ============================ */
.quote-section {
  padding: 60px 0;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.quote-wrapper {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 32px;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
}

.quote-wrapper:hover {
  border-color: var(--gold);
  box-shadow: var(--glow-gold);
  transition: all var(--transition-smooth);
}

.quote-mark {
  font-family: var(--font-heading);
  font-size: 6rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  opacity: 0.3;
  position: absolute;
  top: 10px;
  left: 32px;
}

.quote-text {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 500;
  line-height: 1.8;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.quote-author {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--gold);
  font-style: normal;
  letter-spacing: 2px;
}

/* ============================
   BACK TO TOP BUTTON
   ============================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg-primary);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-smooth);
  box-shadow: var(--glow-gold);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold-light);
  transform: translateY(-4px);
  box-shadow: var(--glow-gold-strong);
}

/* ============================
   FLOATING SOCIAL SIDEBAR
   ============================ */
.social-sidebar {
  position: fixed;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 99;
}

.social-sidebar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(8px);
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: all var(--transition-smooth);
}

.social-sidebar a:hover {
  color: var(--gold);
  border-color: var(--gold);
  transform: scale(1.15);
  box-shadow: var(--glow-gold);
}

.sidebar-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

@media (max-width: 768px) {
  .social-sidebar {
    display: none;
  }
}

/* ============================
   THEME TOGGLE
   ============================ */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--gold);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all var(--transition-smooth);
  margin-left: 12px;
}

.theme-toggle:hover {
  border-color: var(--gold);
  box-shadow: var(--glow-gold);
  transform: rotate(180deg);
}

/* ============================
   DOWNLOAD CV GHOST BUTTON
   ============================ */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-secondary);
  border: 1px dashed var(--border-color);
  background: transparent;
  transition: all var(--transition-smooth);
}

.btn-ghost:hover {
  color: var(--gold);
  border-color: var(--gold);
  border-style: solid;
  box-shadow: var(--glow-gold);
}

/* ============================
   SKILL CIRCLES (SVG)
   ============================ */
.skill-circle-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
}

.skill-circle {
  width: 70px;
  height: 70px;
  transform: rotate(-90deg);
}

.skill-circle-bg {
  fill: none;
  stroke: var(--border-color);
  stroke-width: 6;
}

.skill-circle-fill {
  fill: none;
  stroke: var(--gold);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 1.5s ease;
}

.skill-circle-text {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
}

/* ============================
   CURRENTLY WORKING ON
   ============================ */
.working-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.working-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: all var(--transition-smooth);
}

.working-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--glow-gold);
}

.working-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.working-active {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
  animation: status-pulse 2s ease-in-out infinite;
}

.working-planning {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
  animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.working-info h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.working-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.working-progress {
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.working-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 4px;
  transition: width 1.5s ease;
}

.working-percent {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
}

/* ============================
   BLOG SECTION
   ============================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.blog-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all var(--transition-smooth);
}

.blog-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: var(--glow-gold);
}

.blog-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-category {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--bg-primary);
  background: var(--gold);
  padding: 4px 12px;
  border-radius: 20px;
}

.blog-cat-dev {
  background: #3b82f6;
  color: #fff;
}

.blog-cat-web3 {
  background: #8b5cf6;
  color: #fff;
}

.blog-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.blog-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
}

.blog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.blog-read-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-fast);
}

.blog-link:hover {
  gap: 10px;
}

/* ============================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================ */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .about-image-wrapper {
    max-width: 250px;
    margin: 0 auto;
  }

  .about-info-grid {
    justify-content: center;
  }

  .about-languages .languages-pills {
    justify-content: center;
  }

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

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

  .project-featured-content {
    grid-template-columns: 1fr;
  }

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

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

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

  .hero-achievement {
    flex-direction: column;
    gap: 10px;
  }

  .hero-achievement-divider {
    display: none;
  }
}

/* ============================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================ */
@media (max-width: 768px) {
  :root {
    --section-padding: 50px 0;
  }

  html,
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .container {
    padding: 0 16px;
    max-width: 100%;
  }

  /* Hide overflowing elements */
  .hero-bg-grid {
    display: none;
  }

  #particles-canvas {
    display: none;
  }

  .marquee-strip {
    overflow: hidden;
    max-width: 100vw;
  }

  /* Nav */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    transition: right var(--transition-smooth);
    z-index: 1000;
    border-left: 1px solid var(--border-color);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-toggle {
    display: flex !important;
  }

  .theme-toggle {
    margin-left: 0;
    margin-right: 8px;
  }

  /* Navbar centering */
  .nav-container {
    padding: 0 16px;
  }

  /* Rearrange: [hamburger + theme] — [logo center] */
  .nav-toggle {
    display: flex !important;
    order: 1;
  }

  .theme-toggle {
    order: 2;
    margin-left: 8px;
    margin-right: 0;
  }

  .nav-logo {
    order: 3;
    flex-grow: 1;
    text-align: center;
    font-size: 1.6rem;
  }

  .nav-menu {
    order: 4;
  }

  /* Hero — CENTER EVERYTHING */
  .hero {
    padding: 80px 16px 32px;
    text-align: center;
  }

  .hero-content {
    text-align: center;
    align-items: center;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-title {
    margin-bottom: 16px;
    text-align: center;
  }

  .hero-name {
    font-size: clamp(2rem, 10vw, 3rem) !important;
  }

  .hero-description {
    text-align: center;
    padding: 0 8px;
  }

  .hero-achievement {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .hero-achievement-item {
    font-size: 0.7rem;
    padding: 6px 14px;
    width: fit-content;
  }

  .hero-achievement-divider {
    display: none;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-cta .btn,
  .hero-cta .btn-ghost {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    text-align: center;
  }

  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .stat-item {
    text-align: center;
  }

  .stat-divider {
    display: none;
  }

  /* About — CENTER EVERYTHING */
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image-wrapper {
    max-width: 200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .about-image-frame {
    animation: none;
    transform: none;
  }

  .about-image-frame:hover {
    transform: scale(1.02);
  }

  .about-info-grid {
    grid-template-columns: 1fr 1fr;
    justify-items: center;
  }

  .about-info-item {
    justify-content: center;
  }

  .about-text {
    text-align: center;
  }

  .about-subtitle {
    font-size: 1rem;
    text-align: center;
  }

  .about-cta {
    margin: 0 auto;
  }

  .languages-pills {
    justify-content: center;
  }

  .about-image-badge {
    left: 50%;
    transform: translateX(-50%);
  }

  /* Skills */
  .skills-grid {
    grid-template-columns: 1fr;
  }

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

  .project-featured-content {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .project-featured-visual {
    display: none;
  }

  .project-links {
    flex-wrap: wrap;
  }

  /* Experience */
  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    padding-left: 50px;
  }

  .timeline-dot {
    left: 12px;
  }

  .timeline-date {
    position: relative;
    top: 0;
    margin-bottom: 8px;
  }

  /* Working On */
  .working-grid {
    grid-template-columns: 1fr;
  }

  /* Fun Facts */
  .funfacts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  /* Blog */
  .blog-grid {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Marquee */
  .marquee-track span {
    font-size: 0.8rem;
  }

  /* Section titles */
  .section-title {
    font-size: 1.6rem;
    text-align: center;
  }

  .section-header {
    text-align: center;
  }

  .section-tag {
    margin-left: auto;
    margin-right: auto;
  }

  /* Education */
  .education-card {
    text-align: center;
  }

  .education-content {
    text-align: center;
  }

  /* Contact */
  .contact-info {
    text-align: center;
    align-items: center;
  }

  .contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-socials {
    justify-content: center;
  }

  /* Scroll indicator */
  .scroll-indicator {
    display: none;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  /* Back to top — hide on mobile */
  .back-to-top {
    display: none !important;
  }
}

/* ============================
   RESPONSIVE — SMALL PHONE (≤ 480px)
   ============================ */
@media (max-width: 480px) {
  .hero-name {
    font-size: 2rem !important;
  }

  .about-info-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-cta .btn {
    font-size: 0.85rem;
    padding: 10px 20px;
  }

  .about-image-wrapper {
    max-width: 160px;
  }

  .lang-pill {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .blog-card {
    padding: 20px;
  }

  .working-card {
    padding: 18px;
  }

  .contact-form {
    padding: 24px;
  }
}
