@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Montserrat:wght@400;500;600;700&family=Mulish:wght@300;400;500;600;700&family=Rubik:wght@300;400;500&family=Outfit:wght@300;400;500;600;700&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Cinzel:wght@400;500;600;700&family=Nunito:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&family=Playwrite+DK+Uloopet:wght@100..400&display=swap');

:root {
  --primary: #FF5A36;          /* Vibrant Tangerine Coral */
  --primary-hover: #E04322;    /* Deepened Tangerine Coral */
  --dark-base: #2B3541;        /* Editorial Ink Black - much softer for reading body copy */
  --dark-slate: #181F2A;       /* Deep Obsidian Slate - clean modern background */
  --navy: #0E1528;             /* Rich Midnight Ink - premium luxury navy */
  --navy-dark: #05070F;        /* Deep Space Black-Navy - crisp dark mode anchors */
  --navy-light: #16203B;       /* Translucent Steel Navy - dropdowns & high-fidelity cards */
  --cream: #FAF8F5;            /* Alabaster Warmth - clean, soft, non-muddy warm light bg */
  --cream-dark: #F3EFE9;       /* Refined Sand-Cream */
  --tan: #D1B89E;              /* Champagne Gold - elegant header labels */
  --tan-light: #E3D4C4;        /* Soft Champagne */
  --white: #FFFFFF;
  --gray-light: #F8FAFC;       /* Cool slate-tinted light grey */
  --gray-med: #E2E8F0;         /* Soft border slate grey */
  --gray-dark: #64748B;        /* Neutral steel grey for secondary metadata */
  --font-serif: "DM Serif Display", serif;
  --font-sans: "Mulish", "Rubik", sans-serif;
  --font-heading: "Montserrat", sans-serif;
  --border-radius: 12px;
  --transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); /* Faster, custom spring transition */
  --shadow: 0 4px 20px rgba(9, 13, 26, 0.06);              /* Slate-navy tinted shadows */
  --shadow-hover: 0 16px 36px rgba(9, 13, 26, 0.12);
  --max-width: 1200px;
}

/* CSS Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

/* Ensure section headers are not covered by the sticky navigation bar on jump links */
#about, #experience, #education, #expertise {
  scroll-margin-top: 105px; /* Matches navbar height + 40px of clean vertical margin */
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--dark-base);
  background-color: #FEFCF8;
  line-height: 1.6;
}

/* Card-like Sections */
section,
footer {
  border-radius: 12px;
  margin: 12px auto;
  max-width: calc(100% - 24px);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(9, 13, 26, 0.03);
}


h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 2.2rem;
  min-width: 220px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 30px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  text-transform: none;
  letter-spacing: 0.5px;
  line-height: 1;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    font-family: 'Playwrite DK Uloopet', cursive;
    font-weight: 400;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0;
    padding: 0 2.2rem;
    line-height: 1;
  }
}

.btn-primary {
  background: linear-gradient(to bottom, rgba(255, 90, 54, 0.85) 0%, rgba(255, 74, 38, 0.90) 100%);
  border: 1px solid rgba(255, 90, 54, 0.80);
  color: var(--white);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.5),
    inset 0 -1px 2px rgba(0, 0, 0, 0.2),
    0 4px 15px rgba(255, 90, 54, 0.35);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: linear-gradient(to bottom, rgba(255, 110, 77, 0.90) 0%, rgba(255, 90, 54, 0.95) 100%);
    border: 1px solid rgba(255, 110, 77, 0.90);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 
      inset 0 1px 3px rgba(255, 255, 255, 0.7),
      inset 0 -1px 2px rgba(0, 0, 0, 0.25),
      0 8px 25px rgba(255, 90, 54, 0.45);
  }
}

.btn-white-outline {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.4),
    0 4px 15px rgba(255, 255, 255, 0.05);
}

@media (hover: hover) and (pointer: fine) {
  .btn-white-outline:hover {
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.60);
    color: var(--white);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 
      inset 0 1px 3px rgba(255, 255, 255, 0.6),
      0 8px 25px rgba(255, 255, 255, 0.25);
  }
}

/* Sticky Floating Navbar with Cream Glassmorphism */
.navbar {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 99999;
  display: flex;
  justify-content: center;
  padding: 0 12px;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar.menu-open {
  top: 12px !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  padding: 0 12px !important;
}

/* Floating clean pill container at all times */
.navbar .container {
  pointer-events: all;
  width: 100%;
  max-width: 100%;
  height: 72px;
  border-radius: 12px;
  border: 1px solid rgba(194, 164, 140, 0.25); /* Refined cream border */
  /* Warm cream frosted glass tint, looks brilliant and clean over dark video overlay and white sections */
  background: rgba(254, 252, 248, 0.92); 
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(9, 13, 26, 0.08);
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.35s ease;
}

/* Active scrolling state enhances the background opacity, border, and shadow */
.navbar.scrolled .container {
  background: rgba(254, 252, 248, 0.92);
  border: 1px solid rgba(194, 164, 140, 0.25);
  box-shadow: 0 10px 30px rgba(9, 13, 26, 0.08);
}

/* Special Dark/Glass mode strictly for the landing page hero and scrolling */
.navbar-dark-hero .container,
.navbar-dark-hero.scrolled .container {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(14, 21, 40, 0.65); /* Fallback */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
}

/* Navbar Video Background Styles */
.navbar-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
}
.navbar-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.navbar-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 21, 40, 0.65); /* Dark navy overlay on the video */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Ensure nav contents sit above the video */
.navbar-dark-hero .nav-brand,
.navbar-dark-hero .nav-desktop,
.navbar-dark-hero .nav-burger {
  position: relative;
  z-index: 1;
}
.navbar-dark-hero .nav-title,
.navbar-dark-hero .nav-link,
.navbar-dark-hero .nav-link-muted,
.navbar-dark-hero .nav-burger {
  color: #FFFFFF;
}
@media (hover: hover) and (pointer: fine) {
  .navbar-dark-hero .nav-burger:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 768px) {
  .navbar {
    top: 12px;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    padding: 0 12px !important;
  }
  .navbar.menu-open {
    top: 12px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    padding: 0 12px !important;
  }
  .navbar .container {
    width: 100% !important;
    max-width: 100% !important;
    height: 64px; /* Increased from 50px to 64px for better tap height and proportions */
    border-radius: 12px;
    padding: 4px 12px 4px 16px;
    justify-content: space-between;
    gap: 4px;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .navbar.menu-open .container {
    width: 100% !important;
    justify-content: space-between;
  }
  .nav-title {
    display: none !important;
  }
  .nav-logo {
    height: 44px !important; /* Increased logo size */
    width: 44px !important;
  }
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-select: none;
}

.nav-logo {
  height: 55px;
  width: 55px;
  object-fit: contain;
}

.nav-title {
  font-family: var(--font-serif);
  font-size: 21px;
  color: #111111;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.nav-brand:hover .nav-title {
  opacity: 0.7;
}

/* Desktop navigation container */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-desktop.secondary-links {
  gap: 4px;
  flex-shrink: 0;
}

/* Nav links styling (Rich editorial ink black with transparent hover bounds) */
.nav-link {
  font-family: 'Poppins', sans-serif;
  color: #4A4A4A;
  letter-spacing: 0.01em;
  border-radius: 10px;
  padding: 6px 14px;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  border: 1px solid transparent;
  line-height: 1.2;
}

#nav-about-dropdown { min-width: 175px; } /* Increased for 'About Me' */
#nav-work-link { min-width: 110px; } /* Increased for 'My Work' */
#nav-connect-link { min-width: 110px; }

@media (hover: hover) and (pointer: fine) {
  .nav-link:hover {
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.50);
    box-shadow: 
      inset 0 1px 1px rgba(255, 255, 255, 0.4), 
      0 2px 8px rgba(9, 13, 26, 0.04);
    color: #111111;
    padding: 6px 14px;
    line-height: 1.2;
  }
}

