/* ==========================================================================
   STYLE.CSS — ☕ Coffee Theme (Espresso · Latte · Cream)
   ========================================================================== */

:root {
  /* Minimal Palette */
  --espresso: #212121;
  /* Dark background */
  --dark-roast: #2c2c2c;
  /* Slightly lighter for cards */
  --coffee: #4a90e2;
  /* Primary accent (soft blue) */
  --latte: #ff6f61;
  /* Secondary accent (coral) */
  --cappuccino: #fafafa;
  /* Light background */
  --cream: #fafafa;
  /* Lightest surfaces */
  --caramel: #4a90e2;
  /* Primary accent */
  --mocha: #ff6f61;
  /* Secondary accent */

  /* Semantic aliases */
  --bg-primary: var(--cappuccino);
  --bg-secondary: var(--cappuccino);
  --bg-dark: var(--espresso);
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-glass-hover: rgba(255, 255, 255, 0.97);

  --color-primary: var(--caramel);
  --color-primary-glow: rgba(74, 144, 226, 0.15);
  --color-primary-bright: #4a90e2;

  --color-secondary: var(--mocha);
  --color-secondary-glow: rgba(255, 111, 97, 0.15);

  --text-primary: var(--espresso);
  --text-secondary: var(--coffee);
  --text-muted: var(--latte);
  --text-on-dark: var(--cappuccino);
  --text-dim-dark: rgba(250, 250, 250, 0.65);

  --border-color: rgba(33, 33, 33, 0.15);
  --border-color-hover: rgba(33, 33, 33, 0.32);
  --border-color-active: rgba(74, 144, 226, 0.45);
  --border-dark: rgba(250, 250, 250, 0.12);
  --border-dark-hover: rgba(250, 250, 250, 0.25);

  /* Fonts */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Dimensions */
  --header-height: 80px;
  --max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--cream);
  color: var(--espresso);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  background-color: var(--cream);
}

/* ── SCROLLBAR ──────────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--cappuccino);
}

::-webkit-scrollbar-thumb {
  background: var(--latte);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--caramel);
}

/* ── TYPOGRAPHY ─────────────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--espresso);
  letter-spacing: -0.03em;
}

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

p {
  color: var(--coffee);
}

/* ── AMBIENT BG ─────────────────────────────────────────────────────── */
#ambient-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(135deg, #fdf6ee 0%, #f5e8d5 100%);
}

.bg-blob {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.2;
  pointer-events: none;
}

.blob-purple {
  background: var(--caramel);
  top: -15%;
  left: -10%;
}

.blob-cyan {
  background: var(--mocha);
  bottom: -15%;
  right: -10%;
}

.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(111, 78, 55, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 78, 55, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

.cursor-glow {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 135, 58, 0.06) 0%, rgba(139, 94, 60, 0.03) 50%, transparent 70%);
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: multiply;
  transition: transform 0.08s ease-out;
  display: none;
}

/* ── LAYOUT ─────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ── HEADER ─────────────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(33, 33, 33, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: var(--transition-normal);
}

.header.scrolled {
  height: 70px;
  background: rgba(33, 33, 33, 0.96);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
}

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

.header-right-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--cream);
  cursor: pointer;
  letter-spacing: -0.04em;
}

.logo-img {
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.logo:hover .logo-img {
  transform: scale(1.08) rotate(3deg);
  filter: drop-shadow(0 4px 12px rgba(74, 144, 226, 0.45));
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--caramel) 0%, var(--mocha) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--cream);
  box-shadow: 0 4px 14px rgba(212, 135, 58, 0.4);
}

/* Navigation */
.nav-wrapper {
  position: relative;
}

.nav-list {
  display: flex;
  list-style: none;
  background: rgba(253, 246, 238, 0.06);
  border: 1px solid rgba(253, 246, 238, 0.14);
  padding: 0.25rem;
  border-radius: var(--radius-full);
  position: relative;
}

.nav-item {
  position: relative;
  z-index: 2;
}

