/* --- 1. PREMIUM LIGHT PALETTE (Matches Main Hub) --- */
:root {
    /* Backgrounds */
    --bg-body: #f5f5f7;       /* The standard Apple light grey */
    --bg-card: #ffffff;       /* Pure white cards */
    
    /* Typography */
    --text-main: #1d1d1f;     /* Almost black */
    --text-sub: #86868b;      /* Cool grey */
    
    /* UI Physics */
    --shadow-card: 0 4px 20px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.12);
    --radius-card: 28px;
    
    /* Accents */
    --accent-blue: #0071e3;
    --border-light: rgba(0,0,0,0.05); /* Very subtle borders */
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

/* --- 2. HERO SECTION (Clean & Bright) --- */
.hero {
    height: 80vh; /* Slightly shorter */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: radial-gradient(circle at center, #ffffff 0%, #f5f5f7 70%); /* Subtle glow */
}

.eyebrow {
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
    background: rgba(0, 113, 227, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
}

.hero h1 {
    font-size: 72px;
    font-weight: 800;
    letter-spacing: -2px;
    margin: 0;
    color: var(--text-main);
}

.hero p {
    font-size: 22px;
    color: var(--text-sub);
    max-width: 600px;
    margin-top: 24px;
    line-height: 1.5;
}

/* --- 3. THE BENTO GRID (White Cards) --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 320px);
    gap: 24px;
}

.bento-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 40px;
    /* Soft shadow instead of borders */
    box-shadow: var(--shadow-card);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.bento-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-icon { font-size: 42px; margin-bottom: 20px; color: var(--text-main); }
.card-title { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.card-desc { font-size: 16px; color: var(--text-sub); line-height: 1.6; }

/* LAYOUT SPANS */
.wide { grid-column: span 2; }
.tall { grid-row: span 2; }

/* --- 4. SPECIAL CARD STYLING --- */

/* LINUX: Keep it dark for contrast (It's the 'Pro' element) */
.linux-card {
    background: #1d1d1f; /* Dark grey, not pitch black */
    color: white;
}
.linux-card .card-icon { color: white; }
.linux-card .card-desc { color: #86868b; }

/* GITHUB: Make it distinct but light */
/* --- FIX 1: THE GITHUB CARD (Light Mode) --- */
.github-card {
    background: #ffffff !important; /* Force white background */
    border: 1px solid #e5e5ea;      /* Subtle grey border */
    color: #1d1d1f;                 /* Dark text */
}

/* Fix the icon color inside GitHub card */
.github-card .card-icon {
    color: #24292e !important; /* The classic GitHub dark grey logo */
}

/* --- FIX 2: THE LOGOS (Centered & Spaced) --- */
.logos-section {
    width: 100%;
    padding: 80px 20px;
    background: #f5f5f7; /* Matches body background */
    text-align: center;
}

.logo-grid {
    display: flex;
    justify-content: center; /* Forces them to the middle */
    align-items: center;
    flex-wrap: wrap;         /* Allows them to wrap on small screens */
    gap: 50px;               /* Space between logos */
    max-width: 800px;        /* Prevents them from stretching too wide */
    margin: 40px auto 0 auto; /* Centers the whole grid block */
}

.logo-item {
    font-size: 48px;
    color: #86868b; /* Neutral Grey */
    transition: all 0.3s ease;
    opacity: 0.6;
}

.logo-item:hover {
    color: #000000; /* Turns black on hover */
    opacity: 1;
    transform: translateY(-5px); /* Little float effect */
}
.cta-btn {
    background: var(--accent-blue);
    color: white;
    padding: 16px 36px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 10px 20px rgba(0,113,227, 0.3);
    transition: transform 0.2s;
}
.cta-btn:hover { transform: scale(1.05); }

/* --- RESPONSIVE --- */
@media(max-width: 900px) {
    .hero h1 { font-size: 42px; }
    .bento-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .wide, .tall { grid-column: span 1; grid-row: span 1; }
}

.nav-back {
            position: absolute;
            top: 40px;
            left: 40px;
            color: var(--text-muted);
            text-decoration: none;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
       

        @media(max-width: 900px) {
            .hero h1 { font-size: 48px; }
            .bento-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
            .wide, .tall { grid-column: span 1; grid-row: span 1; }
        }