@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Cormorant+Garamond:ital,wght@1,400;1,600&family=Oswald:wght@600;700&family=Playfair+Display:ital,wght@1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600&family=Syne:wght@700;800&display=swap');

/* --- DESIGN SYSTEM TOKENS --- */
:root {
  /* Fonts */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-display: 'Syne', 'Oswald', sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --container-max-width: 1300px;
  --section-padding: 7.5rem 1.5rem;

  /* Fallbacks for older browsers without light-dark() */
  --bg-color: #FAF8F5;
  --text-color: #121213;
  --text-muted: #626265;
  --card-bg: rgba(255, 255, 255, 0.7);
  --border-color: rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(250, 248, 245, 0.75);
  --glass-border: rgba(0, 0, 0, 0.05);

  --accent-primary: #FFA800;
  /* Warm Amber */
  --accent-terracotta: #D84D35;
  /* High-end Terracotta */
  --hero-glow-1: rgba(255, 214, 133, 0.45);
  --hero-glow-2: rgba(255, 172, 89, 0.15);

  /* Madison Reference Luxury Cream Hero Gradient Variables */
  --hero-grad-1: #FDF3DB;
  /* Soft Sunlit Ivory */
  --hero-grad-2: #FBECC7;
  /* Warm Luxury Cream */
  --hero-grad-3: #FFF2DC;
  /* Soft Diffused Warmth */
  --hero-grad-4: #FFFAF0;
  /* Warm Alabaster */
  --hero-grad-5: #FFFFFF;
  /* Pure White Edges */

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.06);
  --scrollbar-thumb: rgba(0, 0, 0, 0.15);
  --scrollbar-track: rgba(0, 0, 0, 0.02);
}

/* Color scheme control for light-dark() dynamic evaluations */
:root {
  color-scheme: light dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

/* Dark Mode Tokens Override */
[data-theme="dark"] {
  --bg-color: #0E0E10;
  --text-color: #F3F3F5;
  --text-muted: #A0A0A5;
  --card-bg: rgba(25, 25, 28, 0.5);
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(14, 14, 16, 0.8);
  --glass-border: rgba(255, 255, 255, 0.05);

  --hero-glow-1: rgba(216, 77, 53, 0.25);
  --hero-glow-2: rgba(255, 168, 0, 0.12);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.4);
  --scrollbar-thumb: rgba(255, 255, 255, 0.15);
  --scrollbar-track: rgba(255, 255, 255, 0.02);
}

/* Modern light-dark() progressive enhancement */
@supports (color: light-dark(white, black)) {
  :root {
    --bg-color: light-dark(#FAF8F5, #0E0E10);
    --text-color: light-dark(#121213, #F3F3F5);
    --text-muted: light-dark(#626265, #A0A0A5);
    --card-bg: light-dark(rgba(255, 255, 255, 0.7), rgba(25, 25, 28, 0.5));
    --border-color: light-dark(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.08));
    --glass-bg: light-dark(rgba(250, 248, 245, 0.75), rgba(14, 14, 16, 0.8));
    --glass-border: light-dark(rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0.05));
    --scrollbar-thumb: light-dark(rgba(0, 0, 0, 0.15), rgba(255, 255, 255, 0.15));
    --scrollbar-track: light-dark(rgba(0, 0, 0, 0.02), rgba(255, 255, 255, 0.02));
  }
}

/* --- RESET & GLOBAL STYLES --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

/* Scrollbar Customization */
html {
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  scrollbar-width: thin;
}

@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  ::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
  }

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

/* --- UTILITY CLASSES --- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Pill Button Style */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--text-color);
}

.btn-pill.primary {
  background-color: var(--text-color);
  color: var(--bg-color);
}

.btn-pill.primary:hover {
  background-color: transparent;
  color: var(--text-color);
  transform: scale(1.03);
}

.btn-pill.secondary {
  background-color: transparent;
  color: var(--text-color);
}

.btn-pill.secondary:hover {
  background-color: var(--text-color);
  color: var(--bg-color);
  transform: scale(1.03);
}

