/* Modern Academic Portfolio - Complete Stylesheet */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: #1a202c;
    background: #f7fafc;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Floating Navigation */
.floating-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    gap: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
}

.floating-nav.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.nav-link {
    padding: 8px 16px;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #3d7d3d;
    background: rgba(61, 125, 61, 0.1);
}

.nav-link.active {
    color: #3d7d3d;
    background: rgba(61, 125, 61, 0.15);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2d5016 0%, #3d7d3d 50%, #5a9e7a 100%);
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 40px 20px;
}

.profile-image {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 40px;
}

.profile-ring {
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.profile-photo {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s ease;
    z-index: 1;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 5px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-institution {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.85;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.scroll-indicator {
    display: inline-block;
    animation: bounce 2s ease-in-out infinite, fadeInUp 0.8s ease-out 1s both;
}

.scroll-indicator svg {
    width: 32px;
    height: 32px;
    opacity: 0.8;
}

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

/* CV Download Button */
.cv-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(61, 125, 61, 0.3);
    border-radius: 30px;
    color: #2d5016;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.cv-download-btn:hover {
    background: white;
    border-color: #3d7d3d;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.cv-download-btn svg {
    width: 20px;
    height: 20px;
}

/* Main Content */
.content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Styles */
.section {
    padding: 100px 40px;
    position: relative;
}

.section-alt {
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3d7d3d, #5a9e7a);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 25px;
    line-height: 1.8;
}

.about-content p {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Research Grid */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: white;
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(30px);
}

.card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.section-alt .card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(61, 125, 61, 0.2);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 15px;
}

.card p {
    color: #4a5568;
    line-height: 1.7;
}

/* Skills Section */
.skills-container {
    max-width: 900px;
    margin: 0 auto;
}

.skill-category {
    margin-bottom: 40px;
}

.skill-category h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
}

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

.tag {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(61, 125, 61, 0.1), rgba(90, 158, 122, 0.1));
    border: 2px solid rgba(61, 125, 61, 0.2);
    border-radius: 25px;
    color: #2d5016;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, rgba(61, 125, 61, 0.2), rgba(90, 158, 122, 0.2));
    border-color: rgba(61, 125, 61, 0.4);
    transform: translateY(-2px);
}

/* Publications Section */
.publications-list {
    max-width: 900px;
    margin: 0 auto 40px;
}

.publication-card {
    background: white;
    padding: 35px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #3d7d3d;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateX(-30px);
}

.publication-card.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.publication-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 30px rgba(61, 125, 61, 0.15);
}

.pub-badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #2d5016, #3d7d3d);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.pub-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
    line-height: 1.4;
}

.pub-authors {
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 1rem;
}

.pub-venue {
    color: #718096;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.pub-links {
    display: flex;
    gap: 15px;
}

.pub-link {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(61, 125, 61, 0.1);
    color: #3d7d3d;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pub-link:hover {
    background: rgba(61, 125, 61, 0.2);
    transform: translateY(-2px);
}

.text-center {
    text-align: center;
}

.btn-primary {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(135deg, #2d5016, #3d7d3d);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(61, 125, 61, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(61, 125, 61, 0.4);
}

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

.project-card {
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2d5016, #3d7d3d);
}

.project-card h3 {
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.tag-sm {
    padding: 6px 12px;
    background: rgba(61, 125, 61, 0.1);
    border-radius: 15px;
    color: #2d5016;
    font-size: 0.85rem;
    font-weight: 600;
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: #3d7d3d;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    gap: 8px;
}

/* Contact Section */
.contact-content {
    max-width: 900px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.contact-item {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.contact-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.contact-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
}

.contact-item p {
    color: #4a5568;
    font-size: 1rem;
}

.contact-item a {
    color: #3d7d3d;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: #2d5016;
}

.contact-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    min-height: 44px;
    padding: 8px 16px;
    background: rgba(61, 125, 61, 0.1);
    border-radius: 20px;
}

.contact-links a:hover {
    background: rgba(61, 125, 61, 0.2);
}

/* Footer */
.footer {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #2d5016 0%, #3d7d3d 100%);
    color: white;
}

.footer p {
    font-size: 1rem;
    opacity: 0.9;
}

.footer-cv-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.footer-cv-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.footer-cv-btn svg {
    width: 18px;
    height: 18px;
}

/* Mobile Navigation Toggle Button */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #4a5568;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-image {
        width: 220px;
        height: 220px;
        margin: 0 auto 35px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-links {
        flex-direction: column;
        gap: 12px;
    }

    .cv-download-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .floating-nav {
        flex-direction: column;
        padding: 12px;
        gap: 0;
        border-radius: 15px;
        max-width: 90%;
        width: auto;
    }

    .floating-nav .nav-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .floating-nav .nav-links-container {
        display: none;
        flex-direction: column;
        gap: 5px;
        margin-top: 10px;
        width: 100%;
    }

    .floating-nav.menu-open .nav-links-container {
        display: flex;
    }

    .nav-link {
        padding: 10px 16px;
        font-size: 0.9rem;
        text-align: center;
        border-radius: 10px;
    }

    .section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .research-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .pub-links {
        flex-wrap: wrap;
    }
}

/* Desktop: hide toggle, show links normally */
@media (min-width: 769px) {
    .nav-toggle {
        display: none !important;
    }
    
    .nav-links-container {
        display: flex;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .profile-image {
        width: 180px;
        height: 180px;
        margin: 0 auto 30px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .social-link {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .card {
        padding: 25px 20px;
    }
}

/* Smooth transitions for all interactive elements */
a, button, .card, .tag, .nav-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