.nav-link {
  display: block;
  padding: 0.6rem 1.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(253, 246, 238, 0.65);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

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

.nav-link.active {
  color: var(--cream) !important;
  font-weight: 600;
}

/* Nav Active Pill */
.nav-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--caramel) 0%, var(--mocha) 100%);
  z-index: 1;
  transition: transform 0.38s cubic-bezier(0.25, 1, 0.5, 1), width 0.38s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 4px 15px rgba(212, 135, 58, 0.35);
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.mobile-nav-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--cream);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

/* ── PAGE SECTIONS ───────────────────────────────────────────────────── */
.page-container {
  margin-top: var(--header-height);
  flex-grow: 1;
  position: relative;
}

.page-section {
  position: relative;
  padding: 7rem 0;
  width: 100%;
}

/* Section-wise Coffee Alternation */
#home {
  background: var(--bg-primary);
}

#about {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

#skills {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}

#experience {
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

#certifications {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}

#projects {
  background: var(--bg-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#contact {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

/* Dark-section typography overrides */
#about h1,
#about h2,
#about h3,
#about h4,
#about h5,
#about h6 {
  color: var(--text-on-dark);
}

#about p {
  color: var(--text-on-dark);
  opacity: 0.85;
}

#about span {
  color: var(--text-on-dark);
}

#experience h1,
#experience h2,
#experience h3,
#experience h4,
#experience h5,
#experience h6 {
  color: var(--text-on-dark);
}

#experience p {
  color: var(--text-on-dark);
  opacity: 0.85;
}

#projects h1,
#projects h2,
#projects h3,
#projects h4,
#projects h5,
#projects h6 {
  color: var(--text-primary);
}

#projects p {
  color: var(--text-secondary);
}

#projects span {
  color: var(--text-primary);
}

/* ── SECTION HEADERS ─────────────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 4.5rem;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background: linear-gradient(90deg, var(--caramel) 0%, var(--mocha) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.6rem;
  display: inline-block;
}

/* Dark-section section-tag */
#about .section-tag,
#experience .section-tag,
#projects .section-tag {
  background: linear-gradient(90deg, var(--caramel) 0%, var(--cappuccino) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title {
  font-size: 2.6rem;
  margin-bottom: 1.1rem;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

#about .section-subtitle,
#experience .section-subtitle,
#projects .section-subtitle {
  color: rgba(253, 246, 238, 0.65);
}

/* ── GLASS CARD ─────────────────────────────────────────────────────── */
.glass-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px -2px rgba(111, 78, 55, 0.08);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(212, 135, 58, 0.04) 0%, rgba(139, 94, 60, 0.04) 100%);
  opacity: 0;
  transition: var(--transition-normal);
  z-index: 0;
  pointer-events: none;
}

.glass-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(111, 78, 55, 0.14);
}

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

.glass-card>* {
  position: relative;
  z-index: 1;
}

.glow-border-purple:hover {
  border-color: var(--caramel);
  box-shadow: 0 10px 25px -5px rgba(212, 135, 58, 0.2);
}

.glow-border-cyan:hover {
  border-color: var(--mocha);
  box-shadow: 0 10px 25px -5px rgba(139, 94, 60, 0.2);
}

/* ── BUTTONS ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
  font-family: var(--font-heading);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(90deg, var(--caramel) 0%, #c77a2a 100%);
  color: var(--cream);
  box-shadow: 0 4px 16px rgba(212, 135, 58, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212, 135, 58, 0.5);
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--coffee);
  color: var(--espresso);
}

.btn-secondary:hover {
  background: var(--espresso);
  color: var(--cream);
  border-color: var(--espresso);
  transform: translateY(-2px);
}

.btn-magnetic {
  display: inline-flex;
}

/* ── FOOTER ─────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid rgba(253, 246, 238, 0.07);
  background: var(--espresso);
  padding: 5rem 0 2.5rem 0;
  position: relative;
  z-index: 10;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand .logo {
  margin-bottom: 1.2rem;
  color: var(--cream);
}

.footer-brand p {
  color: rgba(253, 246, 238, 0.55);
  max-width: 320px;
  margin-bottom: 1.8rem;
  font-size: 0.95rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(253, 246, 238, 0.07);
  border: 1px solid rgba(253, 246, 238, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(253, 246, 238, 0.55);
  transition: var(--transition-fast);
}

.social-icon:hover {
  color: var(--cream);
  background: var(--caramel);
  border-color: var(--caramel);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(212, 135, 58, 0.35);
}

.footer-links-col h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.8rem;
  position: relative;
  display: inline-block;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.footer-links-col h4::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--caramel);
}

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

.footer-links-col a {
  color: rgba(253, 246, 238, 0.55);
  font-size: 0.92rem;
  font-weight: 500;
}

.footer-links-col a:hover {
  color: var(--caramel);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(253, 246, 238, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(253, 246, 238, 0.35);
}

.footer-bottom-links {
  display: flex;
  gap: 1.8rem;
}

.footer-bottom-links a:hover {
  color: rgba(253, 246, 238, 0.65);
}

/* ==========================================================================
   PAGE-SPECIFIC MODULES
   ========================================================================== */

