/* ==========================================================================
   MEVLANA MERT ÇARLI - PORTFOLIO DESIGN SYSTEM 2026
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');
@import url('https://cdn.jsdelivr.net/npm/remixicon@4.2.0/fonts/remixicon.css');

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Obsidian Dark & Electric Cyan Accent */
  --bg-dark: #0a0a0f;
  --bg-card: #12121c;
  --bg-card-hover: #181826;
  --bg-nav: rgba(10, 10, 15, 0.82);
  --bg-glass: rgba(18, 18, 28, 0.65);
  
  --accent-cyan: #00f2fe;
  --accent-teal: #4facfe;
  --accent-violet: #7f00ff;
  --accent-magenta: #e100ff;
  --accent-emerald: #10b981;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.3);

  --gradient-accent: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-teal) 100%);
  --gradient-violet: linear-gradient(135deg, var(--accent-violet) 0%, var(--accent-magenta) 100%);
  --gradient-dark: linear-gradient(180deg, rgba(18, 18, 28, 0.9) 0%, rgba(10, 10, 15, 0.95) 100%);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-code: 'Courier New', Courier, monospace;

  /* Layout & Spacing */
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Mode Overrides (if needed) */
body.light {
  --bg-dark: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-nav: rgba(248, 250, 252, 0.88);
  --bg-glass: rgba(255, 255, 255, 0.75);
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(0, 242, 254, 0.5);
}

/* --------------------------------------------------------------------------
   2. Reset & Global Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

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

/* Canvas Backgrounds */
#background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

#code-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  pointer-events: none;
}

#meteor-shower-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.space-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(127, 0, 255, 0.15), transparent 70%);
}

/* --------------------------------------------------------------------------
   3. Container & Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-subtitle {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.15;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-top: 0.75rem;
}

.section-line {
  width: 60px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
  margin: 1.25rem 0 0 0;
}

.section-header.text-center .section-line {
  margin-left: auto;
  margin-right: auto;
}

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

/* --------------------------------------------------------------------------
   4. Navbar Header
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  padding: 1.25rem 0;
  background: rgba(10, 12, 22, 0.5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: all var(--transition-normal);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar.scrolled {
  background: rgba(10, 12, 22, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 0.85rem 0;
  border-bottom-color: rgba(0, 242, 254, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
  transition: transform var(--transition-fast);
}

.logo:hover .logo-img {
  transform: scale(1.08) rotate(3deg);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.logo-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.4rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-accent);
  transition: width var(--transition-fast);
  border-radius: var(--radius-full);
}

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

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

.nav-tools {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.code-icon-btn, .meteor-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.code-icon-btn:hover, .meteor-icon-btn:hover {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.code-icon-btn.active, .meteor-icon-btn.active {
  background: var(--gradient-accent);
  color: #040814;
  border-color: transparent;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

/* Mobile Drawer Toggle */
.mobile-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  font-size: 1.5rem;
  color: #ffffff;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.home-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  padding-bottom: 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #34d399;
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-dot 2s infinite;
}

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

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.hero-title span.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle-container {
  margin-top: 1.25rem;
  margin-bottom: 2.75rem;
}

.subtitle {
  font-size: clamp(0.96rem, 1.8vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.75rem;
  margin-bottom: 2.75rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 48px;
  padding: 0 1.75rem;
  background: var(--gradient-accent);
  color: #040814;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.25);
  transition: all var(--transition-normal);
  cursor: pointer;
  text-decoration: none;
}

.btn-primary i {
  font-size: 1.1rem;
  transition: transform var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 242, 254, 0.4);
}

.btn-primary:hover i {
  transform: translateX(4px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 48px;
  padding: 0 1.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  cursor: pointer;
  text-decoration: none;
}

.btn-outline i {
  font-size: 1.1rem;
  transition: transform var(--transition-fast);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 242, 254, 0.4);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-outline:hover i {
  transform: translateY(-2px);
}

.btn-outline:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 48px;
  padding: 0 1.6rem;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: var(--accent-cyan);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 20px rgba(0, 242, 254, 0.15);
  transition: all var(--transition-normal);
  cursor: pointer;
  text-decoration: none;
}

.btn-secondary i {
  font-size: 1.1rem;
  transition: transform var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(0, 242, 254, 0.2);
  border-color: var(--accent-cyan);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 242, 254, 0.35);
}

