/* ==========================================================================
   GAIA REKA NUSANTARA - Premium Company Profile CSS
   Berdasarkan Design System PDF (Montserrat, #0F2D23, #1E7A34)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Variables (Design Tokens) --- */
:root {
  /* Colors dari PDF */
  --color-primary-dark: #0F2D23;   /* Deep Green (Pantone 5535 C) */
  --color-primary: #1E7A34;        /* Green (Pantone 7731 C) */
  --color-primary-light: #2CB34D;
  
  --color-text-main: #1F2937;
  --color-text-muted: #4B5563;
  --color-text-light: #9CA3AF;
  
  --color-bg-white: #FFFFFF;
  --color-bg-light: #F9FAFB;
  --color-bg-gray: #F3F4F6;
  
  --color-border: #E5E7EB;

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1rem; color: var(--color-text-muted); }

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
  position: relative;
}
.section-light { background-color: var(--color-bg-light); }
.section-dark { 
  background-color: var(--color-primary-dark);
  color: var(--color-bg-white);
}
.section-dark h2, .section-dark h3, .section-dark p {
  color: var(--color-bg-white);
}
.section-dark p { opacity: 0.8; }

.text-center { text-align: center; }

/* Aksen Geometris Diagonal (Adaptasi Halaman 1 & 2) */
.diagonal-bg {
  position: relative;
  z-index: 1;
}
.diagonal-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: var(--color-bg-light);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
  z-index: -1;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 4px; /* Slightly sharper corners as per corporate guidelines */
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
}
.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  transform: translateY(-2px);
}

.btn-white {
  background-color: var(--color-bg-white);
  color: var(--color-primary-dark);
}
.btn-white:hover {
  background-color: var(--color-bg-gray);
  transform: translateY(-2px);
}

