@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Fira+Code:wght@400;600&display=swap');

:root {
    --bg-dark: #111827;
    --bg-med: #1F2937;
    --bg-light: #374151;
    --text-primary: #F9FAFB;
    --text-secondary: #9CA3AF;
    --accent-blue: #3B82F6;
    --accent-green: #10B981;
    --border-color: #4B5563;
    --font-primary: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

/* --- Basic Reset & Setup --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
}
a { color: var(--accent-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--text-primary); line-height: 1.2; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; border-bottom: 2px solid var(--accent-blue); padding-bottom: 10px; margin-bottom: 30px; }
p { color: var(--text-secondary); margin-bottom: 1rem; }
section { padding: 60px 0; }

/* --- Layout --- */
.portfolio-container { display: flex; max-width: 1400px; margin: auto; }
.sidebar {
    width: 320px;
    flex-shrink: 0;
    background-color: var(--bg-med);
    padding: 40px 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 1px solid var(--border-color);
    text-align: center;
}
.main-content { flex-grow: 1; padding: 0 50px; }
.container { max-width: 900px; margin: 0 auto; }

/* --- Sidebar Content --- */
.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--accent-blue);
    margin: 0 auto 20px;
    object-fit: cover;
}
.sidebar h1 { font-size: 1.8rem; margin-bottom: 5px; }
.sidebar p { font-size: 1rem; margin-bottom: 20px; color: var(--text-secondary); }
.sidebar nav ul { list-style-type: none; }
.sidebar nav li a {
    display: block;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}
.sidebar nav li a:hover { background-color: var(--bg-light); text-decoration: none; }
.sidebar-footer { position: absolute; bottom: 20px; left: 20px; right: 20px; font-size: 0.8rem; }

/* --- Live Terminal --- */
.terminal {
    background: #0D1117;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin-top: 60px;
    min-height: 280px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.terminal p { margin: 0; line-height: 1.5; color: #CDD9E5; }
.terminal .prompt { color: var(--accent-green); margin-right: 10px; }
.terminal .text-success { color: var(--accent-green); }
.terminal .terminal-link { color: var(--accent-blue); text-decoration: underline; }
.cursor {
    display: inline-block;
    width: 8px;
    height: 1em;
    background: var(--text-primary);
    animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* --- Experience Timeline --- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}
.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding: 20px;
    background: var(--bg-med);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -41px;
    top: 25px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: 4px solid var(--bg-dark);
}
.timeline-item h3 { color: var(--accent-blue); }
.timeline-item ul { list-style-position: inside; padding-left: 10px; color: var(--text-secondary); }

/* --- Project & Skill Grids --- */
.project-grid, .skills-grid, .certs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; }
.project-card, .skill-card, .cert-card {
    background: var(--bg-med);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover, .skill-card:hover, .cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.project-card img { width: 100%; border-radius: 4px; margin-bottom: 15px; }
/* --- New Styles for Video --- */
.video-container {
    width: 100%;
    /* Maintain a 16:9 aspect ratio for the video container */
    aspect-ratio: 16 / 9; 
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden; /* Ensures video stays within the rounded corners */
    background-color: #0D1117; /* Dark background while video loads */
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes the video cover the container, cropping if needed */
}

.tech-stack { font-size: 0.8rem; color: var(--text-secondary); margin-top: 15px; }

.skill-card { text-align: center; }
.skill-card i { font-size: 3rem; color: var(--accent-blue); margin-bottom: 15px; }
.cert-card { display: flex; align-items: center; gap: 15px; }
.cert-card i { font-size: 2.5rem; color: var(--accent-green); }

/* --- Fade-in Animation --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
