/* --- M3 Navbar Variables --- */
:root {
    --m3-surface: #1e1e1e;
    --m3-on-surface: #e3e3e3;
    --m3-primary: #A8C7FA; /* M3 Blue */
    --m3-bg-overlay: #121212;
}


/* --- Animation Definitions --- */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
/* --- Floating Island Navbar --- */
   .nav-floating-pill {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
    
    /* FIX 1: Ensure padding doesn't expand the width */
    box-sizing: border-box; 
    
    /* FIX 2: Default padding for desktop */
    padding: 0 20px;
}

.nav-content {
    width: 100%;
    max-width: 1200px; /* Matches your Bento Grid width */
    height: 64px;
    background: rgba(33, 31, 38, 0.7); /* M3 Surface color, transparent */
    backdrop-filter: blur(16px); /* Strong glass blur */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px; /* Full pill shape */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px 0 24px; /* Padding inside the pill */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

/* Logo Styling */
.nav-logo img {
    height: 32px;
    width: auto;
    display: block;
}

/* Hamburger Button with Label */
.hamburger-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    color: var(--md-sys-color-on-surface);
}

.menu-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0.7;
    display: none; /* Hidden on mobile, shown on desktop */
}

/* The circle around the icon */
.icon-box {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.hamburger-btn:hover .icon-box {
    background: var(--md-sys-color-primary); /* Blue on hover */
    color: #000; /* Black icon on blue bg */
    transform: rotate(90deg); /* Playful rotation */
}
@media (max-width: 600px) {
    .nav-floating-pill {
        /* This increases the gap on the sides, making the bar narrower */
        padding: 0 16px; 
    }

    .nav-content {
        /* Prevents it from looking like a full header bar */
        width: 100%; 
        max-width: 95%; /* Ensures a small gap on very narrow phones */
    }
}   
/* Responsive adjustments */
@media (min-width: 768px) {
    .menu-label { display: block; } /* Show "MENU" text on larger screens */
}

/* --- Full Screen Overlay --- */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--m3-bg-overlay);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    /* Animation setup */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

/* Class to show menu */
.menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Menu Links */
.menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.menu-links a {
    font-family: 'Fira Code', monospace; /* Keeping your technical font */
    font-size: 2rem;
    color: var(--m3-on-surface);
    text-decoration: none;
    position: relative;
    padding: 5px 15px;
    border-radius: 100px; /* Pill shape hover */
    transition: all 0.2s;
}

.menu-links a:hover {
    background: var(--m3-primary);
    color: #000; /* Black text on blue pill */
}

.separator {
    width: 50px;
    height: 2px;
    background: #333;
    margin: 10px 0;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Fira Code', monospace; /* Monospace is key for Maker vibe */
    margin: 0;
    padding: 0;
    
    /* CSS Trick to create a Graph Paper Background */
    background-image: 
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 40px 40px; /* Size of grid squares */
}

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

/* --- M3 Typography & Setup --- */
:root {
    --md-sys-color-surface: #141218;
    --md-sys-color-surface-container: #211F26;
    --md-sys-color-on-surface: #E6E1E5;
    --md-sys-color-primary: #A8C7FA; /* M3 Blue */
    --md-sys-color-on-primary: #00315F;
    --md-sys-color-secondary-container: #364455;
    --md-sys-color-on-secondary-container: #D1E4FF;
    
    --md-sys-shape-corner-extra-large: 28px;
    --md-sys-shape-corner-full: 100px;
}

body {
    background-color: var(--md-sys-color-surface);
    font-family: 'Roboto', sans-serif; /* Switch to Roboto for M3 feel */
    /* Remove the old grid background */
    background-image: none; 
}

/* --- Hero Layout --- */
.hero-wrapper {
    padding: 100px 20px 20px 20px; /* Space for Navbar */
    display: flex;
    justify-content: center;
}

