/* Minimalist & Classy Theme */
/* Scroll Progress Indicator */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 10001;
    background: transparent;
}

.scroll-progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.1s ease-out;
}

/* Project Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--background-rgb, 252, 252, 252), 0.8);
    backdrop-filter: blur(10px);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-container {
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    position: relative;
    padding: 3rem;
    overflow-y: auto;
    transform: translateY(30px);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.modal-content h3 {
    font-family: 'Newsreader', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.modal-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.modal-tag {
    font-size: 0.8rem;
    padding: 0.2rem 0.8rem;
    background: var(--surface-light);
    border-radius: 20px;
}

.education-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

/* Quantum Decoration Merged */
.pub-card-wrapper {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 3rem;
    align-items: center;
}

.qubit-container {
    display: flex;
    justify-content: center;
}

.qubit-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    perspective: 1000px;
}

@media (max-width: 768px) {
    .pub-card-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

.quantum-qubit {
    width: 60px;
    height: 60px;
    position: relative;
    cursor: crosshair;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.qubit-core {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(var(--primary-rgb), 0.4) 40%, rgba(var(--primary-rgb), 0.8) 100%);
    border-radius: 50%;
    box-shadow:
        inset -5px -5px 15px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(var(--primary-rgb), 0.3);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.qubit-core::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.4) 50%, transparent 60%);
    background-size: 200% 200%;
    animation: shimmer 4s infinite linear;
}

.qubit-glow {
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.4), transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: pulseGlow 3s infinite ease-in-out;
}

.qubit-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

/* Qubit States */
.quantum-qubit.vibrating {
    animation: qubitVibrate 0.1s infinite;
}

.quantum-qubit.entangled::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    border-radius: 50%;
    transform: translateX(-40px) scale(0.8);
    opacity: 0.5;
    filter: blur(2px);
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5), rgba(var(--primary-rgb), 0.8));
    animation: entangleLeft 0.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.quantum-qubit.entangled::after {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    border-radius: 50%;
    transform: translateX(40px) scale(0.8);
    opacity: 0.5;
    filter: blur(2px);
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5), rgba(var(--primary-rgb), 0.8));
    animation: entangleRight 0.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes shimmer {
    0% {
        background-position: -200% -200%;
    }

    100% {
        background-position: 200% 200%;
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

@keyframes qubitVibrate {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(1px, -1px);
    }

    50% {
        transform: translate(-1px, 1px);
    }

    75% {
        transform: translate(1px, 1px);
    }

    100% {
        transform: translate(-1px, -1px);
    }
}

@keyframes entangleLeft {
    from {
        transform: translateX(0) scale(1);
        opacity: 0;
    }

    to {
        transform: translateX(-35px) scale(0.7);
        opacity: 0.4;
    }
}

@keyframes entangleRight {
    from {
        transform: translateX(0) scale(1);
        opacity: 0;
    }

    to {
        transform: translateX(35px) scale(0.7);
        opacity: 0.4;
    }
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.modal-img-container img {
    width: 100%;
    border-radius: var(--radius);
}

@media (max-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }

    .modal-container {
        padding: 2rem;
    }
}

/* Custom Cursor */
#cursor-dot,
#cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease-out, opacity 0.3s ease;
}

#cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary);
}

#cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid var(--primary);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

/* Cursor Hover State */
body.cursor-hover #cursor-outline {
    width: 50px;
    height: 50px;
    background-color: rgba(var(--primary-rgb), 0.1);
    border-color: transparent;
}

/* Cursor Hover State */
body.cursor-hover #cursor-outline {
    width: 50px;
    height: 50px;
    background-color: rgba(var(--primary-rgb), 0.1);
    border-color: transparent;
}

:root {
    --primary: #000000;
    --primary-rgb: 0, 0, 0;
    --background: #fcfcfc;
    --surface: #ffffff;
    --surface-light: #f5f5f5;
    --text: #1a1a1a;
    --text-muted: #666666;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.08);
    --container: 1100px;
    --radius: 8px;
    /* Slightly softer than 4px but still professional */
    --transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    --particle-color: rgba(0, 0, 0, 0.08);
}

html.light-theme {
    /* Same as root to ensure consistency */
    --primary: #000000;
    --background: #fcfcfc;
    --surface: #ffffff;
    --surface-light: #f5f5f5;
    --text: #1a1a1a;
    --text-muted: #666666;
    --particle-color: rgba(0, 0, 0, 0.08);
}

