:root {
  color-scheme: dark;
  --gold: #D4AF37;
  --gold-light: #FFD700;
  --gold-glow: rgba(212, 175, 55, 0.25);
  --black: #020202;
  --glass-bg: rgba(15, 15, 15, 0.6);
  --glass-border: rgba(212, 175, 55, 0.3);
  --nav-height: 70px;
}

/* Premium Gold Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #000;
}
::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 10px;
  border: 3px solid #000;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-light);
}

@media (max-width: 768px) {
  ::-webkit-scrollbar {
    width: 3px;
  }
  ::-webkit-scrollbar-thumb {
    background-color: var(--gold);
    background-clip: content-box;
    border-top: 45vh solid transparent;
    border-bottom: 45vh solid transparent;
  }
  ::-webkit-scrollbar-thumb:hover {
    background-color: var(--gold-light);
  }
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--gold) #000;
}

/* Base Styles */
html {
  /* Overscroll zone color — shown when fast-scrolling past page boundaries on mobile.
     Must match #bg-solid so no gray flash appears during rubber-band / momentum scroll. */
  background: #020205;
}

body {
  margin: 0; padding: 0;
  background: transparent;
  color: #fff;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
  width: 100%;
  /* Prevent browser bounce/overscroll revealing the area behind fixed elements */
  overscroll-behavior-y: none;
}

/* Background Elements */
#bg-solid {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: #020205; z-index: -2; pointer-events: none;
}

#bg-canvas {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  height: 100dvh; /* Dynamic viewport: excludes collapsible browser chrome on mobile */
  z-index: -1; pointer-events: none;
}

/* Premium Top Bar */
.top-bar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: var(--nav-height);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-container {
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
}

.logo img {
  height: 100%;
  max-height: 50px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.3s;
  opacity: 0.8;
}

.nav-link:hover {
  color: var(--gold);
  opacity: 1;
}

.nav-link.active {
  color: var(--gold);
  opacity: 1;
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--gold);
  cursor: pointer;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switcher-global {
  display: flex;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

.lang-btn-mini {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  opacity: 0.6;
}

.lang-btn-mini:hover {
  opacity: 1;
  background: rgba(212, 175, 55, 0.2);
}

.lang-btn-mini.active {
  background: var(--gold);
  color: #000;
  opacity: 1;
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  z-index: 1000;
}

.mobile-menu.open {
  max-height: 500px;
  padding: 10px 0;
}

.mobile-link {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 15px 20px;
  text-align: center;
  transition: 0.3s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-link:last-child {
  border-bottom: none;
}

.mobile-link:hover, .mobile-link.active {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
}

@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .lang-switcher-global { 
    display: flex; 
    gap: 8px;
  }
  .lang-btn-mini {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 5;
}

section {
  padding: 70px 0;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 120px 0 50px;
  position: relative;
  z-index: 10;
}

.hero-logo-container {
  margin-bottom: 30px;
}

.hero-logo {
  width: 180px;
  height: auto;
  filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
  transition: 0.5s ease;
}

.hero-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.6));
}

.hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.3rem, 5.5vw, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.03em;
  padding: 0 10px;
  background: linear-gradient(
    90deg, 
    var(--gold) 0%, 
    var(--gold) 40%, 
    #fff 50%, 
    var(--gold) 60%, 
    var(--gold) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShimmer 8s infinite linear;
  display: inline-block;
}

@keyframes titleShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.hero p {
  color: #FFFFFF;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  max-width: 750px;
  margin: 25px auto 40px;
  line-height: 1.6;
}

/* Buttons */
.cta-wrap {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 100;
}

.btn-gold {
  background: var(--gold);
  color: #000 !important;
  padding: 18px 35px;
  border-radius: 12px;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  font-size: 0.85rem;
  cursor: pointer;
  transition: 0.4s;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 250px;
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--gold-glow);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  color: #fff !important;
  padding: 18px 35px;
  border-radius: 12px;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  font-size: 0.85rem;
  text-decoration: none;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.4s;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 250px;
}

