/* ===================================
   MARCO AGGRAVI - PERSONAL PORTFOLIO
   Modern, Responsive, Professional Design
   =================================== */

/* CSS Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0f172a;
    --accent: #06b6d4;
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #e2e8f0;
    
    --border: #e2e8f0;
    --shadow: rgba(15, 23, 42, 0.1);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--secondary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.125rem; font-weight: 600; }

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

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

a:hover {
    color: var(--primary-dark);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Section */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* ===================================
   LANGUAGE SWITCHER
   =================================== */

.lang-switcher {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1100;
    padding: 0.75rem 1rem;
    background: transparent;
    backdrop-filter: blur(8px);
    pointer-events: auto;
}

.lang-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.35);
    pointer-events: auto;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
}

.lang-btn:active {
    transform: translateY(0) scale(0.96);
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}

.lang-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Debug: Uncomment to see if button is being detected
.lang-btn {
    background: red;
}
*/

/* ===================================
   NAVIGATION
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--shadow);
}

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

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
}

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

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

.nav-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-social {
    display: flex;
    gap: 0.75rem;
}

.nav-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger {
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Mobile menu active state */
.nav-menu.active {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    padding: 2rem;
    box-shadow: 0 10px 40px var(--shadow);
    gap: 1.5rem;
}

.nav-menu.active a {
    font-size: 1.25rem;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
    padding: 2rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: var(--text-secondary);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero Visual Background */
.hero-visual {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-circle {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0) 70%);
    animation: pulse 8s ease-in-out infinite;
}

.hero-circle.small {
    width: 400px;
    height: 400px;
    top: 20%;
    right: 10%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.06) 0%, rgba(6, 182, 212, 0) 70%);
    animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.5);
}

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

.btn-secondary:hover {
    background: var(--text-light);
    color: white;
    transform: translateY(-2px);
}

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

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

.btn-small {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
}

/* ===================================
   ABOUT SECTION
   =================================== */

.about {
    background: var(--bg-secondary);
}

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

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--primary);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Gallery Section */
.about-gallery {
    margin-top: 3rem;
}

.gallery-header {
    margin-bottom: 2rem;
}

.gallery-header h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.gallery-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 15px var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.gallery-placeholder {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
}