.m3-hero-card {
    background-color: var(--md-sys-color-surface-container);
    border-radius: var(--md-sys-shape-corner-extra-large);
    padding: 60px;
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden; /* Keeps the animated cube inside rounded corners */
}

/* Typography */
.display-large {
    font-size: 4.5rem; /* Massive text */
    font-weight: 700;
    margin: 10px 0;
    line-height: 1.1;
    color: var(--md-sys-color-on-surface);
}

.headline-small {
    font-size: 1.5rem;
    font-weight: 400;
    color: #CAC4D0;
    margin-bottom: 40px;
    max-width: 600px;
}

.highlight-text {
    color: var(--md-sys-color-primary);
}

/* Intro Chip (Status) */
.intro-chip {
    display: inline-flex;
    align-items: center;
    background: #2B2930;
    border: 1px solid #49454F;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #E6E1E5;
    margin-bottom: 20px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #4CAF50; /* Green active dot */
    border-radius: 50%;
    margin-right: 8px;
}

/* --- M3 Buttons --- */
.action-row {
    display: flex;
    gap: 15px;
}

.m3-btn {
    height: 48px;
    padding: 0 24px;
    border-radius: var(--md-sys-shape-corner-full); /* Pill shape */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    text-decoration: none;
    font-size: 1rem;
    gap: 8px;
    transition: all 0.2s ease;
}

.m3-btn-filled {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
}
.m3-btn-filled:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

.m3-btn-tonal {
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}
.m3-btn-tonal:hover {
    background-color: #405065;
}
.logo-img {
    height: 40px; /* Fits nicely inside the 64px navbar */
    width: auto;  /* Maintains aspect ratio */
    display: block;
    object-fit: contain;
}
/* --- The "Technical Drawing" Visual (3D Wireframe Cube) --- */
.bento-hero {
    max-width: 1200px;
    /* Increased from 100px to 140px to clear the floating nav */
    margin: 140px auto 40px auto; 
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr; 
    grid-template-rows: auto auto;
    gap: 20px;
}