/* ── HOME ────────────────────────────────────────────────────────────── */
#home {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - var(--header-height) - 150px);
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-welcome {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--caramel);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.welcome-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--caramel);
  box-shadow: 0 0 10px rgba(212, 135, 58, 0.55);
  animation: pulse-glow 2s infinite;
}

.hero-title {
  font-size: 4.2rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--espresso);
}

.hero-title span.name-gradient {
  background: linear-gradient(135deg, var(--caramel) 0%, var(--mocha) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.typing-container {
  height: 40px;
  display: flex;
  align-items: center;
  font-size: 1.7rem;
  color: var(--coffee);
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
}

.typed-text {
  font-weight: 600;
  color: var(--dark-roast);
  border-right: 2px solid var(--caramel);
  padding-right: 5px;
  white-space: nowrap;
  animation: blink-caret 0.75s step-end infinite;
}

.hero-desc {
  font-size: 1.1rem;
  max-width: 550px;
  color: var(--coffee);
}

.hero-btns {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* Counter Cards */
.hero-counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.counter-card {
  text-align: center;
  padding: 1.8rem 1rem;
  background: var(--cream);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(111, 78, 55, 0.08);
  transition: var(--transition-normal);
}

.counter-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(111, 78, 55, 0.15);
  border-color: var(--caramel);
}

.counter-number {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  background: linear-gradient(90deg, var(--caramel) 0%, var(--mocha) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.3rem;
  letter-spacing: -0.03em;
}

.counter-label {
  font-size: 0.8rem;
  color: var(--coffee);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 450px;
}

.visual-backdrop {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 135, 58, 0.12) 0%, rgba(139, 94, 60, 0.06) 70%);
  border: 1px solid var(--border-color);
  animation: float-slow 8s ease-in-out infinite;
}

.visual-illustration {
  z-index: 2;
  position: relative;
  width: 270px;
  height: 270px;
  border-radius: 40px;
  background: var(--cream);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 25px 50px -12px rgba(111, 78, 55, 0.22);
}

.hero-main-img {
  opacity: 0.8;
  transition: opacity var(--transition-fast) ease-in-out;
}

.hero-main-img:hover {
  opacity: 1;
}

.visual-logo-center {
  font-size: 4.8rem;
  font-family: var(--font-heading);
  font-weight: 800;
  background: linear-gradient(135deg, var(--caramel) 0%, var(--mocha) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.05em;
}

.floating-icon {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--cream);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: var(--transition-fast);
  box-shadow: 0 10px 20px -5px rgba(111, 78, 55, 0.14);
}

.floating-icon:hover {
  transform: scale(1.15) translateY(-5px);
  border-color: var(--caramel);
  box-shadow: 0 15px 25px -5px rgba(212, 135, 58, 0.22);
}

.floating-icon svg,
.floating-icon img {
  width: 24px;
  height: 24px;
}

.tech-html {
  top: 12%;
  left: 4%;
  animation: float-icon 5s ease-in-out infinite 0s;
}

.tech-css {
  top: -2%;
  right: 12%;
  animation: float-icon 5.5s ease-in-out infinite 0.5s;
}

.tech-js {
  right: -3%;
  top: 32%;
  animation: float-icon 6s ease-in-out infinite 1s;
}

.tech-shopify {
  bottom: 8%;
  right: 8%;
  animation: float-icon 4.8s ease-in-out infinite 1.5s;
}

.tech-liquid {
  bottom: -8%;
  left: 32%;
  animation: float-icon 5.2s ease-in-out infinite 2s;
}

.tech-bootstrap {
  bottom: 18%;
  left: -3%;
  animation: float-icon 5.8s ease-in-out infinite 2.5s;
}

.tech-github {
  top: 42%;
  left: -10%;
  animation: float-icon 6.2s ease-in-out infinite 3s;
}

/* ── MARQUEE ─────────────────────────────────────────────────────────── */
.marquee-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 6rem 0 2rem 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  pointer-events: auto;
}