/* --- NAVIGATION BAR --- */
header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.35);
  /* High transparency white */
  backdrop-filter: blur(25px) saturate(180%);
  /* Ultra-glossy liquid glass blur */
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  /* Subtle glass edge */
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.02);
  /* Delicate premium depth shadow */
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dynamic Island Scrolled Morphing State */
header.scrolled {
  width: calc(100% - 3rem);
  max-width: 460px;
  /* Narrower pill for centering links perfectly */
  left: 50%;
  transform: translateX(-50%) translateY(1.2rem);
  border-radius: 100px;
  background-color: rgba(255, 255, 255, 0.75); /* Fallback for older browsers */
  background-color: light-dark(rgba(255, 255, 255, 0.75), rgba(14, 14, 16, 0.85));
  border: 1px solid rgba(0, 0, 0, 0.08); /* Fallback for older browsers */
  border: 1px solid light-dark(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.08));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled .nav-container {
  height: 3.6rem;
  padding: 0 1.5rem;
  justify-content: center;
  /* Centering the links inside the pill */
}

.logo {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  max-width: 150px;
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateX(0);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled .logo {
  opacity: 0;
  visibility: hidden;
  max-width: 0;
  transform: scale(0.8) translateX(45px);
  /* Slides inward (left-to-right) as header contracts */
  margin: 0;
  pointer-events: none;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled nav ul {
  gap: 1.8rem;
}

nav ul a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.7;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled nav ul a {
  font-size: 0.85rem;
}

nav ul a:hover,
nav ul a.active {
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 150px;
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateX(0);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled .nav-actions {
  opacity: 0;
  visibility: hidden;
  max-width: 0;
  transform: scale(0.8) translateX(-45px);
  /* Slides inward (right-to-left) as header contracts */
  margin: 0;
  pointer-events: none;
}

/* Theme Toggle Button Style */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s, transform 0.2s;
  z-index: 1005;
}

.theme-toggle:hover {
  background-color: var(--border-color);
}

.theme-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
}

/* --- HERO SECTION --- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
  background:
    /* Inner white — cuts out the top center inside the arc */
    radial-gradient(ellipse 101% 48% at 50% 0%,
      #ffffff 0%,
      #ffffff 50%,
      transparent 100%),

    /* Left arc end */
    radial-gradient(ellipse 50% 65% at 0% 50%,
      rgba(255, 200, 80, 0.65) 0%,
      rgba(255, 220, 130, 0.20) 55%,
      transparent 100%),

    /* Right arc end */
    radial-gradient(ellipse 50% 65% at 100% 50%,
      rgba(255, 200, 80, 0.65) 0%,
      rgba(255, 220, 130, 0.20) 55%,
      transparent 100%),

    /* Main arc band from top */
    radial-gradient(ellipse 185% 90% at 50% -2%,
      #ffffff 0%,
      #FDE9A2 40%,
      #F5D06A 56%,
      #FDE9A2 66%,
      rgba(253, 233, 162, 0.15) 80%,
      transparent 100%),

    #FAF8F5;
  /* your base bg */
}

/* Luxury glowing dark gold and bronze arc gradient for dark mode */
[data-theme="dark"] #hero {
  background:
    /* Inner dark charcoal — cuts out the top center inside the arc */
    radial-gradient(ellipse 101% 48% at 50% 0%,
      #0E0E10 0%,
      #0E0E10 50%,
      transparent 100%),

    /* Left arc end */
    radial-gradient(ellipse 50% 65% at 0% 50%,
      rgba(216, 77, 53, 0.25) 0%,
      rgba(255, 168, 0, 0.08) 55%,
      transparent 100%),

    /* Right arc end */
    radial-gradient(ellipse 50% 65% at 100% 50%,
      rgba(216, 77, 53, 0.25) 0%,
      rgba(255, 168, 0, 0.08) 55%,
      transparent 100%),

    /* Main arc band from top */
    radial-gradient(ellipse 185% 90% at 50% -2%,
      #0E0E10 0%,
      #3E2911 40%,
      #8D5524 56%,
      #3E2911 66%,
      rgba(255, 168, 0, 0.05) 80%,
      transparent 100%),

    #0E0E10;
}

/* Soft glowing backgrounds */
.hero-glow-bg {
  display: none;
}

.hero-container-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.15fr;
  align-items: center;
  position: relative;
  width: 100%;
  gap: 2rem;
  padding-top: 0;
  height: calc(100vh - 5rem);
}

.hero-grid-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  height: 100%;
  padding-bottom: 0;
}