/* Common Box Styles */
.bento-box {
    background: var(--md-sys-color-surface-container);
    border-radius: 24px; /* Big smooth corners */
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.bento-box:hover {
    transform: translateY(-2px); /* Subtle lift */
}

/* Box 1: Text Area (Spans 2 rows on mobile, 1 on desktop) */
.text-box {
    grid-column: 1;
    grid-row: 1 / span 2; /* Takes up full height on left */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-title {
    font-size: 4rem;
    line-height: 1;
    margin: 20px 0;
    color: var(--md-sys-color-on-surface);
    font-weight: 800;
}

.bento-desc {
    font-size: 1.2rem;
    color: #999;
    max-width: 400px;
    margin-bottom: 30px;
}

/* Box 2: The Model (Top Right) */
.model-box {
    grid-column: 2;
    grid-row: 1;
    height: 350px; /* Fixed height for model area */
    background: var(--md-sys-color-secondary-container); /* Dark Blue/Grey tint */
    color: var(--md-sys-color-on-secondary-container);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* Remove padding to let model fit */
}

.bento-model {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.model-label {
    position: absolute;
    bottom: 15px;
    right: 20px;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Box 3: Stats (Bottom Right) */
.stats-box {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1A1A1A; /* Slightly darker */
}

.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-num { font-size: 2rem; font-weight: bold; color: var(--md-sys-color-primary); }
.stat-label { font-size: 0.8rem; color: #777; text-transform: uppercase; }

.icon-link {
    background: #333;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: 0.2s;
}
.icon-link:hover { background: var(--md-sys-color-primary); color: black; }

/* Status Pill */
.status-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: bold;
    width: fit-content;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(76, 175, 80, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .bento-hero {
        grid-template-columns: 1fr; /* Stack everything */
        grid-template-rows: auto;
    }
    .text-box { grid-column: 1; grid-row: 2; } /* Put text below image on mobile? */
    .model-box { grid-column: 1; grid-row: 1; height: 300px; } /* Image on top */
    .stats-box { grid-column: 1; grid-row: 3; }
}
.technical-model {
    width: 100%;
    height: 100%;
    background-color: transparent;
    
    /* This disables all mouse interaction */
    pointer-events: none; 
    
    /* Optional: Ensure it stays behind text if they overlap on mobile */
    z-index: 0; 
}
.cube-container {
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    animation: rotate 20s infinite linear;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid var(--md-sys-color-primary); /* Blue Wireframe */
    background: rgba(168, 199, 250, 0.05); /* Slight blue tint */
}

/* Position faces to make a cube */
.front  { transform: rotateY(0deg) translateZ(100px); }
.back   { transform: rotateY(180deg) translateZ(100px); }
.right  { transform: rotateY(90deg) translateZ(100px); }
.left   { transform: rotateY(-90deg) translateZ(100px); }
.top    { transform: rotateX(90deg) translateZ(100px); }
.bottom { transform: rotateX(-90deg) translateZ(100px); }

@keyframes rotate {
    from { transform: rotateX(0deg) rotateY(0deg); }
    to { transform: rotateX(360deg) rotateY(360deg); }
}

/* Mobile Response */
@media (max-width: 900px) {
    .m3-hero-card {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
    }
    .hero-visual {
        margin-top: 40px;
        width: 100%; /* Allow full width on mobile */
        height: 300px;
    }
    .display-large { font-size: 3rem; }
    .action-row { justify-content: center; }
}
.logo { font-weight: bold; color: var(--accent-color); font-size: 1.2rem; }
.links a { margin-left: 20px; font-size: 0.9rem; color: var(--text-dim); }
.links a:hover { color: var(--accent-color); }

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 80px 20px;
    border-bottom: 1px dashed #333;
}
.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    letter-spacing: -2px;
}
.subtitle { color: var(--text-dim); }

/* Grid Layout */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); /* Responsive grid */
    gap: 30px;
    padding: 40px;
}

.project-card {
    background-color: var(--md-sys-color-surface-container);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border: 1px solid transparent;
    
    /* 1. Entrance Animation Setup */
    opacity: 0; /* Starts hidden */
    /* This calls the keyframe we defined above */
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    
    /* 2. Transition for Hover Effects */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}

/* Hover Effect: Lifts up and glows slightly */
.project-card:hover {
    transform: translateY(-8px); /* Moves up */
    box-shadow: 0 12px 32px rgba(0,0,0,0.4); /* Stronger shadow */
    border-color: rgba(168, 199, 250, 0.2); /* Subtle blue border glow */
}

.image-frame {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid #333;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
    filter: grayscale(80%); /* Makes images look technical */
}

.project-card:hover img {
    filter: grayscale(0%); /* Color comes back on hover */
    transform: scale(1.05);
}

.cat-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #000;
    color: var(--accent-color);
    padding: 5px 10px;
    font-size: 0.8rem;
    border: 1px solid var(--accent-color);
    z-index: 2;
}

.card-info { padding: 20px; }
.card-info h3 { margin: 0 0 10px 0; font-size: 1.4rem; }
.status-indicator { 
    display: block; 
    margin-top: 15px; 
    font-size: 0.8rem; 
    color: var(--accent-color); 
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    font-size: 0.8rem;
    color: #555;
}


/* --- Projects Section --- */
main {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.section-header {
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--md-sys-color-on-surface);
}

/* --- Sliding Segmented Toolbar --- */
.toolbar-container {
    position: relative; /* Anchor for the slider */
    display: inline-flex;
    background: #2B2930; /* Darker background for the track */
    padding: 4px;
    border-radius: 100px; /* Fully rounded track */
    border: 1px solid #444;
    margin-bottom: 30px;
    overflow: hidden; /* Keeps the slider inside */
}

