/* =========================================
   1. GLOBAL STYLES & VARIABLES
   ========================================= */
:root {
    /* Premium Color Palette */
    --bg-color: #F9F7F2; 
    --text-color: #333333;
    --accent-color: #B08968; 
    --secondary-color: #E6CCB2;
    --white: #ffffff;
    --black: #111111;
    
    /* Layout */
    --nav-height: 80px;
    --transition-speed: 0.8s;
}

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

html {
    scroll-behavior: smooth;
}

html, body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow: hidden; /* Use the Snap Container for scrolling */
    height: 100%;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* =========================================
   2. MAIN SCROLL CONTAINER (SNAP ENGINE)
   ========================================= */
.scroll-container {
    width: 100vw;
    height: 100dvh; 
    overflow-y: scroll;
    scroll-snap-type: y mandatory; 
    scroll-behavior: smooth;
    scrollbar-width: none; /* Hide for Firefox */
}

/* Hide scrollbar for Chrome/Safari */
.scroll-container::-webkit-scrollbar { display: none; }

/* =========================================
   3. SECTION DEFAULTS
   ========================================= */
section {
    height: 100dvh; 
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden; 
    padding: var(--nav-height) 5% 0; 
}

/* Special scrolling for content-heavy sections */
section.auto-scroll {
    align-items: flex-start;
    overflow-y: auto; 
    padding-bottom: 80px;
}

/* =========================================
   4. CLARITY BANNER SYSTEM (FIXED)
   ========================================= */
.banner-section {
    background-size: cover;
    background-position: center top; 
    background-repeat: no-repeat;
    background-attachment: fixed; 
    image-rendering: -webkit-optimize-contrast; 
}

.banner-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.15) 100%);
    z-index: 1;
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 12px;
    line-height: 1.1;
    text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.85), 0px 0px 35px rgba(0, 0, 0, 0.45);
}

.banner-section p {
    color: #ffffff !important;
    font-weight: 500;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.95);
    margin: 15px auto 35px;
}

.custom-btn {
    display: inline-block;
    padding: 16px 45px;
    background-color: white;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid #000000;
    font-weight: 600;
    transition: all 0.4s ease;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.custom-btn:hover {
    background-color: var(--white);
    color: var(--black);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* =========================================
   5. CONTENT ANIMATIONS & WRAPPER
   ========================================= */
.content-wrapper {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    z-index: 2;
    opacity: 0;
    transform: translateY(50px);
    transition: all var(--transition-speed) ease-out;
}

section.in-view .content-wrapper {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 400;
    color: var(--text-color);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

/* =========================================
   6. FEATURE SECTION & COMPONENTS
   ========================================= */
.feature-box {
    border: 1px solid #eee;
    padding: 60px 20px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.border-end-classic {
    border-right: 1px solid #eee;
}

.feature-section i {
    color: var(--accent-color);
    margin-bottom: 15px;
    display: block;
}

/* About Section */
#about .content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    text-align: left;
}

.about-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    box-shadow: 20px 20px 0px var(--secondary-color);
}

/* =========================================
   7. FOOTER
   ========================================= */
#footer {
    background-color: var(--black);
    color: var(--white);
    padding: 80px 0 40px;
    text-align: center;
}

.socials {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 25px;
    font-size: 1.5rem;
}

/* =========================================
   8. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 1024px) {
    .banner-section {
        background-attachment: scroll; 
    }
}

@media (max-width: 991px) {
    .border-end-classic { 
        border-right: none; 
        border-bottom: 1px solid #eee; 
        margin-bottom: 20px; 
        padding-bottom: 20px; 
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.4rem; letter-spacing: 4px; }
    h2 { font-size: 2rem; }
    section { padding-top: 60px; }
    
    #about .content-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-img { height: 300px; order: 1; }
    .about-text { order: 2; }
}
