/* Cyberpunk Portfolio Website - Francisco Lopez-Martin */

/* CSS Variables - Cyberpunk Color Palette */
:root {
    --primary-color: #00ff88;
    --secondary-color: #ff0080;
    --accent-color: #00ccff;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-accent: #00ff88;
    --border-color: #333333;
    --shadow-glow: 0 0 20px rgba(0, 255, 136, 0.3);
    --shadow-pink: 0 0 20px rgba(255, 0, 128, 0.3);
    --shadow-blue: 0 0 20px rgba(0, 204, 255, 0.3);
    
    /* Typography */
    --font-heading: 'Orbitron', monospace;
    --font-body: 'Rajdhani', sans-serif;
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-medium: all 0.4s ease;
    --transition-slow: all 0.6s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-fast);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.logo-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 300;
}

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

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.nav-link i {
    font-size: 1rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition-fast);
}

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

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

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

/* Cyberpunk Music Player */
.music-player {
    position: fixed;
    top: 50%;
    right: -280px;
    transform: translateY(-50%);
    width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--primary-color);
    border-radius: 12px 0 0 12px;
    padding: 1rem;
    z-index: 999;
    transition: right 0.4s ease;
    box-shadow: var(--shadow-glow);
    backdrop-filter: blur(10px);
}

.music-player.expanded {
    right: 0;
}

.player-toggle {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 60px;
    background: var(--bg-card);
    border: 1px solid var(--primary-color);
    border-right: none;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-glow);
}

.player-toggle:hover {
    background: rgba(0, 255, 136, 0.1);
    transform: translateY(-50%) scale(1.05);
}

.player-toggle i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    font-size: 1rem;
}

.player-btn:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
    transform: scale(1.1);
}

.play-pause-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-slider-container {
    position: relative;
    width: 80px;
}

.volume-slider {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--border-color);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: var(--transition-fast);
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-glow);
}

.music-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.music-title {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    font-family: var(--font-heading);
}

.music-equalizer {
    display: flex;
    align-items: end;
    gap: 3px;
    height: 20px;
}

.eq-bar {
    width: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: height 0.1s ease;
    box-shadow: 0 0 4px var(--primary-color);
}

.eq-bar:nth-child(1) {
    height: 8px;
    animation: eq1 1.2s infinite ease-in-out;
}

.eq-bar:nth-child(2) {
    height: 12px;
    animation: eq2 0.9s infinite ease-in-out;
}

.eq-bar:nth-child(3) {
    height: 16px;
    animation: eq3 1.1s infinite ease-in-out;
}

.eq-bar:nth-child(4) {
    height: 10px;
    animation: eq4 1.3s infinite ease-in-out;
}

@keyframes eq1 {
    0%, 100% { height: 8px; }
    50% { height: 16px; }
}

@keyframes eq2 {
    0%, 100% { height: 12px; }
    50% { height: 6px; }
}

@keyframes eq3 {
    0%, 100% { height: 16px; }
    50% { height: 10px; }
}

@keyframes eq4 {
    0%, 100% { height: 10px; }
    50% { height: 18px; }
}

.music-equalizer.paused .eq-bar {
    animation: none;
    height: 4px;
    opacity: 0.5;
}

/* Main Content */
.main-content {
    margin-top: 80px;
}

.section {
    min-height: 100vh;
    padding: 4rem 0;
    display: none;
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-medium);
}

.section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
}

.section-title i {
    color: var(--primary-color);
    margin-right: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    box-shadow: var(--shadow-glow);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.title-main {
    color: var(--text-primary);
    font-weight: 900;
}

.cyberpunk-name {
    display: inline-block;
    white-space: nowrap;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00, #00ffff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: cyberpunk-glow 3s ease-in-out infinite alternate;
    text-shadow: 
        0 0 10px rgba(0, 255, 255, 0.5),
        0 0 20px rgba(255, 0, 255, 0.3),
        0 0 30px rgba(255, 255, 0, 0.2);
    font-family: 'Orbitron', monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes cyberpunk-glow {
    0% {
        background-position: 0% 50%;
        filter: hue-rotate(0deg);
    }
    50% {
        background-position: 100% 50%;
        filter: hue-rotate(180deg);
    }
    100% {
        background-position: 0% 50%;
        filter: hue-rotate(360deg);
    }
}

.title-subtitle {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: var(--shadow-glow);
}

.title-institution {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background: var(--accent-color);
    box-shadow: var(--shadow-blue);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.neural-network {
    position: relative;
    width: 300px;
    height: 300px;
}

.node {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: var(--shadow-glow);
    animation: pulse 2s infinite;
}

.node:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.node:nth-child(2) { top: 20%; right: 20%; animation-delay: 0.4s; }
.node:nth-child(3) { top: 50%; left: 50%; animation-delay: 0.8s; background: var(--secondary-color); box-shadow: var(--shadow-pink); }
.node:nth-child(4) { bottom: 20%; left: 20%; animation-delay: 1.2s; }
.node:nth-child(5) { bottom: 20%; right: 20%; animation-delay: 1.6s; }

.connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0.6;
    animation: flow 3s infinite;
}

.connection:nth-child(6) {
    top: 30%;
    left: 25%;
    width: 50%;
    transform: rotate(20deg);
}

.connection:nth-child(7) {
    top: 60%;
    left: 25%;
    width: 50%;
    transform: rotate(-20deg);
}

.connection:nth-child(8) {
    top: 45%;
    left: 40%;
    width: 20%;
    transform: rotate(90deg);
}

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

@keyframes flow {
    0% { opacity: 0.3; }
    50% { opacity: 0.8; }
    100% { opacity: 0.3; }
}

/* Neural Network Animation Styles */
.neural-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
    animation: pulse 2s infinite ease-in-out;
    z-index: 2;
}

.neural-connection {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(0, 255, 136, 0.6) 0%, 
        rgba(0, 255, 136, 0.2) 50%, 
        rgba(0, 255, 136, 0.6) 100%);
    animation: dataFlow 3s infinite ease-in-out;
    z-index: 1;
}