.marquee-wrapper {
  display: flex;
  overflow: hidden;
  user-select: none;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.marquee-content {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-around;
  gap: 1.5rem;
  min-width: 100%;
  animation: scroll-marquee 28s linear infinite;
  padding: 0.5rem 0;
}

.marquee-content.reverse {
  animation-direction: reverse;
}

.marquee-wrapper:hover .marquee-content {
  animation-play-state: paused;
}

.typography-marquee {
  background: var(--espresso);
  border-top: 1px solid rgba(253, 246, 238, 0.07);
  border-bottom: 1px solid rgba(253, 246, 238, 0.07);
  padding: 1.8rem 0;
  overflow: hidden;
  display: flex;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  pointer-events: none;
}

.typography-marquee .marquee-wrapper {
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

.typography-marquee .marquee-content {
  animation: scroll-marquee 20s linear infinite;
  gap: 3.5rem;
  padding: 0;
}

.marquee-text-bold {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 850;
  color: var(--cream);
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-transform: uppercase;
}

.marquee-text-outline {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 850;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--caramel);
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-transform: uppercase;
}

.marquee-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-full);
  background: var(--cream);
  border: 1px solid var(--border-color);
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--espresso);
  box-shadow: 0 4px 12px -2px rgba(111, 78, 55, 0.08);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  animation: float-marquee-pill 4s ease-in-out infinite alternate;
}

.marquee-pill:nth-child(2n) {
  animation-delay: -1s;
  animation-duration: 4.5s;
}

.marquee-pill:nth-child(3n) {
  animation-delay: -2s;
  animation-duration: 3.5s;
}

.marquee-pill:nth-child(4n) {
  animation-delay: -3s;
  animation-duration: 5s;
}

.marquee-pill:hover {
  border-color: var(--caramel);
  background: var(--caramel);
  color: var(--cream);
  box-shadow: 0 8px 20px rgba(212, 135, 58, 0.25);
  transform: translateY(-5px) scale(1.04) !important;
  animation-play-state: paused;
}

.marquee-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.marquee-pill:nth-child(even) .marquee-pill-dot {
  background: var(--caramel);
}

.marquee-pill:nth-child(odd) .marquee-pill-dot {
  background: var(--mocha);
}

/* ── ABOUT ───────────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 4rem;
  align-items: start;
}

.about-intro-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  color: var(--cream);
}

.about-intro-text p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  color: rgba(253, 246, 238, 0.72);
}

.about-personal-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  margin-top: 2.5rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.info-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(253, 246, 238, 0.4);
  font-weight: 700;
}

.info-value {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--cream);
}

/* Glass Cards in About Section (Dark Theme Override) */
#about .glass-card {
  background: rgba(253, 246, 238, 0.06);
  border: 1px solid rgba(253, 246, 238, 0.12);
  color: var(--text-on-dark);
}

#about .glass-card:hover {
  background: rgba(253, 246, 238, 0.1);
}

#about .glass-card li {
  color: rgba(253, 246, 238, 0.8);
}


/* Education Timeline */
.about-sections {
  margin-top: 6rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4.5rem;
}

.timeline-wrapper {
  position: relative;
  padding-left: 2.2rem;
  border-left: 2px solid rgba(253, 246, 238, 0.18);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: calc(-2.2rem - 6px);
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--caramel);
  border: 2px solid var(--espresso);
  box-shadow: 0 0 0 3px rgba(212, 135, 58, 0.3);
  transition: var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.4);
  background: var(--cappuccino);
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--caramel);
  margin-bottom: 0.3rem;
}

.timeline-title {
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
  font-weight: 700;
  color: var(--cream);
}

