/* ============================================
   CSS Variables — Dark / Light Theme
   ============================================ */
:root {
  --bg: #0a0a12;
  --bg-alt: #12121e;
  --surface: #181826;
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  --accent: #8b5cf6;
  --accent-light: #a78bfa;
  --accent-glow: rgba(139, 92, 246, 0.25);
  --primary: #3b82f6;
  --secondary: #06b6d4;
  --gradient: linear-gradient(135deg, #8b5cf6, #3b82f6, #06b6d4);
  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-blur: 18px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --radius: 16px;
  --radius-lg: 24px;
  --transition: 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg: #f8fafc;
  --bg-alt: #eef2f7;
  --surface: #ffffff;
  --card: rgba(0, 0, 0, 0.03);
  --card-border: rgba(0, 0, 0, 0.1);
  --text: #0f172a;
  --text-muted: #334155;
  --text-dim: #64748b;
  --accent-glow: rgba(139, 92, 246, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* ============================================
   Base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: 88px;
}

/* Scroll reveal helpers — content stays readable by default */
.section-header,
.catchy-card,
.skill-category,
.skill-tags-wrap,
.service-card,
.project-card,
.exp-item,
.edu-item,
.edu-skills,
.contact-card,
.about-image-wrap,
.about-content,
.contact-form {
  opacity: 1;
  visibility: visible;
}

body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

body.custom-cursor { cursor: none; }
body.custom-cursor a, body.custom-cursor button { cursor: none; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.main-content {
  opacity: 1;
}

.hero-copy,
.hero-image {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   Loading Screen
   ============================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  animation: loaderAutoHide 0.01s linear 1.2s forwards;
}

@keyframes loaderAutoHide {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: none;
}

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

.loader-logo {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 24px;
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: var(--card-border);
  border-radius: 99px;
  overflow: hidden;
  margin: 0 auto 16px;
}

.loader-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gradient);
  border-radius: 99px;
  transition: width 0.3s ease;
}

.loader-text {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
}

/* ============================================
   Custom Cursor
   ============================================ */
.cursor, .cursor-follower {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.custom-cursor .cursor,
body.custom-cursor .cursor-follower { opacity: 1; }

.cursor {
  width: 8px;
  height: 8px;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.cursor-follower {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--accent);
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

.cursor-follower.hover {
  width: 52px;
  height: 52px;
  border-color: var(--secondary);
  background: var(--accent-glow);
}

/* ============================================
   Utilities
   ============================================ */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--card-border);
}

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

.gridbg {
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(160px);
  background: var(--accent-glow);
  pointer-events: none;
}

.float { animation: float 6s ease-in-out infinite; }

@keyframes float {
  50% { transform: translateY(-16px); }
}

/* ============================================
   Page scroll progress — header + bottom
   ============================================ */
.page-scroll-bar {
  pointer-events: none;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  height: 3px;
}

.navbar .page-scroll-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
}

.page-scroll-bar-bottom {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 9999;
}

.page-scroll-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--gradient);
  transform-origin: left center;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.55);
  will-change: width;
}

[data-theme="light"] .page-scroll-bar {
  background: rgba(15, 23, 42, 0.08);
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 900;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Custom Google Translate — header */
.header-translate {
  position: relative;
  z-index: 5;
}

.lang-switcher {
  position: relative;
}

.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.lang-switcher-btn:hover,
.lang-switcher.open .lang-switcher-btn {
  border-color: var(--accent);
}

.lang-switcher-icon {
  display: flex;
  color: var(--accent-light);
}

.lang-switcher-caret {
  font-size: 0.65rem;
  opacity: 0.7;
}

.lang-switcher-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 88px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 120;
}

.lang-switcher-option {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
}

.lang-switcher-option:hover,
.lang-switcher-option.active {
  color: var(--text);
  background: var(--card);
}

.btn-nav-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-nav-book:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

/* Hide default Google Translate chrome */
#google_translate_element,
.goog-te-banner-frame,
.goog-te-balloon-frame,
body > .skiptranslate,
.goog-logo-link,
.goog-te-gadget span {
  display: none !important;
}

body {
  top: 0 !important;
}

.goog-te-gadget {
  font-size: 0 !important;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), transform var(--transition);
}

.theme-toggle:hover {
  border-color: var(--accent);
  transform: rotate(15deg);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 0 24px 20px;
}

.mobile-menu.open { display: flex; }

/* ============================================
   Hero — matches portfolio Part 1 screen
   ============================================ */
.hero-section,
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 72px;
  overflow: hidden;
  background: #050816;
}

.grid-bg {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: #2563eb;
  filter: blur(140px);
  opacity: 0.18;
  pointer-events: none;
}

