/* --- VARIABLES --- */
:root {
    --bg-color: #F3EFE0; 
    --footer-bg: #E6DEC8; 
    --text-main: #1A1A1A; 
    --link: #D4A017;
    
    /* --- COLOR PALETTE --- */
    /* 1. Projects (Pop color: Burnt Orange) */
    --color-project: #913520; 
    --text-project: #F3EFE0;

    /* 2. Work Experience (Strong Pop: Black/Charcoal) */
    --color-work: #1A1A1A;
    --text-work: #F3EFE0;

    /* 3. About Me (Subtle: Stone Grey) */
    --color-about: #D6D1C2;
    --text-about: #1A1A1A;

    /* 4. Extras (Subtle: Darker Cream) */
    --color-extra: #EAE5D3;
    --text-extra: #1A1A1A;
    
    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius: 16px; /* Slightly tighter radius */
    --gap: 12px;    /* TIGHTER GAP (was 16px) */
}
/* --- GRID SIZING UTILITIES --- */
@media (min-width: 600px) {
    
    /* WIDTHS (Columns) */
    .w-1 { grid-column: span 1; }
    .w-2 { grid-column: span 2; }
    .w-3 { grid-column: span 3; }
    .w-4 { grid-column: span 4; }
    .w-5 { grid-column: span 5; }
    .w-6 { grid-column: span 6; }
    .w-7 { grid-column: span 7; }
    .w-8 { grid-column: span 8; }

    /* HEIGHTS (Rows) */
    .h-1 { grid-row: span 1; }
    .h-2 { grid-row: span 2; }
    .h-3 { grid-row: span 3; }
    .h-4 { grid-row: span 4; }
    .h-5 { grid-row: span 5; }
    .h-6 { grid-row: span 6; }
    .h-7 { grid-row: span 7; }
    .h-8 { grid-row: span 8; }
}

/* --- RESET & BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    padding: 0; 
    line-height: 1.4; /* Slightly tighter leading */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Update your 'a' tag styles */
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

/* Make links pop with yellow on hover */
a:hover {
    color: var(--link);
}

p a {
    color: var(--link);
    /* text-decoration: underline; */
    text-underline-offset: 4px;
}

.navbar, .bento-grid { padding-left: 20px; padding-right: 20px; }
img { width: 100%; height: 100%; object-fit: cover; display: block; }
a { text-decoration: none; color: inherit; transition: opacity 0.2s ease; }

/* --- NAVBAR --- */
.navbar {
/* 1. STICKY POSITIONING */
    position: sticky;
    top: 0;
    z-index: 1000; /* Ensures it floats ABOVE the cards */

    /* 2. BACKGROUND & BLUR (Glassmorphism effect) */
    background-color: rgba(243, 239, 224, 0.65); /* Uses your cream color with slight transparency */
    backdrop-filter: blur(12px); /* Blurs the content scrolling behind it */
    -webkit-backdrop-filter: blur(12px); /* Safari support */
    border-bottom: 1px solid rgba(0,0,0,0.05); /* Subtle line to separate from content */

    /* 3. LAYOUT (Existing) */
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    /* 4. SIZING ADJUSTMENTS */
    /* I reduced the vertical padding slightly so the bar isn't too tall when stuck */
    padding-top: 15px; 
    padding-bottom: 15px;
    
    max-width: 100%; /* Changed from fixed width to 100% to span full screen */
    margin: 0 auto 20px auto; /* Added bottom margin to push content away slightly */
    width: 100%;
}
.logo { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; letter-spacing: -1px; color: var(--color-project);}
.nav-links a { margin-left: 20px; font-weight: 500; font-size: 0.9rem; }
.nav-links .btn-primary { background: var(--text-main); color: var(--bg-color); padding: 8px 18px; border-radius: 50px; }

/* --- BENTO GRID LAYOUT --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 80px; 
    grid-auto-columns: 80px;
    gap: var(--gap);
    max-width: 1240px;
    margin: 0 auto 50px auto;
    width: 100%;
}

/* --- GENERIC CARD STYLING --- */
.card {
    border-radius: var(--radius);
    padding: 20px; /* TIGHTER PADDING (was 24px) */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0,0,0,0.02);
}
/* .card:hover { transform: translateY(-4px); } */

/* --- CATEGORY COLOR CODING --- */

/* 1. PROJECTS (Orange) */
.cat-project {
    background-color: var(--color-project);
    color: var(--text-project);
}
.cat-project .tags span { border-color: rgba(255,255,255,0.4); }

/* 2. WORK EXPERIENCE (Black) */
.cat-work {
    background-color: var(--color-work);
    color: var(--text-work);
}

/* 3. ABOUT ME (Stone) */
.cat-about {
    background-color: var(--color-about);
    color: var(--text-about);
}

/* 4. EXTRAS (Cream) */
.cat-extra {
    background-color: var(--color-extra);
    color: var(--text-extra);
}

