/* ==================================================
   9UNIVERSE INFRACON — Premium UI + Scroll Animations
   Full replacement (Option C) — solid titles + premium
   spacing + reveal/stagger animations + hover polish
   ================================================== */

:root {
  --brand-red: #e63946;
  --brand-blue: #142854;
  --brand-blue-2: #0f2a57;
  --bg-soft: #fbfcff;
  --panel-grad: linear-gradient(180deg, rgba(20, 40, 84, .03), rgba(230, 57, 70, .02));
  --glass: rgba(255, 255, 255, .96);
  --glass-2: rgba(255, 255, 255, .9);
  --white: #fff;
  --muted: #6b7280;
  --text-dark: #0f172a;
  --card-bg: rgba(255, 255, 255, .98);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-1: 0 10px 30px rgba(20, 40, 84, .06);
  --shadow-2: 0 18px 48px rgba(20, 40, 84, .12);
  --glow: 0 10px 30px rgba(230, 57, 70, .06);
  --transition: .36s cubic-bezier(.2, .9, .2, 1);
  --font-sans: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --h1: 2.8rem;
  --h2: 2.2rem;
  --base: 16px;
  --max-width: 1400px;
  --container-pad: 1rem;
}

/* =======================================
   DARK THEME VARIABLES AND STYLES (UNIVERSALIZED)
   ======================================= */
body.dark-theme {
  --bg-soft: #1c1c1c; 
  --panel-grad: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01));
  --glass: rgba(28, 28, 28, .96);
  --glass-2: rgba(28, 28, 28, .9);
  --white: #fff;
  --muted: #a0a0a0;
  --text-dark: #f0f0f0; 
  --card-bg: #2d2d2d; 
  --shadow-1: 0 8px 28px rgba(0, 0, 0, .4);
  --shadow-2: 0 14px 40px rgba(0, 0, 0, .6);
  background: #121212; 
  transition: background-color 0.5s ease;
  color: var(--text-dark);
}

body.dark-theme img {
    filter: contrast(1.1);
}

body.dark-theme header {
  background: var(--card-bg);
  box-shadow: var(--shadow-2);
}

body.dark-theme nav ul li a {
  color: var(--text-dark);
}

body.dark-theme .header-actions button {
    color: var(--text-dark) !important; 
}

body.dark-theme nav ul.show {
    background: var(--card-bg);
    box-shadow: var(--shadow-2);
}

body.dark-theme .hamburger span {
  background: var(--text-dark); 
}

/* --- FIX: Ensure dark elements are visible (by turning them light) --- */

/* Apply dark theme variables to general sections (using background-color variables) */
body.dark-theme .about-overview,
body.dark-theme .csr,
body.dark-theme .vision-mission,
body.dark-theme .why-choose-us,
body.dark-theme .milestones-section { 
  background: var(--bg-soft) !important;
}

body.dark-theme .core-values {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.05), rgba(28, 28, 28, 0.05)) !important;
}

/* Card and component backgrounds */
body.dark-theme .stat,
body.dark-theme .vm-card,
body.dark-theme .value-card,
body.dark-theme .team-card,
body.dark-theme .timeline-content,
body.dark-theme .choose-item {
  background: var(--card-bg) !important;
  box-shadow: var(--shadow-1) !important;
}

/* Text and icons that were originally dark/blue */
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme p,
body.dark-theme a,
body.dark-theme li,
body.dark-theme .faq-q,
body.dark-theme .about-overview h2,
body.dark-theme .stat span,
body.dark-theme .vm-card i,
body.dark-theme .vm-card h3,
body.dark-theme .value-card i,
body.dark-theme .team-card h4,
body.dark-theme .team-card blockquote,
body.dark-theme .choose-item i,
body.dark-theme .choose-item h4 {
    color: var(--text-dark) !important; 
}