.hero-glow-left { top: 6%; left: 4%; }

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  width: 100%;
}

.hero-welcome {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #22d3ee;
}

.hero-title {
  font-size: clamp(2.75rem, 6vw, 3.75rem);
  font-weight: 900;
  line-height: 1.12;
  margin: 18px 0 0;
  color: #fff;
}

.hero-name {
  color: #22d3ee;
  background: none;
  -webkit-text-fill-color: #22d3ee;
}

.hero-role {
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 500;
  color: #e2e8f0;
  margin: 22px 0 0;
}

.hero-desc {
  color: #94a3b8;
  line-height: 1.9;
  max-width: 560px;
  margin: 22px 0 0;
  font-size: 1.0625rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.hero-actions .btn-primary {
  background: #3b82f6;
  background-image: none;
  border-radius: 9999px;
  padding: 14px 28px;
}

.hero-actions .btn-outline {
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 14px 28px;
  color: #fff;
}

.hero-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
  max-width: 460px;
}

.hero-stat {
  padding: 18px 14px;
  border-radius: 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat-value { font-size: 1.875rem; font-weight: 700; color: #fff; }
.hero-stat-label { color: #94a3b8; font-size: 0.875rem; margin-top: 4px; }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  width: min(420px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
  background: rgba(15, 23, 42, 0.65);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 30px 80px rgba(0, 0, 0, 0.35);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-placeholder::before {
  content: 'Replace with profile.png';
  color: #64748b;
  font-size: 0.9375rem;
  text-align: center;
  padding: 24px;
  line-height: 1.5;
}

/* ============================================
   Sections
   ============================================ */
.section { padding: 96px 24px; }
.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--card-border);
}

.section-container { max-width: 1280px; margin: 0 auto; }

.section-header { margin-bottom: 48px; }
.section-header.centered { text-align: center; }

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  margin: 0;
  line-height: 1.2;
}

.section-desc {
  color: var(--text-muted);
  max-width: 560px;
  margin: 16px auto 0;
  line-height: 1.7;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 99px;
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-outline {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 99px;
  border: 1px solid var(--card-border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background var(--transition), border-color var(--transition);
}

.btn-outline:hover {
  background: var(--card);
  border-color: var(--accent);
}

/* ============================================
   About
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: center;
}

.about-image-wrap { display: flex; justify-content: center; }

.about-image-card {
  width: 280px;
  height: 320px;
  border-radius: 32px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.875rem;
  text-align: center;
  padding: 16px;
}

.about-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.about-content h3 { font-size: 1.875rem; font-weight: 700; margin: 0 0 16px; }
.about-content p { color: var(--text-muted); margin: 0 0 16px; line-height: 1.8; max-width: 640px; }
.about-content .about-extra { margin-bottom: 20px; }

.about-points {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-points li {
  position: relative;
  padding-left: 22px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.about-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ============================================
   Highlights / Catchy strip
   ============================================ */
.highlights-section {
  padding: 0 0 48px;
  position: relative;
  overflow: hidden;
}

.highlights-marquee {
  border-block: 1px solid var(--card-border);
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.08), rgba(6, 182, 212, 0.06), rgba(139, 92, 246, 0.08));
  padding: 14px 0;
  margin-bottom: 40px;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 28px;
  padding-right: 28px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.marquee-group .dot {
  color: var(--accent-light);
  opacity: 0.7;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

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

.catchy-card {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.45s ease;
  border: 1px solid var(--card-border);
  will-change: transform;
}

.catchy-card::after {
  content: '';
  position: absolute;
  inset: auto -20% -40% auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25), transparent 70%);
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
  opacity: 0.6;
}

.catchy-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 44px rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.4);
}

.catchy-card:hover::after {
  transform: scale(1.35) translate(-10%, -10%);
  opacity: 1;
}

.catchy-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-light);
  margin-bottom: 14px;
}

.catchy-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.catchy-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.stat-card { padding: 20px; border-radius: var(--radius); text-align: center; }
.stat-value { font-size: 1.875rem; font-weight: 700; }
.stat-label { color: var(--text-muted); font-size: 0.875rem; margin-top: 4px; }

/* ============================================
   Skills
   ============================================ */
.skills-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.skill-category {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
}

.skill-cat-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--accent-light);
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.skill-header label { font-weight: 600; }
.skill-header span { color: var(--accent-light); font-size: 0.875rem; }

.skill-tags-wrap {
  margin-top: 32px;
}

.bar {
  height: 8px;
  background: var(--card-border);
  border-radius: 99px;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gradient);
  border-radius: 99px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar span.animate { width: var(--bar-width); }

/* ============================================
   Experience
   ============================================ */
