/* =====================================================
   Mati Auto Detailing & Stereo Services
   Custom Stylesheet - Gold / Black Premium Theme
   ===================================================== */

/* =====================================================
   CSS Variables
   ===================================================== */
:root {
    --primary: #C9A227;
    --primary-light: #E5C04E;
    --primary-dark: #A6841A;
    --primary-darker: #7A6010;
    --gold-glow: rgba(201, 162, 39, 0.4);
    --gold-rich: #B8860B;
    --gold-champagne: #C2A878;
    --dark-primary: #0A0A0A;
    --dark-secondary: #141414;
    --dark-tertiary: #1f1f1f;
    --dark-border: #2e2e2e;
    --text-primary: #F5F0E5;
    --text-secondary: #BBB5A8;
    --text-muted: #807A6E;
}

/* =====================================================
   Body & base text contrast (Tailwind 3.x utilities + overrides)
   ===================================================== */
html {
    scroll-behavior: smooth;
}

body {
    background: var(--dark-primary);
    color: var(--text-primary);
}

/* Mobile bottom bar spacing - prevents fixed nav covering content */
@media (max-width: 1023px) {
    body {
        padding-bottom: 64px;
    }
}

/* Ensure gray text is visible on dark background */
.text-gray-400 {
    color: #B0AAA0 !important;
}

.text-gray-500 {
    color: #8C8780 !important;
}

/* =====================================================
   Custom Tailwind Extensions (Tailwind 3.x handles most utilities)
   ===================================================== */
/* Text gradient - custom effect */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-light), var(--primary), var(--primary-dark));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

/* =====================================================
   Base Styles
   ===================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-section {
    overflow: hidden;
    position: relative;
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-primary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}

/* =====================================================
   Animations
   ===================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-100%); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes particleFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* =====================================================
   Container & Layout
   ===================================================== */
.max-w-container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* =====================================================
   Navigation Styles
   ===================================================== */
.nav-link {
    position: relative;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    letter-spacing: 0.01em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Navigation */
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(212, 160, 23, 0.12);
    color: var(--primary);
    border-left-color: var(--primary);
}

.mobile-nav-link svg {
    flex-shrink: 0;
}

/* =====================================================
   Services Dropdown
   ===================================================== */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    background: transparent;
    border: 0;
}

.dropdown-menu {
    pointer-events: none;
    z-index: 100;
}

/* Open state - both hover and click */
.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto;
}

.dropdown:hover .dropdown-arrow,
.dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown:hover .dropdown-toggle,
.dropdown.open .dropdown-toggle {
    color: var(--primary);
}

/* Header Scroll Effect */
.header-scrolled {
    background: rgba(8, 8, 8, 0.98) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(201,162,39,0.2);
    border-bottom-color: transparent !important;
}

.header-scrolled nav {
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
}

.header-scrolled img {
    height: 2.75rem !important;
}

@media (min-width: 768px) {
    .header-scrolled img {
        height: 3rem !important;
    }
}

/* =====================================================
   Button Styles
   ===================================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 50%, var(--primary-dark) 100%);
    color: #080808;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--gold-glow);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.875rem;
    border: 2px solid var(--primary);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-secondary:hover {
    background: var(--primary);
    color: #080808;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--gold-glow);
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero-section {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    overflow: hidden;
    overflow-x: hidden;
    max-width: 100vw;
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
    background: var(--dark-primary);
}

/* Tighten internal spacing on mobile */
@media (max-width: 767px) {
    .hero-content .hero-badge {
        margin-bottom: 0.875rem !important;
    }
    .hero-content .hero-title {
        margin-bottom: 0.875rem !important;
        font-size: clamp(2rem, 8vw, 3rem) !important;
    }
    .hero-content .hero-description {
        margin-bottom: 1.25rem !important;
        font-size: 0.95rem !important;
    }
    .hero-buttons {
        margin-bottom: 1.5rem !important;
    }
    .hero-stats {
        margin-top: 1.25rem !important;
        padding-top: 1.25rem !important;
        gap: 0.75rem !important;
    }
    .hero-stat-number {
        font-size: 1.5rem !important;
    }
    .hero-stat-label {
        font-size: 0.7rem !important;
    }
}

@media (min-width: 768px) {
    .hero-section {
        padding-top: 3rem;
        padding-bottom: 3.5rem;
        min-height: 88vh;
    }
}

/* Balanced black-transparent overlay for proper text visibility on bg images */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.2) 100%),
        linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.5) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: slowZoom 25s ease-in-out infinite alternate;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-content h1,
