/* ===================================================
   APEX PDR — Premium Porsche PDR Website
   Core Design System & Styles
   =================================================== */

/* CSS Custom Properties - Dynamic via CMS */
:root {
    --primary: #C8A96E;
    --secondary: #1A1A1A;
    --accent: #D4AF37;
    --bg-dark: #0D0D0D;
    --bg-card: #1A1A1A;
    --bg-card-hover: #222222;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --text-accent: #C8A96E;
    --gradient-gold: linear-gradient(135deg, #C8A96E 0%, #D4AF37 50%, #C8A96E 100%);
    --gradient-dark: linear-gradient(180deg, #0D0D0D 0%, #1A1A1A 100%);
    --shadow-gold: 0 4px 30px rgba(200, 169, 110, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;

    /* Hero Settings Defaults */
    --hero-title-size: 3.5;
    --hero-subtitle-size: 0.9;
    --hero-desc-size: 1.15;

    /* New Customization */
    --hero-bg-opacity: 1;
    --hero-bg-brightness: 0.35;
    --hero-text-opacity: 1;
    --nav-scale: 1;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-dark);
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

.text-gradient {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.subtitle::before {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--gradient-gold);
}

.section-title {
    margin-bottom: 1.5rem;
}

/* Container */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-gold);
    color: #0D0D0D;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn-primary:hover::after {
    transform: translateX(100%);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

/* ========== PRELOADER ========== */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 2rem;
    animation: pulse 1.5s ease-in-out infinite;
}

.preloader-bar {
    width: 200px;
    height: 2px;
    background: var(--bg-card);
    border-radius: 2px;
    overflow: hidden;
}

.preloader-bar-inner {
    width: 0;
    height: 100%;
    background: var(--gradient-gold);
    animation: preloaderFill 1.5s ease-in-out forwards;
}

@keyframes preloaderFill {
    to {
        width: 100%;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ========== NAVIGATION ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(200, 169, 110, 0.1);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: calc(1.6rem * var(--nav-scale, 1));
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.nav-logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-size: calc(0.85rem * var(--nav-scale, 1));
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gradient-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 24px !important;
    font-size: 0.8rem !important;
}

/* Mobile Menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -5px);
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(var(--hero-bg-brightness, 0.35));
    opacity: var(--hero-bg-opacity, 1);
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from {
        transform: scale(1.05);
    }

    to {
        transform: scale(1.15);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(13, 13, 13, 0.4) 0%,
            rgba(13, 13, 13, 0.2) 40%,
            rgba(13, 13, 13, 0.6) 70%,
            rgba(13, 13, 13, 1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    padding: 0 2rem;
    opacity: var(--hero-text-opacity, 1);
}

.hero-content .subtitle {
    font-size: calc(var(--hero-subtitle-size) * 1rem);
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-content h1 {
    font-size: calc(var(--hero-title-size) * 1rem);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-content p {
    font-size: calc(var(--hero-desc-size) * 1rem);
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.7s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.9s both;
}

.hero-stats {
    position: absolute;
    bottom: 4rem;
    right: 4rem;
    z-index: 2;
    display: flex;
    gap: 3rem;
    animation: fadeInUp 0.8s ease 1.1s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.hero-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ========== SECTION COMMON ========== */
section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header .subtitle {
    justify-content: center;
}

.section-header .subtitle::before {
    display: none;
}

.section-header p {
    margin-top: 1rem;
}

/* Decorative elements */
.section-divider {
    width: 80px;
    height: 1px;
    background: var(--gradient-gold);
    margin: 0 auto 2rem;
}

/* ========== ABOUT SECTION ========== */
.about {
    background: var(--gradient-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}


.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.about-image-wrapper:hover img {
    transform: scale(1.03);
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(200, 169, 110, 0.2);
    border-radius: var(--radius-lg);
    pointer-events: none;
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 140px;
    height: 140px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-gold);
}

.about-badge-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bg-dark);
    line-height: 1;
}

.about-badge-text {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bg-dark);
    font-weight: 600;
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 2rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-feature i {
    color: var(--primary);
    font-size: 1.1rem;
}

