@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700;800&display=swap');

:root {
    --do-blue: #0069ff;
    --dark-bg: #0f172a;
    --light-bg: #f2f5fc;
    --text-dark: #1e293b;
    --text-gray: #64748b;
}

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

/* =========================================
   1. GLOBAL SCROLL SNAP SETUP
   ========================================= */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Disable default browser scroll */
    background-color: var(--light-bg);
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
}

/* The wrapper that handles the scrolling */
.snap-container {
    height: 100vh;
    width: 100%;
    overflow-y: scroll; /* Enable vertical scroll */
    
    /* Strict Snapping Rules */
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    
    /* Hide Scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.snap-container::-webkit-scrollbar { 
    display: none; 
}

/* Individual Sections */
section.snap-section {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always; /* Force stop at each section */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

/* =========================================
   2. MAIN LAYOUT GRID
   ========================================= */
.container-grid {
    display: grid;
    grid-template-columns: 380px 1fr; /* Fixed Left, Fluid Right */
    gap: 60px;
    width: 100%;
    max-width: 1300px;
    height: 80vh; /* Content takes 80% of screen height */
}

/* =========================================
   3. LEFT CARD (Generic Style)
   ========================================= */
.left-card {
    background: var(--dark-bg);
    color: white;
    border-radius: 32px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.left-card-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 0;
}

.left-content { 
    position: relative; 
    z-index: 1; 
    height: 100%; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
}

.section-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--do-blue);
    font-weight: 700;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.3);
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
}

.main-title { 
    font-size: 3rem; 
    font-weight: 800; 
    line-height: 1.1; 
    margin-bottom: 20px; 
    color: white;
}

.sub-desc { 
    color: #cbd5e1; 
    font-size: 1.1rem; 
    line-height: 1.6; 
}

.stat-row { display: flex; gap: 30px; margin-top: auto; }
.stat-item h3 { font-size: 2.5rem; color: var(--do-blue); margin: 0; font-weight: 800; }
.stat-item p { font-size: 0.8rem; color: #94a3b8; text-transform: uppercase; margin: 0; letter-spacing: 1px;}

/* =========================================
   4. CUSTOM INTRO SECTION (Specific Styles)
   ========================================= */
.intro-card {
    background-color: #0f172a;
    border-radius: 32px;
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.intro-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.intro-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.intro-top {
    position: absolute;
    top: 25px;
    left: 25px;
    right: 25px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
}

.work-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-stack { display: flex; flex-direction: column; gap: 12px; }

.social-circle {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    color: #0f172a;
    font-size: 0.9rem;
    transition: transform 0.2s;
}
.social-circle:hover { transform: scale(1.1); }

.intro-content {
    position: absolute;
    bottom: 40px;
    left: 30px;
    right: 30px;
    z-index: 2;
    color: white;
}

.intro-content h2 { font-size: 2.2rem; font-weight: 800; line-height: 1.1; margin-bottom: 12px; }
.intro-content p { font-size: 0.95rem; color: #cbd5e1; margin-bottom: 25px; line-height: 1.5; }

.btn-talk {
    background: #0069ff;
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}
.btn-talk:hover { background: #0056d6; }

/* Right Side Typography for Intro */
.hero-headline {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #0f172a;
    margin-bottom: 60px;
}
.hl-blue { background-color: #e0f2fe; color: #0069ff; padding: 0 10px; border-radius: 12px; }
.hl-black { background-color: #0f172a; color: white; padding: 2px 20px; border-radius: 50px; display: inline-block; transform: rotate(-2deg); }

.hero-stats { display: flex; gap: 60px; }
.h-stat-val { font-size: 3rem; font-weight: 800; color: #0069ff; line-height: 1; margin-bottom: 5px; }
.h-stat-label { font-size: 0.8rem; font-weight: 600; color: #64748b; letter-spacing: 1px; text-transform: uppercase; }


/* =========================================
   5. RIGHT COLUMN: TABS & PAGINATED GRID
   ========================================= */
.right-column {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Tabs Navigation */
.tabs-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 5px;
    flex-shrink: 0;
}
.tabs-container::-webkit-scrollbar { display: none; }

.tab-pill {
    padding: 8px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.tab-pill:hover { border-color: var(--do-blue); color: var(--do-blue); }
.tab-pill.active { background: var(--do-blue); color: white; border-color: var(--do-blue); }

/* The Grid Wrapper (The Scroll Window) */
.scrollable-grid-wrapper {
    flex: 1; /* Takes remaining height */
    overflow-y: scroll; /* Enable vertical scroll */
    padding-right: 5px;
    
    /* Internal Scroll Snap */
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    
    /* Hiding Scrollbar but keeping functionality */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.scrollable-grid-wrapper::-webkit-scrollbar { display: none; }

.right-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-content: start;
}

/* Project Cards */
.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    
    /* FIXED HEIGHT CALCULATION:
       We want 2 rows to fit perfectly.
       Container Height is roughly 550px (depending on screen).
       Let's fix card height to exactly 260px.
       260px * 2 + 20px gap = 540px total height for a "Page".
    */
    height: 260px;
    
    display: flex;
    flex-direction: column;

    /* Snap Alignment */
    scroll-snap-align: start;
}
.project-card:hover { transform: translateY(-4px); border-color: var(--do-blue); }

.project-img { height: 160px; width: 100%; object-fit: cover; }
.project-info { padding: 15px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.project-info h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.project-tag { font-size: 0.75rem; color: var(--text-gray); background: #f8fafc; padding: 2px 8px; border-radius: 4px; align-self: flex-start; font-weight: 500; border: 1px solid #f1f5f9; }

/* Responsive */
@media (max-width: 1024px) {
    .container-grid { grid-template-columns: 1fr; height: auto; }
    section.snap-section { height: auto; min-height: 100vh; display: block; overflow-y: auto; padding: 60px 20px; }
    .left-card { height: 400px; margin-bottom: 40px; }
    .right-grid { grid-template-columns: 1fr; }
    .hero-headline { font-size: 3rem; }
    .intro-card { height: 500px; margin-bottom: 40px; }
    /* Reset scroll behaviors for mobile sanity */
    html, body { overflow-y: auto; scroll-snap-type: none; height: auto; }
    section.snap-section { scroll-snap-align: none; }
}