/* Fonts */
:root {
    --font-main: 'Outfit', sans-serif;

    /* Colors */
    --color-bg: #0a0a0a;
    --color-surface: #141414;
    --color-surface-glass: rgba(20, 20, 20, 0.7);
    --color-text: #ffffff;
    --color-text-muted: #a0a0a0;

    --color-gold: #D4AF37;
    --color-gold-hover: #F4C430;
    --color-gold-gradient: linear-gradient(135deg, #D4AF37 0%, #aa8e2d 100%);

    --color-chrome: #e0e0e0;
    --color-chrome-dark: #8c8c8c;
    --color-chrome-gradient: linear-gradient(135deg, #ffffff 0%, #a0a0a0 50%, #404040 100%);

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Dimensions */
    --header-height: 80px;
    --border-radius: 12px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: #fff;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

.section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
    /* Content above WebGL */
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--color-gold-gradient);
    color: #000;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.btn-outline {
    border: 1px solid var(--color-chrome);
    color: var(--color-chrome);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

/* 3D Canvas Background */
#bg-canvas,
#bg-canvas-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none;
}

.model-area-helper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 600px;
    pointer-events: none;
}

.model-area-helper.right {
    right: 0;
    top: 0;
}

.model-area-helper.left {
    left: 0;
    top: 0;
}

/* Header */
#header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.navbar {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
}

.logo-highlight {
    color: var(--color-gold);
    margin-left: 2px;
}

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

.nav-link {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-contact {
    border: 1px solid var(--color-gold);
    padding: 8px 20px;
    border-radius: 4px;
    color: var(--color-gold);
}

.btn-contact:hover {
    background: var(--color-gold);
    color: #000;
}

.btn-contact::after {
    display: none;
}

/* Mobile Menu */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
}

.hero-container {
    position: relative;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    text-align: left;
}

.hero-label {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-gold);
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

/* Scroll Indocator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 6px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

/* About Section */
.about-section {
    background: rgba(10, 10, 10, 0.3);
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* right side content */
    min-height: 80vh;
    position: relative;
}

.about-content {
    width: 50%;
    background: rgba(20, 20, 20, 0.5);
    /* Glass dark */
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-label {
    font-size: 0.9rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.about-text {
    color: var(--color-text-muted);
    margin-bottom: 20px;
    font-size: 1rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: left;
}

.stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-chrome);
    background: var(--color-chrome-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Services Section */
.services-section {
    min-height: 100vh;
}

.services-container {
    display: flex;
    align-items: center;
    position: relative;
}

.services-content {
    width: 100%;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.service-card {
    background: #1a1a1a;
    padding: 25px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.service-card:hover {
    background: #222;
    transform: translateY(-5px);
    border-color: var(--color-gold);
}

.service-card .icon-box {
    font-size: 2rem;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Gallery Section */
.gallery-section {
    background: #0d0d0d;
}

.section-desc {
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 10px auto 40px;
    text-align: center;
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 1;
    /* Square ratio */
    cursor: pointer;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    text-align: center;
    padding: 20px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay h3 {
    color: var(--color-gold);
    font-size: 1.2rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: 0.4s ease;
}

.gallery-overlay p {
    color: #fff;
    font-size: 0.9rem;
    transform: translateY(20px);
    transition: 0.4s ease 0.1s;
}

.gallery-item:hover h3,
.gallery-item:hover p {
    transform: translateY(0);
}

/* Why Us Section */
.why-us-section {
    background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
    text-align: center;
}

.why-us-container {
    max-width: 900px;
    margin: 0 auto;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.feature {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.feature:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
}

.feature-details h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #fff;
}

.feature-details p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    padding-bottom: 50px;
}

.contact-container {
    padding: 0px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    /* Merged look */
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card {
    background: #141414;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-card h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
}

.contact-card p {
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 1rem;
    color: #d0d0d0;
}

.icon-box-small {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-info strong {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.social-links {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn:hover {
    background: var(--color-gold);
    color: #000;
    transform: translateY(-3px);
}



.map-container {
    height: 100%;
    min-height: 400px;
    background: #202020;
}

/* Footer */
#footer {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    background: #050505;
}

.footer-content {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #141414;
    border-radius: var(--border-radius);
    max-width: 900px;
    width: 100%;
    display: flex;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalPop 0.3s ease;
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-image-wrapper {
    flex: 1;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 80vh;
}

.modal-details {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-details h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
}

.modal-details p {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
}

.modal-close:hover {
    color: var(--color-gold);
}

#home-model-area-mobile {
    display: none !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .about-container,
    .services-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .about-content,
    .services-content {
        width: 80%;
        margin-top: 20px;
    }

    /* Model helpers adjust for centered mobile view if needed via JS config, 
       but for layout, we stack content */

    .feature-list {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        justify-items: center;
    }

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

@media (max-width: 768px) {

    /* Mobile Nav */
    .nav-toggle {
        display: block;
    }

    .about-section {
        margin-top: 175px;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: #0a0a0a;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        transition: 0.4s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    /* Hero */
    /* Hero */
    .hero-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .model-area-helper {
        position: relative;
        top: 0;
        width: 100%;
        /* height is handled by specific IDs or min-height */
    }

    .hero-content {
        width: 100%;
        /* display: grid; removed as likely unnecessary and potentially conflicting */
    }

    .hero-buttons {
        justify-content: center;
    }

    /* Stacking */
    .about-content,
    .services-content {
        width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .modal-content {
        flex-direction: column;
    }

    .modal-image-wrapper {
        height: 250px;
    }

    .modal-image-wrapper img {
        height: 100%;
        width: 100%;
        max-height: 310px;
        object-fit: cover;
    }

    #services-model-area,
    #home-model-area,
    #about-model-area {
        display: none !important;
    }

    #home-model-area-mobile {
        display: block !important;
        width: 100%;
        height: 300px;
    }

    .modal-details h3 {
        font-size: 1rem;
    }

    .section {
        padding: 10px 0;
    }

    .scroll-indicator {
        bottom: -70px;
    }
}

a.logo {
    text-decoration: blink;
}