.hero-grid-col.left {
  align-items: flex-start;
  z-index: 3;
  justify-content: flex-end;
  padding-top: 0;
  padding-bottom: 1.5rem;
  gap: 6rem;
}

.hero-grid-col.center {
  justify-content: center;
  align-items: center;
  z-index: 2;
  position: relative;
  padding: 0;
  width: auto;
}

.hero-grid-col.right {
  align-items: flex-end;
  z-index: 3;
  justify-content: flex-end;
  padding-top: 0;
  padding-bottom: 1.5rem;
  gap: 2.5rem;
}

/* Floating "Hey, there" background script */
.hero-bg-text {
  position: absolute;
  top: 28%;
  left: 50%;
  transform: translate(-50%, -50%);

  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;

  font-size: clamp(53px, 8.5vw, 95px);

  color: var(--text-color);
  opacity: 0.10;

  white-space: nowrap;
  pointer-events: none;
  z-index: 1;

  letter-spacing: -0.02em;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}

/* Portrait photo styling */
.hero-portrait-wrapper {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 95vh;
  /* Prominent layout size for high visual impact */
  width: auto;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: visible;
  z-index: 2;
}

.hero-portrait {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  display: block;
  pointer-events: none;
  transform: none;
  transform-origin: bottom center;
  mask-image: linear-gradient(to bottom,
      black 0%,
      black 85%,
      transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom,
      black 0%,
      black 85%,
      transparent 100%);
}

.opportunity-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  background-color: light-dark(rgba(255, 255, 255, 0.9), rgba(25, 25, 28, 0.95));
  border: 1px solid light-dark(rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0.05));
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-top: 0;
  color: light-dark(#111111, #EEEEEE);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #FFA800;
  box-shadow: 0 0 8px #FFA800;
  flex-shrink: 0;
}

.hero-specialization {
  font-size: 0.9rem;
  line-height: 1.6;
  color: light-dark(#111111, #DDDDDD);
  max-width: 300px;
  margin-top: 0;
  text-align: right;
  font-weight: 400;
}

/* Big typography headers */
.hero-large-text {
  font-family: 'Bebas Neue', var(--font-display);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: light-dark(#000000, #FFFFFF);
  text-transform: uppercase;
  pointer-events: none;
  z-index: 3;
  position: relative;
}

.hero-large-text.left-align {
  font-size: clamp(6.9rem, 11.3vw, 10.7rem);
  text-align: left;
  margin: 0;
  margin-left: 5%;
  /* Shift 5% to the right */
  padding: 0;
}

.hero-large-text.right-align {
  font-size: clamp(3rem, 5.5vw, 5rem);
  text-align: left;
  max-width: 100%;
  margin: 0;
  margin-right: 5%;
  /* Shift 5% to the left */
  padding: 0;
}

/* --- SERVICES SECTION ("I CAN HELP YOU WITH") --- */
#services {
  padding: var(--section-padding);
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-terracotta);
  margin-bottom: 3.5rem;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.service-card {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  transition: background-color 0.3s ease;
}

.service-card:first-child {
  padding-left: 0;
}

.service-card:last-child {
  border-right: none;
  padding-right: 0;
}

.service-card:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.service-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.2rem;
  opacity: 0.3;
}

.service-title {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- VISION / STATS SECTION ("TURNING MY VISION") --- */
#vision {
  padding: var(--section-padding);
  background-color: var(--bg-color);
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.vision-info {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.vision-title-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vision-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.vision-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 420px;
}

.stats-container {
  display: flex;
  gap: 4rem;
}

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

.stat-num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-color);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vision-media-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1.1;
  background-color: var(--card-bg);
}

.vision-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.vision-media-wrapper:hover .vision-media {
  transform: scale(1.05);
}

/* --- EXPERIENCE & SKILLS SECTION --- */
#experience {
  padding: var(--section-padding);
}

.experience-list {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
}

.experience-row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 2fr;
  padding: 3rem 0;
  align-items: start;
  border-bottom: none;
}

.experience-row:first-child {
  padding-top: 0;
}

.experience-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.exp-years {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.exp-role {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.exp-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  list-style: none;
}

.skill-tag {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
}

/* --- PROJECTS SECTION --- */
#projects {
  padding: var(--section-padding);
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
}

.projects-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.filter-group {
  display: flex;
  gap: 1rem;
}