.nav-link[aria-current="page"] {
  font-family: 'Playwrite DK Uloopet', cursive;
  font-weight: 400;
  font-size: 16px;
  color: #111111;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.6), 
    inset 0 -1px 1px rgba(255, 255, 255, 0.2),
    0 4px 12px rgba(9, 13, 26, 0.06);
  padding: 6px 14px;
  line-height: 1.2;
}

/* Muted navigation links on the right */
.nav-link-muted {
  font-family: 'Poppins', sans-serif;
  color: #4A4A4A;
  border-radius: 10px;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 1px solid transparent;
  line-height: 1.2;
}

#nav-resume-link { min-width: 95px; }
#nav-linkedin-link { min-width: 115px; }

@media (hover: hover) and (pointer: fine) {
  .nav-link-muted:hover {
    color: #111111;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.50);
    box-shadow: 
      inset 0 1px 1px rgba(255, 255, 255, 0.4), 
      0 2px 8px rgba(9, 13, 26, 0.04);
    padding: 6px 14px;
    line-height: 1.2;
  }
}

.nav-link-muted[aria-current="page"] {
  font-family: 'Playwrite DK Uloopet', cursive;
  font-weight: 400;
  font-size: 16px;
  color: #111111;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.6), 
    inset 0 -1px 1px rgba(255, 255, 255, 0.2),
    0 4px 12px rgba(9, 13, 26, 0.06);
  padding: 6px 14px;
  line-height: 1.2;
}

/* Desktop Dropdown Styling */
.nav-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

button.nav-link#nav-about-dropdown {
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  appearance: none;
  -webkit-appearance: none;
}

button.nav-link#nav-about-dropdown:hover,
button.nav-link#nav-about-dropdown[aria-current="page"] {
  display: inline-flex !important;
}

.dropdown-arrow {
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-dropdown-wrapper:hover .dropdown-arrow,
#nav-about-dropdown[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(254, 252, 248, 0.95);
  border: 1px solid rgba(194, 164, 140, 0.25);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(9, 13, 26, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 170px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 300;
}

/* Hover bridge to prevent dropdown from closing prematurely */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu,
.nav-dropdown-wrapper:focus-within .nav-dropdown-menu,
#nav-about-dropdown[aria-expanded="true"] ~ .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(4px);
}

.nav-dropdown-item {
  font-family: 'Poppins', sans-serif;
  color: #1c1c1a;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  display: block;
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  border: 1px solid transparent;
  line-height: 1.2;
  white-space: nowrap;
  text-align: left;
}

/* Accordion Baseline (Desktop defaults) */
.mobile-accordion {
  display: flex;
  flex-direction: column;
}
.accordion-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.accordion-trigger, .dropdown-divider {
  display: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .nav-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.60);
    box-shadow: 
      inset 0 1px 1px rgba(255, 255, 255, 0.4), 
      0 2px 8px rgba(9, 13, 26, 0.04);
    color: #111111;
    padding: 8px 16px;
    line-height: 1.2;
  }
}

.nav-dropdown-item[aria-current="page"] {
  font-family: 'Playwrite DK Uloopet', cursive;
  font-weight: 400;
  font-size: 14px;
  color: #111111;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.6), 
    inset 0 -1px 1px rgba(255, 255, 255, 0.2),
    0 4px 12px rgba(9, 13, 26, 0.06);
  padding: 8px 16px;
  line-height: 1.2;
}

/* Burger menu icon button */
.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #1c1c1a;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .nav-burger:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }
}

.nav-burger svg {
  display: block;
}

.nav-burger svg line {
  transform-origin: 12px 12px;
  transform-box: view-box;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 160ms ease;
}

.nav-burger.active svg line:nth-child(1) {
  transform: rotate(45deg) translateY(6px);
}

.nav-burger.active svg line:nth-child(2) {
  opacity: 0;
}

.nav-burger.active svg line:nth-child(3) {
  transform: rotate(-45deg) translateY(-6px);
}

/* Responsive Styles */
@media (max-width: 768px) {
  /* Hide the burger menu entirely */
  .nav-burger {
    display: none !important;
  }
  
  /* Show nav-desktop but optimized for small screens */
  .nav-desktop {
    display: flex !important;
    gap: 4px !important;
    justify-content: flex-end; /* Ensure it gracefully aligns to the right */
  }
  
  /* Hide desktop-only elements on mobile */
  .secondary-links,
  .desktop-text,
  .desktop-only-link {
    display: none !important;
  }
  
  /* Scale the author name so it fits beautifully next to the dropdown */
  .nav-title {
    display: inline-block !important; /* Override the desktop visibility rules if any */
    font-size: 19px !important;
    opacity: 1 !important;
    max-width: unset !important;
  }
  
  /* Show mobile-only elements */
  .mobile-text {
    display: inline !important;
  }
  
  .mobile-only-dropdown-item {
    display: block !important;
  }
  
  /* Shrink nav links */
  .nav-link {
    font-size: 16px !important; /* Increased to 16px for better legibility */
    padding: 6px 12px !important; /* Wider padding since it's the only button */
    min-width: unset !important;
  }
  
  /* Ensure hover/active states don't break layout */
  .nav-link:hover, .nav-link[aria-current="page"] {
    font-size: 15px !important;
    padding: 6px 12px !important;
  }
  
  .nav-dropdown-item {
    font-size: 16px;
    padding: 10px 14px;
  }
  .nav-dropdown-item:hover, .nav-dropdown-item[aria-current="page"] {
    font-size: 15px;
    padding: 10px 14px;
  }
  
  /* Provide just enough space for dropdown texts like 'Experience' */
  #nav-about-dropdown {
    min-width: 125px !important; /* Increased to accommodate 'About Me' and dropdown font */
  }
  
  /* Reduce dropdown arrow size */
  .dropdown-arrow {
    width: 8px !important;
    margin-left: 3px !important;
  }
  
  /* Tighter padding on the nav container */
  #nav-container {
    padding: 8px 12px;
  }
  
  /* Dropdown mobile accordion overrides */
  .accordion-trigger {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    font-weight: 500;
    color: #1c1c1a;
    cursor: pointer;
    background: transparent;
    width: 100%;
    margin-bottom: 4px;
    border: none;
  }
  .accordion-trigger[aria-expanded="true"] .accordion-arrow {
    transform: rotate(180deg);
  }
  .accordion-trigger[aria-expanded="false"] + .accordion-content {
    display: none;
  }
  .dropdown-divider {
    display: block !important;
    height: 1px;
    background: rgba(194, 164, 140, 0.35);
    margin: 4px 12px;
  }
}

/* Extra Small Phones (iPhone SE, Galaxy Fold, etc.) Optimization */
@media (max-width: 380px) {
  .nav-desktop {
    gap: 2px !important; /* Reduce gap significantly so longer words fit */
  }
  
  .nav-link {
    font-size: 14px !important; /* Scale down so links don't wrap out of the pill container */
    padding: 6px 6px !important; /* Minimal padding for ultra small screens */
  }
  
  .nav-link:hover, .nav-link[aria-current="page"] {
    font-size: 13px !important;
    padding: 6px 6px !important;
  }
  
  #nav-about-dropdown {
    min-width: 110px !important;
  }
  
  .navbar .container {
    padding: 4px 6px 4px 8px; /* Tighter container padding for narrow screens */
  }
  
  /* Ensure name and logo shrink on extremely small screens */
  .nav-title {
    font-size: 16px !important;
  }
  .nav-logo {
    height: 38px !important;
    width: 38px !important;
  }
}

.nav-spacer {
  height: 72px;
}

/* Hide mobile-only elements on Desktop */
@media (min-width: 769px) {
  .nav-spacer {
    height: 72px;
  }
  
  .mobile-text,
  .mobile-only-dropdown-item {
    display: none !important;
  }
}

/* Removed Fullscreen Mobile Overlay CSS */

/* ==========================================
   RESUME PASSWORD MODAL
   ========================================== */
.resume-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(254, 252, 248, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  padding: 20px;
}