.btn-secondary:hover i {
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

.hero-tech-stack {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.tech-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tech-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tech-badge {
  padding: 0.3rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: default;
  opacity: 0;
  transform: translateY(10px);
  animation: badgeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.tech-badge:hover {
  color: var(--accent-cyan);
  border-color: rgba(0, 242, 254, 0.55);
  background: rgba(0, 242, 254, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0, 242, 254, 0.2);
}

/* Staggered delay per badge */
.tech-badges .tech-badge:nth-child(1) { animation-delay: 0.55s; }
.tech-badges .tech-badge:nth-child(2) { animation-delay: 0.70s; }
.tech-badges .tech-badge:nth-child(3) { animation-delay: 0.85s; }
.tech-badges .tech-badge:nth-child(4) { animation-delay: 1.00s; }
.tech-badges .tech-badge:nth-child(5) { animation-delay: 1.15s; }
.tech-badges .tech-badge:nth-child(6) { animation-delay: 1.30s; }

@keyframes badgeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Right Profile Showcase Card */
.hero-card-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.profile-card {
  background: rgba(18, 22, 38, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  max-width: 380px;
  width: 100%;
  text-align: center;
}

.profile-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(180deg, rgba(0, 242, 254, 0.3), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.profile-img-container {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 1.5rem auto;
}

.profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.25);
}

.profile-status-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: var(--bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-status-badge::after {
  content: '';
  width: 14px;
  height: 14px;
  background: var(--accent-emerald);
  border-radius: 50%;
}

.profile-card-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}

.profile-card-title {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-top: 0.25rem;
}

.profile-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.profile-quote {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   6. About Section
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.about-narrative-card {
  background: rgba(18, 22, 38, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.about-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

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

.highlight-box {
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  transition: all var(--transition-fast);
}

.highlight-box:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 10px 25px rgba(0, 242, 254, 0.12);
}

.highlight-icon {
  font-size: 2rem;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.highlight-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.highlight-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

/* Certificate & Achievement Banner */
.certificate-banner-card {
  margin-top: 2rem;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.07) 0%, rgba(127, 0, 255, 0.07) 100%);
  border: 1px solid rgba(0, 242, 254, 0.28);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  transition: all var(--transition-normal);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.certificate-banner-card:hover {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.14) 0%, rgba(127, 0, 255, 0.14) 100%);
  border-color: rgba(0, 242, 254, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 242, 254, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.cert-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.cert-thumb-wrapper {
  position: relative;
  width: 80px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(0, 242, 254, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.cert-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cert-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 242, 254, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  color: #ffffff;
  font-size: 1.3rem;
}

.certificate-banner-card:hover .cert-thumb-wrapper {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(0, 242, 254, 0.4);
}

.certificate-banner-card:hover .cert-thumb-overlay {
  opacity: 1;
}

.cert-main-icon {
  font-size: 1.8rem;
  color: var(--accent-cyan);
}

.cert-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #34d399;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.cert-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.cert-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.cert-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.certificate-banner-card:hover .cert-view-btn {
  background: var(--gradient-accent);
  color: #040814;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
}

@media (max-width: 768px) {
  .certificate-banner-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  
  .cert-view-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Categorized Skills Grid */
.skills-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.skill-category-card {
  background: rgba(18, 22, 38, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all var(--transition-normal);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.skill-category-card:hover {
  background: rgba(24, 30, 52, 0.65);
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow: 0 20px 45px rgba(0, 242, 254, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-4px);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.category-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.category-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.skill-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-pill {
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.skill-pill:hover {
  background: rgba(0, 242, 254, 0.14);
  border-color: rgba(0, 242, 254, 0.4);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   7. Projects Section
   -------------------------------------------------------------------------- */
.projects-section {
  background: rgba(18, 18, 28, 0.3);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.project-card {
  background: rgba(18, 22, 38, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.project-card:hover {
  transform: translateY(-8px);
  background: rgba(24, 30, 52, 0.68);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 25px 50px rgba(0, 242, 254, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.project-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #08080c;
}

.project-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-thumb {
  transform: scale(1.08);
}

.project-tag-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0.25rem 0.75rem;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.project-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-info h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.project-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex: 1;
}

.project-cta {
  margin-top: auto;
}

.project-cta .cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 42px;
  padding: 0 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.project-cta .cta-btn i {
  font-size: 1rem;
  transition: transform var(--transition-fast);
}

.project-cta .cta-btn.cta-live-highlight {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: var(--accent-cyan);
  font-weight: 700;
  text-decoration: none;
}

.project-cta .cta-btn.cta-live-highlight:hover {
  background: var(--gradient-accent);
  color: #040814;
  border-color: transparent;
  box-shadow: 0 6px 25px rgba(0, 242, 254, 0.4);
  transform: translateY(-2px);
}

.live-badge {
  background: rgba(16, 185, 129, 0.18) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  animation: live-pulse 2s infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

.swipe-hint-mobile {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.8rem;
  background: rgba(0, 242, 254, 0.08);
  border-radius: var(--radius-full);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   8. Contact Section
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-card {
  background: rgba(18, 22, 38, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.contact-info-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.contact-info-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-method-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-method-text {
  display: flex;
  flex-direction: column;
}

.contact-method-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-method-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

/* Social links list */
.social-media-block {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.social-media-block h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.social-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.social-platform {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.social-item a {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

/* Contact Form Glass */
.contact-form-card {
  background: rgba(18, 22, 38, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.95rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

.submit-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--gradient-accent);
  color: #040814;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.25);
  transition: all var(--transition-normal);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 242, 254, 0.4);
}

/* --------------------------------------------------------------------------
   9. Footer Styling Overhaul
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2rem 0;
  background: #06060a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 1.25rem 0 1.5rem 0;
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: #34d399;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.footer-links a i {
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: transform var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-cyan);
  transform: translateX(3px);
}

.footer-links a:hover i {
  color: var(--accent-cyan);
}

.footer-contact-item {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-contact-item i {
  color: var(--accent-cyan);
  font-size: 1.05rem;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.footer-socials a:hover {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom strong {
  color: #ffffff;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.back-to-top:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   10. Modals Styling Overhaul
   -------------------------------------------------------------------------- */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 6, 12, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  overflow-y: auto;
  padding: 2rem 1rem;
}

.modal-content {
  background: #12121c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 720px;
  margin: 2rem auto;
  position: relative;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.modal-content.poster-modal {
  max-width: 900px;
}

.close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 10;
  transition: color var(--transition-fast);
}

.close:hover {
  color: #ffffff;
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
}

.modal-body {
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-container img,
.poster-image-wrapper img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* 3D Business Card Flip Styling */
.card-container {
  perspective: 1200px;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0.5rem 0;
}

.business-card {
  width: 100%;
  aspect-ratio: 1.75 / 1;
  position: relative;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
}

.business-card.flipped {
  transform: rotateY(180deg) !important;
}

.card-front,
.card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #111119;
}

.card-front img,
.card-back img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.card-back {
  transform: rotateY(180deg);
}

.flip-instruction {
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: var(--accent-cyan);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-btn:hover {
  background: var(--gradient-accent);
  color: #040814;
}

.modal-footer {
  padding: 1rem 2rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ==========================================================================
   GLOBAL MODERN LIGHTBOX COMPONENT
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 14, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: -1;
}

/* Lightbox Topbar */
.lightbox-topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.75rem;
  background: rgba(14, 16, 26, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lightbox-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.lightbox-counter {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.lightbox-separator {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.lightbox-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.lightbox-tag {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lightbox-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  position: relative;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}

.lightbox-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
}

/* Lightbox Stage */
.lightbox-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1.5rem;
  width: 100%;
  height: calc(100vh - 125px);
}

.lightbox-canvas {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: default;
}

.lightbox-canvas.can-pan {
  cursor: grab;
}

.lightbox-canvas.grabbing {
  cursor: grabbing !important;
}

.lightbox-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  will-change: transform, opacity;
}

.lightbox-image-wrapper.animate-transition {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.lightbox-image-wrapper img {
  max-width: 88vw;
  max-height: 75vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: auto;
}

/* Navigation Buttons */
.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(14, 16, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.lightbox-nav-btn:hover {
  background: var(--gradient-accent);
  color: #040814;
  border-color: transparent;
  transform: translateY(-50%) scale(1.08);
}

.lightbox-nav-btn.prev-btn {
  left: 2rem;
}

.lightbox-nav-btn.next-btn {
  right: 2rem;
}

.lightbox-nav-btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
  pointer-events: none;
}

/* Bottombar */
.lightbox-bottombar {
  position: relative;
  z-index: 20;
  padding: 0.75rem 1.75rem;
  background: rgba(14, 16, 26, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
}

.lightbox-caption {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-family: var(--font-body);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .lightbox-topbar {
    padding: 0.75rem 1rem;
  }
  .lightbox-title {
    font-size: 0.95rem;
    max-width: 140px;
  }
  .lightbox-tag {
    display: none;
  }
  .lightbox-stage {
    padding: 0.5rem;
    height: calc(100vh - 110px);
  }
  .lightbox-image-wrapper img {
    max-width: 94vw;
    max-height: 68vh;
  }
  .lightbox-nav-btn {
    width: 42px;
    height: 42px;
    font-size: 1.4rem;
  }
  .lightbox-nav-btn.prev-btn {
    left: 0.5rem;
  }
  .lightbox-nav-btn.next-btn {
    right: 0.5rem;
  }
}

/* --------------------------------------------------------------------------
   11. Mobile Drawer Navigation & Responsive Breakpoints
   -------------------------------------------------------------------------- */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 290px;
  max-width: 85vw;
  height: 100vh;
  background: rgba(14, 16, 26, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 1600;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: right var(--transition-normal);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.8);
}

.mobile-drawer.active {
  right: 0;
}

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1550;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-close {
  font-size: 1.8rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.drawer-close:hover {
  color: #ffffff;
}

.drawer-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.5rem 0;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--accent-cyan);
  padding-left: 0.5rem;
  border-left: 3px solid var(--accent-cyan);
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-title {
    font-size: clamp(2.2rem, 7vw, 3.2rem);
  }

  .typewriter-container {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-tech-stack {
    justify-content: center;
  }

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

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

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

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

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }

  .nav-links {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .swipe-hint-mobile {
    display: flex;
    justify-content: center;
  }

  /* Section headings always centered on mobile */
  .section-header {
    text-align: center;
  }

  .section-header .section-subtitle,
  .section-header .section-title {
    text-align: center;
  }

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

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

  .about-text p {
    text-align: left;
  }

  .highlight-box {
    text-align: center;
  }

  .projects-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1.25rem;
    padding: 0.5rem 0.75rem 1.5rem 0.75rem;
    scrollbar-width: none;
  }

  .projects-grid::-webkit-scrollbar {
    display: none;
  }

  .projects-grid .project-card {
    flex: 0 0 86%;
    max-width: 86%;
    scroll-snap-align: center;
  }

  /* About Section Responsive Optimizations */
  .about-narrative-card {
    padding: 1.5rem;
  }

  .about-text p {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }

  .about-highlights-grid {
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .highlight-box {
    padding: 1rem;
  }

  .skill-category-card {
    padding: 1.25rem;
  }

  .certificate-banner-card {
    padding: 1.25rem;
  }

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

  .form-group.full-width {
    grid-column: span 1;
  }

  .social-links {
    grid-template-columns: 1fr;
  }

  .social-link-item {
    justify-content: center;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    align-items: center;
  }

  .footer-links li {
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 0.75rem;
  }

  .modal-content {
    max-width: 95%;
    margin: 1rem auto;
  }

  .modal-header {
    padding: 1.25rem;
  }

  .modal-body {
    padding: 1.25rem;
  }
}

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

  .hero-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .btn-primary, .btn-secondary, .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .profile-card {
    padding: 1.5rem;
  }

  .profile-card-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }

  .stat-num {
    font-size: 1.1rem;
  }

  /* Extra Small Mobile About Optimizations */
  .about-narrative-card {
    padding: 1.25rem;
  }

  .highlight-box {
    padding: 0.85rem;
  }

  .skill-category-card {
    padding: 1rem;
  }
}

/* --------------------------------------------------------------------------
   12. Work Process Grid & Floating CLI Terminal Styles
   -------------------------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.process-card {
  background: rgba(18, 22, 38, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.process-card:hover {
  transform: translateY(-6px);
  background: rgba(24, 30, 52, 0.65);
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow: 0 20px 45px rgba(0, 242, 254, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.process-step-num {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.06);
}

.process-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.process-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.process-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Navbar & Drawer CLI Buttons */
.nav-cli-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-cli-btn:hover {
  background: var(--gradient-accent);
  color: #040814;
  border-color: transparent;
}

.mobile-drawer-cli-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

/* Floating CLI Trigger Button */
.cli-trigger-btn {
  position: fixed;
  bottom: 1.75rem;
  left: 1.75rem;
  z-index: 999999;
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1.4rem;
  background: #090d16;
  border: 2px solid var(--accent-cyan);
  border-radius: var(--radius-full);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 242, 254, 0.4);
  cursor: pointer;
  transition: all var(--transition-normal);
  user-select: none;
  -webkit-user-select: none;
}

.cli-trigger-btn i {
  font-size: 1.15rem;
  color: var(--accent-cyan);
}

.cli-trigger-btn:hover {
  transform: translateY(-3px) scale(1.05);
  background: var(--gradient-accent);
  color: #040814;
  border-color: transparent;
  box-shadow: 0 15px 45px rgba(0, 242, 254, 0.6);
}

.cli-trigger-btn:hover i {
  color: #040814;
}

/* CLI Modal & Terminal Window */
.cli-modal {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 6, 12, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s ease;
}

.cli-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .cli-trigger-btn {
    bottom: 1rem;
    left: 1rem;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }

  .cli-modal {
    padding: 0.75rem;
    align-items: center;
    justify-content: center;
  }

  .cli-window {
    width: 100% !important;
    max-width: 100% !important;
    height: 85vh !important;
    max-height: 85vh !important;
    border-radius: var(--radius-md) !important;
    transform: none !important;
  }

  .cli-header {
    padding: 0.65rem 1rem;
  }

  .cli-title-full {
    display: none;
  }

  .cli-body {
    flex: 1;
    height: auto !important;
    padding: 0.9rem 1rem !important;
    font-size: 0.78rem !important;
  }

  .cli-input-line {
    padding: 0.7rem 1rem;
  }

  .cli-input-line input {
    font-size: 0.82rem;
  }

  .cli-body pre {
    font-size: 0.62rem !important;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-x: hidden;
  }
}

.cli-window {
  width: 100%;
  max-width: 680px;
  background: #0a0a12;
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-md);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 242, 254, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  transform: scale(0.96);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease, box-shadow 0.22s ease;
  /* Prevent ANY child from causing overflow */
  min-width: 0;
}

.cli-modal.active .cli-window {
  transform: scale(1);
  border-color: rgba(0, 242, 254, 0.55);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 40px rgba(0, 242, 254, 0.35);
}

.cli-header {
  background: #12121e;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.cli-dots {
  display: flex;
  gap: 0.4rem;
}

.cli-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.cli-dots .dot.red { background: #ff5f56; cursor: pointer; }
.cli-dots .dot.yellow { background: #ffbd2e; }
.cli-dots .dot.green { background: #27c93f; }

.cli-title {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.cli-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.cli-body {
  padding: 1.25rem;
  height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #e2e8f0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.cli-line.welcome-text {
  color: var(--text-muted);
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--border-subtle);
}

.cli-prompt {
  color: #38bdf8;
  font-weight: 700;
  margin-right: 0.5rem;
}

.cmd-highlight {
  color: #34d399;
  font-weight: 700;
}

.accent {
  color: var(--accent-cyan);
  font-weight: 700;
}

.cli-link {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: all var(--transition-fast);
}

.cli-link:hover {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
}

.cli-btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1.1rem;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.35rem;
  transition: all var(--transition-fast);
}

.cli-btn-action:hover {
  background: var(--gradient-accent);
  color: #040814;
  border-color: transparent;
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.5);
  transform: translateY(-2px);
}

.cli-input-line {
  display: flex;
  align-items: center;
  padding: 0.85rem 1.25rem;
  background: #11111a;
  border-top: 1px solid var(--border-subtle);
}

.cli-input-line input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.92rem;
  caret-color: var(--accent-cyan);
}

.cli-input-line input::placeholder {
  color: rgba(148, 163, 184, 0.4);
  font-style: italic;
  font-size: 0.86rem;
}

/* --------------------------------------------------------------------------
   13. Fixed Floating Back to Top Button
   -------------------------------------------------------------------------- */
.fixed-back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(18, 22, 38, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: var(--accent-cyan);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 242, 254, 0.2);
}

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

.fixed-back-to-top:hover {
  background: var(--gradient-accent);
  color: #040814;
  border-color: transparent;
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 15px 35px rgba(0, 242, 254, 0.45);
}
