/* --- 1. THE UNBREAKABLE RESET --- */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    list-style: none !important; 
    text-decoration: none;
    -webkit-font-smoothing: antialiased;
}

:root {
    --bg-sage: #b2ccb7;
    --text-dark: #1a1a1a;
    --accent-purple: #3d3d7a;
    --white: #ffffff;
    --footer-black: #111111;
    /* Language & Badge Colors */
    --py: #3776ab; 
    --java: #007396; 
    --web: #e34f26; 
    --ana: #44b78b; /* Anaconda Green */
}

body {
    
    font-family: 'Outfit', sans-serif;
    font-display: swap; /* Add this if it's in a @font-face, otherwise it's handled in the Google URL */
    background-color: var(--bg-sage);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- 2. NAVIGATION --- */
.navbar { 
    display: flex; 
    justify-content: space-between; 
    padding: 40px 10%; 
    align-items: center; 
    position: sticky;
    top: 0;
    background: rgba(178, 204, 183, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
}

.logo { 
    font-weight: 700; 
    font-size: 1.5rem; 
    color: var(--text-dark); 
}

.nav-links a { 
    color: var(--text-dark); 
    margin-left: 35px; 
    font-weight: 500; 
    opacity: 0.7; /* Increased from 0.5 for accessibility */
    transition: all 0.3s ease; 
}
}

.nav-links a.active, .nav-links a:hover { 
    opacity: 1; 
    color: var(--accent-purple);
    border-bottom: 2px solid var(--accent-purple); 
}

/* --- 3. HERO SECTION (Home Page) --- */
.hero { padding: 80px 10% 20px; }

.hero-flex { 
    display: flex; 
    align-items: center; 
    gap: 30px; 
    flex-wrap: wrap;
}

.hero h1 { 
    font-size: 5rem; 
    letter-spacing: -3px; 
    line-height: 1.1;
    min-height: 1.2em; 
}

.hero-image img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    /* Prevents the page from jumping when the image loads */
    aspect-ratio: 1 / 1; 
}
}

.hero-subtitle { 
    font-size: 1.4rem; 
    opacity: 0.7; 
    margin-top: 20px; 
    font-weight: 300;
}

.home-about { 
    padding: 40px 10% 80px; 
    max-width: 1000px; 
    font-size: 1.7rem; 
    font-weight: 300; 
    line-height: 1.4;
    color: rgba(26, 26, 26, 0.9);
}

/* --- 4. THE SHELF (Skill Panels) --- */
.home-container { padding: 0 10% 120px; }

.glass-shelf { 
    background: rgba(255, 255, 255, 0.2); 
    backdrop-filter: blur(20px); 
    padding: 60px; 
    border-radius: 50px; 
    border: 1px solid rgba(255, 255, 255, 0.3); 
}

.panels-row { 
    display: flex; 
    gap: 25px; 
}

.panel { 
    flex: 1; 
    background: var(--white); 
    padding: 50px 20px; 
    border-radius: 35px; 
    text-align: center; 
    border-bottom: 10px solid #ddd; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    /* Tells browser to optimize rendering for these cards */
    contain: content; 
}
}

.panel:hover { 
    transform: translateY(-15px); 
    box-shadow: 0 25px 50px rgba(0,0,0,0.15); 
}

.panel-icon { font-size: 2.5rem; margin-bottom: 15px; display: block; }