.gallery-placeholder.uluru {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.gallery-placeholder.scotland {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
}

.gallery-placeholder.boat {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

/* Career Dual Path Section */
.career {
    background: var(--bg-primary);
}

.career-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.career-column {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.career-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.career-column.academia {
    border-top-color: var(--primary);
}

.career-column.industry {
    border-top-color: #10b981;
}

.career-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.career-column.academia .career-badge {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
}

.career-column.industry .career-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.career-column h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.career-column p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.career-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    margin-bottom: 1.5rem;
}

.career-stat {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: var(--radius-md);
}

.career-stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.career-column.academia .career-stat-number {
    color: var(--primary);
}

.career-column.industry .career-stat-number {
    color: #10b981;
}

.career-stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.career-highlights {
    padding: 1.5rem;
}

.career-highlights h4 {
    margin-bottom: 1rem;
    color: var(--secondary);
    font-size: 1rem;
}

.career-highlights ul {
    list-style: none;
    padding: 0;
}

.career-highlights li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.career-highlights li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 1.5rem;
    line-height: 1;
}

.career-bridge {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f5f7fa, #e4e8ec);
    border-radius: var(--radius-lg);
    color: var(--secondary);
}

.career-bridge p {
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.career-bridge strong {
    color: var(--primary);
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }

    .career-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .career-stats {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===================================
   ACHIEVEMENTS SECTION
   =================================== */

.achievements {
    background: var(--bg-primary);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.achievement-card:hover {
    background: white;
    box-shadow: 0 10px 40px var(--shadow);
    transform: translateY(-5px);
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.achievement-card h3 {
    margin-bottom: 0.75rem;
    color: var(--secondary);
}

.achievement-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ===================================
   RESEARCH SECTION
   =================================== */

.research {
    background: var(--bg-secondary);
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.research-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    transition: var(--transition);
}

.research-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.research-image {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
}

.research-placeholder {
    font-size: 4rem;
}

.research-card h3 {
    margin-bottom: 0.75rem;
}

.research-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

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

.research-tags span {
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.75rem;
    border-radius: 50px;
}

/* ===================================
   PROJECTS SECTION
   =================================== */

.projects {
    background: var(--bg-primary);
}

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

.project-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    transition: var(--transition);
}

.project-card::before {
    content: attr(data-number);
    position: absolute;
    top: -12px;
    right: 20px;
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-light);
    opacity: 0.1;
    line-height: 1;
}

.project-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 40px var(--shadow);
    transform: translateY(-4px);
}

.project-number {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
}

.project-card h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.project-card p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

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

.project-tech span {
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.75rem;
    border-radius: 50px;
}

.project-link {
    font-size: 0.9rem;
    font-weight: 600;
}

/* ===================================
   PUBLICATIONS SECTION
   =================================== */

.publications {
    background: var(--bg-secondary);
}

.publications-table {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
}

.publications-table table {
    width: 100%;
    border-collapse: collapse;
}

.publications-table thead {
    background: var(--secondary);
}

.publications-table th {
    padding: 1.25rem 1.5rem;
    text-align: left;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.publications-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.publications-table tbody tr:last-child {
    border-bottom: none;
}

.publications-table tbody tr:hover {
    background: var(--bg-secondary);
}

.publications-table td {
    padding: 1.25rem 1.5rem;
    font-size: 0.9rem;
    vertical-align: top;
}

.publications-table td:first-child {
    font-weight: 500;
    color: var(--secondary);
}

.publications-table td:last-child {
    text-align: right;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.journal {
    background: #dbeafe;
    color: #1e40af;
}

.badge.conference {
    background: #fef3c7;
    color: #92400e;
}

.publications-footer {
    padding: 1.5rem;
    text-align: center;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

/* ===================================
   CONTACT SECTION
   =================================== */

.contact {
    background: var(--bg-primary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info .contact-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.contact-info .contact-item:hover {
    background: white;
    box-shadow: 0 4px 20px var(--shadow);
    transform: translateX(5px);
}

.contact-icon {
    font-size: 2rem;
}

.contact-details h4 {
    margin-bottom: 0.25rem;
}

.contact-details p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-methods h3 {
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.social-links a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #eff6ff;
    transform: translateX(5px);
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: var(--secondary);
    color: white;
    padding: 4rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-light);
    margin: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-links h4 {
    color: white;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

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

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }

    .career-split {
        grid-template-columns: 1fr;
    }

    .career-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-gallery {
        max-width: 500px;
        margin: 2rem auto 0;
    }
}

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

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

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .publications-table {
        overflow-x: auto;
    }

    .publications-table table {
        min-width: 600px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .nav-social {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }

    .career-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .career-stats {
        grid-template-columns: 1fr 1fr;
    }

    .about-gallery {
        max-width: none;
    }
}

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

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

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .publications-table {
        overflow-x: auto;
    }

    .publications-table table {
        min-width: 600px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .nav-social {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }

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

    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .contact-info .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* ===================================
   ANIMATIONS
   =================================== */

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

.hero-content,
.section-header,
.about-text,
.about-gallery,
.career-split,
.research-grid,
.projects-grid {
    animation: fadeInUp 0.6s ease-out forwards;
}

.hero-content { animation-delay: 0.1s; }
.about-text { animation-delay: 0.2s; }
.about-gallery { animation-delay: 0.3s; }
.career-split { animation-delay: 0.4s; }
.research-grid { animation-delay: 0.5s; }
.projects-grid { animation-delay: 0.6s; }

/* Staggered gallery items */
.gallery-item:nth-child(1) { animation-delay: 0.7s; }
.gallery-item:nth-child(2) { animation-delay: 0.8s; }
.gallery-item:nth-child(3) { animation-delay: 0.9s; }

/* Print Styles */
@media print {
    .navbar,
    .hero-visual,
    .hero-cta,
    .nav-toggle {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }
}
