/* ===================================================
   ⚙️ GLOBAL RESET & BASE CONFIG
=================================================== */
*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  width: 100%;
  font-family: "Space Grotesk", sans-serif;
  scroll-behavior: smooth;
  color: #1f2937;
  background-color: #ffffff;
  line-height: 1.6;
}

/* Prevent flicker on disabled / active buttons */
.active-btn {
  pointer-events: none;
}

/* ===================================================
   🎨 ROOT THEME VARIABLES
=================================================== */
:root {
  --blue: #1e3a8a;
  --blue-dark: #1e40af;
  --yellow: #facc15;
  --yellow-dark: #f59e0b;
  --border-soft: rgba(0, 0, 0, 0.05);
  --glass-bg: rgba(255, 255, 255, 0.65);
}

/* ===================================================
   🧠 TYPOGRAPHY
=================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Orbitron", monospace;
  font-weight: 600;
  line-height: 1.3;
}

.gradient-text {
  background: linear-gradient(90deg, #2563eb, #facc15);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===================================================
   🧊 PRIMARY GRADIENT BUTTON
=================================================== */
.reffto-btn {
  background: linear-gradient(90deg, #0056ff 0%, #7f8c8d 50%, #ffcc00 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 85, 255, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reffto-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 85, 255, 0.3);
}

/* ===================================================
   🧊 HEADER (GLASS NAV)
=================================================== */
#header {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease-in-out;
}

#header nav a {
  position: relative;
  font-weight: 500;
  transition: color 0.3s ease;
}

#header nav a:hover {
  color: var(--blue-dark);
}

#header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: var(--blue-dark);
  transition: width 0.3s ease;
}

#header nav a:hover::after {
  width: 100%;
}

/* ACTIVE HOME LINK */
.nav-home {
  color: #7c3aed;
  font-weight: 600;
}

.nav-home::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background-color: #7c3aed;
  border-radius: 2px;
}

/* ===================================================
   🦾 HERO SECTION
=================================================== */
#hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 3rem 5rem;
}

#hero h1 {
  font-weight: 800;
  letter-spacing: -0.5px;
}

#hero p {
  max-width: 600px;
}

/* Swiper */
.mySwiper {
  border-radius: 1rem;
  overflow: hidden;
}

.mySwiper img {
  object-fit: cover;
  transition: transform 0.6s ease;
}

@media (hover: hover) {
  .mySwiper:hover img {
    transform: scale(1.05);
  }
}

/* ===================================================
   📘 ABOUT SECTION
=================================================== */
#about img {
  border-radius: 1.5rem;
  transition: transform 0.5s ease;
}

@media (hover: hover) {
  #about img:hover {
    transform: scale(1.03);
  }
}

#about p {
  color: #374151;
}

/* ===================================================
   🧪 LABS SECTION
=================================================== */
#labs article {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

@media (hover: hover) {
  #labs article:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.15);
  }
}

/* ===================================================
   📰 LATEST @ REFFTO
=================================================== */
#latest-reffto article {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

@media (hover: hover) {
  #latest-reffto article:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  }
}

/* ===================================================
   🤝 PARTNERS
=================================================== */
.partner-logo {
  max-width: 150px;
  max-height: 48px;
  filter: grayscale(40%);
  transition: transform 0.35s ease, filter 0.35s ease;
}

@media (hover: hover) {
  .partner-logo:hover {
    filter: none;
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
  }
}

/* ===================================================
   🖼️ GALLERY
=================================================== */
#gallery figure {
  overflow: hidden;
  border-radius: 1rem;
  transition: transform 0.5s ease;
}

#gallery img {
  transition: transform 0.6s ease;
}

@media (hover: hover) {
  #gallery figure:hover img {
    transform: scale(1.08);
  }
}

/* ===================================================
   ⬆️ BACK TO TOP BUTTON
=================================================== */
.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background: #2563eb;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 50;
}

.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover {
  transform: translateY(-3px);
}

/* ===============================
   FOOTER (CLEAN & SIMPLE)
================================ */
footer {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}

footer h3 {
  font-weight: 600;
}

footer h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-top: 6px;
  background: linear-gradient(90deg, #1e3a8a, #facc15);
}

footer a {
  transition: color 0.25s ease, transform 0.25s ease;
}

footer a:hover {
  color: #1e3a8a;
  transform: translateX(3px);
}

/* ===================================================
   📱 RESPONSIVE TWEAKS
=================================================== */
@media (max-width: 1024px) {
  #hero {
    padding: 6rem 2rem 4rem;
  }
}

@media (max-width: 640px) {
  #hero {
    padding: 6rem 1.25rem 4rem;
  }

  #hero h1 {
    font-size: 2rem;
    line-height: 2.6rem;
  }
}
