/* Google Fonts loaded via <link> in HTML — no @import needed */

/* =============== VARIABLES CSS =============== */
:root {
  --header-height: 5rem;

  /* Premium Dark Theme Colors */
  --body-color: #05070a;
  --container-color: #0c1017;
  --card-hover: #121822;
  
  --title-color: #f8fafc;
  --text-color: #94a3b8;
  --text-color-light: #64748b;
  
  --first-color: #6366f1; /* Indigo */
  --first-color-alt: #4f46e5;
  --accent-color: #0ea5e9; /* Light Blue */
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);

  /* Font and typography */
  --body-font: 'Inter', sans-serif;
  --title-font: 'Outfit', sans-serif;
  
  --h1-font-size: 3rem;
  --h2-font-size: 2rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;

  /* Z-Index */
  --z-fixed: 100;
}

@media screen and (min-width: 968px) {
  :root {
    --h1-font-size: 4.5rem;
    --h2-font-size: 2.5rem;
    --h3-font-size: 1.5rem;
  }
}

/* =============== BASE =============== */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent; /* Global reset for mobile blue flash */
}

a, button, i, span {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -1;
  background-image: 
    radial-gradient(circle at 15% -20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 120%, rgba(14, 165, 233, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-family: var(--title-font);
  font-weight: 600;
  letter-spacing: -0.03em;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }

/* Screen-reader only (visually hidden, accessible to AT) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* About text sizing */
.about-text--lg { font-size: 1.15rem; }

/* Contact section header spacing */
.section__header--contact { margin-bottom: 1rem; }

/* =============== PRELOADER =============== */
#preloader {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  background-color: var(--body-color);
  z-index: 9999;
  display: flex; justify-content: center; align-items: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.preloader-hidden {
  opacity: 0; visibility: hidden;
}
.preloader-svg {
  width: 100px; height: 100px;
}
.preloader-path {
  fill: transparent;
  stroke: url(#gradPreloader);
  stroke-width: 2;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawLogo 0.7s ease forwards, fillLogo 0.3s ease 0.7s forwards;
}

@keyframes drawLogo {
  0% { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 0; }
}

@keyframes fillLogo {
  0% { fill: transparent; stroke-width: 2; }
  100% { fill: url(#gradPreloader); stroke-width: 3; stroke-linejoin: miter; }
}

/* =============== REUSABLE CSS CLASSES =============== */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding: 6rem 0 2rem;
}

.section__header {
  font-size: var(--h2-font-size);
  margin-bottom: 2.5rem;
}

.minimal-card {
  background-color: var(--container-color);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.minimal-card:hover {
  background-color: var(--card-hover);
  border-color: var(--border-hover);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.card-header i {
  font-size: 1.2rem;
  color: var(--first-color);
}

/* =============== BUTTONS =============== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--title-color);
  color: var(--body-color);
  padding: 0.8rem 1.8rem;
  border-radius: 3rem;
  font-weight: 600;
  font-family: var(--title-font);
  transition: .3s;
  cursor: pointer;
  border: 1px solid transparent;
}

.button--ghost {
  background: transparent;
  color: var(--title-color);
  border-color: var(--border-color);
}
.button--ghost:hover {
  background: var(--first-color);
  color: #fff;
  border-color: var(--first-color);
}

.button:hover {
  background: transparent;
  color: var(--title-color);
  border-color: var(--title-color);
}

.button--whatsapp {
  background: #25d366;
  color: #fff !important;
  margin-top: 1rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  display: inline-flex;
  padding: 0.6rem 2rem; /* Reduced height */
  width: auto;
}

.button--whatsapp:hover {
  background: #128c7e;
  border-color: #128c7e;
  color: #fff !important;
  transform: translateY(-2px);
}

/* =============== HEADER & NAV =============== */
.header {
  width: calc(100% - 2rem);
  max-width: 1200px;
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-fixed);
  background: #0c1017; /* Solid color, no transparency */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transition: all .4s, border-radius .2s;
}

/* Class to flatten bottom corners and remove shadow when menu is open */
.header-menu-open {
  border-radius: 1.25rem 1.25rem 0 0;
  box-shadow: none; /* Remove shadow so it doesn't overlap menu */
  border-bottom: none; /* Merge with menu */
}

.scroll-header {
  top: 0.5rem;
  background: #0c1017;
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media screen and (max-width: 768px) {
  .nav { position: static; }
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--title-color);
  font-weight: 600;
  font-family: var(--title-font);
  font-size: 1.25rem;
  transition: .3s;
}

/* CUSTOM KM LOGO (SVG IMAGE) */
.logo-img-nav {
  height: 35px;
  width: auto;
  transition: .3s ease;
  object-fit: contain;
  margin-right: -0.2rem;
}

.logo-img-footer {
  height: 30px;
}

.nav__logo:hover .logo-img-nav {
  transform: translateY(-1px) scale(1.05);
}

.nav__toggle {
  cursor: pointer;
  display: none;
  background: none;
  border: none;
  padding: 0;
  z-index: 1100;
  -webkit-tap-highlight-color: transparent; /* Remove blue flash */
  outline: none;
}

/* Custom Hamburger */
.hamburger {
  width: 28px;
  height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--accent-color);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  box-shadow: 0 0 8px var(--accent-color); /* Glowing effect */
}

/* Hamburger to X animation */
.toggle-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.toggle-active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.toggle-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.nav__list {
  display: flex;
  gap: 2.5rem;
}

.nav__link {
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.95rem;
  transition: .3s;
}

.nav__link:hover, .active-link {
  color: var(--title-color);
}

@media screen and (max-width: 768px) {
  .nav__toggle { display: block; }
  
  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    background: #0c1017;
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: none; 
    border-radius: 0 0 1.25rem 1.25rem; /* Match header radius */
    padding: 1.5rem;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s ease;
    z-index: 1000;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5); /* Shadow at bottom and sides, not top */
  }

  .show-menu {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav__menu-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .nav__menu-img {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    object-fit: cover;
  }

  .nav__menu-name {
    color: var(--title-color);
    font-weight: 600;
    font-size: 0.95rem;
  }

  .nav__close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--title-color);
    width: 35px;
    height: 35px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
  }
  
  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  
  .nav__item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .nav__link {
    display: block;
    padding: 1.25rem 0;
    font-size: 1.1rem;
    font-family: var(--title-font);
    font-weight: 600;
    color: var(--title-color);
    transition: .3s;
  }

  .nav__link:hover {
    padding-left: 0.5rem;
    color: var(--accent-color);
  }

  .nav__link-button {
    background: linear-gradient(90deg, var(--first-color), var(--accent-color));
    color: #fff !important;
    padding: 0.6rem 1.5rem; /* Reduced height */
    border-radius: 0.75rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem;
    width: 100%; /* Back to full width */
    display: block;
    text-align: center;
    border: none;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
    font-size: 0.95rem;
  }

  /* Remove border from last non-button item */
  .nav__item:nth-last-child(2) {
    border-bottom: none;
  }
}