.resume-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.resume-modal-content {
  background: #FEFCF8;
  border: 1px solid rgba(194, 164, 140, 0.3);
  border-radius: 24px;
  padding: 40px;
  max-width: 480px;
  width: 100%;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  position: relative;
  box-shadow: 0 32px 64px rgba(9, 13, 26, 0.12), inset 0 1px 2px rgba(255, 255, 255, 0.8);
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.resume-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #555;
  padding: 4px;
  transition: color 0.2s;
}

.resume-modal-close:hover {
  color: #111;
}

.resume-modal-header h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 28px;
  color: #1c1c1a;
  margin-bottom: 24px;
}

.resume-modal-reason {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #4a4a48;
  line-height: 1.5;
  margin-top: 16px;
  margin-bottom: 0;
}

.password-input-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.password-input-group input {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid rgba(194, 164, 140, 0.5);
  border-radius: 14px;
  padding: 16px 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  color: #111;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.password-input-group input:focus {
  border-color: #FF5A36;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 90, 54, 0.1);
}

.nav-btn-primary {
  background: #c2a48c;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0 24px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.nav-btn-primary:hover {
  background: #b09179;
  transform: translateY(-2px);
}

.resume-modal-footer {
  text-align: left;
}

.resume-modal-footer h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #666;
  margin-bottom: 12px;
}

.btn-modal-gray {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid rgba(194, 164, 140, 0.3);
  color: #333;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 12px;
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 2px 8px rgba(9, 13, 26, 0.05);
}

.btn-modal-gray:hover {
  background: #e9ecef;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(9, 13, 26, 0.1);
}

@media (max-width: 480px) {
  .resume-modal-content {
    padding: 24px;
  }
  .password-input-group {
    flex-direction: column;
  }
  .nav-btn-primary {
    padding: 14px 24px;
  }
}/* Video Hero Section */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh; /* Safari mobile viewport fix */
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: left;
  overflow: hidden;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background-color: #0b101e; /* Fallback for slow connections */
}

.hero-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(14, 21, 40, 0.6);
  background: linear-gradient(135deg, rgba(22, 32, 59, 0.75) 0%, rgba(5, 7, 15, 0.7) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  width: 100%;
  padding: 0 2rem;
  margin-top: 60px;
  animation: fadeInUp 1s ease;
}

.font-cursive {
  font-family: 'Playwrite DK Uloopet', cursive;
  font-weight: 400;
  display: inline-block;
  transition: opacity 0.4s ease, transform 0.4s ease;
  min-width: 1.5em; /* Helps prevent text jumping */
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 300;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  max-width: 800px;
}

.hero-name {
  font-weight: 300;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  background-color: var(--white);
  margin-left: 6px;
  vertical-align: middle;
  animation: blinkCursor 1s step-end infinite;
  opacity: 0.8;
}

.typing-cursor.active-typing {
  animation: none;
  background-color: var(--white);
  opacity: 1;
}

@keyframes blinkCursor {
  from, to { background-color: transparent }
  50% { background-color: var(--white) }
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--tan);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  max-width: 800px;
}

.hero-paragraph {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  opacity: 0.95;
  margin-bottom: 2.5rem;
  max-width: 800px;
}

.tagline-cursive {
  font-family: 'Playwrite DK Uloopet', cursive;
  font-weight: 400;
  text-transform: none;
  font-size: 0.92em;
}

.tagline-bold {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-start;
}

@media (max-width: 600px) {
  .hero-content {
    margin-top: -20px; /* Reduced upward push for a more naturally centered look */
  }
  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    width: 100%;
  }
  .hero-ctas .btn {
    width: 165px;
    max-width: 100%;
    min-width: 0;
    height: auto;
    min-height: 70px;
    padding: 14px 28px;
    text-align: left;
    justify-content: flex-start;
    text-transform: none; /* Disable all caps */
    letter-spacing: 0.5px; /* Natural spacing for sentence case */
    font-size: 1.05rem;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    line-height: 1.25;
    border-radius: 24px;
    flex-shrink: 0;
  }
  #hero-btn-about {
    display: none !important;
  }
}

.skills-banner-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  background: rgba(14, 21, 40, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.2rem 0;
  z-index: 3;
}

.skills-banner-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: scrollBanner 40s linear infinite;
  will-change: transform;
  transform: translateZ(0); /* Hardware acceleration */
}

.skills-banner-track:hover {
  animation-play-state: paused;
}

.banner-item {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 1px;
  white-space: nowrap;
}

.banner-separator {
  color: var(--tan);
  margin: 0 2.5rem;
  font-size: 1.5rem;
  line-height: 1;
}

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


.hero-scroll-indicator {
  position: absolute;
  bottom: 6.5rem;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  z-index: 3;
  cursor: pointer;
  animation: bounce 2s infinite;
  will-change: transform;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-scroll-indicator .scroll-text {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  text-transform: none;
  letter-spacing: 0.5px;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.hero-scroll-indicator:hover .scroll-text {
  opacity: 1;
}

@media (max-width: 600px) {
  .hero-scroll-indicator {
    bottom: 5.2rem;
    left: 2rem; /* Align with hero content left padding */
    margin-left: 75px; /* Shift to the center of the 150px wide CTA button */
    /* transform: translateX(-50%) remains active from base class to perfectly center on this point */
  }
}

.hero-scroll-indicator svg {
  fill: var(--white);
  width: 36px;
  height: 36px;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.hero-scroll-indicator:hover svg {
  opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translate3d(-50%, 0, 0);
  }
  40% {
    transform: translate3d(-50%, -10px, 0);
  }
  60% {
    transform: translate3d(-50%, -5px, 0);
  }
}

/* Profile Section */
.profile-section {
  background-color: #1C253D;
  color: var(--white);
  padding: 2.5rem 0;
  text-align: left;
}

.profile-content {
  max-width: 760px;
  margin: 0 auto;
}

.profile-role {
  font-size: 1.5rem;
  color: #FF5A36;
  font-family: 'Playwrite DK Uloopet', cursive;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 0.75rem;
}

.profile-description {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  opacity: 0.95;
  margin-bottom: 1.25rem;
  color: #FFFFFF;
}

.profile-carousel-wrapper {
  position: relative;
  width: 100%;
}

.profile-text-stack {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.crossfade-slide {
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), filter 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  transform: translateY(12px);
  filter: blur(4px);
  margin-bottom: 0;
}

.crossfade-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  filter: blur(0);
}

#typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1.1em;
  background-color: var(--primary);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blinkCursor 1s step-end infinite;
  transition: opacity 0.4s ease;
}

#typewriter-cursor.finished {
  opacity: 0;
  animation: none;
}

/* Custom visual progress bar */
.slider-progress-container {
  display: flex;
  justify-content: flex-start;
  margin-top: 2rem;
}

.slider-progress-track {
  width: 100px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.3s ease;
}

.slider-progress-track:hover {
  background: rgba(255, 255, 255, 0.35);
}

.slider-progress-thumb {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%; /* Since there are 2 paragraphs */
  background: #FF5A36;
  border-radius: 4px;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.profile-description strong {
  font-weight: 600;
  color: var(--navy-dark);
}

.profile-subtext {
  font-size: 1.1rem;
  opacity: 0.8;
  line-height: 1.8;
  font-weight: 400;
  color: var(--dark-base);
}

/* Impacted Organizations Infinite Marquee */
.org-marquee-container {
  width: 100%;
  overflow: hidden;
  background: transparent;
  padding: 0 0 1.5rem 0;
  position: relative;
}

.org-marquee-container::before,
.org-marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.org-marquee-container::before {
  left: 0;
  background: linear-gradient(to right, #ffffff 0%, rgba(255,255,255,0) 100%);
}

.org-marquee-container::after {
  right: 0;
  background: linear-gradient(to left, #ffffff 0%, rgba(255,255,255,0) 100%);
}

.org-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: scrollMarquee 35s linear infinite;
  will-change: transform;
}

.org-logo-wrapper {
  height: 65px;
  width: auto;
  min-width: 120px;
  max-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 1.25rem;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease, filter 0.4s ease;
  opacity: 0.5;
  filter: grayscale(100%);
  cursor: pointer;
}

.org-logo-wrapper:hover {
  transform: scale(1.08);
  opacity: 1;
  filter: grayscale(0%);
}

.org-logo {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

@keyframes scrollMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .org-logo-wrapper {
    width: auto;
    min-width: 100px;
    max-width: 150px;
    height: 50px;
    margin: 0 1.5rem;
    padding: 0;
  }
  .org-logo-wrapper.mobile-center-focus {
    opacity: 1 !important;
    filter: grayscale(0%) !important;
    transform: scale(1.1);
  }
  .org-marquee-container::before,
  .org-marquee-container::after {
    width: 60px;
  }
}

/* Expertise Marquee Section */
.expertise-marquee-section {
  padding: 2rem 0 1.5rem 0;
  overflow: hidden;
  position: relative;
}

.expertise-marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
}

.expertise-marquee-container::before,
.expertise-marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.expertise-marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--cream), rgba(253, 251, 247, 0));
}

