/* --- CSS Variables & Design System --- */
:root {
    --bg-color: #0f172a; /* Slate 900 */
    --surface-color: rgba(30, 41, 59, 0.4); /* Glassmorphism surface */
    --text-primary: #f8fafc; /* Slate 50 */
    --text-secondary: #94a3b8; /* Slate 400 */
    
    --accent-cyan: #06b6d4; /* Neon cyan */
    --accent-purple: #8b5cf6; /* Electric purple */
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Base Reset & Globals --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Dynamic Gradients in Background */
.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 60%);
    opacity: 0.15;
    filter: blur(80px);
    z-index: -1;
    border-radius: 50%;
}

.glow-1 {
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 60%);
    animation: drift 20s infinite alternate;
}

.glow-2 {
    bottom: 20%;
    right: -10%;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 60%);
    animation: drift 25s infinite alternate-reverse;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 50px); }
}

/* --- Typography --- */
h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 700;
}

.glow-text {
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

/* --- Glassmorphism Utils --- */
.glass-card {
    background: var(--surface-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5);
    transform: scale(1.05);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* --- Layout Sections --- */
.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* --- Navbar --- */
#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: transparent;
}

#navbar.scrolled {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: var(--glass-border);
    padding: 1rem 5%;
}

.logo {
    font-size: 1.8rem;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--accent-cyan);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    z-index: 10;
}

.greeting {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.name {
    font-size: clamp(4rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.headline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.social-icons a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: var(--transition-smooth);
}

.social-icons a:hover {
    color: var(--accent-purple);
    transform: translateY(-3px);
    display: inline-block;
}

/* --- About Section --- */
.about-container {
    padding: 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.about-text strong {
    color: var(--text-primary);
}

.interest-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.interest-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.interest-list i {
    color: var(--accent-cyan);
}

.about-education h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-top: 1rem;
}

.about-education .institution {
    color: var(--accent-cyan);
    font-size: 0.9rem;
}

.about-education .date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Timeline Section (Experience) --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: var(--surface-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding: 2rem;
    margin-left: 50px;
}

.timeline-dot {
    position: absolute;
    top: 2rem;
    left: -35px; /* Adjust to sit on line */
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-purple);
    box-shadow: 0 0 10px var(--accent-purple);
}

.timeline-date {
    font-family: var(--font-heading);
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.timeline-content h3 {
    margin-bottom: 0.2rem;
}

.timeline-content h4 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 400;
}

/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-icon {
    font-size: 2.5rem;
    color: var(--accent-purple);
    margin-bottom: 1.5rem;
}

.project-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.tech-stack-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-stack-mini span {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.1);
}

/* --- Skills Section --- */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    padding: 2rem;
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.skill-category h3 i {
    color: var(--accent-cyan);
}

.skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.chip {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.chip:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: var(--accent-cyan);
}

.chip.highlight {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    color: #e9d5ff; /* purple-200 */
}

.achievement-list {
    list-style: none;
}

.achievement-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.achievement-list i {
    color: var(--accent-cyan);
    margin-top: 0.3rem;
}

/* --- Footer --- */
.footer {
    padding: 4rem 2rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 4rem 2rem;
}

.footer-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.footer-content p {
    color: var(--text-secondary);
}

.social-links-footer {
    margin-top: 2rem;
}

.social-links-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.social-links-footer a:hover {
    color: var(--accent-purple);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple hidden nav for mobile in this iteration */
    }
    
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-item {
        margin-left: 30px;
    }
    
    .timeline-dot {
        left: -26px;
    }
}
