/* ================================================================
   UniCheatSheet – Homepage
   Modern Premium Dark Theme with Cyan Accents
   ================================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --accent: #00e5ff;
  --accent-dim: rgba(0, 229, 255, 0.15);
  --accent-glow: rgba(0, 229, 255, 0.35);
  --surface: rgba(255, 255, 255, 0.06);
  --surface-hover: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(0, 229, 255, 0.4);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Inter', 'Montserrat', system-ui, -apple-system, sans-serif;
}

p,
span,
a,
button,
li {
  font-family: 'Inter', 'Montserrat', system-ui, -apple-system, sans-serif;
}

.nav-text {
  font-family: 'Inter', 'Montserrat', system-ui, -apple-system, sans-serif;
}

html,
body {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #000;
}

/* ============================================
   HEADER & HERO
   ============================================ */

#header {
  position: relative;
  display: flex;
  justify-content: space-between;
  min-height: 100vh;
  width: 100%;
  background-image: linear-gradient(to bottom,
      rgba(0, 5, 15, 0.3) 0%,
      rgba(0, 5, 15, 0.5) 40%,
      rgba(0, 5, 15, 0.85) 80%,
      rgba(0, 5, 15, 0.98) 100%), url('https://ik.imagekit.io/zkkuwm5z9/Basics/banner.webp');
  background-position: center;
  background-size: cover;
  z-index: auto;
}

/* ============================================
   NAVBAR (Full-Screen Overlay)
   ============================================ */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  background-color: rgba(0, 5, 15, 1);
  width: 100%;
  height: 100vh;
  text-align: left;
  /* Animate transform (GPU-composited) instead of `top` to avoid layout jank */
  transform: translateY(-103%);
  visibility: hidden;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.55s;
  will-change: transform;
  margin: 0;
  z-index: 9999;
  padding: 120px 60px 80px 60px;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

#navbar.active {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}

/* Navbar Header */
.navbar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10001;
}

.navbar-logo {
  display: block;
  opacity: 0;
}

.navbar-logo img {
  height: 0px;
  width: auto;
}

#navbar.active .navbar-logo {
  opacity: 1;
}

/* Close Button */
.close-btn {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: rgba(0, 10, 20, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.2);
  padding: 12px 18px;
  cursor: pointer;
  border-radius: 6px;
  z-index: 10001;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

#navbar.active .close-btn {
  display: flex;
}

.close-btn i {
  color: var(--accent);
  font-size: 22px;
  transition: transform 0.3s ease;
}

.close-btn span {
  color: #fff;
  font-size: 18px;
  font-family: 'Inter', 'Montserrat', system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: 1px;
}

.close-btn:hover {
  background-color: rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.4);
}

.close-btn:hover i {
  transform: rotate(90deg);
}

/* Navbar Content */
.navbar-content {
  padding: 40px 20px;
}

#navbar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#navbar li {
  list-style: none;
  padding: 4px 0;
  margin: 0;
  position: relative;
}

/* Hide main logo when navbar is active */
#navbar.active~#header .logo {
  opacity: 0;
}

/* Adjust main nav items to not overlap with header */
#navbar .nav-items {
  margin-top: 0;
  padding: 0;
}

/* ---------- Main Nav Links ---------- */
.nav-link {
  font-family: 'Inter', 'Montserrat', system-ui, sans-serif;
  text-decoration: none;
  font-size: 48px;
  font-weight: 600;
  color: #fff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  display: inline-flex;
  align-items: center;
  line-height: 1.15;
  letter-spacing: 1px;
}

/* Text wrapper for underline effect */
.nav-text {
  position: relative;
  font-family: 'Inter', 'Montserrat', system-ui, sans-serif;
}

.nav-text::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(90deg, var(--accent), rgba(0, 229, 255, 0.3));
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1px;
}

.nav-link:hover .nav-text::after {
  width: 100%;
}

/* Remove the underline effect */
#navbar li::after {
  display: none;
}

/* Hover effect */
#navbar li a:hover {
  opacity: 0.8;
}

/* Expand icon */
.expand-icon {
  font-size: 0.6em;
  transition: transform 0.3s ease;
  margin-left: 10px;
}

/* ============================================
   HAMBURGER MENU BUTTON
   ============================================ */