/* --- CONTENT STYLES --- */
.hero h1 {
    font-family: var(--font-head);
    font-size: 2.2rem; /* Adjusted for tighter space */
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.status-pill {
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.6);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    width: fit-content;
    color: #000;
}
.dot { height: 8px; width: 8px; background-color: #2ecc71; border-radius: 50%; margin-right: 8px; }

.photo-card { padding: 0; }

.focus-card h3 { opacity: 0.6; font-size: 0.85rem; margin-bottom: 8px;}
.focus-card .mini-icon { font-size: 1.8rem; margin-top: auto; align-self: flex-end;}

/* Project Specifics */
.project-large { padding: 0; } /* Remove padding for image to touch edges */
.cat-project .card-image-wrapper, 
.cat-work .card-image-wrapper {
    /* Layout */
    height: 55%; 
    width: 100%; 
    margin-bottom: 15px; /* Adds space between image and text */
    
    /* Decoration */
    background: #000;
    border-radius: 12px; /* The rounded corners */
    overflow: hidden;    /* Clips the image */
    border: 1px solid rgba(0,0,0,0.1);
}

.cat-project .card-content {
    padding: 20px;
    height: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cat-project h2 { font-family: var(--font-head); line-height: 1.1; margin-bottom: 6px; }
.cat-project p { font-size: 0.9rem; opacity: 0.9; }

/* Tags */
.tags { margin-bottom: 10px; }
.tags span {
    font-size: 0.7rem;
    text-transform: uppercase;
    border: 1px solid currentColor;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 5px;
    opacity: 0.8;
}

/* Work Experience Header */
.work-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; opacity: 0.7; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px;}
.cat-work h2 { font-family: var(--font-head); font-size: 1.8rem; margin-bottom: 8px; }

/* Skills */
.skill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.skill-list li { background: var(--color-project); color: var(--text-work); padding: 5px 10px; border-radius: 6px; font-weight: 600; font-size: 0.8rem; }

/* --- FOOTER --- */
.site-footer {
    background-color: var(--footer-bg);
    padding: 40px 20px; /* Reduced vertical padding */
    margin-top: auto;
    text-align: center;
}
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.site-footer h3 { font-family: var(--font-head); font-size: 1.8rem; color: var(--text-main); }
.social-icons { display: flex; gap: 16px; }
.social-icons a {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; /* Slightly smaller icons */
    border-radius: 50%;
    background: var(--text-main);
    color: var(--bg-color);
    transition: transform 0.2s ease, background 0.2s ease;
}
.social-icons a:hover { transform: scale(1.1); background: #000; }
.copyright { opacity: 0.5; font-size: 0.8rem; }

/* --- RESPONSIVENESS --- */
@media (max-width: 900px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .bento-grid { display: flex; flex-direction: column; }
    .card { min-height: 200px; }
    .hero h1 { font-size: 2rem; }
}

/* --- DUAL ROW GALLERY --- */

/* 1. The Main Wrapper */
.gallery-wrapper {
    width: 100%;
    /* No height defined here, it grows with content */
    overflow: hidden; 
    background: var(--color-extra);
    border-radius: var(--radius);
    padding: 20px 0; /* Add vertical breathing room */
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space BETWEEN the two rows */
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
}

/* 2. The Tracks */
.gallery-track {
    display: flex;
    gap: var(--gap);
    width: max-content; 
    /* We remove the animation here and put it on specific classes below */
}

/* 3. Animation Directions */
.scroll-left {
    animation: scroll-left 45s linear infinite;
}

.scroll-right {
    animation: scroll-right 45s linear infinite;
}

/* Pause EITHER row on hover */
/* .gallery-track:hover {
    animation-play-state: paused;
} */

/* --- KEYFRAMES --- */
/* --- UPDATED FOR 2 SETS (12 IMAGES TOTAL) --- */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Move exactly half the total width (the length of one original set) */
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        /* Start halfway (showing the duplicate set) */
        transform: translateX(-50%);
    }
    100% {
        /* Move right to the start (showing the original set) */
        transform: translateX(0);
    }
}

/* --- CARD & TOOLTIP STYLES (Same as before) --- */
.art-card {
    position: relative;
    width: 280px; /* Slightly smaller to fit 2 rows comfortably */
    height: 350px; 
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.art-card:hover { transform: scale(0.98); }
.art-card img { width: 100%; height: 100%; object-fit: cover; transition: filter 0.3s ease; }
.art-card:hover img { filter: brightness(0.7); }

.art-tooltip {
    position: absolute;
    bottom: 15px; left: 15px; right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-main);
    padding: 10px 14px;
    border-radius: 8px;
    display: flex; justify-content: space-between; align-items: center;
    opacity: 0; transform: translateY(10px);
    transition: all 0.3s ease; pointer-events: none;
}

.art-card:hover .art-tooltip { opacity: 1; transform: translateY(0); }
.art-tooltip .medium { font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; }
.art-tooltip .date { font-family: var(--font-body); font-size: 0.7rem; opacity: 0.7; background: var(--color-work); color: var(--text-work); padding: 3px 6px; border-radius: 4px; }

/* Responsive */
@media (max-width: 600px) {
    .art-card { width: 200px; height: 260px; }
}