.about-feature span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* ========== SERVICES SECTION ========== */
.services {
    background: var(--bg-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(200, 169, 110, 0.2);
    box-shadow: var(--shadow-card);
}

.service-card-image {
    height: 220px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-card-image img {
    transform: scale(1.08);
}

.service-card-body {
    padding: 2rem;
}

.service-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: rgba(200, 169, 110, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    margin-top: -44px;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(200, 169, 110, 0.2);
}

.service-card-icon i {
    color: var(--primary);
    font-size: 1.3rem;
}

.service-card h4 {
    margin-bottom: 0.8rem;
}

.service-card p {
    font-size: 0.92rem;
    margin-bottom: 1.2rem;
}

.service-card-price {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

/* ========== PROCESS SECTION ========== */
.process {
    background: var(--gradient-dark);
}

.process-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    opacity: 0.3;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 0 1rem;
}

.process-step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.process-step:hover .process-step-number {
    background: var(--gradient-gold);
    border-color: transparent;
}

.process-step-number span {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    transition: var(--transition);
}

.process-step:hover .process-step-number span {
    color: var(--bg-dark);
}

.process-step h4 {
    margin-bottom: 0.8rem;
    transition: var(--transition);
}

.process-step:hover h4 {
    color: var(--primary);
}

.process-step p {
    font-size: 0.9rem;
}

/* ========== GALLERY SECTION ========== */
.gallery {
    background: var(--bg-dark);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.gallery-filter {
    padding: 8px 24px;
    border: 1px solid rgba(200, 169, 110, 0.3);
    border-radius: var(--radius-xl);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-transform: capitalize;
}

.gallery-filter:hover,
.gallery-filter.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(13, 13, 13, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.gallery-item-overlay p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ========== TESTIMONIALS SECTION ========== */
.testimonials {
    background: var(--gradient-dark);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    border: 1px solid rgba(200, 169, 110, 0.08);
    transition: var(--transition);
    position: relative;
}

.testimonial-card:hover {
    border-color: rgba(200, 169, 110, 0.2);
    transform: translateY(-4px);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-family: var(--font-display);
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.1;
    line-height: 1;
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 1.2rem;
}

.testimonial-stars i {
    color: var(--accent);
    font-size: 0.85rem;
}

.testimonial-text {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-client {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bg-dark);
}

.testimonial-info h5 {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
}

.testimonial-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ========== CTA SECTION ========== */
.cta-section {
    background: var(--bg-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(200, 169, 110, 0.08) 0%, transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: 1.2rem;
}

.cta-content p {
    margin-bottom: 2.5rem;
}

/* ========== CONTACT SECTION ========== */
.contact {
    background: var(--gradient-dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.contact-item-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: var(--radius-sm);
    background: rgba(200, 169, 110, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(200, 169, 110, 0.15);
}

.contact-item-icon i {
    color: var(--primary);
    font-size: 1.1rem;
}

.contact-item h5 {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.9rem;
}

.contact-form {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    border: 1px solid rgba(200, 169, 110, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.1);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--secondary);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(200, 169, 110, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.footer-brand h3 span {
    color: var(--primary);
}

.footer-brand p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(200, 169, 110, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
    border: 1px solid rgba(200, 169, 110, 0.1);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.footer-column h5 {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul a {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-column ul a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-admin-link {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.1) !important;
    transition: var(--transition);
}

.footer-admin-link:hover {
    color: var(--primary) !important;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children animation */
.stagger-children>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-children.visible>*:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger-children.visible>*:nth-child(2) {
    transition-delay: 0.2s;
}

.stagger-children.visible>*:nth-child(3) {
    transition-delay: 0.3s;
}

.stagger-children.visible>*:nth-child(4) {
    transition-delay: 0.4s;
}

.stagger-children.visible>*:nth-child(5) {
    transition-delay: 0.5s;
}

.stagger-children.visible>* {
    opacity: 1;
    transform: translateY(0);
}

/* ========== LIGHTBOX ========== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: transparent;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero-stats {
        bottom: 2rem;
        right: 2rem;
        gap: 2rem;
    }

    .about-grid {
        gap: 3rem;
    }

    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-timeline::before {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        flex-direction: column;
        background: rgba(13, 13, 13, 0.98);
        backdrop-filter: blur(20px);
        padding: 100px 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.4s ease;
        border-left: 1px solid rgba(200, 169, 110, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        position: static;
        margin-top: 3rem;
        gap: 2rem;
    }

    .hero-stat-number {
        font-size: 1.8rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .about-badge {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    section {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.2rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 14px 28px;
        font-size: 0.8rem;
    }
}

/* ========== LANGUAGE SWITCHER ========== */
.lang-switcher {
    position: relative;
    z-index: 1002;
    margin-left: 1.5rem;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(200, 169, 110, 0.08);
    border: 1px solid rgba(200, 169, 110, 0.2);
    border-radius: var(--radius-xl);
    padding: 6px 14px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.05em;
}

.lang-current:hover {
    background: rgba(200, 169, 110, 0.15);
    border-color: var(--primary);
}

.lang-current .lang-flag {
    font-size: 1rem;
    line-height: 1;
}

.lang-current .lang-code {
    font-size: 0.75rem;
    text-transform: uppercase;
}

.lang-current i {
    font-size: 0.6rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.lang-switcher.open .lang-current i {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(200, 169, 110, 0.15);
    border-radius: var(--radius-sm);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.lang-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.lang-option:hover {
    background: rgba(200, 169, 110, 0.1);
    color: var(--text-primary);
}

.lang-option.active {
    background: rgba(200, 169, 110, 0.15);
    color: var(--primary);
    font-weight: 600;
}

.lang-option .lang-flag {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .lang-switcher {
        margin-left: 0;
        margin-right: 0.5rem;
    }

    .lang-current .lang-code {
        display: none;
    }
}

/* ========== RTL SUPPORT (Arabic) ========== */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] body {
    font-family: 'Cairo', var(--font-primary), sans-serif;
    text-align: right;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6 {
    font-family: 'Cairo', var(--font-display), sans-serif;
}

html[dir="rtl"] .subtitle::before {
    display: none;
}

html[dir="rtl"] .subtitle::after {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--gradient-gold);
}

/* RTL Navigation */
html[dir="rtl"] .nav-links {
    direction: rtl;
}

html[dir="rtl"] .nav-links a::after {
    left: auto;
    right: 0;
}

html[dir="rtl"] .lang-switcher {
    margin-left: 0;
    margin-right: 1.5rem;
}

html[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

html[dir="rtl"] .lang-option {
    text-align: right;
}

/* RTL Hero */
html[dir="rtl"] .hero-content {
    text-align: right;
}

html[dir="rtl"] .hero-buttons {
    justify-content: flex-start;
}

html[dir="rtl"] .hero-stats {
    right: auto;
    left: 4rem;
}

/* RTL About */
html[dir="rtl"] .about-content {
    text-align: right;
}

html[dir="rtl"] .about-feature {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

html[dir="rtl"] .about-experience-badge {
    left: -20px;
    right: auto;
}

/* RTL Contact */
html[dir="rtl"] .contact-info-card {
    flex-direction: row-reverse;
    text-align: right;
}

html[dir="rtl"] .contact-form {
    text-align: right;
}

html[dir="rtl"] .form-group label {
    text-align: right;
}

/* RTL Footer */
html[dir="rtl"] .footer-brand {
    text-align: right;
}

html[dir="rtl"] .footer-social {
    justify-content: flex-start;
}

html[dir="rtl"] .footer-links {
    text-align: right;
}

/* RTL Testimonial */
html[dir="rtl"] .testimonial-card::before {
    right: auto;
    left: 30px;
}

html[dir="rtl"] .testimonial-client {
    flex-direction: row-reverse;
}

html[dir="rtl"] .testimonial-info {
    text-align: right;
}

/* RTL Mobile */
@media (max-width: 768px) {
    html[dir="rtl"] .nav-links {
        right: auto;
        left: -100%;
        border-left: none;
        border-right: 1px solid rgba(200, 169, 110, 0.1);
    }

    html[dir="rtl"] .nav-links.active {
        left: 0;
    }

    html[dir="rtl"] .hero-stats {
        left: auto;
    }

    html[dir="rtl"] .lang-switcher {
        margin-right: 0;
        margin-left: 0.5rem;
    }
}

/* ========== HERO TEXT CUSTOM SIZING ========== */
.hero-title {
    font-size: calc(var(--hero-title-size, 3.5) * 1rem);
}

.hero-subtitle {
    font-size: calc(var(--hero-subtitle-size, 0.9) * 1rem);
}

.hero-description {
    font-size: calc(var(--hero-desc-size, 1.15) * 1rem);
}

/* Hero element visibility */
.hero-subtitle.cms-hidden,
.hero-title.cms-hidden,
.hero-description.cms-hidden,
.hero-buttons.cms-hidden {
    display: none !important;
}

/* Generic visibility */
.cms-hidden {
    display: none !important;
}