.header-right {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(0, 10, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 6px;
  color: #fff;
  z-index: 1000;
  touch-action: manipulation;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  position: static;
}

.hamburger:hover {
  background-color: rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.3);
}

.menu-text {
  color: #fff;
  font-size: 18px;
  font-family: 'Inter', 'Montserrat', system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: 1px;
}

.hamburger i {
  color: var(--accent);
  font-size: 20px;
  transition: transform 0.3s ease;
}

.hamburger:hover i {
  transform: scale(1.1);
}

/* Hide hamburger when navbar is active */
.hamburger.hide {
  display: none;
}

.hamburger.active {
  right: 20px;
  top: 20px;
}

.hamburger.active .menu-text {
  display: none;
}

/* Hamburger icon transition */
.hamburger .bar {
  transition: all 0.6s ease;
}

/* ============================================
   SUBMENU
   ============================================ */

.submenu {
  display: none;
  margin-top: 8px;
  margin-left: 20px;
}

.submenu li {
  margin-left: 0;
  padding: 4px 0;
}

.submenu li a {
  color: #fff !important;
  font-size: clamp(24px, 3vw, 30px);
  opacity: 0.6;
  white-space: nowrap;
  display: block;
  text-decoration: none !important;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.submenu li a:hover {
  opacity: 1;
  color: var(--accent) !important;
  transform: translateX(8px);
}

.submenu li a .nav-text::after {
  display: none !important;
}

/* Keep main nav item underlines */
.nav-item>.nav-link .nav-text::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(90deg, var(--accent), rgba(0, 229, 255, 0.3));
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Show submenu when parent is active */
.nav-item.active .submenu {
  display: block;
  animation: submenuFade 0.3s ease-out;
}

@keyframes submenuFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

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

/* Arrow indicator for items with submenus */
.nav-link.has-submenu::after {
  content: '+';
  margin-left: 15px;
  font-size: 0.7em;
  transition: all 0.3s ease;
  color: var(--accent);
  font-weight: 300;
}

.nav-item.active .nav-link.has-submenu::after {
  content: '−';
}

/* When any item is active, dim all nav items */
.nav-items.has-active .nav-item .nav-link {
  color: rgba(255, 255, 255, 0.25);
}

/* Keep active item white */
.nav-items.has-active .nav-item.active .nav-link {
  color: #fff;
}

/* Keep submenu items white */
.nav-items.has-active .submenu a {
  color: #fff;
}

/* ============================================
   HERO TEXT BOX
   ============================================ */

/* Three.js ambient particle layer (decorative, sits behind hero text) */
.hero-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.text-box {
  color: #fff;
  position: absolute;
  z-index: 1;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1000px;
  margin: auto;
  padding: 0 20px;
  text-align: center;
  box-sizing: border-box;
}

.text-box h1 {
  font-family: 'Inter', 'Montserrat', system-ui, sans-serif;
  font-size: clamp(28px, 6.5vw, 84px);
  line-height: 1.1;
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -1px;
  text-shadow: 0 0 40px rgba(0, 229, 255, 0.15);
  animation: heroTitleReveal 1s ease-out both;
  white-space: nowrap;
}

/* .com part — inline by default (desktop) */
.title-dot-com {
  display: inline;
}

@keyframes heroTitleReveal {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

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

.text-box p {
  font-family: 'Inter', 'Montserrat', system-ui, sans-serif;
  font-size: clamp(16px, 2.5vw, 24px);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 800px;
  opacity: 0.85;
  animation: heroFadeIn 1s ease-out 0.3s both;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.text-box p:last-of-type {
  margin-top: 30px;
}

.impact {
  font-weight: 600 !important;
  margin-bottom: clamp(5px, 1vh, 10px);
}

.impact a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.impact a:hover {
  color: var(--accent);
}

/* ============================================
   HERO BUTTON
   ============================================ */

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: clamp(10px, 1.5vw, 14px) clamp(24px, 3vw, 40px);
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  background: var(--surface);
  position: relative;
  transition: all var(--transition-smooth);
  font-weight: 600;
  border-radius: var(--radius-sm);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  margin-top: 30px;
  backdrop-filter: blur(8px);
  letter-spacing: 0.5px;
  animation: heroFadeIn 1s ease-out 0.6s both;
}

.hero-btn:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 229, 255, 0.15);
}