/* --- Header / Navbar --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
  padding: 0.25rem 0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo img {
  height: 48px;
  width: auto;
}

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

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text-main);
  position: relative;
  font-size: 0.875rem;
  text-transform: uppercase;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-normal);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--color-primary);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-top: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.card-link:hover {
  color: var(--color-primary-dark);
  transform: translateX(5px);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-primary-dark);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
}

.hero-left {
  width: 55%;
  min-height: 100vh;
  display: block;
  padding: 180px 4rem 10rem 10%;
  background-color: #ffffff;
  position: relative;
  z-index: 2;
}

.hero-left::after {
  content: '';
  position: absolute;
  top: 0;
  right: -80px;
  width: 150px;
  height: 100%;
  background-color: #ffffff;
  transform: skewX(-12deg);
  z-index: -1;
  border-right: 15px solid var(--color-primary);
}

.hero-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('../images/hero_clean.jpeg') center/cover no-repeat;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-subtitle {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(30, 122, 52, 0.1);
  border-left: 4px solid var(--color-primary);
  color: var(--color-primary-dark);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.hero-title span {
  color: var(--color-primary);
}

.hero p {
  color: var(--color-text-light);
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-buttons .btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.hero-buttons .btn-outline {
  border-color: var(--color-primary-dark);
  color: var(--color-primary-dark);
}

.hero-buttons .btn-outline:hover {
  background-color: var(--color-primary-dark);
  color: #ffffff;
}

/* --- Features / Value Prop --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: -4rem;
  position: relative;
  z-index: 20;
}

.feature-card {
  background: var(--color-bg-white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  transition: transform var(--transition-normal);
  border-bottom: 4px solid var(--color-primary);
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* --- Cards (Services/Projects/Management) --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.standard-card {
  background: var(--color-bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.standard-card:hover {
  box-shadow: 0 15px 35px rgba(24, 74, 49, 0.15);
  transform: translateY(-8px);
  border-color: transparent;
}

.card-image-wrapper {
  overflow: hidden;
  position: relative;
}

.card-image {
  aspect-ratio: 16 / 9;
  height: auto;
  width: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.standard-card:hover .card-image {
  transform: scale(1.08);
}

.card-content {
  padding: 2rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  color: var(--color-primary-dark);
  font-weight: 800;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  line-height: 1.4;
}

.card-content p {
  color: var(--color-text-light);
  line-height: 1.7;
  flex: 1;
}

/* Management Card */
.management-card {
  background: var(--color-primary-dark);
  color: white;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
}
.management-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.management-card .content {
  padding: 1.5rem;
}
.management-card h4 {
  color: white;
  margin-bottom: 0.25rem;
}
.management-card p.title {
  color: var(--color-primary-light);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* --- Footer --- */
.footer {
  background-color: var(--color-primary-dark);
  color: var(--color-bg-white);
  padding: 4rem 0 2rem;
  border-top: 5px solid var(--color-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  margin-top: 1rem;
}

.footer h4 {
  color: var(--color-bg-white);
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}
.footer-links a {
  color: rgba(255,255,255,0.7);
}
.footer-links a:hover {
  color: var(--color-primary-light);
  padding-left: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
}

/* --- Floating WhatsApp --- */
.floating-wa {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: transform var(--transition-fast);
}
.floating-wa:hover {
  transform: scale(1.1);
  color: white;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .hero-left {
    width: 100%;
    display: block;
    padding: 160px 2rem 10rem;
    background-color: rgba(255, 255, 255, 0.95);
  }
  .hero-right {
    width: 100%;
  }
  .hero-left::after {
    display: none;
  }
  .hero-content { max-width: 100%; padding-right: 0; text-align: center; }
  .hero-buttons { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--color-bg-white);
    flex-direction: column;
    padding: 2rem;
    transition: left var(--transition-normal);
  }
  .nav-links.active { left: 0; }
  .mobile-menu-btn { display: block; }
  
  .hero { padding-top: 100px; }
  .features-grid { grid-template-columns: 1fr; margin-top: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   EXTRA UTILITIES (REFACTORED FROM HTML)
   ========================================================================== */

/* --- Fade In Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* --- Premium Cert Cards --- */
.premium-cert-card {
  background: linear-gradient(145deg, #0f2c24 0%, #0a1f19 100%);
  border-radius: 16px;
  padding: 3rem 2rem 2.5rem;
  position: relative;
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.premium-cert-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 45px rgba(15, 44, 36, 0.3);
  border-color: rgba(212, 175, 55, 0.5);
}
.cert-icon-wrapper {
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
  border: 5px solid var(--color-bg-white);
  transition: transform 0.4s ease;
}
.premium-cert-card:hover .cert-icon-wrapper {
  transform: translateX(-50%) rotate(10deg) scale(1.05);
}
.cert-icon-wrapper i {
  font-size: 1.8rem;
  color: #0f2c24;
}
.cert-category {
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  margin-top: 1rem;
}
.premium-cert-card h4 {
  color: #D4AF37;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}
.cert-desc {
  color: white;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.cert-desc strong {
  color: #F3E5AB;
  font-weight: 600;
  font-size: 1.05rem;
}
.cert-name {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(212, 175, 55, 0.3);
}
.cert-name p {
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.cert-name h5 {
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  font-family: 'Georgia', serif;
  font-style: italic;
  letter-spacing: 0.5px;
}

/* --- Portfolio Modern Grid --- */
.portfolio-grid-modern {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.portfolio-item-modern {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.portfolio-item-modern.span-3 {
  grid-column: span 3;
  aspect-ratio: auto;
}
.portfolio-item-modern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left bottom;
  display: block;
  transition: transform 0.5s ease;
}
.portfolio-item-modern:hover img {
  transform: scale(1.05);
}
@media (max-width: 576px) {
  .portfolio-grid-modern {
    grid-template-columns: 1fr;
  }
  .portfolio-item-modern.span-3 {
    grid-column: span 1;
  }
}

/* --- Generic Helper Classes --- */
.bg-light-green { background-color: #f8fbf9; }
.text-gold { color: #D4AF37; }
.shadow-hover { transition: box-shadow 0.3s ease, transform 0.3s ease; }
.shadow-hover:hover { box-shadow: 0 15px 30px rgba(0,0,0,0.1); transform: translateY(-5px); }

/* --- Management Gallery --- */
.management-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  position: relative;
  padding-bottom: 2rem;
}
.management-card-item {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  background: white;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.management-card-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 45px rgba(0,0,0,0.15);
}
.management-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
}
.management-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease;
}
.management-card-item:hover .management-image-wrapper img {
  transform: scale(1.05);
}
.management-info {
  padding: 2rem;
  text-align: center;
  background: linear-gradient(to top, white 80%, rgba(255,255,255,0) 100%);
  position: relative;
  z-index: 2;
  margin-top: -30px;
}
.management-info h3 {
  font-size: 1.5rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
  font-weight: 800;
}
.management-info p {
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .management-gallery {
      grid-template-columns: 1fr;
  }
}

/* --- Contact Responsive Grid --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}
@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* --- Process Flow Grid --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}
.process-step {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  position: relative;
  transition: transform 0.3s ease;
  z-index: 2;
  border-bottom: 4px solid transparent;
}
.process-step:hover {
  transform: translateY(-10px);
  border-bottom: 4px solid var(--color-primary);
}
.step-number {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  color: rgba(30, 122, 52, 0.1);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  line-height: 1;
}
.process-step h4 {
  font-size: 1.125rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary-dark);
}
.process-step p {
  font-size: 0.9rem;
  margin-bottom: 0;
}
@media (max-width: 992px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Safety Pillars --- */
.safety-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: -3rem;
  position: relative;
  z-index: 10;
}
.pillar-card {
  background: var(--color-primary-dark);
  color: white;
  padding: 2.5rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-bottom: 5px solid var(--color-primary);
  box-shadow: 0 20px 40px rgba(15, 45, 35, 0.2);
  transition: transform 0.3s ease;
}
.pillar-card:hover {
  transform: translateY(-5px);
}
.pillar-icon {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--color-primary-light);
}
.pillar-card h4 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 0;
}
.pillar-card p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 0;
}
@media (max-width: 992px) {
  .safety-pillars-grid {
    grid-template-columns: 1fr;
    margin-top: 2rem;
  }
}

/* --- Language Switcher --- */
.lang-switcher { display: flex; align-items: center; gap: 0.5rem; margin-left: 1rem; border-left: 1px solid rgba(0,0,0,0.1); padding-left: 1rem; }
.lang-btn { background: none; border: none; font-size: 0.875rem; font-weight: 600; color: #666; cursor: pointer; transition: all 0.3s ease; padding: 0; }
.lang-btn:hover { color: var(--color-primary); }
.lang-btn.active { color: var(--color-primary-dark); text-decoration: underline; }
@media (max-width: 992px) { .lang-switcher { margin-left: 0; padding-left: 0; border-left: none; justify-content: center; margin-top: 1rem; } }


/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 90px; /* Above WhatsApp button */
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--color-primary-dark);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* --- Lightbox Gallery --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.lightbox-close:hover {
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .back-to-top {
        right: 20px;
        bottom: 85px;
        width: 40px;
        height: 40px;
    }
    .lightbox-close {
        top: 20px;
        right: 20px;
    }
}