/* The Moving Blue Pill */
.slide-pill {
    position: absolute;
    top: 4px;
    left: 4px; /* Starting position */
    height: calc(100% - 8px);
    background-color: var(--md-sys-color-primary); /* M3 Blue */
    border-radius: 100px;
    z-index: 1; /* Sits behind text, above track */
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); /* Smooth Slide */
    
    /* Default width for "ALL" (JS will update this) */
    width: 60px; 
}

/* The Buttons */
.filter-btn {
    position: relative;
    z-index: 2; /* Sits ON TOP of the slider */
    background: transparent;
    border: none;
    color: #AAA; /* Default grey text */
    padding: 10px 24px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s;
}

/* Hover State */
.filter-btn:hover {
    color: #FFF;
}

/* Active State (Text becomes black to contrast with Blue Pill) */
.filter-btn.active {
    color: #001e45; /* Dark blue/black text */
}
/* --- Mobile: Hide Filter Bar --- */
@media (max-width: 768px) {
    .toolbar-container {
        display: none !important;
    }
}
/* --- The Grid --- */
.projects-container {
    display: grid;
    /* Responsive columns: At least 350px wide, or split evenly */
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

/* --- Project Card (Bento Style) --- */
.project-card {
    background-color: var(--md-sys-color-surface-container);
    border-radius: 24px; /* Matches Hero corners */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
    
    /* Animation hook (uses the keyframes from animations.css) */
    opacity: 0; /* Start hidden */
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.1);
}

/* Image Area */
.card-image-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

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

/* Subtle zoom on hover */
.project-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

/* Category Badge */
.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Text Content */
.card-body {
    padding: 24px;
    flex-grow: 1; /* Pushes footer to bottom */
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25rem;
    margin: 0 0 10px 0;
    color: var(--md-sys-color-on-surface);
}

.card-desc {
    font-size: 0.95rem;
    color: #999;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Footer Link */
.card-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--md-sys-color-primary); /* M3 Blue */
    font-weight: 500;
    font-size: 0.9rem;
}

.card-footer svg {
    transition: transform 0.2s;
}

.project-card:hover .card-footer svg {
    transform: translateX(5px); /* Arrow moves right on hover */
}



/* --- Fix Mobile Centering --- */
@media (max-width: 768px) {

    /* 1. Center the "Selected Works" Title */
    .section-header {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* 2. Fix the Card Grid */
    .projects-container {
        /* CHANGE: Instead of forcing 350px, we let it fit the phone screen (1fr) */
        grid-template-columns: 1fr; 
        
        /* Center the grid itself */
        justify-items: center;
        width: 100%;
        padding: 0; /* Remove extra grid padding if necessary */
    }

    /* 3. Ensure the Card fits smoothly */
    .project-card {
        width: 100%; 
        max-width: 380px; /* Prevents it from getting too huge on larger phones */
        margin: 0 auto;   /* Forces center alignment */
    }
}
/* =========================================
   ABOUT SECTION (Bento Style)
   ========================================= */

/* --- Layout Wrapper --- */
.about-wrapper {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    display: grid;
    /* Fixed width for ID card (350px), Flexible width for Bio */
    grid-template-columns: 350px 1fr; 
    gap: 24px;
}

/* --- Base Card Style --- */
.about-card {
    background-color: var(--md-sys-color-surface-container);
    border-radius: 24px;
    overflow: hidden;
    
    /* Animation hook: Uses the keyframe from animations.css */
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* =========================================
   LEFT COLUMN: PROFILE CARD
   ========================================= */
.profile-card {
    padding: 0; /* No padding so image touches edges */
    display: flex;
    flex-direction: column;
    animation-delay: 0.2s; /* Staggered entrance */
}

/* Image Area */
.profile-image-container {
    width: 100%;
    height: 380px; /* Taller to show more photo */
    background: #000;
}

.profile-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9); /* Slight dim to blend with dark mode */
    transition: filter 0.3s;
}

.profile-card:hover .profile-image-container img {
    filter: brightness(1); /* Brighten on hover */
}

/* Stats List (Location, Printer, etc.) */
.profile-stats {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1; /* Fills remaining space */
}