.filter-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  transition: all 0.3s;
  color: var(--text-muted);
}

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

.filter-btn.active {
  background-color: var(--text-color);
  color: var(--bg-color);
}

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

.project-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  cursor: pointer;
}

.project-image-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 1.05;
  background-color: var(--card-bg);
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-image {
  transform: scale(1.04);
}

.project-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-title {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
}

.project-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* --- WORKSTATION CAROUSEL --- */
#workstation {
  padding: var(--section-padding);
  overflow: hidden;
}

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

.workstation-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  text-align: center;
}

.workstation-slider {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* Hide scrollbar Firefox */
}

.workstation-slider::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar WebKit */
}

.workstation-slide {
  flex: 0 0 calc(33.33% - 1.33rem);
  scroll-snap-align: start;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 1.2;
}

.workstation-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.workstation-slide:hover img {
  transform: scale(1.05);
}

/* --- FOOTER / CTA --- */
footer {
  padding: 6rem 1.5rem 4rem;
  background-color: var(--bg-color);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
  text-align: center;
}

.footer-cta-text {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 800px;
}

.footer-bottom {
  width: 100%;
  max-width: var(--container-max-width);
  margin-top: 4rem;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.4rem;
}

.social-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.social-links a {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.6;
}

.social-links a:hover {
  opacity: 1;
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- CONTACT MODAL --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  width: 90%;
  max-width: 540px;
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  border-radius: 28px;
  padding: 3rem;
  position: relative;
  transform: translateY(40px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.modal-overlay.active .modal-window {
  transform: translateY(0) scale(1);
}

.close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  background-color: var(--border-color);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

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

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--border-color);
  padding: 0.6rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-color);
  outline: none;
  transition: border-color 0.3s;
}

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

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

/* Submit Success State style */
.form-success-message {
  display: none;
  text-align: center;
  padding: 2rem 0;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.form-success-message.active {
  display: flex;
}

.success-icon {
  width: 48px;
  height: 48px;
  background-color: var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-terracotta);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  :root {
    --section-padding: 5.5rem 1.5rem;
  }

  .hero-container-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    height: auto;
  }

  .hero-grid-col {
    height: auto;
    padding-bottom: 0;
    align-items: center !important;
    text-align: center;
  }

  .hero-portrait-wrapper {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    max-width: 430px;
    /* Increased by a further 20% */
    height: auto;
    width: 100%;
  }

  .hero-portrait {
    height: auto;
    width: 100%;
    max-width: 100%;
  }

  .hero-large-text.left-align,
  .hero-large-text.right-align {
    font-size: clamp(3rem, 7vw, 4.5rem);
    text-align: center;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }

  .hero-specialization,
  .opportunity-badge {
    margin-top: 0;
    max-width: 100%;
    text-align: center;
  }

  .hero-grid-col.center {
    grid-row: 2;
  }

  .hero-grid-col.left {
    grid-row: 1;
    gap: 1.5rem;
  }

  .hero-grid-col.right {
    grid-row: 3;
    gap: 1.5rem;
  }

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

  .service-card {
    padding: 2rem;
  }

  .service-card:first-child,
  .service-card:last-child {
    padding: 2rem;
  }

  .vision-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .vision-media-wrapper {
    aspect-ratio: 1.3;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  .experience-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2rem 0;
  }

  .workstation-slide {
    flex: 0 0 calc(50% - 1rem);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  nav {
    display: none;
    /* In production we would add a full responsive mobile drawer */
  }

  .mobile-menu-btn {
    display: block;
  }

  #hero {
    min-height: auto;
    padding-bottom: 4rem;
  }

  .hero-container-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 1rem;
  }

  .hero-bg-text {
    position: static;
    font-size: clamp(3.5rem, 10vw, 5.5rem);
    opacity: 0.15;
    margin-bottom: -0.5rem;
    width: 100%;
    text-align: center;
  }

  .hero-portrait-wrapper {
    max-width: 320px;
    /* Increased by a further 20% */
  }

  .hero-large-text.left-align,
  .hero-large-text.right-align {
    font-size: clamp(2.5rem, 8vw, 3.8rem);
    text-align: center;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }

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

  .service-card,
  .service-card:nth-child(even) {
    border-left: none;
    border-right: none;
  }

  .projects-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .workstation-slide {
    flex: 0 0 85%;
  }

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

  .social-links {
    justify-content: center;
  }
}

