        /* ==========================================================================
   CSS VARIABLES & GLOBAL THEMING
   ========================================================================== */
:root {
  /* Brand Palette (unchanged) */
  --bg-color: #FFFFFF;
  --bg-alt: #F8FAFC;
  --primary-color: #2563EB;
  --primary-hover: #1D4ED8;
  --secondary-color: #7C3AED;
  --accent-color: #38BDF8;

  /* Text Colors */
  --text-dark: #111827;
  --text-light: #6B7280;
  --text-muted: #9CA3AF;
  --text-white: #FFFFFF;

  /* UI Surface Colors */
  --card-bg: #FFFFFF;
  --border-color: #E5E7EB;
  --border-color-strong: #D1D5DB;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(229, 231, 235, 0.9);

  /* Typography */
  --heading-font: 'Poppins', sans-serif;
  --body-font: 'Inter', sans-serif;
  --h1-size: clamp(2.25rem, 4.5vw, 3rem);
  --h2-size: clamp(1.75rem, 3vw, 2.25rem);
  --h3-size: 1.25rem;
  --normal-size: 1rem;
  --small-size: 0.875rem;
  --xs-size: 0.75rem;

  /* Layout Spacing */
  --header-height: 4.5rem;
  --radius-lg: 1rem;
  --radius-md: 0.625rem;
  --radius-full: 9999px;

  /* Transitions & Shadows (neutralized, less colored/heavy) */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06), 0 1px 3px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 8px 20px -6px rgba(17, 24, 39, 0.10);
  --shadow-lg: 0 20px 35px -12px rgba(17, 24, 39, 0.16);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--body-font);
  background-color: var(--bg-color);
  color: var(--text-dark);
}

body {
  overflow-x: hidden;
  line-height: 1.65;
  font-size: var(--normal-size);
}

h1, h2, h3, h4, .nav-logo, .footer-logo, .btn {
  font-family: var(--heading-font);
}

ul {
  list-style: none;
}

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

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

/* Accessible focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
  border-radius: var(--radius-md);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   REUSABLE UTILITIES
   ========================================================================== */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.grid {
  display: grid;
  gap: 2rem;
}

.section {
  padding: 5.5rem 0;
  scroll-margin-top: var(--header-height);
}

.section-title {
  font-size: var(--h2-size);
  text-align: center;
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.section-title i {
  color: var(--primary-color);
  font-size: 0.85em;
}

.section-subtitle {
  display: block;
  text-align: center;
  color: var(--text-light);
  font-size: var(--small-size);
  margin-bottom: 3.5rem;
  letter-spacing: 0.3px;
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--small-size);
  transition: var(--transition);
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.04);
}

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

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-white);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: var(--xs-size);
}

.btn-block {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: var(--small-size);
  color: var(--text-light);
  padding: 0.85rem 0.25rem;
  transition: var(--transition);
}

.text-link:hover {
  color: var(--primary-color);
  gap: 0.65rem;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: transparent;
  transition: var(--transition);
}

