/* ============================================
   MONOGRAM — CSS CLONE
   ============================================ */

:root {
  --bg: #0d0d0d;
  --bg-2: #111111;
  --bg-3: #161616;
  --bg-card: #141414;
  --border: rgba(255, 255, 255, 0.05);
  /* Brutalist thin border */
  --accent: #b8f73d;
  --accent-glow: rgba(184, 247, 61, 0.15);
  --white: #ffffff;
  --gray: #8a8a8a;
  --gray-light: #c0c0c0;
  --font: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --sidebar-width: 28px;
  --header-h: 72px;
  --radius: 12px;
  --transition: 0.3s ease;
  --texture: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* ---- Universal Running Light Border Effect (2px) ---- */
.service-card,
.depth-slide,
.bento-card,
.tool-v-card,
.testimonial-card,
.cta-card,
.btn,
.nav-item,
.contact-card,
.exp-item,
.info-card,
.stat-box {
  position: relative;
  border: 2px solid transparent !important;
  /* 2px width */
  background:
    var(--texture),
    linear-gradient(var(--bg-box, var(--bg-card)), var(--bg-box, var(--bg-card))) padding-box,
    conic-gradient(from var(--angle), transparent, var(--light-color, var(--accent)), transparent 40%) border-box !important;
  background-size: 2px 2px, auto, auto;
  background-blend-mode: soft-light, normal, normal;
  animation: border-crawl var(--glow-speed, 2s) linear infinite;
  /* Dynamic speed */
  overflow: hidden;
}

@keyframes border-crawl {
  0% {
    --angle: 0deg;
  }

  100% {
    --angle: 360deg;
  }
}

/* ---- Text Light-Beam Reveal ---- */
.reveal-text {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  background: linear-gradient(90deg, #fff 0%, var(--accent) 35%, var(--accent) 50%, var(--accent) 65%, #fff 100%);
  background-size: 200% 100%;
  background-position: -100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: rgba(255, 255, 255, 0.15);
  filter: drop-shadow(0 0 8px rgba(184, 247, 61, 0.4));
  text-shadow: 0 0 20px rgba(184, 247, 61, 0.1);
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

.reveal-text.visible {
  opacity: 1;
  transform: translateY(0);
  background-position: 100% 0;
  color: var(--accent);
  filter: drop-shadow(0 0 12px rgba(184, 247, 61, 0.7));
  text-shadow: 0 0 30px rgba(184, 247, 61, 0.5);
  transition: transform 1.2s ease, opacity 1.2s ease, background-position 1.5s ease, filter 1.2s ease, text-shadow 1.2s ease;
}

/* Typewriter effect styling */
.typewriter-done {
  animation: typewriterGlow 0.05s ease;
}

@keyframes typewriterGlow {

  0%,
  100% {
    text-shadow: 0 0 10px rgba(184, 247, 61, 0.3);
  }

  50% {
    text-shadow: 0 0 20px rgba(184, 247, 61, 0.7);
  }
}

/* Light bulb effect for all text - glowing on scroll */
p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
div,
a {
  --text-glow: 0px;
}

p.reveal-text,
h1.reveal-text,
h2.reveal-text,
h3.reveal-text,
h4.reveal-text,
h5.reveal-text,
a.reveal-text {
  position: relative;
}

.reveal-stagger>* {
  opacity: 0;
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.reveal-stagger.visible>* {
  opacity: 1;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
  background-size: 2px 2px;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: -1;
}

/* Global cursor hide - targets every element to prevent system pointer pop-ins */
* {
  cursor: none !important;
}

html,
body {
  cursor: none !important;
  user-select: none;
  /* Optional: prevents text selection accidentally hiding cursor */
}

body {
  background-color: var(--bg);
  background-image: var(--texture);
  background-size: 2px 2px;
  background-blend-mode: soft-light;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

canvas#interactive-grid,
canvas#ambient-canvas,
canvas#snake-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

canvas#interactive-grid {
  opacity: 0.4;
}

canvas#ambient-canvas {
  opacity: 0.6;
}

canvas#snake-canvas {
  z-index: 0;
  /* Behind all content safely */
  opacity: 0.8;
}

/* Scanning Line Effect */
.scan-line {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to bottom, transparent, rgba(184, 247, 61, 0.05), transparent);
  pointer-events: none;
  z-index: 5;
  animation: scan 10s linear infinite;
}

@keyframes scan {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(100vh);
  }
}