.p-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Subtle divider */
    padding-bottom: 12px;
}

/* Remove border from the last item */
.p-stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.p-label {
    color: #777;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.p-value {
    color: #E3E3E3;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

/* =========================================
   RIGHT COLUMN: BIO CARD
   ========================================= */
.bio-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically centers content */
    animation-delay: 0.4s;
}

/* The subtle top tag (replacing the big title) */
.bio-tag {
    display: block;
    color: var(--md-sys-color-primary); /* M3 Blue */
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    margin-bottom: 24px;
    opacity: 0.9;
}

/* Main Description Text */
.bio-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #C4C7C5; /* M3 readable grey */
    margin-bottom: 40px;
    max-width: 95%;
}

.bio-text strong {
    color: #FFF;
    font-weight: 700;
}

.bio-text em {
    color: var(--md-sys-color-primary);
    font-style: normal;
}

/* --- Skills Section --- */
.skill-section {
    margin-bottom: 30px;
}

.skill-section:last-child {
    margin-bottom: 0;
}

.skill-title {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Chip Styling */
.chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #E3E3E3;
    cursor: default;
    transition: all 0.2s ease;
}

.chip:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Special styling for Software chips (Blue Tint) */
.chip.blue {
    border-color: rgba(168, 199, 250, 0.2);
}

.chip.blue:hover {
    background: var(--md-sys-color-primary);
    border-color: var(--md-sys-color-primary);
    color: #001e45; /* Dark text on blue bg */
}

/* =========================================
   RESPONSIVE (Mobile)
   ========================================= */
@media (max-width: 900px) {
    .about-wrapper {
        grid-template-columns: 1fr; /* Stack into one column */
        gap: 20px;
    }

    .profile-image-container {
        height: 300px; /* Slightly shorter on mobile */
    }

    .bio-card {
        padding: 30px;
    }
}

/* =========================================
   BENTO FOOTER
   ========================================= */

.bento-footer {
    max-width: 1200px;
    margin: 60px auto 40px auto; /* Spacing from bottom of page */
    padding: 0 20px;
}

/* The Top Row (Flexbox for 3 Columns) */
.footer-top {
    background-color: var(--md-sys-color-surface-container); /* Dark Card BG */
    border-radius: 24px 24px 0 0; /* Rounded top corners only */
    padding: 50px;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Wraps on mobile */
    gap: 30px;
    
    border: 1px solid rgba(255,255,255,0.03);
    border-top: none !important;
}

/* Left: Identity */
.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--md-sys-color-primary); /* Blue */
    margin: 0 0 5px 0;
}

.footer-role {
    font-size: 0.9rem;
    color: #888;
    margin: 0;
}

/* Center: Links */
.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #CCC;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
}

.footer-links a:hover {
    color: #FFF;
}

/* Add a tiny blue dot on hover */
.footer-links a::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--md-sys-color-primary);
    border-radius: 50%;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    transition: transform 0.2s;
}

.footer-links a:hover::after {
    transform: translateX(-50%) scale(1);
}

/* Right: Socials */
.footer-socials {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: #CCC;
    transition: all 0.2s;
}

.social-btn:hover {
    background: var(--md-sys-color-primary); /* Blue Background */
    color: #001e45; /* Dark Icon */
    transform: translateY(-3px);
}

/* Bottom: Copyright Row */
.footer-bottom {
    background-color: var(--md-sys-color-surface-container);
    border-radius: 0 0 24px 24px; /* Rounded bottom corners */
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.03);
    border-top: none; /* Merges with top part */
}

.footer-bottom p {
    margin: 0;
    font-size: 0.8rem;
    color: #666;
    font-family: 'Fira Code', monospace;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
}

/* --- Contact Section Layout --- */
.contact-wrapper {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 20px;
}

.contact-grid {
    display: grid;
    /* Grid: Top Row (2 cols), Bottom Row (1 col) */
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}