/* Milestones Timeline Fixes for Dark Theme (using variables) */
body.dark-theme .milestones-timeline::after {
    background-color: var(--muted); 
}
body.dark-theme .timeline-content {
    border-left-color: var(--brand-red) !important;
}

/* Timeline Arrow Fixes */
body.dark-theme .timeline-item:nth-child(odd) .timeline-content::after {
    border-color: transparent transparent transparent var(--card-bg) !important;
}
body.dark-theme .timeline-item:nth-child(even) .timeline-content::after {
    border-color: transparent var(--card-bg) transparent transparent !important;
}
@media screen and (max-width: 768px) {
    body.dark-theme .timeline-item:nth-child(odd) .timeline-content,
    body.dark-theme .timeline-item:nth-child(even) .timeline-content {
        border-top-color: var(--brand-red) !important;
    }
}


/* Ensure gradient title is visible */
body.dark-theme .section-title h2 {
    background: none !important;
    -webkit-background-clip: unset !important;
    color: var(--text-dark) !important;
    -webkit-text-fill-color: var(--text-dark) !important;
}

/* Footer Dark Theme Styling (Using index.css style) */
body.dark-theme .footer {
  background: linear-gradient(135deg, #0e1e3b, var(--brand-blue)) !important; 
  color: var(--white);
}

body.dark-theme .footer-section h3 {
    color: var(--white) !important; 
}

body.dark-theme .leadership::before {
    background: linear-gradient(90deg, var(--brand-red), var(--muted)); 
}

body.dark-theme .logo-track img {
    filter: grayscale(0.6) brightness(0.9) contrast(1.1); /* Darken client logos */
}


/* =======================================
   END DARK THEME STYLES
   ======================================= */


/* Basic reset */
* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  font-size: var(--base);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
  height: auto
}

a {
  color: inherit;
  text-decoration: none
}

button {
  font-family: inherit
}

/* CONTAINER */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 calc(var(--container-pad) + 8px);
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.5rem;
  background: var(--card-bg);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-1);
}

.logo img {
  height: 52px
}

nav ul {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0
}

nav ul li a {
  color: var(--brand-blue);
  font-weight: 600;
  display: inline-flex;
  gap: .5rem;
  transition: color var(--transition)
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--brand-red)
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--brand-blue);
  border-radius: 3px
}

/* HERO */
.hero {
  position: relative;
  min-height: 74vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 72px;
  overflow: hidden;
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.62);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 40, 84, .28), rgba(230, 57, 70, .06));
  z-index: 1
}

.hero-text {
  position: relative;
  z-index: 3;
  color: #fff;
  max-width: 980px;
  padding: 2rem;
  border-radius: 16px
}

.hero-text h1 {
  font-size: clamp(1.8rem, 3.2vw, var(--h1));
  margin: 0 0 .6rem;
  letter-spacing: -.6px;
  font-weight: 700;
  text-shadow: 0 8px 34px rgba(0, 0, 0, .35)
}

.hero-text p {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  opacity: .98
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .06rem;
  background: var(--brand-red);
  color: var(--white);
  padding: .75rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: var(--glow);
  transition: transform var(--transition), box-shadow var(--transition)
}

.btn:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2)
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, .18);
  color: #fff
}

.btn-link {
  color: var(--brand-blue);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: all var(--transition)
}

.btn-link:hover {
  transform: translateY(-4px);
  color: var(--brand-red)
}

/* SOCIAL FLOAT */
.social-float {
  position: fixed;
  top: 45%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: .8rem;
  z-index: 999
}

.social-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ad000e;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  border-radius: 0 50px 50px 0;
  padding: .6rem;
  width: 44px;
  height: 44px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: all .35s ease
}

.social-float a span {
  display: none;
  margin-right: .6rem;
  white-space: nowrap
}

.social-float a:hover {
  width: 140px;
  justify-content: space-between;
  background: var(--brand-red);
  padding-left: .9rem
}

.social-float a:hover span {
  display: inline
}