.hero-btn i {
  margin-right: 4px;
  font-size: 1.3em;
  vertical-align: middle;
}

/* ============================================
   SERVICES / RESOURCES SECTION
   ============================================ */

.services {
  padding: clamp(3rem, 5vw, 5rem) clamp(0.5rem, 2vw, 1rem);
  background: linear-gradient(180deg, rgba(0, 5, 15, 0.98) 0%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 1) 70%, rgba(0, 5, 15, 0.98) 100%);
  position: relative;
}

.services h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  color: var(--text-primary);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  margin-top: clamp(1rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 1px;
}

.services h1 .icon {
  margin: 0 10px;
}

.services__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(10px, 2vw, 20px);
  justify-items: center;
  justify-content: center;
}

.services__card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.85)),
    var(--bg-image, url('https://ik.imagekit.io/zkkuwm5z9/Basics/slide1.webp'));
  background-size: cover;
  background-position: center;
  transition: all var(--transition-smooth);
  padding: clamp(1.5rem, 2vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  touch-action: manipulation;
  border: 1px solid var(--border);
}

.services__card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.3), transparent 50%, rgba(0, 229, 255, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-smooth);
  z-index: 2;
  pointer-events: none;
}

.services__card:nth-child(2) {
  --bg-image: url('https://ik.imagekit.io/zkkuwm5z9/Basics/slide2.webp');
}

.services__card:nth-child(3) {
  --bg-image: url('https://ik.imagekit.io/zkkuwm5z9/Basics/slide3.webp');
}

.services__card:hover {
  transform: translateY(-10px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 229, 255, 0.06);
}

/* While the JS 3D tilt drives the transform, keep other transitions
   but let the transform follow the pointer instantly */
.services__card.tilting {
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.services__card:hover::before {
  opacity: 1;
}

.services__card h2 {
  color: #fff;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  margin-bottom: clamp(0.5rem, 2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.services__card p {
  color: var(--text-secondary);
  font-size: clamp(0.85rem, 2vw, 1rem);
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  line-height: 1.5;
}

.services__card button {
  align-self: flex-start;
  padding: clamp(0.6rem, 1.5vw, 0.8rem) clamp(1.2rem, 2vw, 1.8rem);
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  touch-action: manipulation;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.services__card button:hover {
  background: var(--accent-dim);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
}

/* Services card link styling */
.services__card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ============================================
   CALL TO ACTION
   ============================================ */

.cta {
  margin: clamp(2rem, 3vw, 3rem) auto;
  width: min(95%, 1200px);
  background-image: linear-gradient(rgba(0, 5, 15, 0.75), rgba(0, 5, 15, 0.85)), url('https://ik.imagekit.io/zkkuwm5z9/Basics/banner2.webp');
  background-position: center;
  background-size: cover;
  border-radius: var(--radius-lg);
  text-align: center;
  padding: clamp(30px, 5vw, 50px) clamp(15px, 3vw, 30px);
  margin-bottom: clamp(3rem, 4vw, 4rem);
  margin-top: clamp(3rem, 4vw, 4rem);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.cta h1 {
  color: #fff;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.cta .hero-btn {
  margin-top: 20px;
  animation: none;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  width: 100%;
  text-align: center;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  background: rgba(0, 0, 0, 0.95);
  position: relative;
  border-top: 1px solid var(--border);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}

.footer h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 600;
  letter-spacing: 2px;
}

.footer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 8px;
}

.footer h4 {
  margin: clamp(0.8rem, 2vw, 1.25rem) 0;
  font-weight: 600;
  font-size: clamp(14px, 2vw, 16px);
  color: var(--text-secondary);
}

/* ============================================
   FIXED LOGO
   ============================================ */

.fixed-logo {
  position: fixed;
  left: 8px;
  top: 8px;
  z-index: 1001;
  transition: all 0.3s ease;
}

.fixed-logo img {
  height: 80px;
  width: auto;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.fixed-logo img:hover {
  filter: drop-shadow(0 2px 12px rgba(0, 229, 255, 0.2));
}

/* ============================================
   UTILITY
   ============================================ */

a {
  text-decoration: none;
  color: inherit;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

@media screen and (min-width: 1200px) {
  .text-box h1 {
    font-size: 78px;
  }

  .text-box p {
    font-size: 22px;
  }

  .services h1 {
    font-size: 3rem;
  }

  .services__card h2 {
    font-size: 1.6rem;
  }

  .services__card p {
    font-size: 1rem;
  }

  .cta h1 {
    font-size: 1.5rem;
  }

  .footer h3 {
    font-size: 1.6rem;
  }
}

@media screen and (min-width: 1440px) {
  .fixed-logo {
    left: 20px;
    top: 20px;
  }

  .fixed-logo img {
    height: 100px;
  }

  .text-box h1 {
    font-size: 84px;
  }

  .text-box p {
    font-size: 24px;
  }
}

@media screen and (min-width: 900px) {
  .services__container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (min-width: 600px) and (max-width: 899px) {
  .services__container {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1rem, 3vw, 2rem);
  }

  .services__card {
    width: 100%;
    max-width: 350px;
  }

  .services__card:last-child {
    grid-column: 1 / -1;
    width: calc((100% - clamp(1rem, 3vw, 2rem)) / 2);
    justify-self: center;
  }
}

@media screen and (max-width: 1024px) {
  #navbar {
    padding: 100px 40px 60px 40px;
  }

  .nav-link {
    font-size: 44px;
  }
}

@media screen and (max-width: 960px) {
  .services__card {
    width: 90%;
    max-width: 300px;
    margin: 10px auto;
  }
}

@media screen and (max-width: 768px) {
  #navbar {
    padding: 100px 30px 50px 30px;
  }

  .nav-link {
    font-size: 40px;
  }

  .fixed-logo img {
    height: 65px;
  }
}

@media screen and (max-width: 767px) {
  #navbar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    padding-top: 50px;
  }

  .text-box h1 {
    white-space: normal;
    font-size: clamp(32px, 10vw, 72px);
    font-weight: 800 !important;
    line-height: 1.05;
  }

  .title-dot-com {
    display: block;
    font-size: 0.55em;
    color: var(--accent);
    letter-spacing: 6px;
    margin-top: 4px;
    font-weight: 700;
  }

  .services h1 {
    font-size: clamp(2rem, 3vw, 3rem) !important;
  }
}