.panel h3 { 
    font-size: 1.1rem; 
    margin-bottom: 15px; 
    color: var(--accent-purple); 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.panel-text p { font-size: 0.95rem; color: #666; margin-bottom: 5px; }

/* Panel Border Accents */
.html-panel { border-color: #f8bbd0; }
.js-panel { border-color: #fff59d; }
.python-panel { border-color: #a5d6a7; }
.java-panel { border-color: #bbdefb; }

/* --- 5. THE BADGE SYSTEM --- */
.badge-row { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.badge-row-mini { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }

.badge { 
    padding: 5px 14px; 
    border-radius: 6px; 
    font-size: 0.7rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    color: white; 
    letter-spacing: 0.5px; 
}

.badge.py { background: var(--py); }
.badge.java { background: var(--java); }
.badge.ana { background: var(--ana); } /* Anaconda Badge */
.badge.web { background: var(--web); }
.badge.dsa, .badge.oop { background: #555; }

/* --- 6. ABOUT BLOCKS (README Callouts) --- */
.about-block { 
    margin-top: 25px; 
    padding: 20px; 
    background: rgba(0,0,0,0.05); 
    border-left: 4px solid var(--accent-purple); 
    border-radius: 4px; 
    font-size: 1rem; 
    opacity: 0.8; 
}

.about-block-mini { 
    font-size: 0.9rem; 
    opacity: 0.7; 
    margin-bottom: 20px; 
    min-height: 45px; 
}

/* --- 7. WORK PAGE (The Dunks Grid) --- */
.section { padding: 100px 10%; max-width: 1500px; margin: 0 auto; }

.page-title { 
    font-size: 4.5rem; 
    letter-spacing: -4px; 
    margin-bottom: 20px; 
}

.work-intro { 
    font-size: 1.4rem; 
    opacity: 0.6; 
    margin-bottom: 100px; 
    max-width: 700px; 
}

.project-item { 
    display: grid; 
    grid-template-columns: 1.6fr 1fr; 
    gap: 120px; 
    padding: 100px 0; 
    border-top: 1px solid rgba(0,0,0,0.15); 
}

.project-main h3 { 
    font-size: 3.8rem; 
    letter-spacing: -2px; 
    line-height: 1; 
    margin-bottom: 30px; 
}

.project-main p { 
    font-size: 1.2rem; 
    opacity: 0.7; 
    max-width: 650px; 
    font-weight: 300;
}

/* GitHub Icon Links */
.github-icon-link { font-size: 2.5rem; color: var(--text-dark); transition: 0.3s; }
.github-icon-link:hover { color: var(--accent-purple); transform: scale(1.1); }
.small-git { font-size: 1.6rem; }

.project-meta { display: flex; gap: 60px; padding-top: 20px; }

.meta-col h4 { 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    margin-bottom: 20px; 
    opacity: 0.4; 
}

.meta-col p, .meta-col a { font-weight: 700; color: var(--text-dark); font-size: 1.1rem; }

/* --- 8. LOGIC LAB (Mini Panels) --- */
.logic-lab-header { margin-top: 140px; border-top: 1px solid rgba(0,0,0,0.15); padding-top: 100px; }

.exercise-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 35px; 
    margin-top: 50px; 
}

.mini-panel { 
    background: var(--white); 
    padding: 45px 35px; 
    border-radius: 40px; 
    border-bottom: 10px solid #ddd; 
    transition: 0.4s; 
    display: flex;
    flex-direction: column;
}

.mini-panel:hover { 
    transform: translateY(-12px); 
    box-shadow: 0 30px 60px rgba(0,0,0,0.1); 
}

.mini-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.mini-icon { font-size: 2.2rem; }

/* --- 9. ABOUT PAGE SPECIFICS --- */
.split-layout {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 80px;
    align-items: start;
}

.sidebar {
    background: rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.info-item { margin-bottom: 25px; }
.info-item small { 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-size: 0.7rem; 
    opacity: 0.5; 
    display: block; 
}

/* --- 10. BLACK FOOTER --- */
.site-footer { 
    background: var(--footer-black); 
    color: var(--white); 
    padding: 100px 10%; 
    margin-top: 140px; 
}

.footer-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end; 
    flex-wrap: wrap; 
    gap: 40px;
}

.footer-tagline { 
    font-size: 2.2rem; 
    font-weight: 300; 
    max-width: 500px; 
    line-height: 1.2;
}

.footer-links a { 
    color: var(--white); 
    margin-left: 30px; 
    opacity: 0.5; 
    font-size: 1.5rem;
    transition: 0.3s; 
}

.footer-links a:hover { opacity: 1; }

/* --- 11. REVEAL & RESPONSIVE --- */
.reveal { 
    opacity: 0; 
    transform: translateY(50px); 
    transition: 1.2s cubic-bezier(0.2, 1, 0.3, 1); 
}

.reveal.active { 
    opacity: 1; 
    transform: translateY(0); 
}

@media (max-width: 1200px) {
    .project-item { grid-template-columns: 1fr; gap: 60px; }
    .exercise-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 4rem; }
    .split-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .exercise-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; align-items: flex-start; }
    .footer-links a { margin-left: 0; margin-right: 20px; }
    .hero h1 { font-size: 3rem; }
}
.footer-left p { 
    opacity: 0.8; /* Increased from 0.5 for color contrast audit */
    font-size: 0.9rem; 
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}