.social-float i {
  font-size: 1.2rem;
  min-width: 24px;
  text-align: center
}

.social-float a.linkedin:hover {
  background: #0077b5
}

.social-float a.facebook:hover {
  background: #3b5998
}

.social-float a.whatsapp:hover {
  background: #25D366
}

.social-float a.instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%)
}

@media(max-width:600px) {
  .social-float {
    display: none
  }
}

/* FLOAT BUTTON */
.float-call-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #00c73a;
  color: var(--white);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 1001;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
  animation: pulse 2.4s infinite;
  transition: background-color .25s
}

.float-call-btn:hover {
  background: #00992e
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 199, 58, .35);
  }

  70% {
    box-shadow: 0 0 0 20px rgba(0, 199, 58, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 199, 58, 0)
  }
}

@media(min-width:601px) {
  .float-call-btn {
    display: none
  }
}

/* SECTION TITLE — SOLID COLOR */
.section-title {
  text-align: center;
  padding: 1.25rem 0 .35rem
}

.section-title h2 {
  display: inline-block;
  background: none !important;
  -webkit-background-clip: unset !important;
  color: var(--brand-blue) !important;
  font-size: var(--h2);
  font-weight: 800;
  margin: 0;
  padding: 0 .25rem;
  letter-spacing: -.4px;
}

body.dark-theme .section-title h2 {
  color: var(--text-dark) !important
}

/* ABOUT */
.about {
  padding: 3.4rem 0;
  background: var(--bg-soft)
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad)
}

.about-text h2 {
  color: var(--brand-blue);
  font-weight: 800;
  margin-bottom: .6rem
}

.about-text p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .8rem 1.2rem;
  margin-bottom: 2rem
}

.usp {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 600;
  color: var(--text-dark)
}

.usp i {
  color: var(--brand-red)
}

.about-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  transform: scale(1);
  transition: transform .45s cubic-bezier(.2, .9, .2, 1)
}

.about-img img:hover {
  transform: scale(1.04)
}

/* ACHIEVEMENTS */
.achievements {
  padding: 3rem 1rem;
  display: flex;
  gap: 1.5rem;
  justify-content: space-around;
  background: linear-gradient(135deg, rgba(20, 40, 84, .06), rgba(230, 57, 70, .03));
  text-align: center;
  overflow: hidden
}

.counter-box {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  min-width: 220px;
  transition: transform var(--transition), box-shadow var(--transition)
}

.counter-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2)
}

.counter-box .counter {
  font-size: 3rem;
  color: var(--brand-red);
  font-weight: 800;
  margin: 0
}

.counter-box p {
  color: var(--brand-blue);
  font-weight: 600;
  margin: 0
}

/* FEATURED PROJECTS */
.featured-projects {
  padding: 3.4rem 0;
  background: var(--bg-soft)
}

.masonry-grid {
  column-count: 2;
  column-gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto
}

.project-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  display: inline-block;
  margin: 0 0 1.5rem;
  width: 100%;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2)
}

.project-swiper {
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid #eee;
  position: relative;
  margin-bottom: .5rem
}

.project-swiper .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 3s ease
}

.project-swiper .swiper-pagination-bullet {
  background: #fff;
  opacity: 1;
  height: 8px;
  width: 8px;
  transition: all .3s
}

.project-swiper .swiper-pagination-bullet-active {
  background: var(--brand-red);
  width: 16px;
  border-radius: 999px
}

.project-info {
  padding: .7rem 1.2rem 1.2rem
}

.project-info h3 {
  color: var(--brand-blue);
  font-weight: 800;
  margin-top: .5rem;
  margin-bottom: .3rem;
  font-size: 1.25rem
}

.project-info .location {
  color: var(--brand-red);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .6rem;
  font-size: .95rem
}

.project-info .description {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.65;
  margin-bottom: 1rem
}

.project-actions {
  display: flex;
  gap: .75rem;
  margin-top: 1rem
}