@media screen and (max-width: 576px) {
  .search-text {
    display: none;
  }

  .search-trigger {
    padding: 12px;
    right: auto;
  }

  .header-right {
    right: 12px;
    gap: 8px;
  }

  .fixed-logo {
    left: 8px;
    top: 8px;
  }

  .fixed-logo img {
    height: 55px;
  }
}

@media screen and (max-width: 480px) {
  #navbar {
    padding: 90px 20px 40px 20px;
  }

  .nav-link {
    font-size: 36px;
  }

  .fixed-logo img {
    height: 48px;
  }

  .text-box h1 {
    font-weight: 800 !important;
    margin-top: 70px !important;
  }

  .text-box {
    width: 95%;
    padding: 0 12px;
  }

  .services__card {
    aspect-ratio: 4/5;
  }

  .cta {
    width: 95%;
    padding: 25px 15px;
  }

  .cta h1 {
    font-size: clamp(0.95rem, 4vw, 1.3rem);
  }
}

@media screen and (max-width: 390px) {
  .nav-link {
    font-size: clamp(32px, 8vw, 42px);
  }

  .text-box h1 {
    margin-top: 60px !important;
    font-weight: 800 !important;
  }

  .text-box p {
    font-size: clamp(14px, 3.5vw, 18px) !important;
  }

  .services h1 {
    font-size: clamp(1.4rem, 5vw, 2rem) !important;
  }

  .hero-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}

@media screen and (max-width: 376px) {
  #navbar .nav-items {
    margin-top: 100px;
    padding: 0;
  }

  #navbar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
  }
}

@media screen and (max-width: 320px) {
  #navbar {
    padding: 80px 15px 30px 15px;
  }

  .nav-link {
    font-size: 32px;
  }

  .fixed-logo img {
    height: 40px;
  }
}

@media screen and (max-height: 480px) {
  .fixed-logo img {
    height: 50px;
  }
}

/* Print styles */
@media print {

  .hamburger,
  .hero-btn,
  .services__card button {
    display: none;
  }
}

/* ============================================
   SCROLL REVEAL (class added via JS)
   ============================================ */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}