:root {
    --apple-black: #1d1d1f;
    --apple-grey: #f5f5f7;
    --apple-blue: #0066cc;
    --text-secondary: #86868b;
    --radius: 20px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
    background-color: #fff;
    color: var(--apple-black);
    line-height: 1.5;
}

/* Glass Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 52px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.logo { 
    font-weight: 600; 
    font-size: 18px; 
    letter-spacing: -0.5px;
    text-decoration: none;
    color: inherit;
}
.nav-links a { 
    text-decoration: none; 
    color: var(--apple-black); 
    font-size: 12px; 
    margin-left: 25px;
    opacity: 0.8;
}

/* Apple Style Hero */
.apple-hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.hero-video-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-text h1 {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 10px 0 20px;
}

.eyebrow {
    color: black;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.eyebrow-1 {
    color: white;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
}
.hero-description {
    color: white;
    font-size: 21px;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Bento Grid */
.bento-section { padding: 100px 20px; background: var(--apple-grey); }
.bento-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 400px;
    gap: 20px;
}

/*
.bento-item {
    position: relative; 
    overflow: hidden;    
       
    border-radius: var(--radius);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition);
    cursor: pointer;
}

*/


.bento-item:hover { transform: scale(1.02); }
.featured { grid-column: span 2; background: #000; color: #fff; }

.featured {
    position: relative;
    overflow: hidden;
    padding: 0 !important; /* Remove parent padding to let video go edge-to-edge */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/*
.bento-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none; 
*/ 

/* 1. Ensure the container handles the video background */
.bento-item {
    position: relative;
    overflow: hidden;
    background: #000; /* Prevents white flash during video load */
    padding: 0; /* Removing padding here so the video fills to the edge */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 20px;
}

/* 2. Fix the video as the background layer */
.bento-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1; /* Sits at the bottom */
}

/* 3. Style the content to float over the video */
.bento-content {
    position: relative;
    z-index: 2; /* Sits above the video */
    width: 100%;
    padding: 40px; /* Restore padding here for text spacing */
    color: #fff; /* Force white text for legibility */
    /* Cinematic gradient overlay */
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
}


.featured .bento-content {
    position: relative;
    z-index: 1;
    padding: 40px;
    width: 100%;
    /* Optional: subtle gradient to ensure white text is readable over any video content */
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
}


/* Buttons */
.btn-solid {
    background: var(--apple-blue);
    color: #fff;
    padding: 12px 24px;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.btn-solid:hover { background: #0077ed; }

.btn-link {
    color: var(--apple-blue);
    text-decoration: none;
    margin-left: 20px;
    font-size: 18px;
}

/* Split Feature */
.split-feature { padding: 120px 20px; }
.feature-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Footer */
.apple-footer {
    background: #f5f5f7;
    padding: 40px 40px;
    border-top: 1px solid #d2d2d7;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.footer-col h4 {
    font-weight: 600;
    margin-bottom: 12px;
    color: #1d1d1f;
}

.footer-col p {
    font-size: 12px;
    color: #86868b;
    margin-bottom: 20px;
}

/* Developer Specific Styles */
.developer-credit {
    padding-top: 10px;
}

.developer-credit p {
    font-size: 14px;
    margin-bottom: 6px;
    color: #86868b;
}

.designer-name {
    color: #1d1d1f;
    font-weight: 600;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #0071e3; /* Apple Blue */
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.github-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.github-icon {
    color: #1d1d1f;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 10000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 400px;
    border-radius: 12px;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Value Proposition Section */
.value-prop {
    padding: 160px 20px;
    text-align: center;
    background: #fff;
}

.value-prop .content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.value-prop h2 {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    letter-spacing: -0.022em;
    margin-bottom: 24px;
    color: var(--apple-black);
}

.value-prop p {
    font-size: clamp(19px, 3vw, 26px);
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.3;
    max-width: 720px;
    margin: 0 auto;
}

/* Achievements Section Styling */
.achievements-section {
    padding: 120px 20px;
    
    margin: 0 auto;
    background: #f5f5f7;
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.achievements-grid {
    display: grid;
    /* Use 'auto-fit' to expand items or 'auto-fill' for strict spacing */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 40px;
    max-width: 1200px;
    
    /* THE FIXES */
    margin: 0 auto;        /* Centers the 1200px container on the screen */
    justify-content: center; /* Centers the actual cards if they don't fill a row */
}
.achievement-card {
    position: relative;
    background: var(--apple-grey);
    border-radius: 28px;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    
}



.achievement-card:hover {
    transform: translateY(-8px);
}

.image-wrapper {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.achievement-card:hover .image-wrapper img {
    transform: scale(1.05);
}

/* Metadata Styling */
.achievement-meta {
    padding: 32px;
}

.year {
    font-size: 14px;
    font-weight: 600;
    color: var(--apple-blue);
    display: block;
    margin-bottom: 8px;
}

.achievement-meta h3 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.category {
    font-size: 17px;
    font-weight: 600;
    color: var(--apple-black);
    margin-bottom: 16px;
}

.description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    font-weight: 400;
}

/* Achievement Badge Overlay */
.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--apple-black);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .achievements-grid {
        grid-template-columns: 1fr;
        
    }
    
    .section-header h2 {
        font-size: 34px;
    }
}