.timeline {
  max-width: 768px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline-card {
  padding: 24px;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  transition: transform var(--transition);
}

.timeline-card:hover { transform: translateX(8px); }
.timeline-card-primary { border-left-color: var(--primary); }

.timeline-card h3 { font-size: 1.25rem; font-weight: 700; margin: 0; }
.timeline-date { color: var(--accent-light); font-size: 0.875rem; margin: 4px 0 0; }
.timeline-desc { color: var(--text-muted); margin: 12px 0 0; line-height: 1.75; }

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

.service-card {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  position: relative;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.45s ease,
    box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: 0 16px 44px var(--accent-glow);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: var(--accent-light);
}

.service-card h3 { font-size: 1.125rem; font-weight: 700; margin: 0 0 12px; }
.service-card p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.7; margin: 0; }

.service-arrow {
  position: absolute;
  bottom: 24px;
  right: 24px;
  color: var(--text-dim);
  font-size: 1.25rem;
  transition: color var(--transition), transform var(--transition);
}

.service-card:hover .service-arrow {
  color: var(--accent-light);
  transform: translate(2px, -2px);
}

/* ============================================
   Projects
   ============================================ */
.projects-section {
  overflow: visible;
}

.projects-section .section-container {
  overflow: visible;
}

.project-filters {
  position: sticky;
  top: 72px;
  z-index: 40;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 28px;
  padding: 10px 12px;
  background: var(--bg-alt);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}

.filter-btn {
  padding: 5px 14px;
  border-radius: 99px;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.2;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover { border-color: var(--accent); color: var(--text); }

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

@media (max-width: 768px) {
  .project-filters {
    top: 64px;
    gap: 6px;
    padding: 8px 8px;
    margin-bottom: 20px;
  }

  .filter-btn {
    padding: 4px 11px;
    font-size: 0.6875rem;
  }
}

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

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.6s ease;
  border: 1px solid var(--card-border);
  position: relative;
  will-change: transform;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent, transparent);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.65s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 44px rgba(139, 92, 246, 0.18), 0 8px 24px rgba(0, 0, 0, 0.18);
  border-color: rgba(139, 92, 246, 0.4);
}

.project-card:hover::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.45), rgba(6, 182, 212, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.project-card.hidden {
  display: none;
}

.project-thumb {
  height: 220px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
}

.project-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 8, 22, 0.5), transparent 55%);
  opacity: 0;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.project-card:hover .project-thumb::after {
  opacity: 1;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  backface-visibility: hidden;
}

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

.project-body {
  padding: 24px;
  position: relative;
  z-index: 1;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-body {
  transform: translateY(-2px);
}

.project-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-tag {
  transform: translateY(-2px);
}

.project-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 8px;
  transition: color 0.55s ease;
}

.project-card:hover .project-body h3 {
  color: var(--accent-light);
}

.project-links {
  display: flex;
  gap: 20px;
  margin-top: 16px;
}

.project-link {
  font-size: 0.875rem;
  color: var(--accent-light);
  transition:
    color 0.55s ease,
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}

.project-card:hover .project-link {
  transform: translateX(4px);
}

.project-link:hover { color: var(--secondary); }

.project-thumb-fallback::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 16px;
}

