@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&family=Syne:wght@700;800&display=swap');

:root {
    --primary: #ffffff;
    --secondary: #0a0a0a;
    --accent: #c5a358;
    /* Premium Gold */
    --accent-muted: rgba(197, 163, 88, 0.2);
    --glass: rgba(15, 15, 15, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
    --font-serif: 'Syne', sans-serif;
    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    --border-radius: 2px;
    /* Sharper, more modern luxury */
    --cursor-size: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    cursor: none !important;
    /* Apply strictly to layout tags */
}

body {
    background-color: var(--secondary);
    color: var(--primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 10vw, 12rem);
    line-height: 0.9;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    font-weight: 800;
}

h2 {
    font-family: var(--font-serif);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h3 {
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Glassmorphism Utility */
.glass-effect {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0 5%;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    transform: scale(1.05);
    /* For hover effect */
    transition: transform 10s ease-out;
}

.hero:hover .hero-bg img {
    transform: scale(1);
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 6rem);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
}

.hero p {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.8s;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--primary);
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 50px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 1.1s;
    cursor: pointer;
    border: 2px solid var(--primary);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Feature Sections */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 6rem;
}

.feature-card {
    padding: 4rem;
    text-align: left;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    backdrop-filter: blur(20px);
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

/* Interior Showcase */
.interior-showcase {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 600px;
    margin-top: 4rem;
}

.interior-showcase img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 2s ease;
}

.interior-showcase:hover img {
    transform: scale(1.1);
}

/* Custom Cursor */
#cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--cursor-size);
    height: var(--cursor-size);
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    mix-blend-mode: difference;
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
    transform: translate3d(-50%, -50%, 0);
    opacity: 0;
    will-change: transform;
}

#cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999998;
    transform: translate3d(-50%, -50%, 0);
    opacity: 0;
    will-change: transform;
}

.interior-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 4rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--primary);
}

/* Stats Counter */
.stats-container {
    display: flex;
    justify-content: space-around;
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    margin: 6rem 0;
}

.stat-item h3 {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-item p {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.logo {
    display: flex;
    align-items: center;
}

/* Navbar Logo */
.logo img {
    height: 120px;
    /* Massive presence */
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 0 15px rgba(197, 163, 88, 0.4));
}

nav.nav-scrolled .logo img {
    height: 60px;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Navigation Scroll State */
nav.nav-scrolled {
    padding: 1rem 5%;
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid var(--glass-border);
}

/* Scroll Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 1001;
    }

    .mobile-menu-btn span {
        width: 30px;
        height: 2px;
        background-color: var(--primary);
        transition: var(--transition);
    }

    /* Hamburger to X */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        z-index: 1000;
        gap: 3rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .logo img {
        height: 60px !important;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 7vw, 3rem);
    }

    .responsive-grid {
        display: grid;
        grid-template-columns: 1fr !important;
    }

    /* Fix gallery card heights on mobile */
    .responsive-grid>div[style*="height: 700px"],
    .responsive-grid>.glass-effect[style*="height"] {
        height: 55vw !important;
        min-height: 220px !important;
        max-height: 420px !important;
    }

    /* Fix feature grid min column size */
    .feature-grid {
        grid-template-columns: 1fr !important;
    }

    /* Prevent horizontal overflow from very wide elements */
    section {
        overflow-x: hidden;
    }

    /* Scale down interior showcase */
    .interior-showcase {
        height: 50vw;
        min-height: 200px;
    }

    /* Stats - stack on tiny screens */
    .stats-container {
        flex-wrap: wrap;
        gap: 2rem;
        justify-content: center;
    }

    .stat-item {
        text-align: center;
        flex: 0 1 45%;
    }

    .stat-item h3 {
        font-size: 2.2rem;
    }
}

/* Contact Section & Form */
.premium-form .form-group {
    position: relative;
    margin-bottom: 2.5rem;
}

.premium-form input,
.premium-form textarea {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    color: var(--primary);
    font-family: var(--font-main);
    font-size: 1rem;
    letter-spacing: 0.1em;
    outline: none;
}

.premium-form textarea {
    resize: none;
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--glass-border);
    transition: var(--transition);
}

.premium-form input:focus~.input-line,
.premium-form textarea:focus~.input-line {
    background: var(--accent);
    height: 2px;
}

.contact-info-item p {
    font-family: var(--font-serif);
    font-weight: 300;
}

@media (max-width: 992px) {
    #kontakt div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* MMJ Vertex Promo Section */
.promo-mmj {
    background-color: #d4a32c;
    /* Premium Gold/Yellow */
    color: #0a0a0a;
    padding: 8vh 5%;
}

.promo-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.promo-text h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    color: inherit;
    letter-spacing: -0.01em;
}

.promo-divider {
    width: 60px;
    height: 1px;
    background: #0a0a0a;
    margin-bottom: 2rem;
}

.promo-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.promo-button {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background-color: #0a0a0a;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    transition: var(--transition);
    margin-top: 2rem;
}

.promo-button:hover {
    background-color: transparent;
    color: #0a0a0a;
    box-shadow: inset 0 0 0 2px #0a0a0a;
}

.promo-logo img {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

@media (max-width: 992px) {
    .promo-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .promo-divider {
        margin: 0 auto 2rem;
    }

    .promo-text p {
        margin-left: auto;
        margin-right: auto;
    }
}