:root {
    --bg-color: #EBEBEB;
    --text-color: #000000;
    --text-secondary: #555555;
    --line-color: #000000;
    --sidebar-width: 80px;
    --header-height: 80px;
    --padding-x: 60px;
    --padding-y: 48px;
    --dark-bg: #111111;
    --dark-text: #FFFFFF;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; cursor: pointer; }

/* Layout */
.page-wrapper { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0; top: 0;
    border-right: 1px solid var(--line-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    z-index: 100;
    background-color: var(--bg-color);
    transition: background-color 0.5s ease, border-color 0.5s ease;
}

.logo { margin-top: 10px; }

.socials { display: flex; flex-direction: column; gap: 20px; margin-bottom: 20px; }

.socials .icon {
    width: 20px; height: 20px;
    display: flex; justify-content: center; align-items: center;
    color: var(--text-color);
    transition: opacity 0.3s, color 0.5s ease;
}
.socials .icon:hover { opacity: 0.6; }

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    display: flex; flex-direction: column;
}

/* Header */
.header {
    height: var(--header-height);
    width: calc(100% - var(--sidebar-width));
    position: fixed; top: 0; left: var(--sidebar-width);
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 var(--padding-x);
    
    /* DEFAULT STATE: Transparent */
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent; 
    
    z-index: 90;
    transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease, backdrop-filter 0.5s ease;
}

/* SCROLLED STATE: Glassy */
.header.glassy {
    background-color: rgba(235, 235, 235, 0.05); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-color);
}

.nav-links { display: flex; gap: 40px; }

.nav-item {
    font-size: 14px; font-weight: 500;
    position: relative; padding-bottom: 5px;
    color: var(--text-color);
    transition: color 0.5s ease;
}

.nav-item.active::after {
    content: ''; position: absolute; bottom: -29px; left: 0;
    width: 100%; height: 4px;
    background-color: var(--text-color);
    transition: background-color 0.5s ease;
}

.contact-btn {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; font-weight: 600;
    color: var(--text-color);
    transition: color 0.5s ease;
}

/* Sections */
main { margin-top: var(--header-height); }

.section {
    min-height: 100vh;
    padding: var(--padding-y) var(--padding-x);
    position: relative;
    border-bottom: 1px solid transparent; 
}

/* --- TIGHT LAYOUT FIX (Desktop) --- */
#section-01, #section-02, #section-03 {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    min-height: 80vh !important;
}

#section-02 .content-grid, 
#section-03 .content-grid {
    margin-top: 0px !important; 
}

#section-02 .text-wrapper, 
#section-03 .text-wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.section-light {
    background-color: var(--bg-color);
    color: var(--text-color);
    z-index: 1; 
}

.section-label {
    font-size: 12px; text-transform: uppercase;
    letter-spacing: 1px; color: #888;
    padding-top: 2vh; 
    margin-bottom: 15px; 
}

.content-grid {
    display: grid; grid-template-columns: 1fr 2fr;
    gap: 60px; align-items: flex-start;
}

/* --- PHYSICS WRAPPERS --- */
.number-wrapper {
    position: relative;
    display: block; 
    width: 214px; 
    height: 154px; 
    z-index: 10;
    background-color: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* The Number Itself */
.big-number {
    font-size: 137px; 
    font-weight: 700;
    line-height: 1; 
    letter-spacing: -4px;
    
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    
    background-color: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    
    will-change: transform; 
    transform-origin: center center;
    pointer-events: none;
    user-select: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.text-wrapper { 
    padding-top: 20px;
}

#section-02 .text-wrapper,
#section-03 .text-wrapper {
    padding-top: 0px;
}

.heading-group { margin-bottom: 40px; }

.main-heading {
    font-size: 48px; line-height: 1.1;
    margin-bottom: 15px; font-weight: 600;
}

.sub-heading {
    font-size: 16px; font-weight: 500;
    color: var(--text-color);
}

.divider-line {
    width: 100%; height: 2px;
    background-color: var(--line-color);
    margin-bottom: 40px;
}

.body-text-columns {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 40px;
    font-size: 14px; line-height: 1.6;
    color: var(--text-secondary);
}

/* Dark Section */
.section-dark {
    background-color: var(--dark-bg);
    color: var(--dark-text);
    padding-top: 120px; padding-bottom: 120px;
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center;
    position: relative;
    z-index: 50; 
}

.dark-content-wrapper {
    max-width: 1200px; margin: 0 auto; width: 100%;
}

.dark-heading {
    font-size: 60px; font-weight: 600;
    line-height: 1.1; margin-bottom: 100px;
    color: var(--dark-text);
}

.large-text-section { margin-top: 100px; }

.giant-text {
    font-size: 120px; font-weight: 700;
    line-height: 1; letter-spacing: -2px;
    margin-bottom: 60px;
    color: var(--dark-text);
}

.cta-wrapper { display: flex; justify-content: flex-start; }

.cta-button {
    display: flex; align-items: center; gap: 15px;
    font-size: 24px; font-weight: 500;
    color: var(--dark-text);
}

/* --- RESPONSIVE / MOBILE FRIENDLY --- */
@media (max-width: 1024px) {
    .content-grid { grid-template-columns: 1fr; }
    .big-number { font-size: 114px; }
    .number-wrapper { width: 171px; height: 133px; }
    .giant-text { font-size: 80px; }
    .dark-heading { font-size: 40px; }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 0px;
        --padding-x: 20px; --padding-y: 40px;
    }
    .sidebar { display: none; }
    .main-content { margin-left: 0; width: 100%; }
    .header { left: 0; width: 100%; padding: 0 20px; }
    .body-text-columns { grid-template-columns: 1fr; }
    
    .big-number { font-size: 76px; }
    .number-wrapper { width: 114px; height: 95px; }
    .giant-text { font-size: 50px; }

    /* MOBILE LAYOUT RESET & FIXES */
    /* Restore padding so content isn't hidden by header */
    #section-01, #section-02, #section-03 {
        padding-top: 120px !important; 
        padding-bottom: 40px !important;
        min-height: auto !important; /* Allow natural height */
    }

    /* Prevent number overlapping text by enforcing grid gap */
    .content-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 40px; /* Force space between number and text */
        margin-top: 0 !important;
    }

    /* Reset text wrapper padding */
    #section-02 .text-wrapper, 
    #section-03 .text-wrapper {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    /* Reduce heading size to fit mobile screen */
    .main-heading {
        font-size: 36px;
        line-height: 1.2;
    }
}