.timeline-institution {
  font-size: 0.92rem;
  color: rgba(253, 246, 238, 0.58);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.timeline-desc {
  font-size: 0.92rem;
  color: rgba(253, 246, 238, 0.58);
}

/* Cert Cards (About sidebar) */
.certifications-list {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  padding: 1.3rem;
  background: rgba(253, 246, 238, 0.07);
  border: 1px solid rgba(253, 246, 238, 0.13);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.cert-card:hover {
  background: rgba(253, 246, 238, 0.12);
  border-color: rgba(212, 135, 58, 0.35);
}

.cert-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(212, 135, 58, 0.15);
  border: 1px solid rgba(212, 135, 58, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--caramel);
}

.cert-icon svg {
  width: 22px;
  height: 22px;
}

.cert-details h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
  color: var(--cream);
}

.cert-details p {
  font-size: 0.85rem;
  color: rgba(253, 246, 238, 0.58);
}

/* ── SKILLS ──────────────────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.skills-category h3 {
  font-size: 1.2rem;
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--espresso);
  font-weight: 700;
}

.skills-category h3 svg {
  width: 20px;
  height: 20px;
  color: var(--caramel);
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.skill-name {
  font-weight: 600;
  color: var(--espresso);
}

.skill-percentage {
  color: var(--coffee);
  font-weight: 500;
}

.skill-progress-bg {
  width: 100%;
  height: 6px;
  background: rgba(111, 78, 55, 0.15);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.skill-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--caramel) 0%, var(--mocha) 100%);
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 1.5s cubic-bezier(0.1, 1, 0.1, 1);
  box-shadow: 0 2px 6px rgba(212, 135, 58, 0.3);
}

/* ── EXPERIENCE ──────────────────────────────────────────────────────── */
.experience-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.experience-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 30px;
  height: 100%;
  width: 2px;
  background: rgba(253, 246, 238, 0.14);
}

.exp-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 4rem;
}

.exp-item:last-child {
  margin-bottom: 0;
}

.exp-badge {
  position: absolute;
  left: 10px;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--caramel) 0%, var(--mocha) 100%);
  border: 3px solid var(--dark-roast);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(212, 135, 58, 0.35);
  z-index: 2;
  transition: var(--transition-normal);
}

.exp-item:hover .exp-badge {
  transform: scale(1.1) rotate(10deg);
}

.exp-badge svg {
  width: 18px;
  height: 18px;
  color: var(--cream);
}

.exp-card {
  padding: 2.5rem;
  background: rgba(253, 246, 238, 0.06);
  border: 1px solid rgba(253, 246, 238, 0.1);
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}

.exp-card:hover {
  background: rgba(253, 246, 238, 0.1);
  border-color: rgba(212, 135, 58, 0.35);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}

.exp-title {
  font-size: 1.45rem;
  margin-bottom: 0.2rem;
  font-weight: 700;
  color: var(--cream);
}

.exp-company {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--caramel);
}

.exp-date {
  font-size: 0.85rem;
  background: rgba(212, 135, 58, 0.12);
  border: 1px solid rgba(212, 135, 58, 0.25);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  color: var(--latte);
  font-weight: 600;
  white-space: nowrap;
}

.exp-desc {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: rgba(253, 246, 238, 0.72);
}

.exp-tasks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.exp-tasks li {
  font-size: 0.95rem;
  color: rgba(253, 246, 238, 0.62);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.exp-tasks li svg {
  width: 16px;
  height: 16px;
  color: var(--caramel);
  margin-top: 4px;
  flex-shrink: 0;
}

/* ── CERTIFICATIONS ──────────────────────────────────────────────────── */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.cert-grid-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--cream);
}

.cert-logo-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(111, 78, 55, 0.08);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  transition: var(--transition-fast);
}

.cert-grid-card:hover .cert-logo-wrapper {
  transform: scale(1.08);
  background: rgba(212, 135, 58, 0.12);
  border-color: var(--caramel);
}

.cert-grid-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  line-height: 1.35;
  color: var(--espresso);
}

.cert-issuer-info {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--caramel);
  margin-bottom: 0.2rem;
}

