:root {
    --bg-dark: #070b1d;
    --card-bg: rgba(15, 23, 42, 0.4);
    --primary: #60a5fa;
    --secondary: #a78bfa;
    --accent: #f472b6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shine: rgba(255, 255, 255, 0.03);
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient);
    z-index: 2000;
    width: 0;
    transition: width 0.1s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

/* --- Animated Background --- */
#blob {
    height: 400px;
    aspect-ratio: 1;
    position: fixed;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    border-radius: 50%;
    background: linear-gradient(to right, var(--primary), var(--secondary), var(--accent));
    filter: blur(140px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
    transition: left 1.2s cubic-bezier(0.075, 0.82, 0.165, 1), top 1.2s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: 
        radial-gradient(at 0% 0%, rgba(96, 165, 250, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(167, 139, 250, 0.1) 0px, transparent 50%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.glass {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--glass-shine) 0%, transparent 100%);
    pointer-events: none;
}

.glass:hover {
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(96, 165, 250, 0.1);
    transform: translateY(-8px);
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 4rem;
    padding: 0.8rem 2.5rem;
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    top: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    background: rgba(7, 11, 29, 0.9);
    padding: 0.6rem 2rem;
}

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

.logo {
    font-size: 1.6rem;
    color: white;
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--primary);
    position: relative;
}

.logo span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover {
    color: white;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-text .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    background: rgba(96, 165, 250, 0.08);
    color: var(--primary);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 3rem;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-text h1 {
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    line-height: 1.05;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.typewriter-container {
    min-height: 3rem;
    margin-bottom: 3rem;
}

.typewriter {
    font-size: 1.35rem;
    color: var(--text-muted);
    font-weight: 500;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1.5rem;
    background: var(--primary);
    margin-left: 2px;
    animation: blink 1s infinite;
    vertical-align: middle;
}

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

.hero-cta {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1.2rem 2.8rem;
    border-radius: 4rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(96, 165, 250, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 15px 30px -5px rgba(96, 165, 250, 0.5);
    transform: translateY(-3px) scale(1.02);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.hero-image-container {
    position: relative;
    max-width: 480px;
    perspective: 1000px;
}

.hero-image {
    width: 100%;
    aspect-ratio: 0.9;
    border-radius: 3rem;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    position: relative;
    z-index: 2;
    transform: rotate3d(1, 1, 0, 5deg);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.hero-image:hover {
    transform: rotate3d(0, 0, 0, 0deg);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.2) 0%, transparent 70%);
    z-index: 1;
}

.experience-badge {
    position: absolute;
    bottom: -2rem;
    left: -2rem;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 1.8rem;
    border-radius: 2rem;
    z-index: 5;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.experience-badge .count {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Sections --- */
.section { padding: 10rem 0; }
.section-title { font-size: 3.5rem; margin-bottom: 5rem; text-align: center; letter-spacing: -1px; }
.section-title span { color: var(--primary); }
.section-title::after { 
    content: ''; 
    display: block; 
    width: 80px; 
    height: 6px; 
    background: var(--gradient); 
    margin: 1.5rem auto; 
    border-radius: 3px; 
}

/* --- About Section --- */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; }
.about-card { padding: 4rem; font-size: 1.2rem; color: var(--text-muted); display: flex; flex-direction: column; justify-content: center; }
.about-card p { margin-bottom: 1.5rem; }
.about-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 2rem; }
.stat-item { padding: 2rem; text-align: center; }
.stat-number { display: block; font-size: 3.5rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.9rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* --- Timeline --- */
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary), transparent);
}

.timeline-item { position: relative; padding-left: 3.5rem; margin-bottom: 4rem; }
.timeline-dot { 
    position: absolute; 
    left: 0; 
    top: 5px; 
    width: 18px; 
    height: 18px; 
    background: var(--bg-dark); 
    border: 3px solid var(--primary); 
    border-radius: 50%;
    z-index: 2;
}

.timeline-content { padding: 2.5rem; background: rgba(15, 23, 42, 0.4); }
.timeline-content h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.timeline-org { color: var(--primary); font-weight: 700; margin-bottom: 1rem; font-size: 1rem; }

.edu-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.edu-logo {
    width: 65px;
    height: 65px;
    object-fit: contain;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.6rem;
    border: 1px solid var(--glass-border);
    flex-shrink: 0;
    transition: var(--transition);
}

.edu-header:hover .edu-logo {
    border-color: var(--primary);
    transform: scale(1.05);
    background: rgba(96, 165, 250, 0.08);
}
.timeline-content ul { list-style: none; margin-top: 1rem; }
.timeline-content li { position: relative; padding-left: 1.5rem; margin-bottom: 0.8rem; color: var(--text-muted); }
.timeline-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* --- Skills --- */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2.5rem; }
.skills-card { padding: 3rem 2rem; text-align: center; }
.skills-card i { font-size: 3.5rem; margin-bottom: 2rem; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.skills-card h3 { margin-bottom: 1.5rem; font-size: 1.4rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.skill-tags span { 
    background: rgba(255, 255, 255, 0.05); 
    padding: 0.6rem 1.2rem; 
    border-radius: 3rem; 
    font-size: 0.85rem; 
    font-weight: 600;
    border: 1px solid var(--glass-border); 
    transition: var(--transition);
}
.skill-tags span:hover {
    background: rgba(96, 165, 250, 0.1);
    border-color: var(--primary);
    transform: scale(1.05);
}

/* --- Projects --- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 3rem; }
.project-card { padding: 0; min-height: 400px; display: flex; flex-direction: column; }
.project-image { width: 100%; height: 220px; background: rgba(255,255,255,0.05); overflow: hidden; position: relative; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.project-card:hover .project-image img { transform: scale(1.1); }

.project-body { padding: 2.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.project-indicator { 
    display: inline-block; 
    padding: 0.4rem 1rem; 
    background: rgba(167, 139, 250, 0.15); 
    color: var(--secondary); 
    border-radius: 0.5rem; 
    font-size: 0.75rem; 
    font-weight: 800; 
    margin-bottom: 1.5rem; 
    text-transform: uppercase;
}
.project-body h3 { font-size: 1.6rem; margin-bottom: 1rem; }
.project-body p { color: var(--text-muted); margin-bottom: 2rem; font-size: 1rem; }
.project-footer { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: auto; }
.project-footer span { font-size: 0.8rem; font-weight: 700; color: var(--primary); background: rgba(96, 165, 250, 0.1); padding: 0.4rem 0.8rem; border-radius: 0.4rem; }

/* --- Leadership & Awards --- */
.awards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2.5rem; }
.award-item { padding: 3rem 2rem; text-align: center; }
.award-icon { 
    width: 70px; 
    height: 70px; 
    background: var(--gradient); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto 2rem; 
    font-size: 1.8rem; 
    color: white;
    box-shadow: 0 10px 20px rgba(167, 139, 250, 0.3);
}

/* --- Contact Section --- */
footer { padding: 10rem 0 5rem; position: relative; }
.contact-header { text-align: center; margin-bottom: 5rem; }
.contact-header h2 { font-size: 4rem; letter-spacing: -2px; }
.contact-header h2 span { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 5rem; }

.contact-info .info-item { background: rgba(255,255,255,0.03); padding: 1.5rem; border-radius: 1.5rem; border: 1px solid var(--glass-border); transition: var(--transition); }
.contact-info .info-item:hover { border-color: var(--primary); background: rgba(96, 165, 250, 0.05); }
.info-item i { font-size: 1.5rem; width: 40px; }
.social-links { display: flex; gap: 1.5rem; margin-top: 3rem; }
.social-links a { 
    width: 60px; 
    height: 60px; 
    background: rgba(255,255,255,0.03); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border: 1px solid var(--glass-border);
    font-size: 1.5rem;
}
.social-links a:hover { 
    background: var(--gradient); 
    color: white; 
    border-color: transparent; 
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(167, 139, 250, 0.3);
}

.contact-form { padding: 4rem; display: flex; flex-direction: column; gap: 1.5rem; }
.input-group { position: relative; width: 100%; display: flex; flex-direction: column; gap: 0.5rem; }
.contact-form input, .contact-form textarea { 
    width: 100%;
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid var(--glass-border); 
    padding: 1.2rem 1.5rem; 
    border-radius: 1.2rem; 
    color: white; 
    outline: none; 
    font-size: 1rem;
    transition: var(--transition);
}
.contact-form input:focus, .contact-form textarea:focus { 
    border-color: var(--primary); 
    background: rgba(255, 255, 255, 0.08); 
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.1);
}

