/* Modern CSS Reset & Variables */
:root {
    --bg-color: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #8b5cf6;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Prompt', sans-serif;
    scroll-behavior: smooth;
}

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

/* Background Animated Blobs */
.bg-shape {
    position: absolute;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: float 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.2); }
}

/* Typography & Utilities */
h1, h2, h3, h4 { line-height: 1.2; }
a { text-decoration: none; color: inherit; }
.section { padding: 100px 5%; max-width: 1400px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; background: linear-gradient(to right, #a78bfa, #818cf8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }
.bg-alt { position: relative; background: rgba(15, 23, 42, 0.4); }

/* Glass Card Mixin */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 5%;
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 5%;
    border-bottom: 1px solid var(--glass-border);
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.logo span { color: var(--primary); }
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}
.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-main); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.menu-btn { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 5% 50px;
    max-width: 1400px;
    margin: 0 auto;
}
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}
.hero-content { flex: 1; }
.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 30px;
    color: #818cf8;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
}
.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 20px;
}
.hero-content h1 span {
    font-weight: 700;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}
.hero-actions { display: flex; gap: 20px; }
.btn {
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}
.image-border {
    position: relative;
    border-radius: 30px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(139, 92, 246, 0.1));
    animation: pulseBorder 4s infinite alternate;
}
@keyframes pulseBorder {
    0% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.2); }
    100% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.5); }
}
.profile-img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    display: block;
    object-fit: cover;
    aspect-ratio: 3/4;
}
.floating-card {
    position: absolute;
    bottom: 30px;
    left: -40px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: floatCard 6s infinite ease-in-out;
}
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.floating-card i {
    font-size: 2rem;
    color: #fbbf24;
}
.floating-card strong { display: block; font-size: 1.1rem; }
.floating-card span { color: var(--text-muted); font-size: 0.9rem; }

/* Education Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    top: 0;
    bottom: 0;
    left: 20px;
}
.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--bg-color);
    border: 3px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}
.timeline-content {
    padding: 30px;
    transition: var(--transition);
}
.timeline-content:hover {
    transform: translateX(10px);
    border-color: rgba(99, 102, 241, 0.5);
}
.timeline-content .year {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(99, 102, 241, 0.15);
    color: #a78bfa;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}
.timeline-content h3 { font-size: 1.5rem; margin-bottom: 5px; }
.timeline-content h4 { color: var(--text-muted); font-weight: 400; margin-bottom: 10px; }

/* Teaching Grid */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.subject-card {
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}
.subject-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
}
.icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #a78bfa;
    border: 1px solid rgba(139,92,246,0.2);
    transition: var(--transition);
}
.subject-card:hover .icon-wrapper {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}
.subject-card h3 { font-size: 1.3rem; margin-bottom: 15px; }
.subject-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Research Works */
.research-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}
.research-item {
    display: flex;
    gap: 30px;
    padding: 30px;
    transition: var(--transition);
}
.research-item:hover {
    transform: scale(1.02);
    border-color: rgba(139, 92, 246, 0.4);
}
.research-year {
    font-size: 2.5rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
}
.research-item:hover .research-year {
    background: linear-gradient(to bottom, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0;
}
.research-content h3 { font-size: 1.2rem; margin-bottom: 15px; line-height: 1.5; }
.research-content .authors { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 10px; }
.research-content .authors strong { color: #a78bfa; }
.research-content .journal { color: #94a3b8; font-size: 0.9rem; display: flex; align-items: flex-start; gap: 8px; }
.research-content .journal i { margin-top: 3px; color: var(--primary); }

/* Footer */
footer {
    padding: 40px 5%;
    border-top: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.8);
    text-align: center;
}
.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.footer-logo { font-size: 1.5rem; font-weight: 700; }
.footer-logo span { color: var(--primary); }
.footer-content p { color: var(--text-muted); font-size: 0.9rem; }
.social-links { display: flex; gap: 15px; }
.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid transparent;
}
.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container { flex-direction: column; text-align: center; margin-top: 50px; }
    .hero-content h1 { font-size: 2.8rem; }
    .subtitle { margin: 0 auto 30px; }
    .hero-actions { justify-content: center; }
    .floating-card { left: 50%; transform: translateX(-50%) !important; bottom: -20px; animation: none; width: max-content; }
    .research-item { flex-direction: column; gap: 15px; }
    .research-year { font-size: 2rem; -webkit-text-stroke: 0; color: #a78bfa; }
}

@media (max-width: 768px) {
    .menu-btn { display: block; }
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(15px);
        width: 100%;
        height: calc(100vh - 70px);
        padding: 40px;
        transition: 0.4s;
        text-align: center;
    }
    .nav-links.active { left: 0; }
    .hero-content h1 { font-size: 2.2rem; }
    .section { padding: 80px 5%; }
}