/* Background Noise Texture */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  /* Pushed below cursor */
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.2;
  mix-blend-mode: normal;
}

/* Bottom Gradient Blur */
.bottom-gradient-blur {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60vh;
  /* 60% of viewport height */
  z-index: -1;
  /* Below all content */
  pointer-events: none;
  backdrop-filter: blur(20px);
  /* Apply blur */
  -webkit-backdrop-filter: blur(0px);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 10%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
}

/* Mouse Glow Interaction */
.glow-point {
  position: fixed;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -50%);
  opacity: 1;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 4px;
}

/* ---- Meteor / Shooting Star Effect ---- */
.meteor {
  position: fixed;
  /* starting position is set via script for randomness */
  width: 4px;
  /* thicker streak */
  height: 120px;
  /* longer streak */
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  filter: drop-shadow(0 0 8px rgba(184, 247, 61, 0.8));
  opacity: 0.75;
  transform-origin: top left;
  /* ensure head stays at pivot during rotation */
  transform: rotate(0deg);
  /* better angle */
  animation: meteor-fall 0.8s linear forwards;
  z-index: 0;
  pointer-events: none;
}

.meteor::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(2px);
  border-radius: 50%;
}

@keyframes meteor-fall {
  to {
    transform: translate(100vw, 100vh) rotate(120deg);
    opacity: 0;
  }
}

/* fixed tagline text shown site-wide */
.site-tagline {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.6;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 2px;
}

/* ---- Selection ---- */
::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ---- Custom Cursor (Total Priority) ---- */
.cursor {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
  box-shadow: 0 0 10px var(--accent);
}

.cursor-follower {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(184, 247, 61, 0.5);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, width 0.3s, height 0.3s;
  backdrop-filter: blur(1px);
}

/* ---- Loader ---- */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  text-align: center;
}

.loader-logo {
  font-family: var(--font);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  display: block;
  margin-bottom: 2rem;
}

.loader-bar {
  width: 200px;
  height: 1px;
  background: var(--border);
  margin: 0 auto;
  border-radius: 1px;
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.05s linear;
}

.enter-site-btn {
  margin-top: 2rem;
  background: transparent;
  color: var(--white);
  border: 1px solid var(--accent);
  padding: 0.8rem 2rem;
  font-family: var(--font);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 40px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
}

.enter-site-btn.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.enter-site-btn:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 20px rgba(184, 247, 61, 0.4);
}

/* ---- Music Player ---- */
/* ---- Music Player Essentials (Moved to End) ---- */


@keyframes music-bar-pulse {

  0%,
  100% {
    height: 4px;
  }

  50% {
    height: 12px;
  }
}

.music-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-light);
  line-height: 1;
}

/* ---- Sidebars ---- */
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  width: var(--sidebar-width);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  /* Huge vertical gap from corners */
  z-index: 100;
  pointer-events: none;
}

.sidebar-left {
  left: 45px;
  /* Significant gap from left edge */
}

.sidebar-right {
  right: 45px;
  /* Significant gap from right edge */
}

.sidebar-text {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

.social-icons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  pointer-events: all;
}

.social-icon {
  color: var(--gray);
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
}

.social-icon:hover {
  color: var(--accent);
}

.social-icon svg {
  width: 14px;
  height: 14px;
}

/* ---- Container ---- */
.container {
  max-width: 1600px;
  width: 88%;
  /* Increased side gap from 92% */
  margin: 0 auto;
  padding: 0;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 500;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(13, 13, 13, 0.9);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}

.header-inner {
  max-width: 1600px;
  width: 88%;
  /* Symmetrical gap with container */
  margin: 0 auto;
  padding: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
}

.nav {
  display: flex;
  gap: 2rem;
  margin: 0 auto;
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.header-lang {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  cursor: pointer;
}

.btn-hire {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1.25rem;
  border: 1px solid var(--border);
  color: var(--white);
  text-decoration: none;
  border-radius: 40px;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.btn-hire:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
}

.search-btn {
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
}

.search-btn svg {
  width: 16px;
  height: 16px;
}

.search-btn:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 40px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  --bg-box: var(--accent);
  --light-color: var(--white);
  color: var(--bg) !important;
  font-weight: 700;
}