/* Default Theme (Dark) Overrides */
html:not(.light-theme) {
    --primary: #ffffff;
    --background: #080808;
    --surface: #111111;
    --surface-light: #1a1a1a;
    --text: #efefef;
    --text-muted: #999999;
    --glass: rgba(0, 0, 0, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --particle-color: rgba(255, 255, 255, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

.navbar,
main,
footer,
#loader {
    position: relative;
    z-index: 2;
}

h1,
h2,
h3,
.logo {
    font-family: 'Newsreader', serif;
    font-weight: 500;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 120px 0;
}

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

.title {
    font-size: 3rem;
    margin-top: 0.5rem;
}

.subtitle {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

/* Loader */
.loader {
    position: fixed;
    inset: 0;
    background: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loader-svg {
    width: 100px;
    height: 100px;
    fill: none;
    stroke: var(--primary);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.s-path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawS 2.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes drawS {
    to {
        stroke-dashoffset: 0;
    }
}

.loader-text {
    font-size: 0.8rem;
    letter-spacing: 0.4rem;
    color: var(--text-muted);
    opacity: 0;
    animation: fadeInText 1s ease 1.5s forwards;
    text-transform: uppercase;
}

@keyframes fadeInText {
    to {
        opacity: 1;
        transform: translateY(-5px);
    }
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

#navbar.scrolled {
    background: var(--glass);
    backdrop-filter: blur(20px);
    height: 70px;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 90px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.hero-text h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1;
    margin-bottom: 2rem;
}

.hero-text h2 {
    font-family: 'Newsreader', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--text-muted);
    min-height: 1.8em;
    /* Prevent layout shifts */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 3.5rem;
}

.typewriter {
    position: relative;
    display: inline-block;
}

.typewriter::after {
    content: '|';
    margin-left: 5px;
    color: var(--primary);
    animation: blink 0.8s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-btns {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--primary);
    cursor: pointer;
    background: transparent;
    color: var(--primary);
    transition: var(--transition);
}

.btn.primary {
    background: var(--primary);
    color: var(--background);
}

.btn.primary:hover {
    background: transparent;
    color: var(--primary);
}

.btn.secondary:hover {
    background: var(--primary);
    color: var(--background);
}

.hero-image {
    display: none;
    /* Let's go purely typographic for maximum classiness */
}

/* Scroll Down */
.scroll-down {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 20px;
    height: 35px;
    border: 1px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.mouse::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 5px;
    border-radius: 2px;
    background: var(--text-muted);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 340px 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 2rem;
}

.personal-info {
    display: grid;
    gap: 0.75rem;
    margin-top: 2rem;
}

.personal-info .item {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.personal-info .item strong {
    color: var(--primary);
    font-weight: 500;
    margin-right: 0.5rem;
}

.email-link {
    color: inherit;
    text-decoration: none;
    background: linear-gradient(0deg, var(--primary) 0%, var(--primary) 100%);
    background-size: 0% 1px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease;
}

.email-link:hover {
    background-size: 100% 1px;
    color: var(--primary);
}

.about-stats {
    display: grid;
    gap: 2rem;
}

.stat-card {
    padding: 2.5rem 2rem;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* Photo Box */
.photo-box {
    position: relative;
    width: 340px;
    height: 480px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--surface-light);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 2s ease-in-out;
}

.photo-1 {
    z-index: 2;
    animation: fadeThrough 8s infinite alternate ease-in-out;
}

.photo-2 {
    z-index: 1;
}

@keyframes fadeThrough {

    0%,
    40% {
        opacity: 1;
    }

    60%,
    100% {
        opacity: 0;
    }
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 3;
    pointer-events: none;
}

/* Skills Section */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-top: 4rem;
}

.skill-category {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.skill-list li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
    cursor: default;
}

.skill-list li .arrow {
    font-size: 0.9rem;
    opacity: 0;
    transform: translate(-10px, 10px);
    transition: var(--transition);
}

.skill-list li:hover {
    color: var(--primary);
    border-bottom-color: var(--glass-border);
}

.skill-list li:hover .arrow {
    opacity: 0.5;
    transform: translate(0, 0);
}

/* Filter Wrapper */
.filter-wrapper {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--background);
    border-color: var(--primary);
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    transition: var(--transition);
}

.project-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.project-img {
    height: 180px;
    margin-bottom: 2rem;
    background: var(--surface-light);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
    /* Explicitly ensure no filters are applied */
    transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.img-placeholder {
    font-size: 2.5rem;
    color: var(--text-muted);
    opacity: 0.2;
}

.project-body h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.tags {
    display: flex;
    gap: 1rem;
}

.tags span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.project-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--text);
    transform: translateX(5px);
}

/* Certifications */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.cert-card {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
}

.cert-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.cert-icon {
    width: 50px;
    height: 50px;
    background: var(--surface-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    flex-shrink: 0;
}

.cert-info h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.cert-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Timeline */
.timeline {
    max-width: 700px;
    margin: 0 auto;
}

.timeline-item {
    padding-bottom: 4rem;
    border-left: 1px solid var(--glass-border);
    padding-left: 3rem;
    position: relative;
}

.timeline-item:last-child {
    border-left: none;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
}

.tl-content .date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

.tl-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.tl-content .school {
    font-size: 0.9rem;
    font-style: normal;
    color: var(--text-muted);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
}

.contact-info h3 {
    margin-bottom: 1rem;
}

.info-list li {
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

input,
textarea {
    width: 100%;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    color: var(--text);
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    border-color: var(--primary);
}

/* Footer */
footer {
    padding: 6rem 0;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.socials {
    display: flex;
    gap: 1.5rem;
}

.socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.socials a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.theme-toggle svg {
    position: absolute;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.4s ease;
}

/* Initial state (Dark Theme - showing moon) */
#sun-icon {
    opacity: 0;
    transform: translateY(20px) rotate(45deg);
}

#moon-icon {
    opacity: 1;
    transform: translateY(0) rotate(0);
}

/* Light Theme state (showing sun) */
.light-theme #sun-icon {
    opacity: 1;
    transform: translateY(0) rotate(0);
}

.light-theme #moon-icon {
    opacity: 0;
    transform: translateY(-20px) rotate(-45deg);
}

.theme-toggle:hover {
    border-color: var(--primary);
    background: var(--surface-light);
}

/* Animations */
.animate-up,
.animate-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.animate-up.appear,
.animate-fade.appear,
.animate-left.appear,
.animate-right.appear,
.animate-zoom.appear {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.animate-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.animate-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.animate-zoom {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Publications */
.pub-list {
    max-width: 800px;
    margin: 3rem auto 0;
}

.pub-card {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.pub-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.pub-type {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    display: block;
    margin-bottom: 1rem;
    font-weight: 500;
}

.pub-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.pub-card p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.pub-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 500;
}

.pub-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile Menu Button */
.menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
    z-index: 1001;
    transition: var(--transition);
}

.menu-btn span {
    width: 100%;
    height: 1.5px;
    background: var(--text);
    transition: var(--transition);
    transform-origin: left;
}

.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg);
    background: var(--primary);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg);
    background: var(--primary);
}