.contact-form input[aria-invalid="true"], 
.contact-form textarea[aria-invalid="true"] {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.field-error {
    color: #ef4444;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
    min-height: 1.2rem;
}

#form-status-container {
    margin-bottom: 2rem;
    width: 100%;
}

.form-feedback {
    padding: 1.5rem;
    border-radius: 1.2rem;
    font-weight: 600;
    text-align: center;
    border: 1px solid transparent;
    animation: slideDown 0.4s ease forwards;
}

.form-feedback.success {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.2);
}

.form-feedback.error {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.2);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.footer-bottom { 
    margin-top: 8rem; 
    padding-top: 3rem; 
    border-top: 1px solid var(--glass-border); 
    text-align: center; 
    color: var(--text-muted); 
    font-size: 0.9rem;
}

/* --- Animations --- */
.reveal-up { opacity: 0; transform: translateY(50px); }
.reveal-left { opacity: 0; transform: translateX(-50px); }
.reveal-right { opacity: 0; transform: translateX(50px); }
.revealed { opacity: 1; transform: translate(0); transition: all 1s cubic-bezier(0.23, 1, 0.32, 1); }

/* --- Mobile Responsive Enhancements --- */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; gap: 4rem; }
    .hero-text { order: 1; }
    .hero-image-container { order: 2; margin: 0 auto; max-width: 400px; }
    .hero-text h1 { font-size: 4.5rem; }
    .hero-cta { justify-content: center; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    body { font-size: 16px; }
    nav { width: 95%; padding: 0.8rem 1.5rem; }
    .logo { font-size: 1.3rem; }
    .nav-links { 
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(7, 11, 29, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 1001;
        box-shadow: -20px 0 40px rgba(0,0,0,0.5);
        backdrop-filter: blur(20px);
    }
    .nav-links.active { right: 0; }
    .nav-toggle { display: flex; z-index: 1002; }
    
    .hero { padding-top: 12rem; }
    .hero-text h1 { font-size: 3.5rem; }
    .typewriter { font-size: 1.1rem; }
    .section { padding: 6rem 0; }
    .section-title { font-size: 2.5rem; }
    
    .experience-badge { bottom: -1rem; left: 50%; translate: -50% 0; padding: 1.2rem; width: 140px; }
    .about-card { padding: 2.5rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .contact-form { padding: 2.5rem; }
    .contact-header h2 { font-size: 3rem; }
}

@media (max-width: 480px) {
    .hero-text h1 { font-size: 2.8rem; }
    .hero-cta { flex-direction: column; width: 100%; }
    .btn { width: 100%; justify-content: center; }
    .hero-image-container { max-width: 100%; }
    .edu-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .edu-logo { width: 50px; height: 50px; }
}