.expertise-marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--cream), rgba(253, 251, 247, 0));
}

.expertise-marquee-track {
  display: flex;
  white-space: nowrap;
  animation: scrollTextMarquee 45s linear infinite;
  align-items: center;
}

.expertise-marquee-item {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #333333;
  padding: 0 2rem;
  display: inline-flex;
  align-items: center;
}

.expertise-marquee-item::after {
  content: '•';
  margin-left: 4rem;
  color: rgba(0, 0, 0, 0.2);
  font-size: 1.5rem;
}

@keyframes scrollTextMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
/* Experience & Education Section */
.education-section {
  background-color: var(--cream);
  padding: 7rem 0;
}

/* Dark Mode Experience Section */
.experience-section.dark-mode-profile,
.education-section.dark-mode-profile {
  background-color: #1C253D;
  color: var(--white);
  padding: 2.5rem 0;
}

/* LinkedIn Style Timeline */
.linkedin-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1rem;
}

.linkedin-timeline-item {
  display: flex;
  gap: 1.25rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.linkedin-timeline-item:not(:last-child) {
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.linkedin-timeline-item.scrolled {
  opacity: 1;
  transform: translateY(0);
}

.linkedin-timeline-logo {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background-color: var(--white);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.linkedin-timeline-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.linkedin-timeline-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.linkedin-timeline-role {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.linkedin-timeline-company {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.15rem;
}

.linkedin-timeline-meta {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.linkedin-timeline-desc {
  font-size: 1.2rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--white);
  margin: 0;
}

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

@media (max-width: 900px) {
  .experience-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.column-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--navy);
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.column-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary);
}

/* Timeline Cards */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-item {
  position: relative;
  padding-left: 2.2rem;
  border-left: 2px solid var(--gray-med);
  padding-bottom: 2rem;
  transition: border-color 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
  opacity: 0;
  transform: translateY(30px);
}

.timeline-item.scrolled {
  opacity: 1;
  transform: translateY(0);
}

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

.timeline-item:hover,
.timeline-item.scrolled {
  border-left-color: var(--primary);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--white);
  border: 3px solid var(--gray-med);
  transition: var(--transition);
  z-index: 2;
}

.timeline-item:hover::before {
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 90, 54, 0.2);
  transform: scale(1.15);
}

.timeline-header {
  margin-bottom: 0.8rem;
}

.timeline-title {
  font-size: 1.3rem;
  color: var(--navy);
  font-weight: 700;
  transition: var(--transition);
}

.timeline-item:hover .timeline-title {
  color: var(--primary);
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--gray-dark);
  font-weight: 600;
  margin-top: 0.3rem;
}

.timeline-company {
  color: var(--primary);
  font-weight: 700;
}

.timeline-text {
  font-size: 1rem;
  color: rgba(35, 35, 35, 0.8);
  font-weight: 400;
}

/* Expertise Tabs Section */
.expertise-section {
  background-color: var(--cream);
  padding: 0 0 7rem 0; /* Align with experience color */
}

.tabs-container {
  background: rgba(255, 255, 255, 0.45); /* Apple-like light glass */
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.6); /* Vibrant glass glare */
  border-radius: 20px; /* Squircle border radius */
  box-shadow: 0 12px 40px rgba(14, 21, 40, 0.04), var(--shadow);
  padding: 3rem;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  border-bottom: 2px solid var(--gray-light);
  margin-bottom: 3rem;
}

.tab-btn {
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-dark);
  padding: 1rem 2rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.tab-btn::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--dark-base);
}

.tab-btn.active {
  color: var(--primary);
}

.tab-btn.active::after {
  transform: scaleX(1);
}

.tab-content {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tab-content.active {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  opacity: 1;
}

.expertise-card {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 2.2rem;
  background-color: var(--white);
  border: 1px solid var(--gray-med);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.expertise-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 15px 35px rgba(255, 90, 54, 0.08);
}

.expertise-icon-wrapper {
  color: var(--primary);
  font-size: 2.5rem;
  line-height: 1;
}

.expertise-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

@media (max-width: 768px) {
  .tabs-container {
    padding: 1.5rem;
  }
  .tab-buttons {
    flex-direction: column;
    gap: 0;
  }
  .tab-btn {
    width: 100%;
    text-align: center;
    padding: 0.8rem;
    font-size: 1.1rem;
  }
}

/* Footer Section */
.footer {
  background-color: rgba(14, 21, 40, 0.85); /* fallback */
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.footer .container {
  position: relative;
  z-index: 1;
}

/* Footer Video Background Styles */
.footer-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit; /* Inherit the 12px radius */
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* Force Safari corner clipping */
}

.footer-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 21, 40, 0.65); /* Dark navy overlay on the video */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}.footer-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .footer-top-row {
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
  }
}

.footer-logo-link {
  display: inline-block;
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.footer-logo-link:hover {
  opacity: 1;
}

.footer-logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.footer-nav-links {
  display: flex;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 768px) {
  .footer-nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
}

.footer-link {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #ffffff;
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-family: 'Poppins', sans-serif;
}

@media (max-width: 500px) {
  .footer-bottom-row {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
}

.copyright-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  font-weight: 400;
}

.footer-social {
  display: flex;
  align-items: center;
}

.social-icon-btn {
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.3s ease;
}

.social-icon-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.social-icon-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* Page Headers (Case Studies & Contact Pages) */
.page-header {
  background-color: var(--navy-light);
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 10rem 0 6rem 0;
  text-align: center;
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  margin-bottom: 0.8rem;
}

.page-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 300;
  opacity: 0.85;
  max-width: 700px;
  margin: 0 auto;
}

/* Portfolio Page styles */
.portfolio-section {
  padding: 6rem 0;
  background-color: var(--white);
}

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

@media (max-width: 992px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 650px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.portfolio-card {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  background-color: var(--gray-light);
  aspect-ratio: 1;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.portfolio-img-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.08);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(5, 7, 15, 0.96) 20%, rgba(5, 7, 15, 0.6) 65%, rgba(5, 7, 15, 0.15) 100%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem 2.2rem;
  color: var(--white);
  transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
  background: linear-gradient(to top, rgba(255, 90, 54, 0.96) 20%, rgba(255, 90, 54, 0.75) 65%, rgba(255, 90, 54, 0.25) 100%);
}

.portfolio-card-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  transform: translateY(20px);
  transition: var(--transition);
}

.portfolio-card-subtitle {
  font-size: 0.95rem;
  opacity: 0;
  margin-bottom: 1.8rem;
  line-height: 1.4;
  transform: translateY(20px);
  transition: var(--transition);
  transition-delay: 0.05s;
}

.portfolio-card-btn {
  align-self: flex-start;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--white);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  transition-delay: 0.1s;
}

.portfolio-card:hover .portfolio-card-title,
.portfolio-card:hover .portfolio-card-subtitle,
.portfolio-card:hover .portfolio-card-btn {
  transform: translateY(0);
}

.portfolio-card:hover .portfolio-card-subtitle {
  opacity: 0.9;
}

