/* =========================================
   VARIABLES & TOKENS
   ========================================= */
:root {
    /* Color Palette */
    --clr-bg-main: #050505;
    --clr-bg-dark: #000000;
    --clr-bg-darker: #080808;
    --clr-text-main: #EAEAEA;
    --clr-text-light: #FFFFFF;
    --clr-text-muted: #888888;
    --clr-accent-gold: #D4AF37;
    --clr-accent-gold-hover: #F3E5AB;
    --gradient-gold: linear-gradient(135deg, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Sizes */
    --section-padding: 10rem 0;
    --container-width: 1400px;
    
    /* Transitions */
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
:root[data-theme="light"] {
    --clr-bg-main: #FAFAFA;
    --clr-bg-dark: #EEEEEE;
    --clr-bg-darker: #E5E5E5;
    --clr-text-main: #111111;
    --clr-text-light: #222222;
    --clr-text-muted: #555555;
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important; /* Hide default cursor */
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

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

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

ul {
    list-style: none;
}

/* Custom Cursor */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--clr-accent-gold);
}
.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
}
.cursor-outline.hovered {
    width: 60px;
    height: 60px;
    background-color: rgba(212, 175, 55, 0.05);
    border-color: var(--clr-accent-gold);
}

/* =========================================
   UTILITIES
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: var(--section-padding);
}

.dark-bg {
    background-color: var(--clr-bg-dark);
    color: var(--clr-text-light);
}

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

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

.eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--clr-accent-gold);
    margin-bottom: 1rem;
    font-weight: 500;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 3rem;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

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

.mt-4 {
    margin-top: 2rem;
}

.w-100 {
    width: 100%;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-primary-outline {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--gradient-gold);
    z-index: -1;
    transition: opacity var(--transition-slow);
}

.btn-primary:hover::before {
    opacity: 0.8;
}

.btn-primary-outline {
    background-color: transparent;
    border: 1px solid var(--clr-accent-gold);
    color: var(--clr-accent-gold);
}

.btn-primary-outline:hover {
    background-color: var(--clr-accent-gold);
    color: #000;
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding: 0.5rem 0;
    margin-left: 2rem;
}

.btn-secondary:hover {
    color: var(--clr-accent-gold);
    border-color: var(--clr-accent-gold);
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 1000;
    transition: all var(--transition-slow);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    color: #fff;
    letter-spacing: 1px;
}

.brand span {
    color: var(--clr-accent-gold);
}

.brand-img {
    height: 55px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
    transition: all var(--transition-medium);
}

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

.nav-links a {
    color: #ccc;
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links a:hover {
    color: var(--clr-accent-gold);
}

.navbar.scrolled .btn-primary-outline {
    border-color: rgba(212, 175, 55, 0.5);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomOut 25s ease-out forwards;
    filter: brightness(0.8) contrast(1.1);
}

@keyframes zoomOut {
    0% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5,5,5,0.4) 0%, rgba(5,5,5,0.9) 100%);
}

.hero-content {
    max-width: 900px;
    padding: 0 2rem;
    z-index: 1;
}

.hero h1 {
    font-size: 6rem;
    line-height: 1.05;
    margin-bottom: 2rem;
}

.hero p {
    font-size: 1.1rem;
    font-weight: 300;
    color: #B0B0B0;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.5px;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.about p {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 3rem;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 300;
}

.stat-item p {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.about-image-wrapper {
    position: relative;
    padding: 2rem;
}

.fancy-border-img {
    position: relative;
    z-index: 2;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 0;
    filter: grayscale(20%) contrast(1.1);
    transition: filter var(--transition-slow);
}

.fancy-border-img:hover {
    filter: grayscale(0%) contrast(1.1);
}

.accent-box {
    position: absolute;
    top: 0;
    right: 0;
    width: 90%;
    height: 90%;
    border: 1px solid rgba(212, 175, 55, 0.3);
    z-index: 1;
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.glass-card {
    background: rgba(15, 15, 15, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 4rem 3rem;
    transition: transform var(--transition-slow), background var(--transition-slow), border-color var(--transition-slow);
}

.glass-card:hover {
    transform: translateY(-15px);
    background: rgba(20, 20, 20, 0.8);
    border-color: rgba(212, 175, 55, 0.3);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.service-card p {
    color: var(--clr-text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* =========================================
   PORTFOLIO SECTION
   ========================================= */
.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-img-container {
    width: 100%;
    height: 100%;
}

.gallery-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), filter 1.5s ease;
    filter: brightness(0.7) grayscale(30%);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
    transform: translateY(30px);
    opacity: 0;
    transition: all var(--transition-slow);
}