.project-actions .btn {
  margin-top: 0;
  padding: .55rem .9rem;
  font-size: .95rem;
  flex-grow: 1;
  text-align: center
}

.view-all {
  text-align: center;
  padding-top: 1.5rem
}

/* GOOGLE REVIEWS */
.google-reviews {
  padding: 3rem 0;
  background: var(--bg-soft);
  text-align: center
}

.review-placeholder {
  max-width: 420px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2)
}

.review-placeholder h3 {
  color: var(--brand-blue);
  margin-bottom: .5rem
}

.review-placeholder p {
  color: var(--muted);
  font-size: .95rem
}

/* SERVICES */
.services {
  padding: 3rem 0;
  background: var(--bg-soft)
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto
}

.card {
  background: var(--card-bg);
  padding: 1.1rem;
  border-radius: 12px;
  box-shadow: var(--shadow-1);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition)
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2)
}

.card img {
  height: max-content;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: .7rem
}

.card h3 {
  color: var(--brand-blue);
  font-weight: 700
}



/* =======================================
   PREMIUM CORPORATE FAQ (WITH NUMBERS)
   ======================================= */

.faq {
  padding: 3.5rem 0;
  background: var(--bg-soft);
}

.faq-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 1.3rem;
}

/* Card */
.faq-item {
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: var(--shadow-1);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
  transition: all .35s ease;
}

.faq-item:hover {
  border-color: var(--brand-red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}

/* Question bar */
.faq-q {
  width: 100%;
  padding: 1.2rem 1.4rem;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  text-align: left;
  transition: all .3s ease;
}

.faq-left {
  display: flex;
  align-items: left;
  gap: 1rem;
}

.faq-num {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand-red);
  background: rgba(230,57,70,0.12);
  padding: 6px 12px;
  border-radius: 10px;
  min-width: 42px;
  text-align: center;
}

.faq-q h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--brand-blue);
  font-weight: 700;
  letter-spacing: -.3px;
  text-align: left;
}

.faq-q.open h3 {
  color: var(--brand-red);
}

.faq-q i {
  font-size: 1.2rem;
  color: var(--brand-blue);
  transition: transform .3s ease, color .3s ease;
}

.faq-q.open i {
  transform: rotate(180deg);
  color: var(--brand-red);
}

/* Answer */
.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.4rem;
  transition: max-height .4s ease, padding .32s ease;
  text-align: justify;
}

.faq-q.open + .faq-a {
  padding: 0.75rem 1.4rem 1.4rem;
  max-height: 400px;
}

.faq-a p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

/* DARK THEME FIX */
body.dark-theme .faq-item {
  background: #1b1b1b;
  border-color: rgba(255,255,255,0.08);
}

body.dark-theme .faq-num {
  background: rgba(255,65,65,0.25);
  color: #ff7676;
}

body.dark-theme .faq-q h3 {
  color: #fff;
}

body.dark-theme .faq-q.open h3 {
  color: #ff4d4d;
}

body.dark-theme .faq-a p {
  color: #ddd;
}


/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 50px;
  right: 22px;
  width: 50px;
  height: 50px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  z-index: 1200;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: transform .3s ease;
  animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background: #1ebe57;
}

/* Nice pulse animation */
@keyframes whatsappPulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 0 0 20px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* Hide on small phones if needed */
@media(max-width:600px) {
  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
    font-size: 1.7rem;
  }
}



/* FOOTER */
footer {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-2));
  color: var(--white);
  padding: 3rem 1rem 1rem;
  margin-top: 1.5rem
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto
}

.footer-section h3 {
  color: #fff;
  margin-bottom: 1rem;
  font-weight: 700;
  border-bottom: 2px solid rgba(255, 255, 255, .08);
  padding-bottom: .5rem
}

.footer-section p,
.footer-section ul {
  font-size: .95rem;
  color: rgba(255, 255, 255, .9)
}

.footer-section ul {
  list-style: none;
  padding: 0
}