.cert-validity {
  font-size: 0.82rem;
  color: var(--latte);
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.cert-id-badge {
  font-size: 0.78rem;
  background: rgba(111, 78, 55, 0.08);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  color: var(--coffee);
  font-family: monospace;
  display: inline-block;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.cert-description {
  font-size: 0.9rem;
  color: var(--coffee);
  line-height: 1.5;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.cert-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.cert-skill-tag {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(212, 135, 58, 0.12);
  color: var(--mocha);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

/* ── PROJECTS ────────────────────────────────────────────────────────── */
.projects-filters {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 3.5rem;
}

.filter-btn {
  background: rgba(253, 246, 238, 0.12);
  border: 1px solid rgba(253, 246, 238, 0.22);
  color: rgba(253, 246, 238, 0.78);
  padding: 0.55rem 1.5rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--cream);
  border-color: var(--caramel);
  background: var(--caramel);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(212, 135, 58, 0.35);
}

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

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  background: var(--cream);
}

/* Slider */
.project-slider {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  border-bottom: 1px solid var(--border-color);
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: grab;
}

.slider-track:active {
  cursor: grabbing;
}

.slider-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  position: relative;
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(253, 246, 238, 0.96);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--espresso);
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: var(--transition-fast);
  box-shadow: 0 4px 10px rgba(111, 78, 55, 0.18);
}

.slider-arrow svg {
  width: 16px;
  height: 16px;
}

.project-slider:hover .slider-arrow {
  opacity: 1;
}

.slider-arrow-prev {
  left: 10px;
}

.slider-arrow-next {
  right: 10px;
}

.slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(253, 246, 238, 0.5);
  cursor: pointer;
  transition: var(--transition-fast);
}

.slider-dot.active {
  background: var(--caramel);
  width: 16px;
  border-radius: var(--radius-full);
}

.project-details {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
  color: var(--espresso);
}

.project-desc {
  font-size: 0.92rem;
  color: var(--coffee);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(111, 78, 55, 0.09);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  color: var(--mocha);
}

.project-links {
  display: flex;
  gap: 0.8rem;
}

.project-btn {
  flex: 1;
  padding: 0.65rem 0;
  font-size: 0.88rem;
}

/* ── CONTACT ─────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
}

.contact-info-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--espresso);
}

.contact-info-text {
  color: var(--coffee);
  margin-bottom: 1rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(111, 78, 55, 0.09);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mocha);
  transition: var(--transition-normal);
  flex-shrink: 0;
}

.contact-item:hover .contact-icon {
  color: var(--cream);
  background: var(--caramel);
  border-color: var(--caramel);
  box-shadow: 0 5px 15px rgba(212, 135, 58, 0.3);
  transform: translateY(-3px);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-item-details h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--latte);
  margin-bottom: 0.2rem;
  font-weight: 700;
}

.contact-item-details p,
.contact-item-details a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--espresso);
}

/* Form */
.contact-form-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--cream);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--coffee);
  margin-left: 0.25rem;
}

.form-input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  background: var(--cappuccino);
  border: 1.5px solid var(--border-color-hover);
  color: var(--espresso);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--caramel);
  background: var(--cream);
  box-shadow: 0 0 0 4px rgba(212, 135, 58, 0.12);
}

textarea.form-input {
  resize: vertical;
  min-height: 150px;
}

.error-message {
  font-size: 0.8rem;
  color: #c0392b;
  margin-top: 0.25rem;
  display: none;
  position: absolute;
  bottom: -20px;
  left: 0.25rem;
  animation: shake 0.4s ease-in-out;
}

.form-group.has-error .form-input {
  border-color: #c0392b;
  background-color: #fff5f5;
}

.form-group.has-error .error-message {
  display: block;
}

.form-submit-btn {
  width: 100%;
  margin-top: 1rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1.1rem 1.6rem;
  border-radius: var(--radius-md);
  background: var(--cream);
  border: 1px solid var(--border-color);
  box-shadow: 0 15px 40px -10px rgba(111, 78, 55, 0.18);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  border-color: var(--mocha);
  border-left: 4px solid var(--mocha);
}

.toast-success svg {
  color: var(--mocha);
}

.toast-error {
  border-color: var(--caramel);
  border-left: 4px solid var(--caramel);
}

.toast-error svg {
  color: var(--caramel);
}

.toast-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--espresso);
}