:root {
    --navy: #1e40af;
    --navy-dark: #1e3a8a;
    --burgundy: #dc2626;
    --burgundy-light: #ef4444;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --dark: #0f172a;
    --light: #f1f5f9;
    --white: #ffffff;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--white);
    overflow-x: hidden;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.bg-animation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}

.bg-animation::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

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

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

nav.scrolled {
    padding: 1rem 0;
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

nav .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-blue), var(--burgundy-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--burgundy-light));
    transition: width 0.3s;
}

nav a:hover {
    color: var(--white);
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 8rem 2rem 4rem;
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-left {
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    color: var(--accent-blue);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

.hero-left h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--white) 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-left .highlight {
    background: linear-gradient(135deg, var(--accent-blue), var(--burgundy-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-left p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    max-width: 600px;
}

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

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--burgundy-light));
    color: var(--white);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

.btn span {
    position: relative;
    z-index: 1;
}

/* Hero Right - Profile Card */
.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-card {
    position: relative;
    width: 400px;
    height: 500px;
    perspective: 1000px;
}

.profile-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.profile-card:hover .profile-inner {
    transform: rotateY(5deg) rotateX(5deg);
}

.profile-glass {
    position: relative;
    inset: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.profile-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.profile-card:hover .profile-glass::before {
    left: 100%;
}

.profile-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    margin: 3rem auto 2rem;
    display: block;
    border: 5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
    object-fit: cover;
    position: relative;
    z-index: 2;
    animation: float 4s ease-in-out infinite;
}

.profile-info {
    text-align: center;
    padding: 0 2rem 2rem;
    position: relative;
    z-index: 2;
}

.profile-info h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.profile-info .role {
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-blue), var(--burgundy-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* About Section */
#about {
    padding: 8rem 2rem;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 50px;
    color: var(--burgundy-light);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 700px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.about-content .highlight-text {
    color: var(--accent-blue);
    font-weight: 600;
}

/* Tech Stack */
.tech-stack {
    display: grid;
    gap: 1rem;
}

.tech-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.tech-category:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-5px);
}

.tech-category h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--accent-blue);
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-item {
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s;
}

.tech-item:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator::before {
    content: '↓';
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.4);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* Projects Section */
#projects {
    padding: 8rem 2rem;
    position: relative;
    z-index: 1;
}

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

/* @media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
} */

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(220, 38, 38, 0.1));
    opacity: 0;
    transition: opacity 0.4s;
}

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

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.2);
}

.project-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(220, 38, 38, 0.05));
    border: 2px solid rgba(59, 130, 246, 0.2);
}

.project-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.project-header {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.project-badge {
    padding: 0.375rem 0.875rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-blue);
}

.project-badge.highlight {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.2);
    color: var(--burgundy-light);
}

.project-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.project-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.tech-tag {
    padding: 0.375rem 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.project-links a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.project-links a:hover {
    color: var(--burgundy-light);
}

.proprietary {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* Publications Section */
#publications {
    padding: 8rem 2rem;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.02);
}

.publication-showcase {
    max-width: 1000px;
    margin: 0 auto;
}

.publication-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--burgundy-light);
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    gap: 2rem;
    transition: all 0.4s;
}

.publication-card:hover {
    transform: translateX(10px);
    border-left-color: var(--accent-blue);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.15);
}

.publication-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.publication-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.publication-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.publication-meta span {
    padding: 0.375rem 0.875rem;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--burgundy-light);
    font-weight: 600;
}

.authors {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.authors strong {
    color: var(--accent-blue);
    font-style: normal;
}

.description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.publication-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.publication-links a {
    padding: 0.75rem 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.publication-links a:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

/* Contact Section */
#contact {
    padding: 8rem 2rem 6rem;
    position: relative;
    z-index: 1;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5%;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-left {
    display: flex;
    flex-direction: column;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 3rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.3s;
    min-height: 80px;
    width: max-content;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-5px) scale(1.05);
}

.info-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}


.info-item a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
}

.contact-right {
    display: flex;
    align-items: center;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.social-card {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    margin: 0.1rem;
}

.social-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-5px) scale(1.05);
}

.social-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.social-handle {
    font-size: 0.875rem;  /* Changed from 0.75rem */
    color: rgba(255, 255, 255, 0.8);  
    font-weight: 500;  /* ADD this */
}

/* Footer */
footer {
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

footer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-content {
        gap: 3rem;
    }
    
    .profile-card {
        width: 350px;
        height: 450px;
    }
    
    .profile-photo {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-left h1 {
        font-size: 3.5rem;
    }
    
    .hero-left p {
        max-width: 100%;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .profile-card {
        width: 350px;
        height: 450px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card.featured {
        grid-column: span 1;
    }
    
    nav ul {
        gap: 1.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-right {
        justify-content: center;
    }
    
    .social-grid {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    nav .container {
        padding: 0 1.5rem;
    }
    
    nav ul {
        gap: 1rem;
        font-size: 0.875rem;
    }
    
    .hero-left h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .profile-card {
        width: 100%;
        max-width: 320px;
        height: 420px;
    }
    
    .profile-photo {
        width: 180px;
        height: 180px;
        margin: 2rem auto 1.5rem;
    }
    
    .profile-info h3 {
        font-size: 1.25rem;
    }
    
    .profile-stats {
        margin-top: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .publication-card {
        flex-direction: column;
        padding: 2rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }

    .info-item {
        padding: 1.5rem;
        min-height: 100px;
    }
    
    .social-grid {
        gap: 0.75rem;
    }
    
    .social-card {
        padding: 0.5rem;
    }
    
    .social-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-left h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .profile-card {
        max-width: 280px;
        height: 380px;
    }
    
    .profile-photo {
        width: 150px;
        height: 150px;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }

    .social-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
    
    .social-card {
        aspect-ratio: auto;
        padding: 0.25rem;
    }
}
