:root {
  /* Ultra Premium Palette */
  --color-bg: #030303;
  --color-surface: #0a0a0a;
  --color-surface-light: #141414;
  
  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 50%, #B8860B 100%);
  --gradient-gold-text: -webkit-linear-gradient(135deg, #F3E5AB 0%, #D4AF37 50%, #B8860B 100%);
  --gradient-dark: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 100%);
  
  /* Text */
  --color-text-main: #FFFFFF;
  --color-text-muted: #A0A0A0;
  
  /* Fonts */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Manrope', sans-serif;
  
  /* Spacing */
  --spacing-container: 90%;
  --header-height: 90px;
  
  /* Animation */
  --ease-cinematic: cubic-bezier(0.19, 1, 0.22, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
  user-select: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.4s var(--ease-cinematic);
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-text-main);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.text-gold {
  background: var(--gradient-gold-text);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Container */
.container {
  width: var(--spacing-container);
  max-width: 1600px;
  margin: 0 auto;
}

/* Navigation - Floating Glass */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  z-index: 1000;
  background: rgba(3, 3, 3, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.1em;
}

.logo span {
  color: #D4AF37;
}

.nav-links {
  display: flex;
  gap: 3.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  position: relative;
}

.nav-links a::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transition: width 0.4s var(--ease-cinematic);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a:hover::before {
  width: 20px;
}

/* Admin Icon */
.admin-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #D4AF37;
  transition: all 0.4s var(--ease-cinematic);
  margin-left: 2rem;
}

.admin-icon:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: #D4AF37;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.admin-icon svg {
  transition: transform 0.3s ease;
}

.admin-icon:hover svg {
  transform: scale(1.1);
}

/* Hero Section - Carousel */
.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Carousel Slides */
.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out, transform 8s ease;
  transform: scale(1.1);
  will-change: transform, opacity;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.hero-subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: #D4AF37;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-cinematic) forwards 0.5s;
}

.hero-title {
  font-size: clamp(4rem, 10vw, 8rem);
  color: #fff;
  line-height: 0.9;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-cinematic) forwards 0.8s;
}

.hero-title span {
  display: block;
  font-family: var(--font-body); /* Contrast Font */
  font-size: 0.3em;
  letter-spacing: 0.2em;
  font-weight: 300;
  margin-top: 1rem;
  text-transform: none;
  font-style: italic;
  color: var(--color-text-muted);
}

.hero-btn-group {
  opacity: 0;
  animation: fadeUp 1s var(--ease-cinematic) forwards 1.1s;
}

/* Custom Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  background: transparent;
  transition: all 0.4s var(--ease-cinematic);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: #fff;
  transition: width 0.4s var(--ease-cinematic);
  z-index: -1;
}

.btn:hover {
  color: #000;
  border-color: #fff;
}

.btn:hover::before {
  width: 100%;
}

.btn-primary {
  border-color: #D4AF37;
  color: #D4AF37;
}

.btn-primary::before {
  background: var(--gradient-gold);
}

.btn-primary:hover {
  color: #000;
  border-color: transparent;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* SVG Patterns */
.pattern-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.section-padding {
  padding: 8rem 0;
  position: relative;
}

