/*
Theme Name: Stavro Portfolio
Author: Gemini
Description: High-performance, custom-coded portfolio theme.
Version: 2.2
*/

:root {
    --bg-dark: #050505;
    --bg-card-dark: #111111;
    --text-light: #ffffff;
    --bg-light: #f4f4f5;
    --text-dark: #1a1a1a;
    --accent: #2563eb;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --container: 1200px;
}

/* --- RESET & BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-main); background: var(--bg-light); color: var(--text-dark); overflow-x: hidden; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul { list-style: none; }

/* --- UTILITIES --- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; width: 100%; }
.text-center { text-align: center; }
.flex { display: flex; }
.justify-center { justify-content: center; }
.grid { display: grid; gap: 2rem; }

/* Responsive Grid Logic */
.md-grid-cols-2 { grid-template-columns: 1fr; }
.md-grid-cols-3 { grid-template-columns: 1fr; }

@media (min-width: 768px) { 
    .md-grid-cols-2 { grid-template-columns: 1fr 1fr; } 
    .md-grid-cols-3 { grid-template-columns: 1fr 1fr 1fr; } 
}

/* --- ANIMATIONS --- */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; will-change: transform, opacity; }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- HERO SECTION (Fixed) --- */
.hero-section {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--bg-dark); color: white;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    z-index: -1; /* Stays behind content */
    padding: 20px;
    text-align: center;
}
.hero-avatar { width: 100px; height: 100px; border-radius: 50%; overflow: hidden; border: 4px solid #222; margin-bottom: 1.5rem; margin-top: -50px; }
/* Mobile-friendly font size */
.hero-title { font-size: clamp(1.8rem, 5vw, 4rem); line-height: 1.2; font-weight: 600; margin-bottom: 1.5rem; max-width: 800px; color: white; }
.hero-subtitle { color: #888; font-size: 1rem; letter-spacing: 0.5px; padding: 0 10px; }

/* --- MAIN CONTENT (Slides Over) --- */
.content-wrapper {
    position: relative; z-index: 10;
    margin-top: 100vh; /* Keeps hero visible */
    background: var(--bg-light);
    border-radius: 40px 40px 0 0;
    box-shadow: 0 -25px 50px rgba(0,0,0,0.3);
    padding-bottom: 150px; /* CRITICAL: Prevents footer overlap */
    overflow: hidden;
    min-height: 50vh; /* Ensures content area has substance */
}

/* --- CARDS --- */
.section-pad { padding: 5rem 0; }
.feature-card { background: white; padding: 2rem; border-radius: 20px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); border: 1px solid #eee; }
.card-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }

/* --- PROJECTS --- */
.project-item { margin-bottom: 6rem; text-align: center; padding: 0 10px; }
.project-meta { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: #666; margin-bottom: 0.5rem; font-weight: 700; display: block;}
.project-title { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; color: var(--text-dark); line-height: 1.1; }
.project-desc { font-size: 1rem; color: #444; max-width: 600px; margin: 0 auto 2rem; line-height: 1.6; }

/* Buttons */
.btn { 
    display: inline-block; padding: 0.8rem 2rem; 
    background: white; border: 1px solid #ddd; border-radius: 50px; 
    font-weight: 600; color: black; font-size: 0.9rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: all 0.3s; 
}
.btn:hover { background: black; color: white; border-color: black; }
.btn-primary { background: black; color: white; border-color: black; }

/* Device Mockup */
.device-mockup {
    width: 100%; max-width: 350px; margin: 2rem auto 0;
    border-radius: 30px; border: 6px solid #222;
    overflow: hidden; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.3);
    aspect-ratio: 9/19.5; background: #ddd;
}

/* --- FOOTER --- */
.site-footer {
    background: var(--bg-dark); color: white;
    border-radius: 40px 40px 0 0;
    padding: 6rem 20px 4rem;
    margin-top: -3rem; /* The overlap effect */
    position: relative; z-index: 20;
    text-align: center;
}
.footer-icon { font-size: 3rem; margin-bottom: 1.5rem; display: block; }

/* --- HEADER / NAV BUTTONS --- */
.site-nav { 
    position: fixed; top: 0; width: 100%; padding: 1.5rem; z-index: 100; 
    mix-blend-mode: exclusion; color: white; 
    display: flex; justify-content: space-between; align-items: center; 
    pointer-events: none; 
}
.site-nav a, .site-nav button { pointer-events: auto; }
.logo { font-weight: 700; font-size: 1.5rem; letter-spacing: -1px; }

.menu-btn {
    background: none; border: none; color: white; cursor: pointer;
    transition: transform 0.3s;
}
.menu-btn:hover { transform: scale(1.1); }

/* --- MENU OVERLAY --- */
.menu-overlay {
    position: fixed; inset: 0; 
    background: #000000; 
    z-index: 200; 
    transform: translateX(100%); 
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1); /* Smooth slide */
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
}

.close-btn {
    position: absolute; top: 2rem; right: 2rem; 
    background: none; border: none; color: white; cursor: pointer;
    transition: transform 0.3s;
}
.close-btn:hover { transform: rotate(90deg); }

/* The List Itself */
.mobile-nav-list {
    list-style: none;
    text-align: center;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem; /* Spacing between links */
}

/* The Links (Big, Bold, Tight) */
.mobile-nav-list li a {
    font-size: clamp(2.5rem, 5vw, 4rem); /* Responsive Huge Text */
    font-weight: 800;
    color: white;
    text-decoration: none;
    letter-spacing: -2px; /* The "Mikael" look */
    transition: color 0.3s, transform 0.3s;
    display: block;
}

.mobile-nav-list li a:hover {
    color: #888;
    transform: translateX(10px); /* Subtle nudge */
}