.gallery-overlay h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    font-size: 0.75rem;
    color: var(--clr-accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gallery-item:hover .gallery-img-container img {
    transform: scale(1.08);
    filter: brightness(1) grayscale(0%);
}

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

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-form-container {
    padding: 4rem;
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-accent-gold);
    background: rgba(0, 0, 0, 0.6);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background-color: var(--clr-bg-darker);
    color: #fff;
    padding: 6rem 0 3rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-brand {
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 2.5rem;
    font-weight: 300;
}

.footer-brand p {
    color: var(--clr-text-muted);
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.footer-links {
    color: var(--clr-text-muted);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 3rem;
}

/* =========================================
   ANIMATIONS (JS Hooks)
   ========================================= */
.reveal-up {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active, 
.reveal-left.active, 
.reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* =========================================
   MEDIA QUERIES
   ========================================= */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 5rem;
    }
}

@media (max-width: 992px) {
    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-gallery {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hidden-mobile {
        display: none;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
    
    .cursor-dot, .cursor-outline {
        display: none; /* Hide custom cursor on mobile */
    }
    * {
        cursor: auto !important;
    }
}

/* Theme Button */
.theme-btn {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer !important;
    color: var(--clr-text-main);
    transition: transform var(--transition-fast);
}
.theme-btn:hover {
    transform: rotate(15deg) scale(1.1);
}

/* Video Background */
.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
    z-index: -1;
    filter: brightness(0.6) contrast(1.1);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}
.lightbox.active {
    opacity: 1;
    pointer-events: all;
}
.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(212, 175, 55, 0.3);
}
.lightbox-close {
    position: absolute;
    top: 2rem; right: 3rem;
    font-size: 3rem;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer !important;
    transition: color var(--transition-fast);
}
.lightbox-close:hover {
    color: var(--clr-accent-gold);
}

/* Swiper */
.portfolio-swiper {
    width: 100%;
    padding-bottom: 4rem;
}
.swiper-pagination-bullet {
    background: var(--clr-text-muted) !important;
    opacity: 0.5 !important;
}
.swiper-pagination-bullet-active {
    background: var(--clr-accent-gold) !important;
    opacity: 1 !important;
}
.swiper-navigation {
    display: flex;
    gap: 1rem;
}
.swiper-button-prev-custom, .swiper-button-next-custom {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--clr-text-main);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}
:root[data-theme="light"] .swiper-button-prev-custom, 
:root[data-theme="light"] .swiper-button-next-custom {
    border-color: rgba(0,0,0,0.2);
}
.swiper-button-prev-custom:hover, .swiper-button-next-custom:hover {
    background: var(--clr-accent-gold);
    border-color: transparent;
    color: #000;
}

/* Map */
.map-container {
    width: 100%;
    height: 300px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    z-index: 1;
    filter: grayscale(1) contrast(1.2);
}
:root[data-theme="light"] .map-container {
    filter: grayscale(0.5) contrast(1.1);
}

/* Light theme overrides for specific elements */
:root[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.05);
}
:root[data-theme="light"] .glass-card:hover {
    background: rgba(255, 255, 255, 0.9);
}
:root[data-theme="light"] .form-group input,
:root[data-theme="light"] .form-group select,
:root[data-theme="light"] .form-group textarea {
    background: rgba(255, 255, 255, 0.8);
    color: var(--clr-text-main);
    border: 1px solid rgba(0, 0, 0, 0.1);
}
:root[data-theme="light"] .form-group input:focus,
:root[data-theme="light"] .form-group select:focus,
:root[data-theme="light"] .form-group textarea:focus {
    background: #fff;
    border-color: var(--clr-accent-gold);
}
:root[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
:root[data-theme="light"] .brand {
    color: var(--clr-text-main);
}
:root[data-theme="light"] .nav-links a {
    color: var(--clr-text-muted);
}
:root[data-theme="light"] .nav-links a:hover {
    color: var(--clr-accent-gold);
}
:root[data-theme="light"] .hero-overlay {
    background: linear-gradient(to bottom, rgba(250,250,250,0.3) 0%, rgba(250,250,250,0.9) 100%);
}
:root[data-theme="light"] .btn-secondary {
    color: var(--clr-text-main);
    border-color: var(--clr-text-main);
}
:root[data-theme="light"] .btn-secondary:hover {
    color: var(--clr-accent-gold);
    border-color: var(--clr-accent-gold);
}


/* Global Background Engine */
#global-bg-engine {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-color: #000;
}

.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.bg-layer.active {
    opacity: 1;
}

#global-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: rgba(10, 10, 15, 0.7); /* Dark semi-transparent overlay */
    backdrop-filter: blur(5px);
    pointer-events: none;
}

/* Readability Adjustments */
body {
    background: transparent !important;
}

.hero {
    background: transparent !important;
}

.hero-bg-video {
    display: none; /* We use the global background engine instead */
}

.glass-card, .service-card, .portfolio-header, .about-text {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 30px;
}

/* Make text pop */
h1, h2, h3, h4, p, a {
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}


