/* Neumorphism Design - Academic Portfolio */

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

:root {
    --bg-color: #e0e5ec;
    --text-primary: #4a5568;
    --text-secondary: #718096;
    --accent-color: #dc052d;
    --shadow-light: #ffffff;
    --shadow-dark: #a3b1c6;

    /* Neumorphism shadows */
    --neu-shadow: 9px 9px 16px var(--shadow-dark), -9px -9px 16px var(--shadow-light);
    --neu-shadow-inset: inset 6px 6px 10px var(--shadow-dark), inset -6px -6px 10px var(--shadow-light);
    --neu-shadow-hover: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

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

/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-color);
    box-shadow: var(--neu-shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

/* Hamburger Menu for Mobile */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Responsive Navigation */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--neu-shadow);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* Landing Section */
.landing-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.landing-content {
    z-index: 1;
}

.greeting {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), -2px -2px 4px rgba(163, 177, 198, 0.4);
}

.highlight-title {
    color: var(--accent-color);
}

.dynamic-text {
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    min-height: 60px;
}

.txt-rotate {
    border-right: 0.1em solid var(--accent-color);
    animation: blink 0.7s step-end infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}

.social-links-landing {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.social-link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    box-shadow: var(--neu-shadow);
    color: var(--text-primary);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    box-shadow: var(--neu-shadow-hover);
    color: var(--accent-color);
    transform: translateY(-3px);
}

.scroll-down {
    animation: bounce 2s infinite;
}

.scroll-down a {
    color: var(--text-secondary);
    font-size: 2rem;
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Neumorphism Cards */
.neumorphism-card-big {
    background: var(--bg-color);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: var(--neu-shadow);
    margin-bottom: 3rem;
}

.neumorphism-card {
    background: var(--bg-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--neu-shadow);
    transition: all 0.3s ease;
}

.neumorphism-card:hover {
    box-shadow: var(--neu-shadow-hover);
    transform: translateY(-5px);
}

.neumorphism-btn {
    background: var(--bg-color);
    box-shadow: var(--neu-shadow);
    border: none;
    transition: all 0.3s ease;
}

.neumorphism-btn:hover {
    box-shadow: var(--neu-shadow-inset);
}

/* Sections */
.section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-content p {
    margin-bottom: 1rem;
}

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 2rem auto 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--shadow-dark), var(--accent-color));
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 80px;
}

.timeline-marker {
    position: absolute;
    left: 18px;
    top: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-color);
    box-shadow: var(--neu-shadow), inset 0 0 0 3px var(--accent-color);
}

.timeline-content h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.institution {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.period {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.description {
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.research-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.research-period {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.research-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: var(--bg-color);
    color: var(--text-primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
}

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

.publication-item {
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--shadow-dark);
}

.publication-item:last-child {
    border-bottom: none;
}

.publication-item h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.authors {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.venue {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

.btn-link {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-category h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.6rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
    font-weight: 500;
}

.skill-category li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Contact Section */
.contact-content {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.contact-content p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.contact-content i {
    color: var(--accent-color);
    width: 24px;
    font-size: 1.2rem;
}

.social-links-large {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-btn i {
    font-size: 1.2rem;
}

.social-btn:hover {
    color: var(--accent-color);
}

/* Footer */
footer {
    background: var(--bg-color);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    box-shadow: 0 -5px 15px rgba(163, 177, 198, 0.2);
}

footer p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .greeting {
        font-size: 2.5rem;
    }

    .dynamic-text {
        font-size: 1.5rem;
    }

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

    .neumorphism-card-big {
        padding: 2rem;
        border-radius: 20px;
    }

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

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 0;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-marker {
        left: 8px;
    }
}

@media (max-width: 480px) {
    .landing-section {
        padding: 2rem 0;
    }

    .section {
        padding: 3rem 0;
    }

    .greeting {
        font-size: 2rem;
    }

    .dynamic-text {
        font-size: 1.2rem;
    }

    .social-links-landing {
        gap: 1rem;
    }

    .social-link {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .neumorphism-card-big {
        padding: 1.5rem;
    }
}

/* Selection Color */
::selection {
    background-color: var(--accent-color);
    color: white;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--shadow-dark);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* AOS Animation Overrides */
[data-aos="fade-up"] {
    transform: translate3d(0, 40px, 0);
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.landing-content > * {
    animation: fadeIn 1s ease-out;
}

.landing-content .greeting {
    animation-delay: 0.2s;
}

.landing-content .dynamic-text {
    animation-delay: 0.4s;
}

.landing-content .social-links-landing {
    animation-delay: 0.6s;
}

.landing-content .scroll-down {
    animation-delay: 0.8s;
}

/* Landing Page Additions for CV */
.subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.affiliation {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    margin-bottom: 2rem;
}

/* Research Interests Grid */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.interest-item {
    text-align: center;
    padding: 2rem 1.5rem;
}

.interest-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.interest-item h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.interest-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Experience List */
.experience-list {
    max-width: 900px;
    margin: 2rem auto 0;
}

.experience-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--shadow-dark);
}

.experience-item:last-child {
    border-bottom: none;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.experience-header h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.experience-header .institution {
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
}

.experience-header .period {
    color: var(--accent-color);
    font-weight: 500;
    white-space: nowrap;
}

.experience-content p {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.experience-details {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.experience-details li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    color: var(--text-secondary);
    position: relative;
    line-height: 1.6;
}

.experience-details li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Publications Categories */
.publication-category {
    margin-bottom: 2.5rem;
}

.publication-category:last-child {
    margin-bottom: 0;
}

.category-title {
    color: var(--accent-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.publication-item h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0.5rem 0;
}

.status-badge.published {
    background: var(--bg-color);
    color: #22c55e;
    box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
}

.status-badge.accepted {
    background: var(--bg-color);
    color: #3b82f6;
    box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
}

.status-badge.under-review {
    background: var(--bg-color);
    color: #f59e0b;
    box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
}

.publication-links {
    margin-top: 1rem;
}

.btn-link i {
    margin-right: 0.25rem;
}

/* Awards List */
.awards-list {
    max-width: 800px;
    margin: 2rem auto 0;
}

.award-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--bg-color);
    border-radius: 15px;
    box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
    transition: transform 0.3s ease;
}

.award-item:hover {
    transform: translateY(-3px);
}

.award-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    box-shadow: var(--neu-shadow-inset);
    flex-shrink: 0;
}

.award-icon i {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.award-content h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.award-org {
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
}

.bio-intro {
    font-weight: 500;
    color: var(--text-primary);
}

/* Responsive Updates */
@media (max-width: 768px) {
    .subtitle {
        font-size: 1.1rem;
    }

    .affiliation {
        font-size: 1rem;
    }

    .interests-grid {
        grid-template-columns: 1fr;
    }

    .experience-header {
        flex-direction: column;
    }

    .experience-header .period {
        align-self: flex-start;
    }

    .award-item {
        flex-direction: column;
        text-align: center;
    }

    .award-icon {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .interest-item i {
        font-size: 2rem;
    }
}