.portfolio-card:hover .portfolio-card-btn {
  opacity: 1;
  gap: 0.8rem;
}

.portfolio-card-btn svg {
  fill: currentColor;
  width: 14px;
  height: 14px;
}

/* Connect / Contact Page styles */
.connect-section {
  padding: 6rem 0;
  background-color: var(--cream);
}

.connect-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

@media (max-width: 992px) {
  .connect-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.info-card {
  display: flex;
  gap: 1.5rem;
}

.info-icon-wrapper {
  color: var(--primary);
  font-size: 1.8rem;
  flex-shrink: 0;
}

.info-icon-wrapper svg {
  fill: currentColor;
  width: 28px;
  height: 44px;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.info-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--navy);
}

.info-text {
  font-size: 1.05rem;
  color: rgba(35, 35, 35, 0.8);
}

.info-text a:hover {
  color: var(--primary);
}

/* Form and Map Grid */
.form-map-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  background: rgba(255, 255, 255, 0.45); /* Apple-like light glass */
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(14, 21, 40, 0.04), var(--shadow);
  padding: 3rem;
}

@media (max-width: 768px) {
  .form-map-grid {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
}

.map-wrapper {
  position: relative;
  width: 100%;
  min-height: 350px;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gray-med);
}

.map-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.form-group {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 1.1rem 1.3rem;
  border: 1.5px solid var(--gray-med);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 1rem;
  background-color: var(--white);
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 90, 54, 0.12);
}

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

.form-checkbox-label {
  display: flex;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--gray-dark);
  cursor: pointer;
  line-height: 1.4;
}

.form-checkbox-label input {
  margin-top: 3px;
}

.form-checkbox-label a {
  color: var(--primary);
  font-weight: 600;
}

.form-checkbox-label a:hover {
  text-decoration: underline;
}

.btn-form {
  width: 100%;
}

/* ==========================================
   PASSWORD PROTECTION GATE
   ========================================== */
.body-locked {
  overflow: hidden !important;
}

.shake {
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* ==========================================
   CASE STUDY NATIVE DETAIL PAGES
   ========================================== */
.case-study-hero {
  padding: 11rem 0 6rem 0;
  background-color: var(--navy-dark);
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-dark) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
}

.case-study-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 400;
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

.case-study-hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: var(--tan);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.case-study-body {
  background-color: var(--white);
  padding: 4rem 0 8rem 0;
}

.case-study-sections {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.case-study-img-sec {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0;
}

.case-study-img-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
}

.case-study-img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(5, 7, 15, 0.08);
  border: 1px solid var(--gray-med);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.case-study-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(5, 7, 15, 0.15);
}

/* ==========================================================================
   Conversational Chatbot Widget Styles
   ========================================================================== */

/* Fivepathways-style Floating Preview Card */
.chatbot-preview-card {
  position: fixed;
  right: 32px;
  bottom: 80px;
  width: 150px;
  height: auto; /* Dynamic height to wrap content with uniform padding */
  background: rgba(254, 252, 248, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(194, 164, 140, 0.25);
  border-radius: 20px;
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.6),
    0 10px 30px rgba(9, 13, 26, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Changed from space-between */
  padding: 12px 10px 8px 10px; /* Restored top padding */
  cursor: pointer;
  z-index: 9999;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease, border 0.4s ease;
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .chatbot-preview-card:hover {
    transform: translate3d(0, -6px, 0) scale(1.03);
    box-shadow: 
      inset 0 1px 3px rgba(255, 255, 255, 0.8),
      0 16px 40px rgba(9, 13, 26, 0.12);
    border: 1px solid rgba(194, 164, 140, 0.4);
  }
}

.chatbot-preview-card.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 20px, 0) scale(0.9);
  pointer-events: none;
}

/* Label and Bubble Swap container */
.preview-header-container {
  position: relative;
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: -10px; /* Reduced to bring avatar and label closer */
}

.preview-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  width: 100%;
}