/* Ensure desktop nav header is hidden */
@media screen and (min-width: 769px) {
  .nav__menu-header { display: none; }
}

/* =============== HERO =============== */
.hero {
  padding-top: 10rem;
}

.hero__container {
  display: grid;
  gap: 3rem;
  max-width: 900px;
}

.hero__profile {
  display: flex;
  align-items: center;
}

.hero__img-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.hero__img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.status-badge {
  position: absolute;
  bottom: 8px;
  right: -45px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.6rem 1.25rem;
  border-radius: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--title-color);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: all 0.4s ease;
}

.status-badge::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transition: all 0.6s;
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.status-icon {
  font-size: 1.1rem;
  color: #10b981;
  filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.4));
  animation: icon-float 2s ease-in-out infinite;
}

@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.status-badge:hover {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.03);
  transform: translateY(-3px) scale(1.02);
}

.hero__headline {
  font-size: var(--h1-font-size);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.highlight-text {
  background: linear-gradient(90deg, var(--first-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__description {
  font-size: 1.125rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

@media screen and (min-width: 968px) {
  .hero__container {
    grid-template-columns: min-content 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
  }
  .hero__img-wrapper {
    width: 280px;
    height: 280px;
  }
}

.hero__socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  font-size: 1.5rem;
  color: var(--text-color);
  transition: .3s;
}
.social-link:hover { color: var(--title-color); transform: translateY(-3px); }

/* =============== OVERVIEW (ABOUT + SERVICES) =============== */
.about-text { font-size: 1.05rem; }
.about-stats { display: flex; gap: 3rem; border-top: 1px solid var(--border-color); padding-top: 1.5rem; }
.stat-item .stat-number { font-size: var(--h2-font-size); color: var(--title-color); line-height: 1; font-family: var(--title-font); font-weight: 600; }
.stat-item span { font-size: var(--small-font-size); color: var(--text-color-light); text-transform: uppercase; letter-spacing: 1px; }

.services-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card { padding: 2rem; }
.service-icon {
  width: 50px; height: 50px; border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--first-color); margin-bottom: 1.5rem;
}
.service-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

@media screen and (min-width: 968px) {
  .services-wrapper { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

/* =============== RESUME & SKILLS =============== */
.resume-split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.skills-stacked {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  padding: 1rem 0;
  max-width: 900px;
  margin: 0 auto;
}

.skill-group-title {
  font-size: 1.25rem;
  color: var(--title-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  font-family: var(--title-font);
  display: inline-block;
  padding-right: 2rem;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.skill-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  padding: 0.8rem 1.2rem;
  border-radius: 1rem;
  color: var(--title-color);
  font-size: 1rem;
  font-weight: 500;
  transition: .3s;
}

.skill-item:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.skill-item i {
  font-size: 1.7rem;
}

.timeline-group {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  border-left: 1px solid var(--border-color);
  padding-left: 2rem;
  margin-left: 1rem;
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -2.35rem; top: 0.25rem;
  width: 12px; height: 12px;
  background: var(--body-color);
  border: 2px solid var(--first-color);
  border-radius: 50%;
  transition: .3s;
}

.minimal-card:hover .timeline-dot {
  background: var(--first-color);
  box-shadow: 0 0 10px var(--first-color);
}

.timeline-date {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  margin-bottom: 0.5rem;
  font-family: var(--title-font);
  letter-spacing: 1px;
}

.timeline-item h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.timeline-item p { color: var(--text-color); }

/* =============== PORTFOLIO =============== */
.section__title-wrapper {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.5rem;
}
.section__title-wrapper .section__header { margin-bottom: 0; }
.view-all-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  color: var(--text-color); font-weight: 500; transition: .3s;
}
.view-all-link:hover { color: var(--title-color); }

.portfolio-grid {
  grid-template-columns: 1fr;
}
@media screen and (min-width: 768px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (min-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}

.project-card {
  padding: 1rem;
  display: flex; flex-direction: column; gap: 1.5rem;
}

.project-img-wrapper {
  width: 100%; aspect-ratio: 4/3; border-radius: 1rem; overflow: hidden;
  border: 1px solid var(--border-color);
}

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

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

.project-content {
  display: flex; flex-direction: column; align-items: flex-start; padding: 0.5rem; gap: 0.5rem;
}

.project-title { font-size: 1.1rem; color: var(--title-color); margin-bottom: 0.25rem; }
.project-desc { font-size: var(--small-font-size); color: var(--text-color-light); }



/* =============== CERTIFICATIONS =============== */
.cert-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cert-card {
  padding: 0.5rem;
  display: flex; flex-direction: column; align-items: center;
}

.cert-card img {
  width: 100%; aspect-ratio: 1.414; object-fit: cover; border-radius: 1rem; border: 1px solid var(--border-color);
  margin-bottom: 1rem; 
  transition: filter 0.4s ease;
  will-change: filter, transform;
  transform: translateZ(0); 
}
.cert-card:hover img { filter: brightness(1.1); }
.cert-info { font-size: 0.9rem; color: var(--title-color); font-weight: 500; text-align: center; padding-bottom: 0.5rem; }

/* =============== CONTACT =============== */
.contact-wrapper {
  display: grid; grid-template-columns: 1fr; gap: 2rem; padding: 1.5rem;
}

@media screen and (min-width: 968px) {
  .contact-wrapper { grid-template-columns: 1fr 1fr; padding: 4rem; }
}

.contact-text { font-size: 1.1rem; margin-bottom: 2rem; }

.contact-details { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-line { display: flex; align-items: center; gap: 1rem; color: var(--title-color); font-size: 1rem; transition: .3s; overflow-wrap: anywhere; }
.contact-line i { width: 40px; height: 40px; background: rgba(99, 102, 241, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--first-color); font-size: 1.25rem; }
a.contact-line:hover { color: var(--first-color); }

.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-input { 
  width: 100%; background: var(--body-color); border: 1px solid var(--border-color); 
  padding: 1.2rem; border-radius: 1rem; color: var(--title-color); font-family: inherit; font-size: 1rem; transition: .3s;
}
.form-input:focus { border-color: var(--first-color); outline: none; box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1); }

/* =============== FOOTER =============== */
.footer { border-top: 1px solid var(--border-color); padding: 3rem 0; margin-top: 4rem; }
.footer-content { display: flex; flex-direction: column; gap: 2rem; align-items: center; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 1rem; color: var(--text-color-light); }
.footer-links { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; }
.footer-links a { color: var(--text-color); font-weight: 500; transition: .3s; }
.footer-links a:hover { color: var(--title-color); }

@media screen and (min-width: 768px) {
  .footer-content { flex-direction: row; justify-content: space-between; }
}

/* =============== NEW PORTFOLIO & CERT ACTIONS =============== */
.project-card-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
}
.project-button {
  display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.85rem; 
  color: var(--body-color); background: var(--title-color); 
  padding: 0.5rem 1rem; border-radius: 2rem; font-weight: 600; transition: .3s;
}
.project-button.ghost { 
  background: transparent; color: var(--title-color); border: 1px solid var(--border-color); 
}
.project-button:hover { 
  background: var(--first-color); color: #fff; border-color: var(--first-color); 
}

.view-more-container {
  display: none;
  text-align: center;
  width: 100%;
}

@media screen and (max-width: 768px) {
  #portfolio-container:not(.show-all) .project-card:nth-child(n+3) { display: none; }
  #cert-container:not(.show-all) .cert-card:nth-child(n+3) { display: none; }
  .view-more-container { display: block; margin-top: 2rem; }
}

/* =============== SCROLL UP =============== */
.scrollup {
  position: fixed;
  right: 1.5rem;
  bottom: -30%; /* Hidden by default */
  background: linear-gradient(135deg, var(--first-color), var(--accent-color));
  color: #fff;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  z-index: var(--z-fixed);
  transition: .4s;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.scrollup:hover {
  background: var(--first-color);
  color: #fff;
  transform: translateY(-5px);
}

/* Scroll-up Animation */
@keyframes scrollup-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.scroll-active-anim {
  animation: scrollup-bounce 2s ease-in-out infinite;
}

/* Show scrollup */
.show-scroll {
  bottom: 2rem;
  opacity: 1;
  pointer-events: auto;
  animation: scrollup-bounce 2s ease-in-out infinite;
}

/* Hide on desktop as per user request */
@media screen and (min-width: 769px) {
  .scrollup { display: none; }
}
/* =============== GLOBAL ANIMATIONS (REVEAL) =============== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger reveal for grid items */
.grid > .reveal {
  transition-delay: 0.1s;
}
.grid > .reveal:nth-child(2) { transition-delay: 0.2s; }
.grid > .reveal:nth-child(3) { transition-delay: 0.3s; }
.grid > .reveal:nth-child(4) { transition-delay: 0.4s; }

/* Floating animation for hero */
@keyframes floating {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

.hero__img-wrapper {
  animation: floating 4s ease-in-out infinite;
}
