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

/* --- NEW: Bright & Vibrant Color Palette --- */
:root {
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --text-dark: #212529;
    --text-light: #6c757d;
    --border-color: #dee2e6;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-solid: #667eea; /* A solid fallback color */
    --shadow-color: rgba(102, 126, 234, 0.1);
    --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-light);
    color: var(--text-dark);
    font-family: var(--font-primary);
    line-height: 1.6;
}
a { color: var(--accent-solid); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--text-dark); line-height: 1.2; }
h1 { font-size: 2.5rem; }
h3 { margin-bottom: 0.5rem; }

/* --- NEW: Gradient Underline for Headings --- */
h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    border-bottom: none; /* Remove old border */
}
h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}
p { color: var(--text-light); margin-bottom: 1rem; }

/* --- Layout --- */
.portfolio-container { display: flex; max-width: 1400px; margin: auto; }
.sidebar {
    width: 320px;
    flex-shrink: 0;
    background-color: var(--bg-white); /* White sidebar */
    padding: 40px 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 1px solid var(--border-color); /* Lighter border */
    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-solid);
    margin: 0 auto 20px;
    object-fit: cover;
    box-shadow: 0 5px 15px var(--shadow-color);
}
.sidebar h1 { font-size: 1.8rem; margin-bottom: 5px; }
.sidebar p { font-size: 1rem; margin-bottom: 20px; }
.sidebar nav ul { list-style-type: none; }
.sidebar nav li a {
    display: block;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.2s ease;
}
.sidebar nav li a:hover {
    background: var(--accent-gradient);
    color: var(--bg-white);
    text-decoration: none;
    transform: scale(1.05);
}
.sidebar-footer { position: absolute; bottom: 20px; left: 20px; right: 20px; font-size: 0.8rem; }

/* --- Live Terminal (Stays Dark for Contrast) --- */
.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.2);
}
.terminal p, .terminal .text-success { color: #CDD9E5; }
.terminal .prompt { color: #10B981; margin-right: 10px; }
.terminal .terminal-link { color: #3B82F6; text-decoration: underline; }
.cursor { display: inline-block; width: 8px; height: 1em; background: #F9FAFB; 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: 25px;
    background: var(--bg-white);
    border-radius: 8px;
    border: none; /* Replaced with shadow */
    box-shadow: 0 4px 15px var(--shadow-color);
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -41px;
    top: 25px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-gradient); /* Gradient dot */
    border: 4px solid var(--bg-light);
}
.timeline-item h3 { background: var(--accent-gradient); -webkit-background-clip: text; color: transparent; }
.timeline-item ul { list-style-position: inside; padding-left: 10px; color: var(--text-light); }

/* --- Project & Skill Grids --- */
.project-card, .skill-card, .cert-card {
    background: var(--bg-white);
    border: none; /* Replaced with shadow */
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px var(--shadow-color);
    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 var(--shadow-color);
}
.tech-stack { font-size: 0.8rem; color: var(--text-light); margin-top: 15px; }

/* --- NEW: Gradient Icons for Skills & Certs --- */
.skill-card, .cert-card { text-align: center; }
.cert-card { display: flex; align-items: center; gap: 15px; text-align: left; }
.skill-card i, .cert-card i {
    display: inline-block;
    font-size: 3rem;
    margin-bottom: 15px;
    background: var(--accent-gradient);
    -webkit-background-clip: text; /* Creates the gradient text effect */
    background-clip: text;
    color: transparent;
}
.cert-card i { margin-bottom: 0; }

/* --- Video Styling (from previous step) --- */
.video-container { width: 100%; aspect-ratio: 16 / 9; margin-bottom: 15px; border-radius: 4px; overflow: hidden; background-color: #e9ecef; }
.video-container video { width: 100%; height: 100%; object-fit: cover; }

/* --- Fade-in Animation (Unchanged) --- */
.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); }