.btn-primary:hover {
  --bg-box: var(--bg);
  --light-color: var(--accent);
  color: var(--accent) !important;
}

.btn-ghost {
  --bg-box: var(--bg);
  --light-color: var(--accent);
  color: var(--white);
}

.btn-ghost:hover {
  --bg-box: var(--accent);
  --light-color: var(--white);
  color: var(--bg) !important;
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ---- Section Common ---- */
section {
  padding: clamp(4rem, 8vw, 10rem) 0;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.section-sub {
  color: var(--gray);
  max-width: 600px;
  margin-bottom: 3rem;
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 6%;
  padding-top: var(--header-h);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(184, 247, 61, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  max-width: 750px;
  /* Reduced to give more room to the large photo */
  padding-left: 0;
  position: relative;
  z-index: 10;
  /* Above photo */
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 0.45rem 1.1rem;
  font-size: 0.78rem;
  color: var(--gray-light);
  margin-bottom: 2rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(184, 247, 61, 0.4);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(184, 247, 61, 0);
  }
}

.badge-cycle {
  color: var(--accent);
  font-weight: 600;
}

.hero-title {
  font-family: var(--font);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}

.hero-accent {
  color: rgba(255, 255, 255, 0.15);
  background: none;
  background-clip: unset;
}

.hero-accent.visible {
  color: var(--accent);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.hero-avatars {
  display: flex;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -10px;
  object-fit: cover;
}

.avatar:first-child {
  margin-left: 0;
}

.hero-rating {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stars {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 2px;
}

.hero-rating span {
  font-size: 0.78rem;
  color: var(--gray);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero float card */
.hero-float-card {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  backdrop-filter: blur(12px);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(-50%) translateY(0);
  }

  50% {
    transform: translateY(-50%) translateY(-12px);
  }
}

.float-card-inner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.float-icon {
  font-size: 1.5rem;
}

.float-text {
  display: flex;
  flex-direction: column;
}

.float-text strong {
  font-size: 0.88rem;
  font-weight: 600;
}

.float-text span {
  font-size: 0.72rem;
  color: var(--gray);
  margin-top: 2px;
}

/* Hero corners */
.hero-corner {
  position: absolute;
  bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  /* Maximum visibility */
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.hero-corner-left {
  left: 6%;
}

.hero-corner-right {
  right: 6%;
}

.corner-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ---- Marquee ---- */
.marquee-wrapper {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
  background: var(--bg-2);
}

.marquee-track {
  display: flex;
  gap: 2.5rem;
  animation: marquee 22s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray);
  white-space: nowrap;
}

.marquee-dot {
  color: var(--accent) !important;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ---- Services ---- */
.services {
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg-card);
  padding: 2.5rem;
  transition: background var(--transition);
  position: relative;
}

.service-card:hover {
  background: var(--bg-3);
}

.service-num {
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.service-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--gray);
  margin-bottom: 1.2rem;
}

.service-card h3 {
  font-family: var(--font);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.7;
}

.service-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: gap var(--transition);
}

.service-link:hover {
  letter-spacing: 0.02em;
}

.services-footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--gray);
}

