:root {
    --primary-green: #008539;
    --accent-orange: #ffc60a;
    --bg-dark: #0f2318;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --font-main: 'Outfit', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-main);
    overflow-x: hidden;
}

/* Scroll Snap for sections */
.brixel-container {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    perspective: 10px;
}

section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    z-index: -1;
}

/* Categories section overrides the global section rule */
#categories {
    height: auto !important;
    min-height: auto !important;
    transform-style: flat !important;
    transform: none !important;
    z-index: 10;
    display: block;
}

/* Survey and Partners sections contain long content, so they must not be constrained to viewport height */
#survey,
#partneri {
    height: auto !important;
    min-height: 100vh;
    display: block;
    transform-style: flat !important;
    transform: none !important;
    z-index: 10;
    overflow: visible;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    background-color: var(--primary-green);
    padding: 8px 15px;
    gap: 10px;
}

.logo-icon {
    display: grid;
    grid-template-columns: repeat(3, 4px);
    gap: 3px;
}

.logo-icon span {
    width: 4px;
    height: 4px;
    background-color: var(--text-white);
    /* White dots for cleaner look */
    display: block;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}

.contact-btn {
    padding: 10px 25px;
    border: 1.5px solid var(--text-white);
    border-radius: 12px;
    color: var(--text-white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.contact-btn:hover {
    background-color: var(--text-white);
    color: var(--bg-dark);
}

/* Hero Section Styles */
.hero {
    overflow: hidden;
    transform-style: flat;
    transform: none !important;
    perspective: none;
    z-index: 1;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: none !important;
    z-index: -1;
    filter: brightness(0.4) grayscale(0.5);
}

.hero-content {
    text-align: center;
    z-index: 10;
}

.hero-title {
    font-size: clamp(80px, 15vw, 180px);
    font-weight: 900;
    letter-spacing: 15px;
    margin-bottom: 5px;
    line-height: 1;
}

.hero-subtitle {
    font-size: 46px;
    letter-spacing: 5px;
    font-weight: 400;
    color: var(--text-white);
    text-transform: uppercase;
}

/* Scroll Down Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 35px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.scroll-indicator:hover {
    border-color: var(--text-white);
}

.scroll-indicator i {
    border: solid var(--text-white);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 4px;
    transform: rotate(45deg);
    margin-top: -4px;
}

/* About Section Styles */
.about {
    min-height: 100vh;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #000000;
    overflow: hidden;
    z-index: 1;
}

.about-content {
    max-width: 900px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.about-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-title {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 900;
    letter-spacing: 10px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.about-subtitle {
    font-size: 14px;
    letter-spacing: 5px;
    color: var(--text-gray);
    margin-bottom: 60px;
}

.about-text {
    font-size: clamp(16px, 2vw, 22px);
    line-height: 1.6;
    color: var(--text-white);
    margin-bottom: 40px;
    font-weight: 300;
}

.about-text p {
    margin-bottom: 30px;
}

/* Enhancing the bottom line transition */
.bottom-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}


/* Upcoming Project Section */
.upcoming {
    height: auto !important;
    min-height: auto;
    padding: 140px 20px 48px;
    background-color: var(--bg-dark);
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 20;
    transform-style: flat !important;
    transform: none !important;
    overflow: visible;
}

.upcoming-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
    padding: 20px 0;
}

.upcoming-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-divider {
    width: 60vw;
    /* Unified length with other sections (60% of viewport) */
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);

    /* Centering technique to allow width to exceed parent container */
    position: relative;
    left: 50%;
    transform: translateX(-50%);

    margin-bottom: 60px;
}

.section-divider.bottom {
    margin-bottom: 0;
    margin-top: 60px;
}

.upcoming-title {
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: 5px;
    margin-top: 0;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.upcoming-subtitle {
    font-size: clamp(16px, 2vw, 18px);
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.upcoming-description {
    font-size: clamp(16px, 2vw, 18px);
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
    color: var(--text-gray);
}

.upcoming-label {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 30px;
    letter-spacing: 1px;
}

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

.upcoming-card {
    background-color: #1a1a1a;
    border: 1px solid var(--primary-green);
    border-radius: 12px;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1/1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.upcoming-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 133, 57, 0.3);
}

.upcoming-card p {
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 1px;
    line-height: 1.5;
    text-transform: uppercase;
    color: var(--text-white);
}

.upcoming-footer {
    font-size: 16px;
    color: var(--text-white);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 300;
}

.social-icons {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    color: var(--text-white);
}

.social-icon-link {
    height: 25.6px;
    display: inline-flex;
    align-items: flex-start;
    justify-content: flex-start;
    line-height: 0;
    overflow: visible;
}

.social-icon {
    width: auto;
    height: 100%;
    display: block;
}

@media (max-width: 900px) {
    .upcoming-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .upcoming-card {
        aspect-ratio: auto;
        min-height: 200px;
        padding: 30px;
    }

    .section-divider {
        margin-bottom: 40px;
    }

    .section-divider.bottom {
        margin-top: 40px;
    }
}