.preview-label-small {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(28, 28, 26, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.preview-label-large {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #1c1c1a;
  line-height: 1.2;
}

/* Chat bubble inside preview card */
.preview-bubble {
  font-family: var(--font-sans);
  font-size: 0.82rem; /* Visually larger bubble text */
  font-weight: 600;
  color: #1c1c1a;
  text-align: center;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 10px 14px; /* Larger padding for a bigger bubble */
  line-height: 1.25;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  position: absolute;
  top: -6px; /* Shifted up slightly to accommodate larger size and clear head */
  left: 50%;
  transform: translateX(-50%) scale(0.85);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  z-index: 2;
}

.preview-bubble::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Hover Swap triggers */
@media (hover: hover) and (pointer: fine) {
  .chatbot-preview-card:hover .preview-label {
    opacity: 0;
    transform: translate3d(0, -10px, 0);
  }

  .chatbot-preview-card:hover .preview-bubble {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
  }
}

/* Waving avatar container & image inside preview card */
.preview-avatar-container {
  width: 130px;
  height: 132px; /* Increased to sit directly on CTA */
  margin-top: 0px;
  margin-bottom: -1px; /* Remove space between avatar container and Lets Chat CTA */
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0; /* Flat bottom corners to sit flush on the CTA button */
  animation: avatarBreath 4s infinite ease-in-out;
}

/* Base avatar state container styling */
.avatar-state {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.avatar-body {
  position: absolute;
  bottom: -10px; /* Shifted down by 10px to align the visual shirt border with container bottom */
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: 100%;
  object-fit: contain;
}

/* Arm placement and waving animation */
.avatar-arm {
  position: absolute;
  bottom: -10px; /* Shifted down by 10px to match body alignment */
  left: 50%;
  width: auto;
  height: 100%;
  object-fit: contain;
  transform-origin: 22.4% 70%; /* Correct shoulder joint pivot on the seam line */
  animation: armWave 1.4s infinite cubic-bezier(0.37, 0, 0.63, 1);
}

/* Musical notes placement & animation */
.notes-container {
  position: absolute;
  top: 45px;
  left: 65px;
  width: 20px;
  height: 30px;
  pointer-events: none;
}

.note {
  position: absolute;
  font-family: var(--font-sans);
  font-weight: 700;
  color: rgba(28, 28, 26, 0.6); /* Softened from #1c1c1a for a dreamier look */
  opacity: 0;
  transform-origin: bottom center;
  user-select: none;
  pointer-events: none;
}

.note1 {
  font-size: 1.1rem;
  animation: floatNote1 2.2s infinite ease-in-out;
  animation-delay: 0s;
}

.note2 {
  font-size: 0.85rem;
  animation: floatNote2 2.2s infinite ease-in-out;
  animation-delay: 0.7s;
}

.note3 {
  font-size: 0.65rem;
  animation: floatNote3 2.2s infinite ease-in-out;
  animation-delay: 1.4s;
}

/* Lightbulb placement & animations */
.lightbulb-container {
  position: absolute;
  top: 6px;
  right: 28px;
  width: 28px;
  height: 28px;
  pointer-events: none;
  transform-origin: bottom center;
  animation: lightbulbCycle 12s infinite ease-in-out; /* Synced with 12s loop */
}

.lightbulb-svg {
  width: 100%;
  height: 100%;
  animation: bulbGlow 1.5s infinite ease-in-out alternate;
}

/* Sparkle placement & animation */
.sparkle-container {
  position: absolute;
  top: 35px;
  left: 10px;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.sparkle-svg {
  width: 100%;
  height: 100%;
  animation: sparkleTwinkle 1.4s infinite ease-in-out;
}

/* State-level cycling (12s loop for 4 states: snoring/sleep -> smile/think -> chin-touch think -> wave) */
.avatar-state.whistle {
  animation: cycleWhistle 12s infinite ease-in-out;
  transition: opacity 0.3s ease-in-out;
}

.avatar-state.whistle .avatar-body {
  animation: sleepBreath 3s infinite ease-in-out; /* Sleeping breath vertical scale */
}

.avatar-state.smile {
  animation: cycleSmile 12s infinite ease-in-out;
  transition: opacity 0.3s ease-in-out;
}

.avatar-state.thinking {
  animation: cycleThinking 12s infinite ease-in-out;
  transition: opacity 0.3s ease-in-out;
}

.avatar-state.wave {
  animation: cycleWave 12s infinite ease-in-out;
  transition: opacity 0.3s ease-in-out;
}

/* New thinking state float dots (? marks) styling */
.thinking-dots-container {
  position: absolute;
  top: 40px;
  right: 25px;
  width: 20px;
  height: 30px;
  pointer-events: none;
}

.think-dot {
  position: absolute;
  font-family: var(--font-sans);
  font-weight: 700;
  color: #1c1c1a;
  opacity: 0;
  transform-origin: bottom center;
  user-select: none;
  pointer-events: none;
}

.think-dot.dot1 {
  font-size: 1.2rem;
  animation: floatNote1 2.2s infinite ease-in-out;
  animation-delay: 0.2s;
}

.think-dot.dot2 {
  font-size: 0.9rem;
  animation: floatNote2 2.2s infinite ease-in-out;
  animation-delay: 0.9s;
}

.think-dot.dot3 {
  font-size: 0.7rem;
  animation: floatNote3 2.2s infinite ease-in-out;
  animation-delay: 1.6s;
}

/* Thumbs Up Hover State Styling */
.avatar-state.thumbsup {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.thumbsup-sparkle-container {
  position: absolute;
  top: 40px;
  left: 20px;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

/* When hover-cta is active on the preview card, show thumbsup and hide other cycling states */
.chatbot-preview-card.hover-cta .avatar-state.thumbsup {
  opacity: 1;
}

.chatbot-preview-card.hover-cta .avatar-state:not(.thumbsup) {
  opacity: 0 !important;
  animation: none !important;
}

/* Keyframes - Cycling */
@keyframes cycleWhistle {
  0%, 22.5% { opacity: 1; }
  25%, 100% { opacity: 0; }
}

@keyframes cycleSmile {
  0%, 25% { opacity: 0; }
  27.5%, 47.5% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes cycleThinking {
  0%, 50% { opacity: 0; }
  52.5%, 72.5% { opacity: 1; }
  75%, 100% { opacity: 0; }
}

@keyframes cycleWave {
  0%, 75% { opacity: 0; }
  77.5%, 97.5% { opacity: 1; }
  100% { opacity: 0; }
}

/* Keyframes - Arm Waving (swings naturally on X axis center-offset with translation to close joint) */
@keyframes armWave {
  0%, 100% {
    transform: translateX(-50%) translateX(1px) rotate(-4deg);
  }
  50% {
    transform: translateX(-50%) rotate(4deg);
  }
}

/* Keyframes - Notes Floating */
@keyframes floatNote1 {
  0% {
    transform: translate(0, 15px) scale(0.5) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  100% {
    transform: translate(-15px, -20px) scale(1) rotate(-15deg);
    opacity: 0;
  }
}

@keyframes floatNote2 {
  0% {
    transform: translate(5px, 15px) scale(0.5) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  100% {
    transform: translate(0px, -28px) scale(1) rotate(15deg);
    opacity: 0;
  }
}

@keyframes floatNote3 {
  0% {
    transform: translate(-5px, 15px) scale(0.5) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  100% {
    transform: translate(-8px, -24px) scale(0.9) rotate(-10deg);
    opacity: 0;
  }
}

/* Keyframes - Lightbulb Cycle (pop-in sync'd with thinking state) */
@keyframes lightbulbCycle {
  0%, 27.5% {
    transform: scale(0);
    opacity: 0;
  }
  30% {
    transform: scale(1.3);
    opacity: 1;
  }
  33% {
    transform: scale(1);
    opacity: 1;
  }
  44% {
    transform: scale(1);
    opacity: 1;
  }
  47.5%, 100% {
    transform: scale(0);
    opacity: 0;
  }
}

/* Keyframes - Sleep Breathing vertical expand/contract */
@keyframes sleepBreath {
  0%, 100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.025) translateY(-1.5px);
  }
}

/* Keyframes - Avatar Breath (breathing animation for live video look) */
@keyframes avatarBreath {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.01);
  }
}

@keyframes bulbGlow {
  0%, 100% {
    filter: drop-shadow(0 0 2px rgba(253, 224, 71, 0.3));
    opacity: 0.8;
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(253, 224, 71, 0.8));
    opacity: 1;
  }
}

/* Keyframes - Sparkle */
@keyframes sparkleTwinkle {
  0%, 100% {
    transform: scale(0.5) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1) rotate(180deg);
    opacity: 1;
  }
}

/* Collapsed CTA (Small State) */
.chatbot-collapsed-cta {
  position: fixed;
  right: 32px;
  bottom: 32px;
  background: rgba(254, 252, 248, 0.92);
  border: 1px solid rgba(194, 164, 140, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 30px;
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: #1c1c1a;
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.6),
    0 10px 30px rgba(9, 13, 26, 0.08);
  cursor: pointer;
  z-index: 9999;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease,
              border 0.3s ease,
              color 0.3s ease,
              box-shadow 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .chatbot-collapsed-cta:hover {
    transform: translate3d(0, -4px, 0) scale(1.03);
    box-shadow: 
      inset 0 1px 3px rgba(255, 255, 255, 0.8),
      0 16px 40px rgba(9, 13, 26, 0.12);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(194, 164, 140, 0.4);
    color: #1c1c1a;
  }
}

.chatbot-collapsed-cta.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 20px, 0) scale(0.9);
  pointer-events: none;
}

/* Let's Chat button inside preview card */
.preview-footer {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: #1c1c1a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 100%;
  text-align: center;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(194, 164, 140, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.6),
    0 2px 8px rgba(9, 13, 26, 0.04);
  border-radius: 15px;
  padding: 6px 0;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (hover: hover) and (pointer: fine) {
  .chatbot-preview-card:hover .preview-footer {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(194, 164, 140, 0.45);
    color: #1c1c1a;
    box-shadow: 
      inset 0 1px 3px rgba(255, 255, 255, 0.8),
      0 4px 12px rgba(9, 13, 26, 0.08);
  }
}

/* Chatbot Overlay & Body State */
.chatbot-backdrop-overlay {
  position: fixed;
  inset: 0;
  z-index: 100001;
  background: rgba(9, 13, 26, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.chatbot-backdrop-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.chatbot-open {
  overflow: hidden;
}

/* Chat Window Panel - Frosted Cream Liquid Glass */
.chatbot-panel {
  position: fixed;
  right: 32px;
  bottom: 80px;
  width: 380px;
  height: 580px;
  border-radius: 24px;
  background: rgba(254, 252, 248, 0.92); 
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(194, 164, 140, 0.25);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.6),
    0 15px 45px rgba(9, 13, 26, 0.12);
  z-index: 100002;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
  transform: translate3d(0, 30px, 0) scale(0.95);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.chatbot-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
}

/* Header with Glassmorphism */
.chatbot-header {
  height: 105px;
  min-height: 105px;
  flex-shrink: 0;
  background: linear-gradient(to right, rgba(254, 252, 248, 0.4), rgba(254, 252, 248, 0.95));
  border-bottom: 1px solid rgba(194, 164, 140, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: visible;
  padding: 0;
}

.chatbot-header-avatar {
  width: 95px;
  height: 95px;
  position: absolute;
  bottom: 0;
  left: 10px;
  overflow: visible;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.chatbot-online-indicator {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
  animation: statusPulse 2.5s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes statusPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.chatbot-header-avatar-img {
  width: auto;
  height: 100%;
  object-fit: contain;
  transform-origin: bottom center;
  animation: headNod 3.5s infinite ease-in-out;
}

@keyframes headNod {
  0%, 100% {
    transform: scale(1) translateY(0) rotate(0deg);
  }
  50% {
    transform: scale(1.02) translateY(2px) rotate(1deg);
  }
}

.chatbot-header-text-container {
  display: flex;
  flex-direction: column;
  margin-left: 120px;
  justify-content: center;
}

.chatbot-header-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1c1c1a;
  user-select: none;
  line-height: 1.2;
}

.chatbot-header-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.chatbot-status-text {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: rgba(28, 28, 26, 0.65);
  font-weight: 500;
}

.chatbot-header-ask {
  font-family: 'Playwrite DK Uloopet', cursive;
  font-weight: 400;
  font-size: 1.65rem;
  background: linear-gradient(to right, #FF5A36, #E04322);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 4px;
  letter-spacing: -0.5px;
}

.chatbot-close {
  background: transparent;
  border: none;
  color: #1c1c1a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: all 0.3s ease;
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
}

.chatbot-close:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Chat Body (Message Area) */
.chatbot-body {
  flex-grow: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
  background: rgba(255, 255, 255, 0.12); /* Extremely subtle tint overlay */
}

/* Custom Scrollbar for Messages */
.chatbot-body::-webkit-scrollbar {
  width: 5px;
}

.chatbot-body::-webkit-scrollbar-track {
  background: transparent;
}

.chatbot-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 10px;
}

/* Messages */
.chat-msg {
  max-width: 92%;
  display: flex;
  animation: msgFadeIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
  transform: translateY(6px);
}

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

.chat-msg.bot {
  align-self: flex-start;
}

.chat-msg.user {
  align-self: flex-end;
}

.chat-msg-content-wrapper {
  display: flex;
  flex-direction: column;
}

.chat-msg-bubble {
  padding: 10px 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  border: 1px solid transparent;
  font-family: var(--font-sans);
}

.chat-msg.bot .chat-msg-bubble {
  background: rgba(254, 252, 248, 0.85);
  border: 1px solid rgba(194, 164, 140, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 4px 18px 18px 18px;
  color: #1c1c1a;
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.7),
    0 4px 12px rgba(9, 13, 26, 0.05);
}

.chat-msg.user .chat-msg-bubble {
  background: linear-gradient(to bottom, rgba(255, 90, 54, 0.85) 0%, rgba(255, 74, 38, 0.90) 100%);
  border: 1px solid rgba(255, 90, 54, 0.80);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 18px 4px 18px 18px;
  color: var(--white);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.5),
    inset 0 -1px 2px rgba(0, 0, 0, 0.2),
    0 4px 15px rgba(255, 90, 54, 0.25);
}

.chat-msg-bubble a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.chat-msg.user .chat-msg-bubble a {
  color: var(--white);
}

.chat-msg-bubble a:hover {
  opacity: 0.8;
}

.chat-msg-time {
  font-size: 0.65rem;
  color: rgba(28, 28, 26, 0.5);
  margin-top: 4px;
  padding: 0 4px;
}

.chat-msg.user .chat-msg-time {
  align-self: flex-end;
}

/* Quick Reply Chips */
.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  align-self: flex-start;
  max-width: 95%;
  margin-left: 42px;
  animation: msgFadeIn 0.4s ease forwards;
}

.quick-reply-chip {
  padding: 8px 14px;
  background: rgba(254, 252, 248, 0.75);
  border: 1px solid rgba(194, 164, 140, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.6),
    0 4px 12px rgba(9, 13, 26, 0.05);
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: #1c1c1a;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.quick-reply-chip:hover {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(194, 164, 140, 0.5);
  color: #1c1c1a;
  transform: translateY(-2px);
  box-shadow: 
    inset 0 1px 3px rgba(255, 255, 255, 0.8),
    0 6px 16px rgba(9, 13, 26, 0.08);
}

/* Typing Indicator Animation */
.typing-dots-bubble {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px 18px 18px 18px;
  width: 54px;
  height: 38px;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(28, 28, 26, 0.6);
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Branded Footer (replaces text input — bubble-only chatbot) */
.chatbot-footer-brand {
  padding: 0.7rem 1.25rem;
  border-top: 1px solid rgba(194, 164, 140, 0.25);
  background: transparent;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: rgba(28, 28, 26, 0.4);
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  user-select: none;
}

.chatbot-footer-lock {
  display: flex;
  align-items: center;
  color: rgba(28, 28, 26, 0.3);
}

/* Selected quick reply chip state */
.quick-reply-chip.selected {
  background: linear-gradient(to bottom, rgba(255, 90, 54, 0.85) 0%, rgba(255, 74, 38, 0.90) 100%);
  border: 1px solid rgba(255, 90, 54, 0.80);
  color: var(--white);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.5),
    inset 0 -1px 2px rgba(0, 0, 0, 0.2),
    0 4px 15px rgba(255, 90, 54, 0.35);
  transform: translateY(-2px);
}


/* Responsive Mobile Adjustments */
@media (max-width: 768px) {
  .chatbot-panel {
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }
  .chatbot-panel.active {
    transform: translate3d(0, 0, 0) scale(1);
  }
  .chatbot-header {
    padding-top: env(safe-area-inset-top, 0px);
  }
  .chatbot-preview-card {
    right: 16px;
    bottom: 80px;
  }
}

/* Splash Screen Intro Animation */
#splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: auto;
}

#splash-overlay.fade-out-bg {
  opacity: 0;
  pointer-events: none;
}

#splash-background-mask {
  position: absolute;
  inset: 0;
  /* background-color: #000000; */
  /* Apply mask immediately, but make the hole 0px (invisible initially) */
  -webkit-mask-image: url('../images/logo-full-new.svg'), linear-gradient(black, black);
  -webkit-mask-position: center, center;
  -webkit-mask-repeat: no-repeat, no-repeat;
  -webkit-mask-composite: destination-out;
  -webkit-mask-size: 0px, 100%;
  
  mask-image: url('../images/logo-full-new.svg'), linear-gradient(black, black);
  mask-position: center, center;
  mask-repeat: no-repeat, no-repeat;
  mask-composite: exclude;
  mask-size: 0px, 100%;
}

.splash-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

/* ─── Chatbot Contact Form ─── */
.chatbot-contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
  background: rgba(254, 252, 248, 0.5);
  padding: 15px;
  border-radius: 12px;
  border: 1px solid rgba(194, 164, 140, 0.3);
}