/* ---- About ---- */
.about {
  background: var(--bg-2);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.about-bio {
  color: var(--gray);
  margin-bottom: 3rem;
  line-height: 1.8;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.exp-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.exp-item:first-child {
  padding-top: 0;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
}

.exp-header h4 {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
}

.exp-date {
  font-size: 0.72rem;
  color: var(--gray);
  letter-spacing: 0.08em;
}

.exp-role {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.exp-item p {
  font-size: 0.85rem;
  color: var(--gray);
}

.stats-row {
  display: grid;
  /* allow an extra box for location and adapt on narrow screens */
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.stat-num {
  font-family: var(--font);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  display: inline;
}

.stat-suffix {
  font-family: var(--font);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-box p {
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 0.4rem;
}

.education-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.edu-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.edu-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.edu-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

.edu-item span {
  font-size: 0.78rem;
  color: var(--gray);
}

/* ---- Expertise ---- */
.expertise {
  background: var(--bg);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

.expertise-col-header {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.expertise-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.expertise-list li {
  display: flex;
}

.arrow-pill {
  font-size: 0.82rem;
  color: var(--gray-light);
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  cursor: default;
}

.arrow-pill::before {
  content: '→ ';
  color: var(--accent);
  font-size: 0.7rem;
}

.expertise-list li:hover .arrow-pill {
  color: var(--white);
  border-color: var(--border);
}

/* ---- Portfolio ---- */
.portfolio {
  background: var(--bg-2);
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.portfolio-header p {
  font-size: 0.88rem;
  color: var(--gray);
  margin-top: 0.5rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.portfolio-card {
  cursor: pointer;
}

.portfolio-img {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.02);
}

.portfolio-placeholder {
  font-family: var(--font);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.12);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  padding: 0.6rem 1.4rem;
  border-radius: 40px;
  transition: background var(--transition), color var(--transition);
}

.portfolio-link:hover {
  background: var(--accent);
  color: var(--bg);
}

.portfolio-info {
  padding: 1rem 0 0.5rem;
}

.portfolio-tag {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-bottom: 0.4rem;
}

.portfolio-info h4 {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
}

/* ---- Tools ---- */
.tools {
  background: var(--bg);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.tool-card {
  background: var(--bg-card);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background var(--transition);
}

.tool-card:hover {
  background: var(--bg-3);
}

.tool-icon {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.tool-card strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.tool-card span {
  font-size: 0.75rem;
  color: var(--gray);
}

/* ---- Testimonials ---- */
.testimonials {
  background: var(--bg-2);
  overflow: hidden;
}

.testimonials-track-wrap {
  overflow: hidden;
  margin-top: 3rem;
}

.testimonials-track {
  display: flex;
  gap: 1.5rem;
  animation: scrollTrack 30s linear infinite;
  width: max-content;
}

.testimonials-track:hover {
  animation-play-state: paused;
}

@keyframes scrollTrack {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  width: 320px;
  flex-shrink: 0;
  transition: border-color var(--transition);
}

.testimonial-card:hover {
  border-color: rgba(184, 247, 61, 0.3);
}

.testi-stars {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.testimonial-card p {
  font-size: 0.88rem;
  color: var(--gray-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.testi-author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.testi-author strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
}

.testi-author span {
  font-size: 0.72rem;
  color: var(--gray);
}

/* ---- Blog ---- */
.blog {
  background: var(--bg);
}

.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color var(--transition), transform var(--transition);
  cursor: pointer;
}

.blog-card:hover {
  border-color: rgba(184, 247, 61, 0.3);
  transform: translateY(-4px);
}

.blog-img {
  aspect-ratio: 16/9;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1rem;
}

.blog-cat {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--bg);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

.blog-body {
  padding: 1.5rem;
}

.blog-body h4 {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.8rem;
}

.blog-meta {
  font-size: 0.75rem;
  color: var(--gray);
}

/* ---- FAQ ---- */
.faq {
  background: var(--bg-2);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: start;
}

.faq-filters {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 2rem;
}

.faq-filter {
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--gray);
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

.faq-filter.active,
.faq-filter:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.faq-filter.active {
  color: var(--accent);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 1.2rem 0;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question span {
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-question span {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding-bottom: 1.2rem;
}

.faq-answer p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ---- CTA Section ---- */
.cta-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-inner h2 {
  font-family: var(--font);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.cta-inner p {
  color: var(--gray);
  margin-bottom: 2.5rem;
}

.cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Footer ---- */
.footer {
  background: var(--bg-2);
  padding: 6rem 0 3rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 6rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}

.footer-headline {
  font-family: var(--font);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.footer-email {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-email:hover {
  color: var(--accent);
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-col a {
  font-size: 0.82rem;
  color: var(--gray);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.75rem;
  color: var(--gray);
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
}

.footer-socials a {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gray);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-socials a:hover {
  color: var(--accent);
}

/* ---- Contact Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.5rem;
  width: 90%;
  max-width: 500px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  border: 1px solid var(--border);
  color: var(--gray);
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: color var(--transition), border-color var(--transition);
}

.modal-close:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.modal h3 {
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.modal p {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition);
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-terms {
  font-size: 0.72rem;
  color: var(--gray);
}

.form-terms a {
  color: var(--accent);
  text-decoration: none;
}

/* ---- Massive Typography ---- */
.hero-title {
  font-family: var(--font);
  font-size: clamp(3rem, 11vw, 8rem);
  /* Massive typography */
  font-weight: 800;
  line-height: 0.82;
  /* Tight leading */
  letter-spacing: -0.05em;
  /* Tight tracking */
  margin-bottom: 2.5rem;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

/* ---- Bento Grid System ---- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 1rem;
  margin-top: 3rem;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  border-color: var(--accent);
  background: var(--bg-3);
  transform: translateY(-5px);
}

.skill-card {
  grid-column: span 2;
}

.tools-bento {
  grid-column: span 2;
  grid-row: span 2;
}

@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skill-card,
  .tools-bento {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .skill-card,
  .tools-bento {
    grid-column: span 1;
  }

  .hero-title {
    font-size: 15vw;
  }
}

/* ---- Skill Progress Bars ---- */
.skill-pct {
  font-family: var(--font);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.skill-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  margin-top: 1rem;
  border-radius: 2px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--accent);
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Tools List Bento ---- */
.tools-list-bento {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.tools-list-bento li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-light);
  transition: color 0.3s ease;
}

.tool-icon-bento {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: grayscale(100%);
  /* Grayscale start */
  transition: filter 0.3s ease, transform 0.3s ease;
}

.tools-list-bento li:hover .tool-icon-bento {
  filter: grayscale(0%);
  /* Full color hover */
  transform: scale(1.1);
}

.tool-icon-emoji {
  font-size: 1.5rem;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.tools-list-bento li:hover .tool-icon-emoji {
  filter: grayscale(0%);
}

/* ---- Grayscale Hover Transitions ---- */
.hero-photo,
.tool-img,
.portfolio-img img,
.edu-logo,
.avatar {
  filter: grayscale(100%);
  transition: filter 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-photo:hover,
.tool-card:hover .tool-img,
.portfolio-card:hover .portfolio-img img,
.avatar:hover {
  filter: grayscale(0%);
}

/* ---- AOS Animations ---- */
[data-aos] {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

[data-aos][data-aos-delay="60"] {
  transition-delay: 0.06s;
}

[data-aos][data-aos-delay="80"] {
  transition-delay: 0.08s;
}

[data-aos][data-aos-delay="100"] {
  transition-delay: 0.1s;
}

[data-aos][data-aos-delay="120"] {
  transition-delay: 0.12s;
}

[data-aos][data-aos-delay="160"] {
  transition-delay: 0.16s;
}

[data-aos][data-aos-delay="180"] {
  transition-delay: 0.18s;
}

[data-aos][data-aos-delay="200"] {
  transition-delay: 0.2s;
}

[data-aos][data-aos-delay="240"] {
  transition-delay: 0.24s;
}

[data-aos][data-aos-delay="300"] {
  transition-delay: 0.3s;
}

[data-aos][data-aos-delay="320"] {
  transition-delay: 0.32s;
}

[data-aos][data-aos-delay="360"] {
  transition-delay: 0.36s;
}

[data-aos][data-aos-delay="400"] {
  transition-delay: 0.4s;
}

[data-aos][data-aos-delay="420"] {
  transition-delay: 0.42s;
}

[data-aos][data-aos-delay="480"] {
  transition-delay: 0.48s;
}

[data-aos="fade-right"] {
  transform: translateX(-40px);
}

[data-aos="fade-left"] {
  transform: translateX(40px);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {

  .container,
  .header-inner {
    width: 90%;
  }

  .hero {
    padding: 0 5%;
    padding-top: var(--header-h);
  }

  .services-grid,
  .expertise-grid,
  .portfolio-grid,
  .tools-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-float-card {
    display: none;
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .container {
    width: 94%;
    padding: 0;
  }

  .header-inner {
    width: 94%;
    padding: 0;
  }

  .hero {
    padding: 0 1.5rem;
    padding-top: var(--header-h);
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .services-grid,
  .expertise-grid,
  .portfolio-grid,
  .blog-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-links-grid {
    grid-template-columns: 1fr 1fr;
  }

  .portfolio-header,
  .blog-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .hero-corner-left,
  .scroll-indicator {
    display: none;
  }

  .hero-corner-right {
    right: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-photo-wrap {
    display: none;
  }
}

/* ---- Hero Photo ---- */
.hero-photo-wrap {
  position: absolute;
  right: 1%;
  /* Pushed more right to clear text */
  bottom: 0;
  width: min(720px, 45vw);
  /* Slightly narrower to avoid covering middle text */
  pointer-events: none;
  z-index: 2;
  /* Below hero-content (which is 10) */
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-photo {
  width: 100%;
  display: block;
  object-fit: contain;
  object-position: bottom center;
}

/* ---- Hero Sub ---- */
.hero-sub {
  font-size: 0.82rem;
  color: var(--gray);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  margin-top: -1.5rem;
}

/* ---- Avatar big (hero) ---- */
.avatar.avatar-big {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
  margin-left: 0;
}

/* ---- Info Card ---- */
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.info-label {
  color: var(--gray);
}

.info-row span:last-child {
  color: var(--white);
  font-weight: 500;
  text-align: right;
}

.badge-own-visa {
  background: rgba(184, 247, 61, 0.12);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  border: 1px solid rgba(184, 247, 61, 0.3);
  white-space: nowrap;
}

/* ---- Edu Logo ---- */
.edu-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  padding: 4px;
  flex-shrink: 0;
}

/* ---- Portfolio Logo Wrap ---- */
.portfolio-logo-wrap {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.portfolio-client-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ---- Tool Image ---- */
.tool-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 0.3rem;
}

/* ---- Language Row ---- */
.langs-row {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding: 1.2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.lang-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.lang-name {
  font-size: 0.88rem;
  font-weight: 600;
}

.lang-level {
  font-size: 0.72rem;
  color: var(--gray);
}

.lang-level.accent {
  color: var(--accent);
}

/* ---- Music Player Essentials ---- */
/* --- Music Secondary Purge --- */


.music-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 800;
  color: var(--accent);
}

@keyframes musicBar {

  0%,
  100% {
    height: 4px;
  }

  50% {
    height: 15px;
  }
}

/* ---- 3D Depth Stack Slider ---- */
.portfolio {
  padding: 10rem 0;
  background: #050505;
  overflow: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portfolio-aura {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

.portfolio .container {
  position: relative;
  z-index: 2;
  /* Sit above the aura */
}

.portfolio-stack {
  margin-bottom: -2rem;
  /* Overlap slightly for a high-density look */
}

.portfolio-stack:last-child {
  margin-bottom: 0;
}

.portfolio-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  height: 380px;
  /* Thinner container */
  perspective: 2000px;
}

.depth-slider {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.depth-slide {
  position: absolute;
  width: 600px;
  height: 350px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(184, 247, 61, 0.15);
  /* Neon border */
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  /* Snappier transition */
  display: flex;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  backface-visibility: hidden;
  z-index: 5;
}

/* Add a glowing inner shadow */
.depth-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 20px rgba(184, 247, 61, 0.05);
  pointer-events: none;
  z-index: 10;
}


.depth-slide.active {
  z-index: 100;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
  opacity: 1;
}

.depth-slide.prev {
  transform: translate3d(-50%, 0, -200px) rotateY(15deg);
  filter: blur(2px);
  opacity: 0.7;
  pointer-events: all;
  /* Allow clicking the prev card */
}

.depth-slide.next {
  transform: translate3d(50%, 0, -200px) rotateY(-15deg);
  filter: blur(2px);
  opacity: 0.7;
  pointer-events: all;
  /* Allow clicking the next card */
}

.depth-slide.far-prev {
  transform: translate3d(-70%, 0, -500px) rotateY(35deg);
  opacity: 0.3;
  /* Show a peek of far cards */
  filter: blur(6px);
}

.depth-slide.far-next {
  transform: translate3d(70%, 0, -500px) rotateY(-35deg);
  opacity: 0.3;
  /* Show a peek of far cards */
  filter: blur(6px);
}

.slide-content {
  display: flex;
  width: 100%;
  height: 100%;
}

.slide-image {
  flex: 1.5;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.depth-slide:hover .slide-image img {
  transform: scale(1.05);
}

.slide-info {
  flex: 1;
  padding: 1.5rem;
  /* Reduced padding */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* partially transparent gradient to allow backdrop blur to show */
  background: linear-gradient(90deg, rgba(20, 20, 20, 0.4) 0%, rgba(20, 20, 20, 0.8) 100%);
  backdrop-filter: blur(10px);
  /* restore gradient blur */
  pointer-events: none;
  /* allow clicks to pass through */
}

/* ensure button remains clickable */
.slide-info .slide-btn {
  pointer-events: auto;
}

.slide-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  white-space: nowrap;
}

.slide-btn {
  width: fit-content;
  padding: 0.8rem 1.5rem;
  font-size: 0.85rem;
  align-self: flex-start;
  /* Prevent stretching */
  white-space: nowrap;
  z-index: 10;
  position: relative;
  margin-top: 0.5rem;
  /* smaller gap to description */
}

.slide-title {
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slide-desc {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.slider-nav {
  position: absolute;
  bottom: -4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.1);
}

.slider-dots {
  display: flex;
  gap: 0.8rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--accent);
  transform: scale(1.5);
  box-shadow: 0 0 10px var(--accent);
}

@media (max-width: 1024px) {
  .portfolio-container {
    height: 300px;
  }

  .depth-slide {
    width: 90%;
    height: 280px;
    flex-direction: column;
  }

  .slide-info {
    padding: 1rem;
  }

  .slide-title {
    font-size: 1.2rem;
  }

  .slide-desc {
    display: none;
    /* Hide desc on mobile for space */
  }
}

/* Glitch Effect */
.glitch-text {
  position: relative;
  display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.glitch-text::before {
  color: #0ff;
  z-index: -1;
  animation: glitch-anim 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

.glitch-text::after {
  color: #f0f;
  z-index: -2;
  animation: glitch-anim 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
}

.glitch-text:not(:hover)::before,
.glitch-text:not(:hover)::after {
  display: none;
}

@keyframes glitch-anim {
  0% {
    transform: translate(0);
  }

  20% {
    transform: translate(-2px, 2px);
  }

  40% {
    transform: translate(-2px, -2px);
  }

  60% {
    transform: translate(2px, 2px);
  }

  80% {
    transform: translate(2px, -2px);
  }

  100% {
    transform: translate(0);
  }
}

/* Spotlight Effect */
.portfolio-card::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(184, 247, 61, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 10;
}

.portfolio-card:hover::before {
  opacity: 1;
}

/* ---- High-Tech Toolkit Grid ---- */
.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.tool-v-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.tool-v-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.tool-v-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.tool-v-card:hover::before {
  opacity: 1;
}

.tool-v-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 1.2rem;
  filter: grayscale(1);
  transition: filter 0.3s;
}

.tool-v-card:hover img {
  filter: grayscale(0);
}

.tool-v-card .t-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  filter: grayscale(1);
  transition: filter 0.3s;
}

.tool-v-card:hover .t-icon {
  filter: grayscale(0);
}

.tool-v-card .t-title {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.tool-v-card .t-desc {
  font-size: 0.72rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Custom AOS Var */
[data-aos="scale-up"] {
  opacity: 0;
  transform: scale(0.85);
  transition-property: opacity, transform;
}

[data-aos="scale-up"].aos-animate {
  opacity: 1;
  transform: scale(1);
}

/* -- RESTORED STYLES & ENHANCEMENTS ------------------ */

/* Typewriter Effect - Restore */
.typewriter {
  display: inline-block;
  overflow: hidden;
  border-right: 2px solid var(--accent);
  white-space: nowrap;
  animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0
  }

  to {
    width: 100%
  }
}

@keyframes blink-caret {

  from,
  to {
    border-color: transparent
  }

  50% {
    border-color: var(--accent);
  }
}

/* Hero Photo Wrap & Size (Enlarged) */
.hero-photo-wrap {
  perspective: 2500px;
  width: clamp(750px, 65vw, 1200px);
  /* Gigantic Scale */
  max-width: 100vw;
  position: relative;
  z-index: 5;
  margin-left: auto;
  flex-shrink: 0;
  /* Force it to stay large */
  transition: transform 0.3s ease;
}

.hero-photo {
  width: 100%;
  height: auto;
  border-radius: 32px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 30px rgba(184, 247, 61, 0.1);
  transition: transform 0.2s ease-out;
  transform-style: preserve-3d;
}

/* Responsive Fix for Hero Image on Mobile */
@media (max-width: 1024px) {
  .hero-photo-wrap {
    width: 100%;
    margin: 2rem auto;
    max-width: 450px;
  }
}

/* Re-adding Magic Parallax Shapes */
.parallax-element {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
  filter: blur(20px);
  transition: transform 0.1s ease-out;
}

.magic-shape-1 {
  width: clamp(200px, 20vw, 400px);
  height: clamp(200px, 20vw, 400px);
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: 10%;
  left: -5%;
  border-radius: 50%;
}

.magic-shape-2 {
  width: clamp(250px, 25vw, 500px);
  height: clamp(250px, 25vw, 500px);
  background: radial-gradient(circle, #22d3ee 0%, transparent 70%);
  bottom: 0;
  right: -5%;
  border-radius: 40% 60%;
  animation: morph 20s infinite alternate;
}

@keyframes morph {
  0% {
    border-radius: 40% 60%;
  }

  100% {
    border-radius: 60% 40%;
  }
}

/* Ultra Quality Polish - Cards */
.service-card,
.portfolio-card,
.bento-card {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.035);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover,
.portfolio-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

/* ---- Bottom Smooth Fade & Blur Layer ---- */
.bottom-blur-layer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom,
      rgba(13, 13, 13, 0) 0%,
      rgba(13, 13, 13, 0.6) 40%,
      rgba(13, 13, 13, 0.95) 80%,
      rgba(13, 13, 13, 1) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  mask-image: linear-gradient(to bottom, transparent, black);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black);
  z-index: 1000;
  pointer-events: none;
}

/* Better Music Toggle Glow (Hardened) */
.music-controller {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 0;
  pointer-events: none;
}

.music-controller.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

.music-controller:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(184, 247, 61, 0.15);
}

.music-controller .bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.music-controller .bar {
  width: 3px;
  height: 100%;
  background: var(--accent);
  border-radius: 1px;
}

.music-controller.playing .bar {
  animation: dance 1s ease-in-out infinite;
}

.music-controller.playing .bar:nth-child(1) {
  animation-delay: 0.1s;
  height: 60%;
}

.music-controller.playing .bar:nth-child(2) {
  animation-delay: 0.3s;
  height: 100%;
}

.music-controller.playing .bar:nth-child(3) {
  animation-delay: 0.2s;
  height: 80%;
}

.music-controller.playing .bar:nth-child(4) {
  animation-delay: 0.4s;
  height: 50%;
}

@keyframes dance {

  0%,
  100% {
    transform: scaleY(0.4);
  }

  50% {
    transform: scaleY(1);
  }
}

.music-controller .label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.8;
}

.music-controller.playing {
  background: rgba(184, 247, 61, 0.1);
  border-color: var(--accent);
}

/* ============================================
   RESPONSIVE MEDIA QUERIES
   ============================================ */

/* --- Large Laptops / Small Desktops (1440px) --- */
@media screen and (max-width: 1440px) {

  .container,
  .header-inner {
    width: 90%;
  }

  .sidebar-left {
    left: 30px;
  }

  .sidebar-right {
    right: 30px;
  }
}

/* --- Tablets & Small Laptops (1024px) --- */
@media screen and (max-width: 1024px) {
  .sidebar {
    display: none !important;
  }

  .container,
  .header-inner {
    width: 92%;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(25px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    z-index: 2000;
    transition: right 0.6s cubic-bezier(0.85, 0, 0.15, 1);
    display: flex;
    border-left: 1px solid var(--border);
  }

  .nav.active {
    right: 0;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2100;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--accent);
    transition: 0.4s ease;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .menu-toggle.active span:nth-child(2) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
  }
}

/* --- Mobile Phones (768px and below) --- */
@media screen and (max-width: 768px) {
  * {
    cursor: auto !important;
  }

  .cursor,
  .cursor-follower,
  .sidebar {
    display: none !important;
  }

  section {
    padding: 80px 0;
  }

  .container,
  .header-inner {
    width: 90%;
  }

  .hero {
    padding: 140px 0 80px;
    height: auto;
    min-height: 100vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-title {
    font-size: 2.4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
  }

  .hero-sub {
    font-size: 1rem;
    margin: 0 auto 2.5rem;
    max-width: 100%;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-meta {
    justify-content: center;
    margin-bottom: 3rem;
  }

  .about-grid,
  .footer-top,
  .form-row {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-links-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .header-actions .btn-hire:nth-child(2),
  .header-lang {
    display: none;
  }

  .music-controller {
    bottom: 25px;
    transform: translateX(-50%) scale(0.9);
  }

  .music-controller .label {
    display: none;
  }
}

/* --- Small Mobile (480px) --- */
@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
  }
}