/* --- PROFESSIONAL ACADEMIC THEME --- */
:root {
    --bg-color: #0f172a;       /* Dark Slate Blue (Professional/Atmospheric) */
    --card-bg: rgba(255, 255, 255, 0.95); /* Clean White Paper */
    --text-dark: #1e293b;      /* Dark text for readability */
    --text-light: #64748b;     /* Muted text for details */
    --accent: #0284c7;         /* Science Blue (Links/Buttons) */
    --border: #e2e8f0;         /* Subtle borders */
    
    --font-main: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    font-family: var(--font-main);
    margin: 0;
    padding: 40px 20px;
    line-height: 1.6;
}

/* Subtle Atmosphere Gradient Background */
.bg-gradient {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: radial-gradient(circle at top right, #1e293b 0%, #0f172a 100%);
    z-index: -1;
}

.main-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

/* --- HERO SECTION --- */
.hero-section {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
    color: #fff; /* White text against the dark background */
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }
}

.profile-img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.name {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    margin: 0 0 10px 0;
    line-height: 1.1;
}

.title {
    font-size: 1.2rem;
    color: #94a3b8; /* Light slate */
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.bio {
    max-width: 600px;
    color: #cbd5e1;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

/* Buttons */
.btn-container {
    display: flex;
    gap: 15px;
}

@media (max-width: 768px) {
    .btn-container { justify-content: center; }
}

.btn {
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.2s;
}

.btn-primary {
    background-color: var(--accent);
    color: #fff;
}

.btn-primary:hover { background-color: #0369a1; }

.btn-secondary {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover { background-color: rgba(255,255,255,0.2); }

/* --- BENTO GRID LAYOUT --- */
.bento-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Left column wider */
    gap: 25px;
}

@media (max-width: 900px) {
    .bento-grid { grid-template-columns: 1fr; }
}

/* Card Styling */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border);
}

.card-header {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
    color: var(--text-dark);
}

/* Experience Styling */
.experience-card {
    grid-row: span 2; /* Makes this card tall */
}

.job-item { margin-bottom: 30px; }
.job-item:last-child { margin-bottom: 0; }

.job-date {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.job-title {
    font-size: 1.2rem;
    margin: 0 0 10px 0;
}

.job-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* Education Styling */
.degree { font-weight: 700; margin-bottom: 5px; }
.minor { color: var(--text-light); margin-top: 0; }
.grad-tag { 
    display: inline-block; 
    background: #f1f5f9; 
    color: #475569; 
    padding: 4px 10px; 
    border-radius: 4px; 
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 10px;
}

.awards-box {
    margin-top: 20px;
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
}

.awards-box ul { margin: 5px 0 0 0; padding-left: 20px; color: var(--text-light); }

/* Skills Styling */
.skill-group { margin-bottom: 20px; }
.skill-group strong { display: block; margin-bottom: 10px; font-size: 0.9rem; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
    background: #e0f2fe; /* Light blue background */
    color: #0369a1;      /* Dark blue text */
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Projects Styling */
.project-card {
    grid-column: span 2; /* Span full width at bottom */
}

@media (min-width: 900px) {
    /* If screen is wide, split project card to fit right column */
    .project-card { grid-column: auto; }
}

.project-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.project-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.project-item h4 { margin: 0 0 5px 0; }
.project-item p { color: var(--text-light); font-size: 0.9rem; margin: 0 0 10px 0; }

.tech-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
}

footer {
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 40px;
}

/* --- ABOUT PAGE STYLES --- */

/* Hobbies Grid */
.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.hobby-item {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border);
}

.hobby-icon { font-size: 2rem; display: block; margin-bottom: 10px; }

/* --- MUSIC PLAYER UI --- */
.music-interface {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* The Player Box */
.cd-player {
    width: 250px;
    height: 250px;
    background: #e2e8f0;
    border-radius: 20px;
    position: relative;
    box-shadow: 
        inset 5px 5px 10px rgba(255,255,255,0.8),
        inset -5px -5px 10px rgba(0,0,0,0.1),
        10px 10px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #cbd5e1;
}

/* The Disc (Hidden initially) */
.disc {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: #333; /* Default dark */
    background-size: cover;
    background-position: center;
    position: relative;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    transition: background-image 0.3s;
}

/* The Center Hole of the CD */
.disc-hole {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 40px; height: 40px;
    background: #e2e8f0; /* Match player color */
    border-radius: 50%;
    border: 2px solid #fff;
}

/* Animation Keyframe */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* The Rack of Albums */
.album-rack {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.album-case {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.album-case:hover {
    transform: translateX(-10px); /* Slide out slightly on hover */
    background: #f1f5f9;
}

.album-case img {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
}

/* Player Status Light */
.controls {
    position: absolute;
    bottom: 15px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.status-light {
    width: 10px; height: 10px;
    background: #555; /* Off */
    border-radius: 50%;
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.5);
}

#now-playing-text {
    text-align: center;
    margin-top: 20px;
    font-family: monospace;
    color: var(--text-light);
    font-weight: bold;
}

/* --- NEW VERTICAL SONY PLAYER STYLES --- */

.sony-player {
    width: 260px;
    height: 340px; /* Taller for vertical look */
    position: relative;
    perspective: 1000px;
}

.player-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%); /* Silver Metal */
    border-radius: 10px;
    position: relative;
    border: 1px solid #6b7280;
    box-shadow: 10px 10px 20px rgba(0,0,0,0.2), inset 1px 1px 0px #fff;
    overflow: hidden; /* Keeps the sliding CD inside */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    color: #4b5563;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 0.8rem;
    margin-top: 15px;
    letter-spacing: 2px;
}

/* THE DISC */
.disc {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background-color: #333;
    background-size: cover;
    background-position: center;
    position: absolute;
    left: 40px; /* Centered horizontally (260 - 180) / 2 */
    
    /* STARTING POSITION: Hidden above the player */
    top: -200px; 
    
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 5; /* Behind glass, in front of body */
    transition: top 1s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Bouncy slide in */
}

/* Spinning Animation Class (Added by JS) */
.disc.spinning {
    animation: spin 5s linear infinite;
}

.disc-hole {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 30px; height: 30px;
    background: #d1d5db;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* THE GLASS DOOR */
.glass-door {
    position: absolute;
    top: 50px;
    left: 20px;
    width: 220px;
    height: 190px;
    background: rgba(255, 255, 255, 0.15); /* See-through */
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    backdrop-filter: blur(1px); /* Slight blur for realism */
    z-index: 10; /* On top of CD */
    box-shadow: inset 0 0 10px rgba(255,255,255,0.2);
}

.reflection {
    width: 100%; height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
}

/* CONTROL PANEL (Bottom) */
.control-panel {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 90px;
    background: linear-gradient(to bottom, #9ca3af, #6b7280);
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.lcd-display {
    width: 120px;
    height: 25px;
    background: #222;
    color: #ef4444; /* Red LED text like the photo */
    font-family: 'Courier New', monospace;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border-radius: 2px;
    margin-bottom: 10px;
    box-shadow: inset 0 0 5px #000;
    text-shadow: 0 0 5px #ef4444;
}

.buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-round {
    width: 15px; height: 15px;
    border-radius: 50%;
    background: #d1d5db;
    border: 1px solid #fff;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.blue-light {
    background: #3b82f6;
    box-shadow: 0 0 8px #3b82f6;
}

.btn-pill {
    width: 30px; height: 10px;
    border-radius: 5px;
    background: #e5e7eb;
    border: 1px solid #fff;
}

/* --- FIELDWORK GALLERY (Compact Size) --- */
.gallery-card {
    /* Removed 'grid-column: span 2' so it fits in 1 column like Skills */
    text-align: center;
    overflow: hidden; 
    min-height: 450px; 
    padding-bottom: 20px;
}

/* 1. COMPACT CONTAINER SIZE */
.photo-stack {
    position: relative;
    width: 240px !important;  /* Smaller width to fit single column */
    height: 320px !important; /* Smaller height */
    margin: 20px auto;        
    cursor: pointer;
    z-index: 10;
}

/* 2. COMPACT CARD SIZE */
.polaroid {
    position: absolute;
    top: 0; left: 0;
    width: 100% !important;   
    height: 100% !important;  
    background: #fff;
    padding: 10px 10px 50px 10px; /* Adjusted padding */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    transition: transform 0.4s ease, opacity 0.4s;
    box-sizing: border-box;   
}

/* 3. COMPACT IMAGE SIZE */
.polaroid img {
    width: 100% !important;   
    height: 220px !important; /* Smaller photo area */
    object-fit: cover !important; 
    border: 1px solid #f1f5f9;
    display: block;
}

.caption {
    font-family: 'Playfair Display', serif;
    margin-top: 10px;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.9rem; /* Smaller font */
}

/* The Animation Class */
.fly-out {
    transform: translate(200px, 20px) rotate(20deg) !important;
    opacity: 0;
}

/* --- CONTACT LIST STYLES --- */
.contact-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1; /* Light gray text */
    font-size: 1rem;
}

.contact-item .label {
    font-weight: 600;
    color: #fff; /* White label */
}

.contact-link {
    color: var(--accent); /* Uses your main blue */
    text-decoration: none;
    border-bottom: 1px dashed var(--accent); /* Subtle underline */
    transition: 0.2s;
}

.contact-link:hover {
    color: #fff;
    border-bottom-style: solid;
}