/* Responsive Design & Mobile Menu Content */
.no-scroll {
    overflow: hidden;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .photo-box {
        grid-column: 1 / -1;
        justify-self: center;
        width: 300px;
        height: 420px;
    }

    .about-stats {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 0.7rem;
    }

    /* Navbar Mobile */
    #navbar {
        height: 70px;
    }

    .menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--surface);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
        z-index: 1000;
        visibility: hidden;
        opacity: 0;
    }

    .nav-links.active {
        right: 0;
        visibility: visible;
        opacity: 1;
    }

    .nav-links li a {
        font-size: 1.5rem;
        color: var(--text);
    }

    /* Hero */
    .hero-text h1 {
        font-size: 3.25rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 1.25rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    /* Skills */
    .skills-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Projects */
    .project-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Education */
    .timeline-item {
        padding-left: 2.5rem;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

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

    .info-list li {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .photo-box {
        width: 100%;
        max-width: 280px;
    }

    .title {
        font-size: 2rem;
    }

    .loader-text {
        font-size: 0.7rem;
        letter-spacing: 0.3rem;
    }
}

/* Ripple Transition Core */
::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

::view-transition-old(root) {
    z-index: 1;
}

::view-transition-new(root) {
    z-index: 99999;
}

.ripple-transition::view-transition-new(root) {
    animation: ripple 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    clip-path: circle(0% at var(--ripple-x) var(--ripple-y));
}

@keyframes ripple {
    to {
        clip-path: circle(150% at var(--ripple-x) var(--ripple-y));
    }
}