.footer-section ul li {
  margin-bottom: .5rem
}

.footer-section a {
  color: rgba(255, 255, 255, .9);
  transition: color .3s
}

.footer-section a:hover {
  color: var(--brand-red)
}

.footer-social a {
  font-size: 1.4rem;
  margin-right: 1.2rem;
  transition: color .3s, transform .3s
}

.footer-social a:hover {
  color: var(--brand-red);
  transform: scale(1.08)
}


.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12)
}

.footer-bottom p {
  font-size: .85rem;
  margin: 0;
  color: rgba(255, 255, 255, .75)
}
/* Footer Map Responsive Fix */
.footer .map-section iframe {
  width: 100% !important;
  height: 220px;
  border-radius: 10px;
  border: 0;
  display: block;
}

/* Focus */
a:focus,
button:focus,
input:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 0 6px rgba(20, 40, 84, .06);
  border-radius: 8px
}

/* RESPONSIVE */
@media(max-width:1100px) {
  .hero-text h1 {
    font-size: 2.05rem
  }

  .project-card img {
    height: 220px
  }

  .gallery-swiper .swiper-slide img {
    height: 340px
  }
}

@media(max-width:920px) {
  .about-container {
    grid-template-columns: 1fr
  }

  .usp-grid {
    grid-template-columns: 1fr
  }

  nav ul {
    display: none
  }

  .hamburger {
    display: flex
  }

  nav ul.show {
    display: flex;
    position: fixed;
    top: 72px;
    right: 12px;
    background: var(--card-bg);
    flex-direction: column;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-2);
    width: 220px
  }

  .search-bar input,
  .search-bar select {
    width: 100%
  }

  .search-card {
    flex-direction: column;
    text-align: center
  }

  .search-card img {
    max-height: 220px;
    width: 100%
  }

  .search-card-actions {
    justify-content: center
  }
}

@media(max-width:600px) {
  .logo img {
    height: 40px
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center
  }

  .footer-bottom p:first-child {
    order: 2
  }

  .masonry-grid {
    column-count: 1
  }

  .hero {
    min-height: 62vh
  }
}

/* ===========================
   REVEAL & STAGGER ANIMATIONS
   =========================== */
/* base reveal */
.reveal {
  opacity: 0;
  transform: translateY(36px) scale(.997);
  transition: opacity .72s cubic-bezier(.2, .9, .2, 1), transform .72s cubic-bezier(.2, .9, .2, 1);
  will-change: transform, opacity;
  visibility: visible;
}

/* variants */
.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1)
}

.reveal-left {
  transform: translateX(-36px)
}

.reveal-right {
  transform: translateX(36px)
}

.reveal-left.active,
.reveal-right.active {
  transform: translateX(0)
}

.reveal-up {
  transform: translateY(36px)
}

.reveal-up.active {
  transform: translateY(0)
}

/* fade down (when leaving view from top) - handled by JS toggling class 'reveal-out' */
.reveal-out {
  opacity: 0;
  transform: translateY(-22px);
  transition: opacity .45s ease, transform .45s ease
}

/* Stagger container: children animate with calculated delay */
.stagger {
  --stagger-gap: 80ms;
}

.stagger>* {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: 0ms;
  will-change: transform, opacity;
}

.stagger.active>* {
  opacity: 1;
  transform: translateY(0);
}

/* Add subtle hover zoom for cards */
.card,
.project-card {
  transition: transform .5s cubic-bezier(.2, .9, .2, 1), box-shadow .4s;
}

.card:hover,
.project-card:hover {
  transform: translateY(-8px) scale(1.005);
  box-shadow: var(--shadow-2);
}

/* Small utility spacing helpers */
.pt-2 {
  padding-top: 1rem
}

.pb-2 {
  padding-bottom: 1rem
}

.mt-1 {
  margin-top: .6rem
}

.mb-1 {
  margin-bottom: .6rem
}