.chatbot-contact-form input,
.chatbot-contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(194, 164, 140, 0.5);
  background: #FEFCF8;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: #1c1c1a;
  outline: none;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.chatbot-contact-form input:focus,
.chatbot-contact-form textarea:focus {
  border-color: #FF5A36;
}

.chatbot-contact-form textarea {
  resize: vertical;
  min-height: 80px;
}

.chatbot-contact-form button {
  background: linear-gradient(to bottom, rgba(255, 110, 77, 0.90) 0%, rgba(255, 90, 54, 0.95) 100%);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chatbot-contact-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (hover: hover) and (pointer: fine) {
  .chatbot-contact-form button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 90, 54, 0.3);
  }
}

.chatbot-contact-success {
  color: #22c55e;
  font-weight: 600;
  margin-top: 5px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}/* When zoomed, smoothly expand the hole mask */
#splash-overlay.zoomed #splash-background-mask {
  -webkit-mask-size: 4000px, 100%;
  mask-size: 4000px, 100%;
  transition: -webkit-mask-size 1.6s cubic-bezier(0.9, 0, 0.1, 1), 
              mask-size 1.6s cubic-bezier(0.9, 0, 0.1, 1);
}

/* Logo container transitions matching the mask zoom */
#splash-logo-halves {
  position: absolute;
  inset: 0;
  transform: scale(1);
  transform-origin: center;
  filter: brightness(1) drop-shadow(0 0 0 rgba(255,255,255,0));
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
              filter 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

#splash-overlay.anticipate #splash-logo-halves {
  transform: scale(0.85);
  filter: brightness(1.3) drop-shadow(0 0 10px rgba(255,255,255,0.2));
}

#splash-overlay.zoomed #splash-logo-halves {
  transform: scale(33.333);
  opacity: 0;
  filter: brightness(20) drop-shadow(0 0 40px rgba(255,255,255,1));
  transition: transform 1.6s cubic-bezier(0.9, 0, 0.1, 1), 
              opacity 0.8s cubic-bezier(0.9, 0, 0.1, 1),
              filter 0.4s ease-out;
}