.hero-content p {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-title {
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.85), 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* CRITICAL: Remove text-shadow from gradient-text elements to prevent black silhouette */
.hero-title .text-gradient,
.text-gradient {
    text-shadow: none !important;
}

.hero-description {
    color: #F0E8D5 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(212, 160, 23, 0.15);
    border: 1px solid rgba(212, 160, 23, 0.4);
    border-radius: 9999px;
    color: var(--primary-light);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: fadeInDown 1s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.02em;
    animation: fadeInUp 1s ease-out 0.2s both;
    text-transform: uppercase;
    transform: translateY(0);
}

.hero-title .text-gradient {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 50%, var(--primary-dark) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
    filter: drop-shadow(0 0 16px rgba(212, 160, 23, 0.5));
}

.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 540px;
    line-height: 1.7;
    animation: fadeInUp 1s ease-out 0.4s both;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.125rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

@media (min-width: 480px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 1s ease-out 0.8s both;
}

@media (min-width: 768px) {
    .hero-stats {
        gap: 2rem;
        margin-top: 3rem;
        padding-top: 3rem;
    }
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    font-family: 'Oswald', sans-serif;
}

.hero-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .hero-stat-label {
        font-size: 0.875rem;
    }
}

/* Particles */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 5;
    pointer-events: none;
}

.particle {
    position: absolute;
    bottom: -10px;
    width: 4px;
    height: 4px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0.7;
    box-shadow: 0 0 8px var(--primary), 0 0 12px rgba(229,192,78,0.5);
    animation: particleFloat 18s infinite linear;
}

.particle:nth-child(3n) {
    width: 3px;
    height: 3px;
    opacity: 0.5;
}

.particle:nth-child(5n) {
    width: 5px;
    height: 5px;
    opacity: 0.85;
}

/* =====================================================
   Section Styles
   ===================================================== */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(201, 162, 39, 0.12);
    border: 1px solid rgba(201, 162, 39, 0.4);
    border-radius: 9999px;
    color: var(--primary-light);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    box-shadow: inset 0 0 12px rgba(201,162,39,0.05);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 50%, var(--primary-dark) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

/* =====================================================
   Service Cards
   ===================================================== */
.service-card {
    position: relative;
    background: var(--dark-secondary);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--dark-border);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-light), var(--primary-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 160, 23, 0.2);
    border-color: rgba(212, 160, 23, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.1);
}

.service-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--dark-secondary) 0%, transparent 60%);
}

.service-card-content {
    padding: 1.5rem;
}

.service-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary), var(--primary-dark));
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -2.5rem;
    position: relative;
    z-index: 10;
    box-shadow: 0 8px 24px var(--gold-glow);
}

.service-card-icon svg {
    width: 26px;
    height: 26px;
    color: #080808;
}

.service-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-top: 1rem;
    color: var(--text-primary);
    font-family: 'Oswald', sans-serif;
}

.service-card-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    line-height: 1.6;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    transition: gap 0.3s ease;
}

.service-card-link:hover {
    gap: 0.75rem;
}

/* =====================================================
   Gallery
   ===================================================== */
.gallery-item {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-filter-btn {
    transition: all 0.3s ease;
}

.gallery-filter-btn.active {
    background: var(--primary) !important;
    color: #080808 !important;
}

/* =====================================================
   Testimonials
   ===================================================== */
.testimonial-card {
    background: var(--dark-secondary);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--dark-border);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: rgba(212, 160, 23, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    color: var(--primary);
}

.testimonial-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 1rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--dark-border);
}

.testimonial-author-image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.testimonial-author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.testimonial-author-title {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* =====================================================
   Forms
   ===================================================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--dark-tertiary);
    border: 1px solid var(--dark-border);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
}

/* =====================================================
   CTA Section
   ===================================================== */
.cta-section {
    position: relative;
    background:
        linear-gradient(135deg, rgba(10,10,10,0.7) 0%, rgba(20,15,5,0.5) 50%, rgba(40,30,10,0.4) 100%),
        linear-gradient(135deg, #1a1200 0%, #3d2d08 30%, var(--primary-darker) 60%, var(--primary-dark) 100%);
    overflow: hidden;
}

.cta-section h2 {
    text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

.cta-section p {
    text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 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.1'%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");
    opacity: 0.3;
}

.cta-section h2,
.cta-section p {
    color: white !important;
}

.cta-section p {
    opacity: 0.9;
}

/* =====================================================
   Page Header (Inner Page Hero)
   ===================================================== */
.page-header {
    position: relative;
    padding: 6rem 0 4rem;
    background:
        linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.45) 50%, rgba(10,10,10,0.7) 100%),
        url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
}