.thumb-setc { background: linear-gradient(135deg, #1e1b4b, #4c1d95); }
.thumb-setc::after { content: 'SETC Dashboard'; }
.thumb-accurity { background: linear-gradient(135deg, #0c4a6e, #0369a1); }
.thumb-accurity::after { content: 'Accurity Web App'; }
.thumb-mobile { background: linear-gradient(135deg, #831843, #be185d); }
.thumb-mobile::after { content: 'Accurity Mobile'; }
.thumb-landing { background: linear-gradient(135deg, #064e3b, #047857); }
.thumb-landing::after { content: 'Landing Page UI'; }
.thumb-canteen { background: linear-gradient(135deg, #7c2d12, #c2410c); }
.thumb-canteen::after { content: 'Park Canteen'; }
.thumb-qcb { background: linear-gradient(135deg, #312e81, #6366f1); }
.thumb-qcb::after { content: 'Qatar Central Bank'; }
.thumb-hotel { background: linear-gradient(135deg, #1e3a5f, #2563eb); }
.thumb-hotel::after { content: 'Hotel Availability'; }
.thumb-event { background: linear-gradient(135deg, #4a044e, #a21caf); }
.thumb-event::after { content: 'Event Website'; }

.projects-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8125rem;
  margin: 32px 0 0;
}

.projects-note a { color: var(--accent-light); }
.projects-note code {
  font-size: 0.75rem;
  background: var(--card);
  padding: 2px 6px;
  border-radius: 4px;
}

.tag-purple { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
.tag-green { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.tag-pink { background: rgba(236, 72, 153, 0.2); color: #f472b6; }

.project-body p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.7; margin: 0; }

/* ============================================
   Experience & Education
   ============================================ */
.education-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.column-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.experience-timeline,
.education-column {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.exp-item,
.edu-item {
  display: flex;
  gap: 20px;
  position: relative;
  padding-bottom: 28px;
}

.exp-item:not(:last-child)::before,
.edu-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: var(--card-border);
}

.exp-icon,
.edu-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  border: 2px solid var(--accent);
}

.exp-content,
.edu-content {
  padding: 20px 24px;
  border-radius: var(--radius);
  flex: 1;
}

.exp-date,
.edu-date {
  font-size: 0.8125rem;
  color: var(--accent-light);
}

.exp-content h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 6px 0 4px;
}

.exp-company {
  color: var(--accent-light);
  font-size: 0.875rem;
  margin: 0 0 12px;
}

.exp-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

.exp-list li { margin-bottom: 6px; }
.exp-list li:last-child { margin-bottom: 0; }

.edu-content h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 6px 0 4px;
}

.edu-school {
  color: var(--accent-light);
  font-size: 0.875rem;
  margin: 0;
}

.edu-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 8px 0 0;
  line-height: 1.6;
}

.edu-skills {
  padding: 20px 24px;
  border-radius: var(--radius);
  margin-top: 8px;
}

.edu-skills h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 14px;
}

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

.edu-tags span {
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.75rem;
  background: var(--accent-glow);
  color: var(--accent-light);
  border: 1px solid var(--card-border);
}

.lang-list p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0 0 8px;
}

.lang-list p:last-child { margin-bottom: 0; }

/* ============================================
   Contact
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: auto;
  align-self: start;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius);
  flex: none;
}

.contact-icon { font-size: 1.25rem; }
.contact-card h4 { font-size: 0.8125rem; font-weight: 600; margin: 0 0 2px; color: var(--text-muted); }
.contact-card a, .contact-card p { margin: 0; font-size: 0.9375rem; }
.contact-card a:hover { color: var(--accent-light); }

.btn-resume {
  margin-top: 4px;
  text-align: center;
  flex-shrink: 0;
}

.contact-form {
  padding: 32px;
  border-radius: var(--radius-lg);
  height: auto;
  display: block;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group:has(textarea) {
  display: block;
  margin-bottom: 20px;
}

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

.btn-submit {
  width: 100%;
  margin-top: 8px;
}

.form-status {
  text-align: center;
  font-size: 0.875rem;
  margin: 12px 0 0;
  min-height: 1.25rem;
}

.form-status.success { color: #34d399; }
.form-status.error { color: #f87171; }

.form-hint {
  margin: 14px 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-dim);
}

.form-hint a {
  color: var(--accent-light);
}

.honey-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--card-border);
  padding: 64px 24px 32px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 16px 0 0;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0 0 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col a, .footer-col p {
  display: block;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 12px;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--accent-light); }

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

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--card-border);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: var(--text-dim);
  font-size: 0.8125rem;
  margin: 0;
}

.back-to-top {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.back-to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-4px);
}

/* Fixed Call + WhatsApp */
.float-contact {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: transform var(--transition), box-shadow var(--transition);
}

.float-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.float-call {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.float-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

@media (max-width: 768px) {
  .float-contact {
    right: 14px;
    bottom: 16px;
  }

  .float-btn {
    width: 48px;
    height: 48px;
  }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { max-width: 480px; margin-left: auto; margin-right: auto; }
  .hero-image { width: min(320px, 80vw); }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-content p { margin-left: auto; margin-right: auto; }
  .about-points { align-items: center; text-align: left; max-width: 420px; margin-left: auto; margin-right: auto; }
  .about-actions { justify-content: center; }
  .catchy-grid { grid-template-columns: 1fr; }
  .stats-grid { max-width: 480px; margin-left: auto; margin-right: auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .education-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions .theme-toggle { display: none; }
  .btn-nav-book {
    padding: 0 12px;
    font-size: 0.75rem;
    height: 36px;
  }
  .lang-switcher-btn {
    height: 36px;
    padding: 0 10px;
  }
  .menu-btn { display: block; }

  .section { padding: 64px 20px; }
  .skills-categories { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .catchy-grid { grid-template-columns: 1fr; }
  .about-actions { justify-content: center; }
  .stats-grid, .hero-stats { grid-template-columns: 1fr; max-width: 280px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  body.custom-cursor { cursor: auto; }
  .cursor, .cursor-follower { display: none; }
}

/* ============================================
   Performance & Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track {
    animation: none !important;
    transform: none !important;
    overflow-x: auto;
  }
  html { scroll-behavior: auto; }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
