:root {
    /* Color Palette */
    --primary: #0f172a;      /* Deep Navy */
    --secondary: #f8fafc;    /* Soft White/Blueish tint */
    --accent: #f97316;       /* Warm Coral/Orange */
    --text-main: #334155;
    --text-light: #64748b;
    --border: rgba(255, 255, 255, 0.3);
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    
    /* Spacing */
    --container-width: 1100px;
    --radius: 16px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #f1f5f9;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: var(--secondary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo .dot { color: var(--accent); }

.logo-img {
    height: 40px;
    width: auto;
    margin-right: 10px;
    display: none; /* Hidden by default, shown when image loads */
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

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

.nav-links a:not(.btn-primary) {
    color: var(--text-main);
}

.nav-links a.btn-primary {
    color: white;
    background: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
}

.nav-links a.btn-primary:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.nav-links a:hover { color: var(--accent); }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer;}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding-top: 70px;
}

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

.badge {
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--primary);
}

.hero h1 br {
    display: block;
    content: "";
    margin-top: 10px;
}

.hero-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Background Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.5;
}
.blob-1 { width: 300px; height: 300px; background: #fee2e2; top: 10%; left: -10%; }
.blob-2 { width: 400px; height: 400px; background: #e0f2fe; bottom: 10%; right: -10%; }

/* Glass Panel & Cards */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 40px;
    text-align: center;
}

.stat-item .icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 15px;
}

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

.skill-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.05);
}

.skill-card h3 { margin-bottom: 15px; color: var(--primary); }

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags span {
    background: var(--secondary);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

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

.project-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.year { font-size: 0.8rem; color: var(--text-light); font-weight: 600; }
.card-header .links a { color: var(--text-main); font-size: 1.2rem; transition: 0.3s; }
.card-header .links a:hover { color: var(--accent); }

.project-card h3 { margin-bottom: 5px; color: var(--primary); }
.subtitle { color: var(--accent); font-size: 0.9rem; font-weight: 500; margin-bottom: 15px; }
.desc { color: var(--text-light); font-size: 0.95rem; margin-bottom: 20px; flex-grow: 1; }

.tech-stack {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.tech-stack span {
    font-size: 0.8rem;
    background: var(--secondary);
    padding: 4px 10px;
    border-radius: 4px;
}

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.timeline-item .date {
    min-width: 100px;
    text-align: right;
    font-weight: 700;
    color: var(--accent);
    padding-top: 20px;
}

.timeline-item .content {
    flex: 1;
    padding: 30px;
}

.timeline-item .role {
    display: inline-block;
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent);
    padding: 4px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    margin: 10px 0;
}

/* Education */
.edu-grid {
    display: grid;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.edu-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 80px 0 40px;
    background: white;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Add JS toggle for mobile later if needed */
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }
    
    .nav-links.active { display: flex; }
    .mobile-toggle { display: block; }
    
    .hero h1 { font-size: 3.5rem; }
    .hero-btns { flex-direction: column; }
    
    .timeline-item { flex-direction: column; gap: 10px; }
    .timeline-item .date { text-align: left; padding-top: 0; }
    
    .edu-card { flex-direction: column; text-align: center; }
}