/* --- DESIGN SYSTEM & VARIABLES --- */
:root {
    /* Colors */
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --text-dim: #71717a;
    
    --accent-purple: #6c63ff;
    --accent-violet: #a78bfa;
    --accent-blue: #38bdf8;
    --accent-gold: #f59e0b;
    --accent-green: #10b981;
    
    --glass-bg: rgba(10, 10, 15, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Fonts */
    --font-heading: 'Syne', sans-serif;
    --font-mono: 'DM Mono', monospace;
    --font-body: 'DM Sans', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --section-spacing: 120px;
    --transition-smooth: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: var(--section-spacing) 0;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
}

.section-label {
    display: block;
    font-family: var(--font-mono);
    color: var(--accent-violet);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 48px;
}

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

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
}

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

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 14px;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-purple);
}

/* --- HERO --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(var(--glass-border) 1px, transparent 1px), linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.15;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    color: var(--accent-green);
    font-family: var(--font-mono);
    font-size: 12px;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    margin-bottom: 20px;
}

.role-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.tag {
    font-family: var(--font-mono);
    font-size: 14px;
    padding: 4px 12px;
    background: var(--glass-border);
    border-radius: 4px;
    color: var(--text-muted);
}

.hero-bio {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 16px 32px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-block;
    cursor: pointer;
}

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

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

.btn-ghost {
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-ghost:hover {
    background: var(--glass-border);
}

.hero-image .image-wrapper {
    position: relative;
    width: 280px;
    height: 320px;
    margin: 0 auto;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    background-color: var(--bg-card); /* Fallback bg */
}

/* Fallback for profile photo */
.hero-image .image-wrapper::after {
    content: 'GK';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 64px;
    color: var(--text-dim);
    z-index: -1;
    border-radius: 24px;
}

/* --- ABOUT --- */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
}

.about-text p {
    margin-bottom: 24px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stat-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    text-align: center;
}

.stat-number {
    font-size: 32px;
    color: var(--accent-violet);
    margin-bottom: 8px;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
}

/* --- TIMELINE (EXPERIENCE) --- */
.timeline {
    position: relative;
    max-width: 900px;
}

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

.timeline-item {
    position: relative;
    padding-left: 48px;
    margin-bottom: 64px;
}

.timeline-dot {
    position: absolute;
    left: -5px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--accent-purple);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-purple);
}

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

.timeline-date {
    font-family: var(--font-mono);
    color: var(--accent-blue);
    font-size: 14px;
}

.timeline-role {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 16px;
}

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

.timeline-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.timeline-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-purple);
}

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

.education-card {
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.education-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-8px);
}

.edu-header h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.edu-date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
}

.edu-degree {
    color: var(--accent-blue);
    font-weight: 700;
    margin: 12px 0;
}

.edu-details {
    font-size: 14px;
    color: var(--text-muted);
}

/* --- PROJECTS --- */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.project-card {
    position: relative;
    padding: 40px;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
    transition: transform 0.3s ease;
}

/* Accent borders per card type */
.project-card[data-accent="blue"] { border-top: 4px solid var(--accent-blue); }
.project-card[data-accent="purple"] { border-top: 4px solid var(--accent-purple); }
.project-card[data-accent="violet"] { border-top: 4px solid var(--accent-violet); }
.project-card[data-accent="gold"] { border-top: 4px solid var(--accent-gold); }

.project-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.project-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.project-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.project-tags span {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

.project-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 14px;
    transition: var(--accent-blue) 0.3s;
}

.project-link:hover {
    color: var(--accent-blue);
}

/* Mouse Tracking Gradient */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.06) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.project-card:hover::before {
    opacity: 1;
}

/* --- PUBLICATIONS --- */
.pub-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pub-card {
    display: grid;
    grid-template-columns: 120px 1fr 120px;
    align-items: center;
    gap: 40px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.pub-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pub-year {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
}

.pub-index {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    text-align: center;
}

.scopus { background: rgba(56, 189, 248, 0.1); color: var(--accent-blue); }
.proceedings { background: rgba(167, 139, 250, 0.1); color: var(--accent-violet); }
.sinta { background: rgba(108, 99, 255, 0.1); color: var(--accent-purple); }

.pub-venue {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.pub-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.pub-authors {
    font-size: 14px;
    color: var(--text-muted);
}

.pub-doi {
    font-family: var(--font-mono);
    font-size: 12px;
    text-decoration: none;
    color: var(--accent-blue);
    text-align: right;
}

/* --- AWARDS --- */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.award-item {
    display: flex;
    gap: 20px;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.award-icon {
    font-size: 32px;
}

.award-placement {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-gold);
    text-transform: uppercase;
}

.award-name {
    font-size: 18px;
    margin: 4px 0;
}

.award-org {
    font-size: 13px;
    color: var(--text-dim);
}

/* --- SKILLS --- */
.skills-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
}

.skills-group {
    margin-bottom: 40px;
}

.skills-group h4 {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pill {
    padding: 10px 20px;
    background: var(--glass-border);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
}

.pills-soft .pill {
    background: rgba(167, 139, 250, 0.1);
    color: var(--accent-violet);
}

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

.cert-list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-muted);
}

.cert-list li span {
    color: var(--text-main);
    font-weight: 700;
}

/* --- CONTACT --- */
.contact-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.contact-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 16px;
}

.contact-sub {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 48px;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 24px;
}

/* --- FOOTER --- */
.footer {
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-sub {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 12px;
}

/* --- ANIMATIONS --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero-content, .about-grid, .skills-layout {
        grid-template-columns: 1fr;
    }
    .hero-image { order: -1; }
    .pub-card { grid-template-columns: 100px 1fr; }
    .pub-doi { grid-column: span 2; text-align: left; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        padding: 40px;
        border-bottom: 1px solid var(--glass-border);
        text-align: center;
        gap: 24px;
    }

    .nav-links.mobile-active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
    }

    .nav-toggle span {
        width: 30px;
        height: 2px;
        background: var(--text-main);
        transition: var(--transition-smooth);
    }

    .nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .projects-grid {
        grid-template-columns: 1fr;
    }
    .section-title { font-size: 2.5rem; }
    .contact-actions { flex-direction: column; }
}