.btn-glass:hover {
  border-color: var(--gold);
  color: var(--gold) !important;
  box-shadow: 0 0 15px var(--gold-glow);
}

/* Section Titles & Tags */
.section-tag {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 800;
  font-size: 0.7rem;
  display: block;
  text-align: center;
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
  color: var(--gold);
}

/* Cards & Grid */
.illustration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 50px;
}

.illustration-card {
  text-align: center;
  padding: 35px 25px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.4s;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.6), inset 0 0 30px var(--gold-glow);
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.illustration-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px rgba(0,0,0,0.7), inset 0 0 40px var(--gold-glow);
}

.illustration-card i {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 20px;
  filter: drop-shadow(0 0 15px var(--gold));
}

.illustration-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  margin: 0;
  text-transform: uppercase;
  color: #fff;
}

/* Portfolio Tabs */
.tabs-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 50px;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 30px;
  border-radius: 25px;
  color: #ccc;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  transition: 0.4s;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.tab-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 35px var(--gold-glow);
}

.tab-btn.active {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.portfolio-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  overflow: hidden;
  transition: 0.5s ease;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6), inset 0 0 30px var(--gold-glow);
  backdrop-filter: blur(2px);
}

/* Footer */
.footer {
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  background: rgba(0, 0, 0, 0.02);
  position: relative;
  z-index: 10;
  backdrop-filter: blur(3px);
}

.f-nav {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.f-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 1px;
  transition: 0.3s;
}

.f-nav a:hover {
  color: var(--gold);
}

.social-dock {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.social-link {
  color: var(--gold);
  font-size: 1.5rem;
  transition: 0.4s;
  text-decoration: none;
}

.copyright {
  color: #fff;
  font-size: 0.65rem;
  letter-spacing: 5px;
  font-weight: 800;
  margin-top: 30px;
  text-transform: uppercase;
}

/* Zero-Override Hard Locks */
.gold-lock, .btn-gold, .section-tag, .section-title, .social-link {
  color-scheme: light !important;
  transform: translateZ(0);
}

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 80px 0 40px; }
  .hero-logo { width: 120px; }
  .hero h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .btn-gold, .btn-glass { width: 90%; min-width: unset; }
  .tabs-container { grid-template-columns: 1fr; }
  .f-nav { flex-direction: column; align-items: center; }
}

/* Feature Grid (Branding/Websites) */
.section-subtitle {
  text-align: center;
  color: #fff;
  font-size: clamp(0.85rem, 2vw, 1rem);
  margin-bottom: 50px;
  line-height: 1.6;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 80px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-decoration: none;
  color: #fff;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 40px var(--gold-glow);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gold);
}

.feature-content h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  margin: 0 0 10px;
  color: var(--gold);
  text-transform: uppercase;
}

.feature-content p {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.feature-list li {
  font-size: 0.85rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-list li i {
  font-size: 0.4rem;
  color: var(--gold);
}

/* Page Specific CTA */
.cta-section {
  text-align: center;
  padding: 80px 0;
}

.btn-cta {
  background: var(--gold);
  color: #000 !important;
  padding: 18px 40px;
  border-radius: 12px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 280px;
  transition: 0.4s;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--gold-glow);
}

@media (max-width: 992px) {
  .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .feature-list { grid-template-columns: 1fr; }
}

/* CTA Box (Home) */
.cta-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 50px 40px;
  border-radius: 30px;
  position: relative;
  text-align: center;
  margin: 40px auto;
  max-width: 900px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.6), inset 0 0 30px var(--gold-glow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.4s;
}

.cta-box:hover {
  border-color: var(--gold);
  box-shadow: 0 20px 45px rgba(0,0,0,0.7), inset 0 0 40px var(--gold-glow);
}

.cta-box h2 { 
  font-family: 'Syne', sans-serif; 
  font-size: clamp(1.4rem, 4vw, 2.5rem); 
  margin: 0 0 20px; 
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--gold);
}

.cta-box p {
  color: #fff;
  margin: 0 0 35px;
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.7;
  max-width: 800px;
}