/* Services / Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card-premium {
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 2rem;
  transition: transform 0.4s var(--ease-cinematic), border-color 0.4s;
  position: relative;
  overflow: hidden;
}

.card-premium:hover {
  transform: translateY(-10px);
  border-color: #D4AF37;
}

.card-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 50%;
  color: #D4AF37;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.card-link {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #fff;
  border-bottom: 1px solid #D4AF37;
  padding-bottom: 5px;
}

/* Portfolio Masonry */
.masonry-grid {
  column-count: 3;
  column-gap: 2rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.masonry-item img {
  width: 100%;
  transition: transform 0.7s ease;
}

.masonry-item:hover img {
  transform: scale(1.05);
}

.item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.masonry-item:hover .item-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
footer {
  padding: 3rem 0;
  background: var(--color-bg);
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* Mobile Nav */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 0 30px; /* More bottom padding for modern phones */
  justify-content: space-around;
  z-index: 2147483647; /* Max Z-Index */
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
}

.bottom-nav-item {
  color: #666;
  text-align: center;
  font-size: 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.bottom-nav-item svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.bottom-nav-item.active {
  color: #D4AF37;
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .admin-icon { 
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
  }
  .bottom-nav { display: flex; }
  .hero-title { font-size: 3.5rem; }
  .cards-grid, .masonry-grid { grid-template-columns: 1fr; column-count: 1; }
  .btn { width: 100%; margin-bottom: 1rem; }
  .hero-btn-group a { margin-left: 0 !important; }
  
  /* Scan Me Promo Section Mobile */
  .scanme-promo-grid { 
    grid-template-columns: 1fr !important; 
    gap: 2rem !important;
    text-align: center;
  }
  .scanme-promo-svg { 
    width: 200px !important; 
    height: 200px !important; 
  }
  .scanme-features { 
    flex-direction: column !important; 
  }
  .scanme-buttons {
    flex-direction: column !important;
  }
  .scanme-buttons a {
    width: 100%;
    justify-content: center !important;
  }
}

/* --- MOBILE FIXES --- */

/* Responsive Contact Layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contact-sidebar {
    position: sticky;
    top: 150px;
}

/* Base Inputs */
input, textarea, select {
    font-family: var(--font-body);
    font-size: 1rem;
}

/* Mobile App Feel Improvements */
@media (max-width: 1024px) {
    /* Global Adjustments */
    .section-padding {
        padding: 4rem 0 !important;
    }
    
    .container {
        width: 90%;
        max-width: 100%;
    }

    h1 { font-size: 2.5rem !important; }
    h2 { font-size: 2rem !important; }
    
    /* Contact Page Mobile */
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-sidebar {
        position: relative;
        top: 0;
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    /* Form Elements - Touch Friendly */
    form input, form textarea {
        padding: 1.2rem !important; /* Larger touch target */
        font-size: 16px !important; /* Prevent iOS zoom */
        border-radius: 12px;
    }

    .btn {
        width: 100%;
        padding: 1.2rem;
        border-radius: 12px;
        font-size: 1rem;
    }

    /* Fix Filter Buttons Stacking caused by global .btn rule */
    /* Fix Filter Buttons Stacking caused by global .btn rule */
    .filter-scroll .btn, 
    .filter-scroll a.btn {
        width: auto !important;
        min-width: 0 !important;
        margin-bottom: 0 !important;
        flex: 0 0 auto !important;
        display: inline-flex !important;
        padding: 10px 24px !important;
    }

    /* Adjust Title Size for Mobile */
    h1 { font-size: 2.2rem !important; line-height: 1.2; }
    
    /* Portfolio Mobile App Look */
    .masonry-grid {
        column-count: 1;
        gap: 2rem;
        padding-bottom: 2rem;
    }
    
    .masonry-item {
        margin-bottom: 2rem;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .masonry-item img {
        height: auto;
        min-height: 300px;
        object-fit: cover;
    }
    
    /* App-like Filters */
    .filter-scroll {
        display: flex;
        flex-direction: row; /* Force row */
        overflow-x: auto;
        padding: 5px 20px 20px 20px; /* Padding for shadow */
        gap: 12px !important;
        justify-content: flex-start !important;
        -webkit-overflow-scrolling: touch;
        margin-left: -20px;
        width: calc(100% + 40px);
    }
    
    .filter-scroll::-webkit-scrollbar {
        display: none;
    }

    .filter-scroll a {
        white-space: nowrap;
        background: rgba(255,255,255,0.08);
        padding: 10px 24px;
        border-radius: 100px;
        border: 1px solid rgba(255,255,255,0.1) !important;
        font-size: 0.85rem;
        font-weight: 500;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        text-transform: capitalize;
        letter-spacing: 0.5px;
        color: var(--color-text-muted);
    }
    
    .filter-scroll a:first-child {
        color: #D4AF37;
        border-color: #D4AF37 !important;
        background: rgba(212, 175, 55, 0.1);
    }

    .filter-scroll a:active {
        transform: scale(0.95);
        background: rgba(255,255,255,0.15);
    }
}