@keyframes dataFlow {
    0% {
        opacity: 0.2;
        transform: scaleX(0);
    }
    50% {
        opacity: 0.8;
        transform: scaleX(1);
    }
    100% {
        opacity: 0.2;
        transform: scaleX(0);
    }
}

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

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition-medium);
}

.project-card:hover::before {
    left: 0;
}

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

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

.project-header h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
}

.project-status {
    background: var(--primary-color);
    color: var(--bg-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid var(--primary-color);
}

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

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: var(--transition-fast);
    font-size: 0.9rem;
}

.project-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(0, 255, 136, 0.1);
}

/* CV Section */
.cv-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.cv-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cv-section {
    margin-bottom: 2rem;
}

.cv-section:last-child {
    margin-bottom: 0;
}

.cv-section h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.contact-item i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.skill-category {
    margin-bottom: 1.5rem;
}

.skill-category h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill {
    background: rgba(0, 204, 255, 0.1);
    color: var(--accent-color);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid var(--accent-color);
}

.cv-main {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.cv-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.cv-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cv-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.cv-item-header h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.cv-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

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

.cv-item-details p {
    margin-bottom: 0.5rem;
}

.cv-item-details strong {
    color: var(--text-primary);
}

/* Publications Section */
.publications-content {
    margin-top: 2rem;
}

.publication-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-body);
    font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(0, 255, 136, 0.1);
    box-shadow: var(--shadow-glow);
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.publication-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    gap: 2rem;
    transition: var(--transition-fast);
}

.publication-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.publication-year {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 80px;
}

.publication-details {
    flex: 1;
}

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

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

.publication-venue em {
    color: var(--accent-color);
}

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

.pub-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: var(--transition-fast);
    font-size: 0.9rem;
}

.pub-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(0, 255, 136, 0.1);
}

/* Courses Section */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.course-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    transition: var(--transition-medium);
}

.course-card:hover::before {
    left: 0;
}

.course-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-blue);
}

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

.course-header h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    line-height: 1.3;
}

.course-code {
    background: var(--accent-color);
    color: var(--bg-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

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

.course-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.course-meta i {
    color: var(--accent-color);
}

.course-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.course-materials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.material-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: var(--transition-fast);
    font-size: 0.9rem;
}

.material-link:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background: rgba(0, 204, 255, 0.1);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info {
    color: var(--text-secondary);
}

.footer-info p {
    margin-bottom: 0.25rem;
}

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

.footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(0, 255, 136, 0.1);
    box-shadow: var(--shadow-glow);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-secondary);
        width: 100%;
        text-align: center;
        transition: var(--transition-fast);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        border-top: 1px solid var(--border-color);
    }

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

    .nav-toggle {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

    .cv-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cv-sidebar {
        position: static;
    }

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

    .publication-item {
        flex-direction: column;
        gap: 1rem;
    }

    .publication-year {
        min-width: auto;
    }

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

    .course-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .cv-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .section {
        padding: 2rem 0;
    }

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

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

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

    .title-institution {
        font-size: 1rem;
    }

    .project-card,
    .course-card,
    .cv-sidebar,
    .cv-main {
        padding: 1.5rem;
    }

    .publication-item {
        padding: 1.5rem;
    }
}

/* Additional Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

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

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

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

/* Publication type specific styling */
.publication-item[data-type="books"] .publication-year {
    color: var(--secondary-color);
}

.publication-item[data-type="chapters"] .publication-year {
    color: var(--accent-color);
}

.publication-item[data-type="conference"] .publication-year {
    color: var(--primary-color);
}

/* Status specific styling */
.project-status:contains("Active") {
    background: var(--primary-color);
}

.project-status:contains("Completed") {
    background: var(--accent-color);
}

.project-status:contains("In Progress") {
    background: var(--secondary-color);
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark/Light theme toggle styles */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    z-index: 1000;
}

.theme-toggle:hover {
    box-shadow: var(--shadow-glow);
    transform: scale(1.1);
}

.theme-toggle i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Light theme styles (optional) */
body.light-theme {
    --bg-primary: #f0f0f0;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
}

/* Loading states */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Performance optimizations */
.project-card,
.publication-item,
.course-card {
    will-change: transform;
}

.hero-visual {
    will-change: contents;
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .hero-visual,
    .project-links,
    .publication-links,
    .course-materials {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .section {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
        page-break-inside: avoid;
    }
}