.page-header h1,
.page-header p,
.page-header nav,
.page-header .breadcrumb,
.page-header .breadcrumb a {
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

/* Prevent gradient text silhouette on inner pages */
.page-header .text-gradient {
    text-shadow: none !important;
}

.page-header .breadcrumb,
.page-header .breadcrumb a,
.page-header .breadcrumb span {
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

@media (min-width: 768px) {
    .page-header {
        padding: 9rem 0 5rem;
        min-height: 420px;
    }
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(201, 162, 39, 0.18), transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(201, 162, 39, 0.10), transparent 60%);
    pointer-events: none;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 160, 23, 0.5), transparent);
}

.page-header-content {
    position: relative;
    z-index: 10;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb-separator {
    color: var(--dark-border);
}

/* =====================================================
   Pricing Cards
   ===================================================== */
.pricing-card {
    background: var(--dark-secondary);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--dark-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.02);
    box-shadow: 0 0 40px var(--gold-glow);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: 1.4rem;
    right: -3.25rem;
    width: 12rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #080808;
    padding: 0.35rem 0;
    font-size: 0.7rem;
    font-weight: 800;
    transform: rotate(45deg);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    z-index: 5;
    pointer-events: none;
}

.pricing-card:hover {
    border-color: rgba(212, 160, 23, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-8px);
}

/* =====================================================
   Lightbox
   ===================================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 0.5rem;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #080808;
}

.lightbox-close:hover {
    transform: rotate(90deg);
    background: var(--primary-light);
}

/* =====================================================
   Counter Animation
   ===================================================== */
.counter-box {
    text-align: center;
    padding: 1.5rem;
    background: var(--dark-secondary);
    border-radius: 1rem;
    border: 1px solid var(--dark-border);
    transition: all 0.3s ease;
}

.counter-box:hover {
    border-color: rgba(212, 160, 23, 0.3);
    transform: translateY(-4px);
}

.counter-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    font-family: 'Oswald', sans-serif;
}

.counter-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* =====================================================
   About Page
   ===================================================== */
.about-image-wrapper {
    position: relative;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: -1rem;
    bottom: -1rem;
    border: 2px solid var(--primary);
    border-radius: 1rem;
    z-index: -1;
    box-shadow: 0 0 30px var(--gold-glow);
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.about-feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(212, 160, 23, 0.12);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-feature-icon svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

/* =====================================================
   Utilities
   ===================================================== */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(var(--dark-secondary), var(--dark-secondary)) padding-box,
                linear-gradient(135deg, var(--primary), var(--primary-dark)) border-box;
}

.glow-primary {
    box-shadow: 0 0 30px var(--gold-glow);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--dark-secondary) 25%, var(--dark-tertiary) 50%, var(--dark-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.5rem;
}

/* =====================================================
   Responsive Fixes
   ===================================================== */
@media (max-width: 767px) {
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Prevent any horizontal overflow */
section, .container, main {
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

/* =====================================================
   Additional Enhancements
   ===================================================== */

/* Glowing gold accent line */
.glow-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-dark), var(--primary-light), var(--primary-dark), transparent);
    box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary-light);
}

/* Card hover glow effect */
.card-glow:hover {
    box-shadow: 0 0 30px rgba(212, 160, 23, 0.2), 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Animated underline for links */
.link-underline {
    position: relative;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
    transition: width 0.3s ease;
}

.link-underline:hover::after {
    width: 100%;
}

/* Pulse animation for important elements */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 8px var(--primary), 0 0 16px rgba(212,160,23,0.3); }
    50% { box-shadow: 0 0 20px var(--primary-light), 0 0 40px rgba(245,197,24,0.5); }
}

/* Gradient border effect */
.gradient-border {
    position: relative;
    background: var(--dark-secondary);
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light), var(--primary-dark));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    border-radius: inherit;
    pointer-events: none;
}

/* Smooth image zoom on hover */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.5s ease;
}

.img-zoom:hover img {
    transform: scale(1.08);
}

/* Glass morphism effect */
.glass {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gold accent shadow */
.shadow-gold {
    box-shadow: 0 10px 40px var(--gold-glow);
}

/* Crisp text shadow for headings */
.text-crisp {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