.header.scroll-header {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.nav-logo i {
  color: var(--primary-color);
}

.nav-logo span {
  color: var(--secondary-color);
}

.nav-list {
  display: flex;
  gap: 2.25rem;
}

.nav-link {
  position: relative;
  color: var(--text-dark);
  font-weight: 500;
  font-size: var(--small-size);
  transition: var(--transition);
  padding: 0.35rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active-link {
  color: var(--primary-color);
}

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

.nav-toggle,
.nav-close {
  display: none;
  font-size: 1.3rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding-top: calc(var(--header-height) + 3rem);
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-container {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

/* Interactive Tiles Background */
.hero-tiles {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(var(--tile-cols, 30), 1fr);
  grid-template-rows: repeat(var(--tile-rows, 20), 1fr);
  --tile: rgba(37, 99, 235, 0.09);
  user-select: none;
}

.tile {
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.35s ease;
}

.tile:hover {
  background-color: var(--tile);
}

.hero-subtitle {
  font-size: var(--xs-size);
  font-weight: 700;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-title {
  font-family: var(--heading-font);
  font-size: var(--h1-size);
  font-weight: 800;
  line-height: 1.1;
  margin: 0.6rem 0;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-dark), var(--primary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-profession {
  font-family: var(--heading-font);
  font-size: 1.4rem;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 1.25rem;
  min-height: 1.9rem;
}

.typing-text {
  color: var(--primary-color);
  border-right: 2px solid var(--primary-color);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.hero-tags .tag {
  font-size: var(--xs-size);
}

.hero-description {
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 540px;
  font-size: 1.05rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Featured Result Card */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.result-card {
  width: min(440px, 100%);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: calc(var(--radius-lg) * 1.4);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  animation: cardIn 0.8s ease-out both;
}

.result-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.result-kicker {
  font-size: var(--xs-size);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--secondary-color);
}

.result-project {
  font-size: var(--xs-size);
  font-weight: 600;
  color: var(--text-light);
}

.result-metric {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.result-value {
  font-family: var(--heading-font);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.result-label {
  font-size: var(--small-size);
  color: var(--text-light);
  font-weight: 500;
}

.result-chart {
  width: 100%;
  height: 72px;
  display: block;
  margin: 0.5rem 0 1.1rem;
}

.chart-line {
  stroke: var(--primary-color);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.result-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.result-bar-item {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.8rem 0.9rem;
}

.result-bar-label {
  display: block;
  font-size: var(--xs-size);
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.result-bar-track {
  height: 8px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.result-bar-fill {
  display: block;
  height: 100%;
  border-radius: var(--radius-full);
}

.result-bar-fill.before {
  background: var(--border-color-strong);
}

.result-bar-fill.after {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.result-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.result-tools span {
  font-size: var(--xs-size);
  font-weight: 500;
  color: var(--text-light);
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.12);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about {
  background: var(--bg-alt);
}

.about-container {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
}

.about-text {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.strengths-wrapper h3 {
  font-family: var(--heading-font);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.strengths-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-color);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: var(--small-size);
  font-weight: 500;
  border: 1px solid rgba(37, 99, 235, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.about-stats {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 0.6rem;
}

.stat-number {
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
}

.stat-title {
  font-size: var(--small-size);
  color: var(--text-light);
  margin-top: 0.15rem;
}

.stat-source {
  display: block;
  margin-top: 0.45rem;
  font-size: var(--xs-size);
  color: var(--text-light);
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */
.skills-container {
  display: grid;
  gap: 2.75rem;
}

.skill-group-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.skill-group-icon {
  font-size: 1.35rem;
  color: var(--primary-color);
  background: rgba(37, 99, 235, 0.08);
  padding: 0.7rem;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

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

.skill-group-intro {
  font-size: var(--small-size);
  color: var(--text-light);
  max-width: 560px;
}

.skill-fan {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem auto 0;
  --skill-card-size: 150px;
  --skill-card-h: 180px;
  user-select: none;
}

.skill-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--skill-card-size, 150px);
  height: var(--skill-card-h, 180px);
  margin-left: calc(var(--skill-card-size, 150px) / -2);
  margin-top: calc(var(--skill-card-h, 180px) / -2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.skill-card:hover,
.skill-card:focus {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
  outline: none;
}

.skill-card:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}

.skill-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-color);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.skill-card-title {
  font-family: var(--heading-font);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-dark);
}

.skill-card-desc {
  font-size: var(--xs-size);
  color: var(--text-light);
  text-align: center;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

.skill-card:hover .skill-card-desc,
.skill-card:focus .skill-card-desc {
  opacity: 1;
  max-height: 3.2em;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services {
  background: var(--bg-alt);
}

.services-container {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 2.1rem 1.75rem;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  font-size: 2.1rem;
  color: var(--secondary-color);
  margin-bottom: 1.1rem;
}

.service-title {
  font-family: var(--heading-font);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.service-desc {
  font-size: var(--small-size);
  color: var(--text-light);
}

/* ==========================================================================
   PORTFOLIO SECTION
   ========================================================================== */
.portfolio-container {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.portfolio-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.portfolio-visual {
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(124, 58, 237, 0.06));
  border-bottom: 1px solid var(--border-color);
}

.portfolio-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.mock {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.mock-titlebar {
  display: flex;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-alt);
}

.mock-titlebar span {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--border-color-strong);
}

.mock-titlebar span:first-child { background: #FCA5A5; }
.mock-titlebar span:nth-child(2) { background: #FCD34D; }
.mock-titlebar span:nth-child(3) { background: #6EE7B7; }

.mock-body {
  padding: 1rem 1.1rem;
}

/* Brand mock */
.mock-swatches {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.swatch {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
}

.sw-1 { background: linear-gradient(135deg, #2563EB, #38BDF8); }
.sw-2 { background: linear-gradient(135deg, #7C3AED, #A78BFA); }
.sw-3 { background: linear-gradient(135deg, #111827, #4B5563); }
.sw-4 { background: linear-gradient(135deg, #F59E0B, #FBBF24); }

.positioning-map {
  position: relative;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
}

.map-line {
  position: absolute;
  background: var(--border-color-strong);
}

.map-v { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.map-h { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }

.map-dot {
  position: absolute;
  left: 62%;
  top: 38%;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--primary-color);
  border: 2px solid var(--card-bg);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

/* SEO mock */
.mock-badge {
  display: inline-block;
  font-size: var(--xs-size);
  font-weight: 700;
  color: #059669;
  background: rgba(5, 150, 105, 0.1);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.7rem;
  margin-bottom: 0.75rem;
}

.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  height: 64px;
}

.mini-bar {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--accent-color), var(--primary-color));
  opacity: 0.85;
}

.mini-bar:nth-last-child(-n+2) {
  background: linear-gradient(180deg, var(--secondary-color), var(--primary-color));
  opacity: 1;
}

/* Social mock */
.post-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.post-avatar {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  flex-shrink: 0;
}

.post-line {
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--border-color-strong);
  width: 45%;
}

.post-line.long { width: 70%; }
.post-line.short { width: 32%; }

.post-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-light);
  font-size: var(--xs-size);
  margin-top: 0.7rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-color);
}

/* Ads mock */
.ads-kpi {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.ads-kpi strong {
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
}

.ads-kpi span {
  font-size: var(--xs-size);
  font-weight: 600;
  color: var(--text-light);
}

.roas {
  display: grid;
  gap: 0.5rem;
}

.roas-row {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 0.6rem;
}

.roas-row span {
  font-size: var(--xs-size);
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
}

.roas-row i {
  display: block;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--border-color-strong);
}

.roas-row:last-child i {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* Email mock */
.email-subject {
  margin-bottom: 0.7rem;
}

/* Web mock */
.mini-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.7rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-color);
}

.mini-logo {
  width: 34px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

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

.mini-nav-links i {
  width: 16px;
  height: 5px;
  border-radius: 4px;
  background: var(--border-color-strong);
}

.mini-hero {
  margin-bottom: 0.8rem;
}

.mini-btn {
  display: block;
  width: 56px;
  height: 16px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  margin-top: 0.5rem;
}

.mini-gradient {
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(124, 58, 237, 0.15));
  border: 1px solid var(--border-color);
}

.portfolio-content {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-title {
  font-family: var(--heading-font);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.portfolio-desc {
  font-size: var(--small-size);
  color: var(--text-light);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.portfolio-tech {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
}

.portfolio-tech span {
  font-size: var(--xs-size);
  background: rgba(107, 114, 128, 0.1);
  color: var(--text-dark);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-md);
  font-weight: 500;
}

.portfolio-links {
  display: flex;
  gap: 0.75rem;
}

/* ==========================================================================
   CERTIFICATIONS SECTION
   ========================================================================== */
.certifications {
  background: var(--bg-alt);
}

.certifications-container {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
}

.cert-card:hover {
  border-color: var(--secondary-color);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.cert-card--image {
  cursor: pointer;
  padding: 0.75rem;
}

.cert-card--image img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 0.5rem;
  background: #f1f5f9;
}

.cert-title {
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.75rem;
}

/* Certificate Modal */
.cert-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.cert-modal.active {
  display: flex;
}

.cert-modal-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 0.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.cert-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s;
}

.cert-modal-close:hover {
  transform: scale(1.2);
}

/* ==========================================================================
   CONTACT SECTION (immersive, bubbles)
   ========================================================================== */
.contact-hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7.5rem 0;
  background: linear-gradient(160deg, #0F172A 0%, #1E3A8A 55%, #5B21B6 100%);
  color: var(--text-white);
}

/* Background layers */
.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.contact-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1742273330004-ef9c9d228530?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHx0b3BpYy1mZWVkfDY0fENEd3V3WEpBYkV3fHxlbnwwfHx8fHw%3D&auto=format&fit=crop&q=60&w=1600');
  background-size: cover;
  background-position: center;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.8) 40%, rgba(30, 64, 175, 0.6) 72%, rgba(91, 33, 182, 0.52) 100%);
}

/* Animated Bubbles */
.contact-bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.bubble {
  position: absolute;
  bottom: -80px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.45), rgba(124, 58, 237, 0.18));
  opacity: 0;
  animation: contactBubble 18s linear infinite;
}

@keyframes contactBubble {
  0% {
    transform: translateY(0) translateX(0) scale(0.5);
    opacity: 0;
  }
  8% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.85;
  }
  92% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-110vh) translateX(var(--bubble-drift, 24px)) scale(1.1);
    opacity: 0;
  }
}

/* Content grid */
.contact-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 3rem;
}

/* Left: Title */
.contact-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--xs-size);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-color);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-full);
  padding: 0.45rem 1rem;
  margin-bottom: 1.5rem;
}

.contact-hero-title {
  font-family: var(--heading-font);
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-white);
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 24px rgba(15, 23, 42, 0.45);
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-color), #A78BFA);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-hero-text {
  color: rgba(226, 232, 240, 0.9);
  font-size: 1.05rem;
  max-width: 440px;
  margin-bottom: 2rem;
}

.contact-points {
  display: grid;
  gap: 0.75rem;
}

.contact-points li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(226, 232, 240, 0.92);
  font-size: var(--small-size);
  font-weight: 500;
}

.contact-points li i {
  color: var(--accent-color);
  width: 20px;
  text-align: center;
}

/* Right: Contact Form */
.contact-form {
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 24px 48px -16px rgba(15, 23, 42, 0.35);
  color: var(--text-dark);
}

.contact-form-title {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.contact-email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.contact-mail-label {
  display: block;
  font-size: var(--xs-size);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
}

.contact-mail-value {
  font-weight: 600;
  color: var(--primary-color);
  transition: var(--transition);
}

.contact-mail-value:hover {
  color: var(--secondary-color);
}

.contact-socials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-or {
  font-size: var(--xs-size);
  font-weight: 600;
  color: var(--text-light);
  margin-right: 0.25rem;
}

.contact-social {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  font-size: var(--small-size);
  transition: var(--transition);
}

.contact-social:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.contact-divider {
  border: none;
  height: 1px;
  background: var(--border-color);
  margin: 1.5rem 0;
}

.contact-form-hint {
  font-size: var(--small-size);
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.contact-checkbox-label {
  font-size: var(--small-size);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.6rem;
}

.choice {
  cursor: pointer;
}

.choice-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.choice-text {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: var(--bg-color);
  font-size: var(--small-size);
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
  user-select: none;
}

.choice-check {
  font-size: 0.7rem;
  color: var(--text-white);
  opacity: 0;
  transform: scale(0.5);
  transition: var(--transition);
}

.choice:hover .choice-text {
  border-color: var(--primary-color);
}

.choice-input:checked + .choice-text {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-color: transparent;
  color: var(--text-white);
  box-shadow: var(--shadow-sm);
}

.choice-input:checked + .choice-text .choice-check {
  opacity: 1;
  transform: scale(1);
}

.choice-input:focus-visible + .choice-text {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.contact-submit {
  margin-top: 0.5rem;
}

/* Contact Form */

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: var(--small-size);
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--text-dark);
}

.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  font-family: var(--body-font);
  font-size: var(--small-size);
  outline: none;
  transition: var(--transition);
  background: var(--bg-color);
  color: var(--text-dark);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:hover {
  border-color: var(--border-color-strong);
}

.form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-status {
  margin-top: 1rem;
  font-size: var(--small-size);
  text-align: center;
  font-weight: 500;
  min-height: 1.2rem;
}

.form-status.success {
  color: #059669;
}

.form-status.error {
  color: #DC2626;
}

.form-error {
  display: none;
  margin-top: 0.4rem;
  font-size: var(--xs-size);
  color: #DC2626;
}

.form-error.show {
  display: block;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--text-dark);
  color: var(--text-white);
  padding: 4rem 0 2rem;
}

.footer-container {
  grid-template-columns: 1.5fr 1fr 1fr;
  margin-bottom: 3rem;
  gap: 2rem;
}

.footer-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.footer-logo i { color: var(--primary-color); }
.footer-logo span { color: var(--secondary-color); }

.footer-description {
  color: #9CA3AF;
  font-size: var(--small-size);
  max-width: 300px;
}

.footer-title {
  font-family: var(--heading-font);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-white);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-link {
  color: #9CA3AF;
  font-size: var(--small-size);
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--accent-color);
  padding-left: 0.25rem;
}

.footer-social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
}

.footer-copy {
  font-size: var(--small-size);
  color: #9CA3AF;
}

/* Back To Top */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: -20%;
  background: var(--primary-color);
  color: var(--text-white);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  z-index: 99;
}

.back-to-top:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

.back-to-top.show-scroll {
  bottom: 2rem;
}

/* ==========================================================================
   KEYFRAMES
   ========================================================================== */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Reveal Scroll Class */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media screen and (max-width: 992px) {
  .hero-container,
  .about-container,
  .contact-hero-inner {
    grid-template-columns: 1fr;
  }

  .contact-hero {
    padding: 7rem 0 6rem;
  }

  .contact-hero-text {
    max-width: 520px;
  }

  .hero-visual {
    order: -1;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media screen and (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    padding: 4rem 0 3rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu.show-menu {
    top: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .nav-toggle,
  .nav-close {
    display: block;
  }

  .nav-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
  }

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

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

  .skill-fan {
    --skill-card-size: 120px;
    --skill-card-h: 148px;
  }

  .contact-hero-inner {
    gap: 2rem;
  }

  .contact-form {
    padding: 1.75rem;
  }

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

  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-buttons .text-link {
    align-self: flex-start;
  }
}
     