/* Sliding logo halves */
.logo-half-img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  margin-left: -60px;
  margin-top: -60px;
  opacity: 0;
}

.logo-half-img.top-left {
  transform: translate(-60vw, -60vh) rotate(-45deg) scale(0.5);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-half-img.bottom-right {
  transform: translate(60vw, 60vh) rotate(45deg) scale(0.5);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#splash-overlay.merged .logo-half-img {
  transform: translate(0, 0) rotate(0deg) scale(1);
  opacity: 1;
}

/* Responsive Logo Sizes */
@media (max-width: 480px) {
  .logo-half-img {
    width: 90px;
    height: 90px;
    margin-left: -45px;
    margin-top: -45px;
  }
}
/* Navbar logo transition */
.nav-logo {
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .nav-brand:hover .nav-logo {
    transform: rotate(360deg);
  }
}

/* Figma custom cursor for all pages (default select pointer) */
html, body {
  cursor: url('../images/figma-cursor-default.svg?v=4.0') 4 4, auto;
}

/* On case study pages, hide native cursor — JS collaborative cursor takes over */
html.figma-cursor-page,
html.figma-cursor-page body,
body.figma-cursor-page {
  cursor: none;
}

/* Restore native cursors on interactive elements inside case study pages */
.figma-cursor-page a,
.figma-cursor-page button,
.figma-cursor-page [role="button"],
.figma-cursor-page .nav-burger,
.figma-cursor-page .chatbot-fab,
.figma-cursor-page .gate-submit-btn {
  cursor: pointer !important;
}

.figma-cursor-page input,
.figma-cursor-page textarea,
.figma-cursor-page select {
  cursor: auto !important;
}

/* Force text elements to inherit the Figma cursor instead of showing browser text I-beam selection cursor */
p, span, h1, h2, h3, h4, h5, h6, li, label, strong, em {
  cursor: inherit;
}

/* Excited Wave & Bounce State Overrides (Card Hovered) */
@media (hover: hover) and (pointer: fine) {
  .chatbot-preview-card:not(.hover-cta):hover .avatar-state.wave {
    opacity: 1 !important;
    animation: none !important;
  }

  .chatbot-preview-card:not(.hover-cta):hover .avatar-state:not(.wave) {
    opacity: 0 !important;
    animation: none !important;
  }

  .chatbot-preview-card:not(.hover-cta):hover .avatar-arm {
    animation: armWaveExcited 0.6s infinite ease-in-out;
  }

  .chatbot-preview-card:not(.hover-cta):hover .preview-avatar-container {
    animation: avatarBounceExcited 0.5s infinite ease-in-out;
  }
}

/* Keyframes for excited motions */
@keyframes armWaveExcited {
  0%, 100% {
    transform: translateX(-50%) translateX(3px) rotate(-12deg);
  }
  50% {
    transform: translateX(-50%) rotate(8deg);
  }
}

@keyframes avatarBounceExcited {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) scale(1.03) rotate(2deg);
  }
}

/* Hide chatbot widget completely when mobile overlay menu is active/open */
.nav-mobile-overlay.active ~ #chatbot-widget-container,
.navbar.menu-open ~ #chatbot-widget-container {
  display: none !important;
}

/* ─── Chatbot Contact Form ─── */
.chatbot-contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
  background: rgba(254, 252, 248, 0.5);
  padding: 15px;
  border-radius: 12px;
  border: 1px solid rgba(194, 164, 140, 0.3);
}

.chatbot-contact-form input,
.chatbot-contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(194, 164, 140, 0.5);
  background: #FEFCF8;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: #1c1c1a;
  outline: none;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.chatbot-contact-form input:focus,
.chatbot-contact-form textarea:focus {
  border-color: #FF5A36;
}

.chatbot-contact-form textarea {
  resize: vertical;
  min-height: 80px;
}

.chatbot-contact-form button {
  background: linear-gradient(to bottom, rgba(255, 110, 77, 0.90) 0%, rgba(255, 90, 54, 0.95) 100%);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chatbot-contact-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (hover: hover) and (pointer: fine) {
  .chatbot-contact-form button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 90, 54, 0.3);
  }
}

.chatbot-contact-success {
  color: #22c55e;
  font-weight: 600;
  margin-top: 5px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}



/* Gate Blurring CSS */
.content-blurred {
  filter: blur(40px) opacity(0.2);
  pointer-events: none;
  user-select: none;
}
.body-locked {
  overflow: hidden !important;
}

/* ==========================================================================
   Premium Case Study Restyling (Replacing old UXfolio classes)
   ========================================================================== */

/* Base Section */
.ufo-sec {
  padding: 6rem 0;
  background-color: var(--navy);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ufo-sec:nth-child(even) {
  background-color: var(--navy-dark);
}

/* Typography Overrides for Case Studies */
.ufo-sec h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.ufo-sec h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.ufo-sec h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--tan);
  margin-bottom: 1rem;
}
.ufo-sec p, .ufo-sec li {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.5rem;
}
.ufo-sec p strong, .ufo-sec li strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}
.ufo-sec p em, .ufo-sec li em {
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}
.ufo-sec ul {
  list-style: none;
  padding-left: 0;
}
.ufo-sec li {
  position: relative;
  padding-left: 1.5rem;
}
.ufo-sec li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 90, 54, 0.5);
}

/* Hero Section */
.ufo-sec--mainheader {
  position: relative;
  padding: 10rem 0 6rem 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-dark) 0%, #0c1222 100%) !important;
  overflow: hidden;
  border-bottom: none;
}
.ufo-sec--mainheader-bg {
  position: absolute;
  inset: 0;
  background-image: url('../../assets/images/background-poster.png');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 1;
}
.ufo-sec--mainheader-content {
  position: relative;
  z-index: 2;
  width: calc(100% - 48px);
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3rem;
}
.ufo-sec--mainheader .text {
  text-align: center !important;
  max-width: 900px;
}
.ufo-sec--mainheader-images {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.ufo-sec--mainheader-img {
  max-width: 45%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease;
}
.ufo-sec--mainheader-img:hover {
  transform: translateY(-10px);
}

/* Columns Section (Client, Role, etc.) */
.ufo-sec--columns {
  padding: 4rem 0;
}
.ufo-sec--columns-grid {
  width: calc(100% - 48px);
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.ufo-sec--columns-col {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, background 0.3s ease;
}
.ufo-sec--columns-col:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 90, 54, 0.2);
}
.ufo-sec--columns-col h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ufo-sec--columns-col p, .ufo-sec--columns-col li {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Text & Media Split */
.ufo-sec--textandmedia-container {
  width: calc(100% - 48px);
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
}
.ufo-sec--textandmedia-container.media-left {
  flex-direction: row-reverse;
}
.ufo-sec--textandmedia-text {
  flex: 1;
}
.ufo-sec--textandmedia-media {
  flex: 1;
}
.ufo-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Full Media Container */
.ufo-sec--media-container {
  width: calc(100% - 48px);
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

/* Text Container */
.ufo-sec--text-content {
  width: calc(100% - 48px);
  max-width: 800px;
  margin: 0 auto;
}

/* Mobile Mockup Gallery */
.ufo-sec--gallery-grid {
  width: calc(100% - 48px);
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem;
  align-items: center;
}

.mobile-mockup {
  position: relative;
  background: #111;
  border: 12px solid #222;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
  margin: 0 auto;
  max-width: 320px;
}
.mobile-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 25px;
  background: #222;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 10;
}
.mobile-content img {
  width: 100%;
  display: block;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .ufo-sec--textandmedia-container, 
  .ufo-sec--textandmedia-container.media-left {
    flex-direction: column;
    gap: 3rem;
  }
  .ufo-sec--mainheader-images {
    flex-direction: column;
  }
  .ufo-sec--mainheader-img {
    max-width: 90%;
  }
  .ufo-sec--mainheader {
    padding: 8rem 0 4rem 0;
    min-height: auto;
  }
}