/* --- ANIMATIONS --- */
@keyframes fadeInSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes fadeInSlideUpBgText {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(30px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
  }
}

@keyframes charRestingWave {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

@keyframes textGlowPulse {
  0% {
    opacity: 0.8;
    text-shadow: 0 0 10px rgba(255, 168, 0, 0);
  }

  50% {
    opacity: 1;
    text-shadow: 0 0 20px rgba(255, 168, 0, 0.3);
  }

  100% {
    opacity: 0.8;
    text-shadow: 0 0 10px rgba(255, 168, 0, 0);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmerText {
  0% {
    background-position: -1000px 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

@keyframes floatAnimation {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }
}

/* Apply animations to hero elements */
#hero .hero-bg-text {
  animation: fadeInSlideUpBgText 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

.opportunity-badge {
  animation: scaleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  animation-delay: 0.4s;
}

.hero-large-text {
  animation: fadeInSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  animation-delay: 0.6s;
}

.hero-large-text.right-align {
  animation-delay: 0.8s;
}

.hero-portrait {
  /* Keeps the photo static without floating animation */
}

.hero-specialization {
  animation: fadeInSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  animation-delay: 0.7s;
}

/* Apply animations to section titles */
.section-tag {
  animation: fadeInSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.vision-title {
  animation: fadeInSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

.projects-title {
  animation: fadeInSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

.workstation-title {
  animation: fadeInSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

.footer-cta-text {
  animation: fadeInSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

/* Animated gradient background for hero section */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(-45deg,
      #FDF3DB 0%,
      #FBECC7 25%,
      #FFF2DC 50%,
      #FFFAF0 75%,
      #FFFFFF 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}

/* Service cards entrance animation */
/* Service cards entrance animation on scroll reveal */
.service-card {
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card.active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.service-card.active:nth-child(1) {
  transition-delay: 0.1s;
}

.service-card.active:nth-child(2) {
  transition-delay: 0.2s;
}

.service-card.active:nth-child(3) {
  transition-delay: 0.3s;
}

.service-card.active:nth-child(4) {
  transition-delay: 0.4s;
}

/* Project card animations on scroll reveal */
.project-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card.active {
  opacity: 1;
  transform: translateY(0);
}

.project-card.active:nth-child(1) {
  transition-delay: 0.1s;
}

.project-card.active:nth-child(2) {
  transition-delay: 0.2s;
}

.project-card.active:nth-child(3) {
  transition-delay: 0.3s;
}

.project-card.active:nth-child(4) {
  transition-delay: 0.4s;
}

/* Skill tags stagger animation inside active experience rows */
.experience-row .skill-tag {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.experience-row.active .skill-tag {
  opacity: 1;
  transform: translateY(0);
}

.experience-row.active .skill-tag:nth-child(1) {
  transition-delay: 0.1s;
}

.experience-row.active .skill-tag:nth-child(2) {
  transition-delay: 0.15s;
}

.experience-row.active .skill-tag:nth-child(3) {
  transition-delay: 0.2s;
}

.experience-row.active .skill-tag:nth-child(4) {
  transition-delay: 0.25s;
}

.experience-row.active .skill-tag:nth-child(5) {
  transition-delay: 0.3s;
}

.experience-row.active .skill-tag:nth-child(6) {
  transition-delay: 0.35s;
}

/* Logo animation on entry */
.logo {
  animation: fadeInSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

/* Navigation links animation on entry */
nav ul li {
  animation: fadeInSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

nav ul li:nth-child(1) {
  animation-delay: 0.1s;
}

nav ul li:nth-child(2) {
  animation-delay: 0.2s;
}

nav ul li:nth-child(3) {
  animation-delay: 0.3s;
}

nav ul li:nth-child(4) {
  animation-delay: 0.4s;
}

nav ul li:nth-child(5) {
  animation-delay: 0.5s;
}


/* ==========================================================================
   ADVANCED INTERACTIVE MOTION DESIGN & GRAPHICS STYLES
   ========================================================================== */

/* --- INTERACTIVE CANVAS BACKDROP --- */
#hero-particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.65;
}

/* Ensure other hero layers float properly over canvas */
.hero-container-grid {
  z-index: 2;
}

/* --- CUSTOM CURSOR STYLING --- */
@media (hover: hover) and (pointer: fine) {

  /* Hide standard cursor */
  body,
  a,
  button,
  select,
  input,
  textarea,
  [role="button"],
  .project-card,
  .workstation-slide {
    cursor: none !important;
  }

  .custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
  }

  .cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background-color: var(--accent-terracotta);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition:
      width 0.2s cubic-bezier(0.16, 1, 0.3, 1),
      height 0.2s cubic-bezier(0.16, 1, 0.3, 1),
      background-color 0.3s ease,
      opacity 0.2s ease;
    z-index: 10000;
  }

  .cursor-glow {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(216, 77, 53, 0.4);
    background-color: rgba(216, 77, 53, 0.02);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition:
      width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
      height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
      background-color 0.3s ease,
      border-color 0.3s ease,
      border-radius 0.3s ease,
      opacity 0.2s ease;
    z-index: 9999;
  }

  /* Custom cursor states updated dynamically in JS */
  .custom-cursor.hovering-link .cursor-dot {
    width: 4px;
    height: 4px;
    background-color: var(--accent-primary);
  }

  .custom-cursor.hovering-link .cursor-glow {
    width: 60px;
    height: 60px;
    border-color: var(--accent-primary);
    background-color: rgba(255, 168, 0, 0.06);
  }

  /* Custom capsule state over cards */
  .custom-cursor.hovering-card .cursor-dot {
    opacity: 0;
  }

  .custom-cursor.hovering-card .cursor-glow {
    width: 90px;
    height: 40px;
    border-radius: 20px;
    background-color: var(--accent-terracotta);
    border-color: var(--accent-terracotta);
  }

  /* Glass magnifying lens invert overlay over standard words */
  .custom-cursor.hovering-text .cursor-dot {
    opacity: 0;
    width: 0;
    height: 0;
  }

  .custom-cursor.hovering-text .cursor-glow {
    width: 65px;
    height: 65px;
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    mix-blend-mode: difference;
  }

  /* Text capsule content */
  .custom-cursor::after {
    content: '';
    position: fixed;
    transform: translate(-50%, -50%);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.85rem;
    font-weight: 600;
    color: #FAF8F5;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10001;
    letter-spacing: 0.05em;
  }

  .custom-cursor.hovering-card::after {
    content: 'VIEW';
    left: var(--cursor-x);
    top: var(--cursor-y);
    opacity: 1;
  }
}

@media (hover: none) or (pointer: coarse) {
  .custom-cursor {
    display: none !important;
  }
}

/* --- STAGGERED CHARACTER TYPOGRAPHY REVEAL --- */
.char-split {
  overflow: hidden;
  display: inline-block;
  vertical-align: bottom;
}

.char-span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition:
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.35s ease;
  transition-delay: calc(var(--char-index) * 0.025s);
  cursor: default;
}

.char-span.active {
  transform: translateY(0);
  opacity: 1;
  animation: charRestingWave 5.5s ease-in-out infinite;
  animation-delay: calc(var(--char-index) * 0.12s + 0.8s);
}

/* Background text floats even slower for natural layered breathing depth */
.hero-bg-text .char-span.active {
  animation: charRestingWave 8s ease-in-out infinite;
  animation-delay: calc(var(--char-index) * 0.18s + 0.8s);
}

.char-span.active:hover {
  animation: none !important;
  transform: translateY(-8px) scale(1.12);
  color: var(--accent-terracotta);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s ease;
  transition-delay: 0s !important;
}

.word-span {
  display: inline-block;
  white-space: nowrap;
}

/* --- 3D TILT SMOOTH PHYSICS --- */
.project-card,
.hero-portrait-wrapper {
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
  transform-style: preserve-3d;
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
}

.project-card *,
.hero-portrait-wrapper * {
  transform-style: preserve-3d;
}

/* --- MAGNETIC PILLS --- */
.magnetic {
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  display: inline-block;
}

/* --- ACCESSIBILITY MOTION REDUCTION --- */
@media (prefers-reduced-motion: reduce) {
  .char-span {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }

  .project-card,
  .hero-portrait-wrapper,
  .magnetic,
  .service-card,
  .skill-tag {
    transform: none !important;
    transition: none !important;
    opacity: 1 !important;
  }

  #hero-particles-canvas {
    display: none !important;
  }
}