/* --- 1. RESET & VARIABLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #050505;       /* Pure Black start */
    --bg-gradient: #1a1a1a;   /* Charcoal end */
    --text-main: #ffffff;     /* White text */
    --text-muted: #b0b0b0;    /* Light Grey text */
    --glass-bg: rgba(255, 255, 255, 0.05); /* Subtle glass */
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-color: #ffffff;
    
    /* Fonts */
    --font-script: 'Pacifico', cursive; /* Signature Style */
    --font-body: 'Montserrat', sans-serif; /* Clean Corporate Style */
}

body {
    background: radial-gradient(circle at top center, var(--bg-gradient), var(--bg-dark));
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- 2. TYPOGRAPHY & TOP BAR --- */
h1, h2, h3 {
    color: var(--text-main);
}

/* The Brand Name (Top Left) */
.top-bar {
    width: 100%;
    padding: 2rem 3rem;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: flex-start;
    z-index: 10;
}

.brand-name {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--text-main);
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
    transform: rotate(-2deg); /* Signature tilt */
    text-decoration: none;
    transition: transform 0.3s ease;
}

.brand-name:hover {
    transform: rotate(0deg) scale(1.05);
}

/* Page Titles (About, Resume, Skills) */
.page-title {
    font-family: var(--font-script);
    font-size: 3.5rem;
    margin-bottom: 3rem;
    text-align: center;
    transform: rotate(-2deg);
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

/* --- 3. LAYOUT CONTAINERS --- */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    margin-top: 80px; /* Space for top bar */
    width: 100%;
}

/* --- 4. HOMEPAGE SPECIFICS --- */
/* At a Glance Section */
.info-panel {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.stats-list {
    list-style: none;
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stats-list li {
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-list i {
    color: var(--text-muted);
}

/* Menu Grid (Glass Cards) */
.menu-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1000px;
}

.menu-card {
    position: relative;
    width: 200px;
    height: 250px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Animation Start State */
    opacity: 0;
    transform: translateY(50px);
}

.icon-box {
    font-size: 3rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.card-title {
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
}

/* Card Hover Effects */
.menu-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px) !important;
}

.menu-card:hover .icon-box {
    transform: scale(1.1);
}

.menu-card:active {
    transform: scale(0.95) !important;
}

/* --- 5. CONTENT PAGES (About, Resume, Skills) --- */

/* Generic Content Box */
.content-block {
    max-width: 800px;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    line-height: 1.8;
    color: #e0e0e0;
}

.content-block h3 {
    color: #fff;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    border-left: 3px solid #fff;
    padding-left: 15px;
}

.intro-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2rem;
}

/* Resume Styling */
.resume-container {
    max-width: 800px;
    width: 100%;
    text-align: left;
}

.resume-section {
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #fff;
}

.resume-section h2 {
    font-size: 1.2rem;
    text-transform: uppercase;
    color: #fff;
    border-bottom: 1px solid #444;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.job-block {
    margin-bottom: 2rem;
}

.job-block:last-child {
    margin-bottom: 0;
}

.job-meta {
    display: block;
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 0.8rem;
    font-style: italic;
}

.skill-list-text li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
}

/* Skills Pills */
.skill-pills {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.skill-pills li {
    background: rgba(255,255,255,0.1);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
}

.skill-pills li:hover {
    background: rgba(255,255,255,0.2);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin-top: 2rem;
}

.gallery-item {
    background: rgba(0,0,0,0.5);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #333;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.img-frame {
    width: 100%;
    aspect-ratio: 16/9; /* Forces consistent shape */
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #444;
}

.img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.caption {
    padding: 15px 5px 5px 5px;
    font-size: 0.9rem;
    color: #ccc;
    font-style: italic;
    text-align: center;
}

/* Call to Action Buttons (ArtStation/Hub) */
.cta-container {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cta-btn {
    text-decoration: none;
    background: #fff;
    color: #000;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, background 0.2s;
}

.cta-btn:hover {
    transform: scale(1.05);
    background: #e0e0e0;
}

/* --- 6. FOOTER --- */
.footer-bar {
    padding: 3rem 1rem 1rem 1rem;
    text-align: center;
    color: #444;
    font-size: 0.8rem;
    margin-top: auto;
}

/* --- 7. ANIMATIONS (Universal) --- */

/* 1. Swoop Animation (For Buttons/Cards) */
.swoop-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 2. Fade Trigger (For Text, Resume Blocks, Gallery) */
.fade-trigger {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-trigger.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 3. General Fade In (For At a Glance) */
.fade-in {
    animation: fadeIn 1.5s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 8. RESPONSIVE --- */
@media (max-width: 768px) {
    .top-bar { justify-content: center; position: relative; padding-bottom: 0; }
    .main-content { margin-top: 20px; }
    .formal-name { font-size: 2.5rem; }
    
    .menu-grid { flex-direction: column; align-items: center; }
    .menu-card { width: 100%; height: 80px; flex-direction: row; justify-content: flex-start; padding-left: 2rem; gap: 1.5rem; }
    .icon-box { margin-bottom: 0; font-size: 1.5rem; }
    
    .info-grid { grid-template-columns: 1fr; }
}