/* Common Box Style (inherits basic bento props) */
.contact-box {
    background-color: var(--md-sys-color-surface-container);
    border-radius: 24px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Specific Grid Placements */
.c-cta {
    grid-column: 1; /* Left Top */
    padding: 0; /* Terminal needs full width */
    background: #1e1e1e; /* Darker terminal bg */
}

.c-socials {
    grid-column: 2; /* Right Top */
    display: flex;
    flex-direction: column;
}

.c-form {
    grid-column: 1 / span 2; /* Full Bottom Row */
}

/* --- Terminal Style (Box 1) --- */

/* 1. Cleaner Container */
.contact-box.c-cta {
    background: #1E1E1E; /* Darker, cleaner grey */
    border: 1px solid #333;
    padding: 0; /* Remove padding here so header sits flush */
    overflow: hidden; /* Ensures rounded corners clip content */
}

/* 2. Mac-style Header */
.terminal-header {
    background: #252526; /* Slightly lighter than body */
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #111;
}

.term-dot { width: 10px; height: 10px; border-radius: 50%; }
.red    { background: #FF5F56; }
.yellow { background: #FFBD2E; }
.green  { background: #27C93F; }

.term-title {
    margin-left: auto; /* Pushes title to center or right */
    margin-right: auto;
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: #666;
    letter-spacing: 0.5px;
}

/* 3. The Code Area */
.terminal-body {
    padding: 25px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    background: #1E1E1E;
}

.term-text { 
    color: #D4D4D4; /* VS Code default text color */
    margin: 0 0 8px 0; 
    line-height: 1.6; 
}

.term-path { color: #A8C7FA; font-weight: bold; } /* Blue for folder path */
.output { color: #6A9955; } /* Green for success output */
.highlight-text { color: #CE9178; } /* Orange/Red for strings */

/* 4. The "Interactive" Copy Button */
/* 4. The "Interactive" Copy Button (Compact Version) */
.copy-email-btn {
    background: #2D2D2D; 
    border: 1px solid #444;
    color: #E6E1E5;
    padding: 8px 16px; /* Slightly smaller padding */
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    
    /* Make it sit nicely */
    display: inline-flex; 
    align-items: center;
    gap: 12px;
    width: fit-content; /* Only as wide as the text */
    
    transition: all 0.2s ease;
    margin-top: 20px;
}

.copy-email-btn:hover {
    border-color: #A8C7FA;
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.copy-email-btn:active {
    transform: translateY(0);
}

/* 5. Success Message */
.copy-feedback {
    display: inline-block; /* Sits next to button or below depending on space */
    margin-left: 15px;     /* Spacing from button */
    font-size: 0.75rem;
    color: #A8C7FA;
    opacity: 0;
    transition: opacity 0.3s;
}

.copy-feedback.visible {
    opacity: 1;
}   
/* --- Social List (Box 2) --- */
.box-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.social-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.2s;
}

.social-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.social-row:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.arrow-icon { color: #666; transition: 0.2s; }
.social-row:hover .arrow-icon { color: var(--md-sys-color-primary); }

/* --- M3 Form (Box 3) --- */
.m3-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Input Styling (Floating Label Magic) */
.input-group {
    position: relative;
    padding-top: 10px;
}

/* Make textarea span full width */
.input-group:nth-child(3) { grid-column: 1 / span 2; }
.submit-btn { grid-column: 1 / span 2; width: fit-content; margin-top: 10px; }

.m3-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-bottom: 2px solid #555;
    padding: 15px 15px 5px 15px; /* Top padding for label space */
    font-size: 1rem;
    color: #E3E3E3;
    border-radius: 8px 8px 0 0;
    outline: none;
    transition: all 0.2s;
    height: 56px;
}

.m3-textarea {
    height: 120px;
    resize: none;
}

.m3-label {
    position: absolute;
    left: 15px;
    top: 25px;
    color: #999;
    pointer-events: none;
    transition: 0.2s ease all;
    font-size: 1rem;
}

/* Focus & Valid States */
.m3-input:focus, .m3-input:not(:placeholder-shown) {
    background: rgba(255, 255, 255, 0.08);
    border-bottom-color: var(--md-sys-color-primary);
}

/* Move label up when focused or has text */
.m3-input:focus ~ .m3-label,
.m3-input:not(:placeholder-shown) ~ .m3-label {
    top: 5px;
    font-size: 0.75rem;
    color: var(--md-sys-color-primary);
}

/* --- Responsive Contact --- */
@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
    .c-cta { grid-column: 1; }
    .c-socials { grid-column: 1; }
    .c-form { grid-column: 1; }
    .m3-form { grid-template-columns: 1fr; }
    .input-group:nth-child(3) { grid-column: 1; }
    .submit-btn { grid-column: 1; width: 100%; }
}

/* --- Networks 2x2 Grid Styling --- */

.network-header {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #666; 
    text-transform: uppercase;
    margin: 0 0 20px 0;
    font-family: 'Roboto', sans-serif;
}

.network-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 Columns */
    grid-template-rows: 1fr 1fr;    /* 2 Rows */
    gap: 16px;                      /* Gap between tiles */
    height: 100%;                   /* Fill the container */
    min-height: 200px;              /* Ensure it has some height */
}

.network-tile {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;            /* Soft corners */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #999;                    /* Default icon color */
    font-size: 2.5rem;              /* Big Icon size */
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid transparent;
}

/* Hover Effect: Pop up, glow, and change color */
.network-tile:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--md-sys-color-primary); /* Your Blue Color */
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(168, 199, 250, 0.1);
}

/* Optional: Active click state */
.network-tile:active {
    transform: scale(0.95);
}

/* --- Terminal Core Styles --- */
.contact-box.c-cta {
    background-color: #1e1e1e;
    font-family: 'Fira Code', monospace; /* Use your existing font */
    padding: 0;
    display: flex;
    flex-direction: column;
    /* Smooth transition for the maximization effect */
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 10;
    height: 350px; /* Default Height */
}

/* --- THE MAXIMIZED STATE (Green Button Click) --- */
.contact-box.c-cta.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;  /* Square-ish shape */
    height: 600px;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 9999;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 
                0 0 0 100vw rgba(0,0,0,0.6); /* Backdrop dimming hack */
    border-color: var(--md-sys-color-primary);
}

/* Header Controls */
.terminal-header {
    background: #2d2d2d;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #333;
    cursor: default;
}
.term-dot { 
    width: 12px; height: 12px; border-radius: 50%; cursor: pointer; transition: transform 0.2s; 
}
.term-dot:hover { transform: scale(1.2); }
.term-dot.green:hover { background-color: #32d74b; } /* Bright green on hover */

/* Window Internals */
.terminal-window {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    cursor: text;
}

/* Scrollbar styles for the terminal */
.terminal-window::-webkit-scrollbar { width: 8px; }
.terminal-window::-webkit-scrollbar-track { background: #1e1e1e; }
.terminal-window::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }

/* Text Utilities */
.term-line { margin-bottom: 8px; line-height: 1.5; color: #ccc; word-wrap: break-word; }
.term-path { color: #57c7ff; font-weight: bold; }
.term-prompt { color: #ff6ac1; margin-right: 8px; }
.term-success { color: #50fa7b; font-weight: bold; }
.term-error { color: #ff5555; }
.term-gray { color: #666; font-size: 0.85rem; font-style: italic; }
.term-green-text { color: #27C93F; font-weight: bold; }
.highlight-cmd { color: #f1fa8c; }

/* The Input Field */
.term-input-line { display: flex; align-items: center; }
#cmd-input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    flex-grow: 1;
    margin-left: 5px;
    caret-color: #fff;
}

/* Re-styling the copy button to fit inside history */
.copy-email-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid #50fa7b;
    color: #50fa7b;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}
.copy-email-btn:hover { background: #50fa7b; color: #000; }