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

:root {
    /* CFUP Institutional Color Palette */
    --cfup-navy: #1B2951;
    --cfup-gold: #D4AF37;
    --cfup-gold-light: #E6C966;
    --cfup-navy-light: #2D3E66;
    --cfup-navy-dark: #0F1B35;
    --text-primary: #1B2951;
    --text-secondary: #5A6B7D;
    --text-light: #8B9AAB;
    --bg-primary: #ffffff;
    --bg-secondary: #FAFBFC;
    --bg-light: #F5F7FA;
    --bg-accent: #FDF9F0;
    --border-color: #E8ECF0;
    --border-light: #F2F4F7;
    --shadow-light: 0 2px 12px rgba(27, 41, 81, 0.08);
    --shadow-medium: 0 8px 24px rgba(27, 41, 81, 0.12);
    --shadow-heavy: 0 16px 48px rgba(27, 41, 81, 0.16);
    
    /* Typography - Academic Institution Level */
    --font-primary: 'Crimson Text', 'Times New Roman', serif;
    --font-secondary: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Source Code Pro', 'Monaco', 'Courier New', monospace;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Breakpoints */
    --mobile: 768px;
    --tablet: 1024px;
    --desktop: 1200px;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.65;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    font-size: 16px;
}

/* Academic Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.container {
    max-width: var(--desktop);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section {
    padding: var(--spacing-xxl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--cfup-navy);
    position: relative;
    font-family: var(--font-primary);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--cfup-gold);
    border-radius: 1px;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--cfup-navy);
    color: white;
    box-shadow: var(--shadow-light);
    border: 2px solid var(--cfup-navy);
}

.btn-primary:hover {
    background: var(--cfup-navy-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

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

.btn-secondary:hover {
    background: var(--cfup-gold);
    color: var(--cfup-navy);
    border-color: var(--cfup-gold);
}

.btn-contact {
    background: var(--cfup-gold);
    color: var(--cfup-navy);
    border: 2px solid var(--cfup-gold);
    font-weight: 600;
}

.btn-contact:hover {
    background: var(--cfup-gold-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.contact-info {
    margin: var(--spacing-md) 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    color: #b0bec5;
}

.contact-item i {
    color: var(--cfup-gold);
    width: 20px;
}

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

.contact-item a:hover {
    color: var(--cfup-gold);
}

.contact-item a[href^="mailto:"] {
    color: #b0bec5;
    text-decoration: none;
    font-weight: 500;
}

.contact-item a[href^="mailto:"]:hover {
    color: var(--cfup-gold);
    text-decoration: underline;
}

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

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--desktop);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-logo {
    height: 50px;
    width: auto;
}

.nav-text h1 {
    font-size: 1.4rem;
    color: var(--cfup-navy);
    margin: 0;
    font-family: var(--font-primary);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.nav-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
    font-family: var(--font-secondary);
    line-height: 1.2;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-light) 50%, var(--bg-accent) 100%);
    padding-top: 70px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(27, 41, 81, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
    max-width: var(--desktop);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.hero-badge {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.hero-shield {
    height: 120px;
    width: auto;
}

.hero-text h1 {
    color: var(--cfup-navy);
    font-family: var(--font-primary);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    letter-spacing: 0.02em;
}

.hero-text h2 {
    color: var(--cfup-gold);
    font-weight: 400;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-primary);
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-secondary);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cfup-navy);
    font-family: var(--font-primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.hero-equation {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    margin: var(--spacing-lg) 0;
    font-family: var(--font-mono);
    text-align: center;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-spiral-container {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-heavy);
    border: 2px solid var(--cfup-gold-light);
}

.hero-spiral-diagram {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.spiral-annotation {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--cfup-navy);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-light);
}

.annotation-title {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1.1rem;
}

.annotation-subtitle {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 2px;
}

/* Theory Section - Academic Excellence */
.theory-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xxl);
}

.lead-text {
    font-size: 1.3rem;
    color: var(--text-primary);
    line-height: 1.7;
    font-weight: 400;
}

.breakthrough-announcement {
    background: linear-gradient(135deg, var(--bg-accent), var(--bg-light));
    padding: var(--spacing-xxl);
    border-radius: 16px;
    margin: var(--spacing-xxl) 0;
    border: 2px solid var(--cfup-gold-light);
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.announcement-header h3 {
    color: var(--cfup-navy);
    font-size: 1.8rem;
    margin: 0;
}

.announcement-date {
    background: var(--cfup-gold);
    color: var(--cfup-navy);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.breakthrough-quote {
    font-size: 1.5rem;
    font-style: italic;
    text-align: center;
    color: var(--cfup-navy);
    border-left: none;
    background: none;
    padding: var(--spacing-lg) 0;
    margin: var(--spacing-lg) 0;
    font-family: var(--font-primary);
}

.theoretical-framework {
    margin: var(--spacing-xxl) 0;
}

.principle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.principle-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    border-left: 4px solid var(--cfup-gold);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.principle-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.principle-number {
    display: inline-block;
    background: var(--cfup-navy);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.principle-card h4 {
    color: var(--cfup-navy);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

.mathematical-framework {
    background: white;
    padding: var(--spacing-xxl);
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.equation-block {
    background: var(--bg-light);
    padding: var(--spacing-xl);
    border-radius: 12px;
    border-left: 4px solid var(--cfup-gold);
    margin: var(--spacing-lg) 0;
}

.equation-block h4 {
    color: var(--cfup-navy);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

/* Research Validation Section */
.research-validation {
    margin-top: var(--spacing-xxl);
    background: linear-gradient(135deg, var(--bg-light), var(--bg-secondary));
    padding: var(--spacing-xxl);
    border-radius: 16px;
    border: 2px solid var(--cfup-gold-light);
}

.research-validation h3 {
    color: var(--cfup-navy);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    font-size: 2rem;
}

.validation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-xl);
}

.validation-card {
    background: white;
    border-radius: 12px;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.validation-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.validation-card.critical {
    border-left: 6px solid var(--cfup-navy);
}

.validation-card.breakthrough {
    border-left: 6px solid #DC2626;
    background: linear-gradient(135deg, #FEF2F2, white);
}

.validation-card.proof {
    border-left: 6px solid #059669;
    background: linear-gradient(135deg, #F0FDF4, white);
}

.validation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.validation-header h4 {
    color: var(--cfup-navy);
    margin: 0;
    font-size: 1.3rem;
}

.validation-badge {
    background: var(--cfup-navy);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.validation-badge.anomaly {
    background: #DC2626;
    animation: pulse-red 2s infinite;
}

.validation-badge.validated {
    background: #059669;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-red {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.validation-chart {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: var(--spacing-md) 0;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
}

.validation-chart:hover {
    transform: scale(1.02);
}

.validation-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.validation-description strong {
    color: var(--cfup-navy);
    font-weight: 700;
}

/* Research Visualization Styles */
.spiral-analysis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
}

.research-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.spiral-details {
    background: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-light);
}

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

.detail-label {
    font-weight: 600;
    color: var(--cfup-navy);
}

.detail-value {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.spiral-comparison-container {
    text-align: center;
}

.spiral-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

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

.research-spiral {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    margin-bottom: var(--spacing-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-spiral:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-medium);
}

.baseline-spiral {
    border: 2px solid var(--cfup-navy-light);
}

.dissonant-spiral {
    border: 2px solid var(--cfup-gold);
}

.spiral-label {
    font-weight: 600;
    color: var(--cfup-navy);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding: var(--spacing-xs);
    background: var(--bg-light);
    border-radius: 6px;
    margin-bottom: var(--spacing-sm);
}

.expand-hint {
    color: var(--cfup-gold);
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
    font-family: var(--font-secondary);
}

@media (min-width: 769px) {
    .expand-hint {
        display: none;
    }
}

.diagram-caption {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.5;
    text-align: left;
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 8px;
}

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

.research-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-xxl);
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.timeline-content {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    margin: 0 var(--spacing-lg);
    flex: 1;
    max-width: 300px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 15px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-color);
}

/* Visualizations */
.visualization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: var(--spacing-xl);
}

.viz-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 16px;
    box-shadow: var(--shadow-light);
}

.viz-container {
    margin: var(--spacing-lg) 0;
    position: relative;
}

.viz-controls {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.viz-controls label {
    font-weight: 500;
    color: var(--text-primary);
}

.viz-controls input[type="range"] {
    width: 100%;
    height: 6px;
    background: var(--bg-light);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.viz-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

.viz-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Publications */
.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-xl);
}

.publication-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    display: flex;
    gap: var(--spacing-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.publication-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.publication-icon {
    font-size: 3rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.publication-content h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.publication-subtitle {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.publication-author, .publication-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

/* Leadership Section */
.leadership-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xxl);
    align-items: start;
}

.profile-header h3 {
    color: var(--cfup-navy);
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-primary);
}

.profile-titles {
    margin-bottom: var(--spacing-lg);
}

.title-item {
    color: var(--cfup-gold);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
}

.profile-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.research-focus {
    background: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: 12px;
    margin: var(--spacing-lg) 0;
    border-left: 4px solid var(--cfup-gold);
}

.research-focus h4 {
    color: var(--cfup-navy);
    margin-bottom: var(--spacing-md);
}

.research-list {
    list-style: none;
    padding: 0;
}

.research-list li {
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
}

.research-list li:last-child {
    border-bottom: none;
}

.research-list li:before {
    content: "•";
    color: var(--cfup-gold);
    font-weight: bold;
    margin-right: var(--spacing-sm);
}

.director-quote {
    background: var(--bg-light);
    padding: var(--spacing-lg);
    border-left: 4px solid var(--cfup-navy);
    margin: var(--spacing-lg) 0;
    border-radius: 0 8px 8px 0;
}

.director-quote p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--cfup-navy);
}

.director-quote cite {
    font-weight: 600;
    color: var(--cfup-gold);
}

.institutional-dedication {
    background: linear-gradient(135deg, var(--bg-accent), var(--bg-light));
    padding: var(--spacing-lg);
    border-radius: 12px;
    margin-top: var(--spacing-lg);
    border: 1px solid var(--cfup-gold-light);
}

.institutional-dedication h4 {
    color: var(--cfup-navy);
    margin-bottom: var(--spacing-sm);
}

.cfup-emblem {
    background: white;
    padding: var(--spacing-xl);
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    text-align: center;
    border: 2px solid var(--cfup-gold-light);
}

.emblem-image {
    max-width: 100%;
    height: auto;
    margin-bottom: var(--spacing-md);
}

.emblem-description h4 {
    color: var(--cfup-navy);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-primary);
}

.emblem-description p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
}

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

.footer-section a {
    color: #b0bec5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid #37474f;
    color: #90a4ae;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .leadership-content {
        grid-template-columns: 1fr;
    }
    
    .spiral-analysis {
        grid-template-columns: 1fr;
    }
    
    .spiral-pair {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .validation-grid {
        grid-template-columns: 1fr;
    }
    
    .validation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .hero-stats {
        gap: var(--spacing-lg);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .timeline-item {
        flex-direction: column !important;
        text-align: center;
    }
    
    .timeline-item::before {
        position: relative;
        left: auto;
        transform: none;
        margin: var(--spacing-sm) 0;
    }
    
    .research-timeline::before {
        display: none;
    }
    
    .timeline-content {
        margin: 0;
        max-width: none;
    }
    
    .visualization-grid {
        grid-template-columns: 1fr;
    }
    
    .publications-grid {
        grid-template-columns: 1fr;
    }
    
    .publication-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Mathematical Notation Enhancements */
.MathJax {
    font-size: 1.1em !important;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Image Expansion Modal */
.expandable-image {
    cursor: zoom-in;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.expandable-image::after {
    content: '\f065';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(27, 41, 81, 0.8);
    color: white;
    padding: 8px;
    border-radius: 50%;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expandable-image:hover {
    opacity: 0.9;
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(27, 41, 81, 0.15);
}

.expandable-image:hover::after {
    opacity: 1;
}

/* Mobile touch indicator */
@media (max-width: 768px) {
    .expandable-image::after {
        opacity: 0.7;
        background: rgba(27, 41, 81, 0.9);
    }
    
    .expandable-image:hover::after {
        opacity: 1;
    }
}

.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.modal-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    background: var(--cfup-navy);
    color: white;
    border-bottom: 2px solid var(--cfup-gold);
}

.modal-title {
    margin: 0;
    font-size: 1.3rem;
    font-family: var(--font-primary);
    color: white;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: 50%;
    transition: background-color 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    position: relative;
    flex: 1;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: grab;
}

.modal-image:active {
    cursor: grabbing;
}

.modal-image.zoomed {
    cursor: move;
}

.modal-controls {
    position: absolute;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    display: flex;
    gap: var(--spacing-xs);
    background: rgba(27, 41, 81, 0.9);
    border-radius: 25px;
    padding: var(--spacing-xs);
    backdrop-filter: blur(10px);
}

.zoom-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: 50%;
    transition: background-color 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-btn:hover {
    background: var(--cfup-gold);
    color: var(--cfup-navy);
}

.modal-description {
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.modal-description p {
    margin: 0;
    color: var(--text-primary);
    font-style: italic;
    line-height: 1.5;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .modal-content {
        max-width: 98vw;
        max-height: 98vh;
    }
    
    .modal-header {
        padding: var(--spacing-md);
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    .modal-controls {
        bottom: var(--spacing-sm);
        right: var(--spacing-sm);
    }
    
    .zoom-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .modal-description {
        padding: var(--spacing-md);
    }
}

/* Touch Gestures for Mobile */
@media (max-width: 768px) {
    .modal-image {
        touch-action: pan-x pan-y pinch-zoom;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-visual,
    .viz-container,
    .footer,
    .image-modal {
        display: none !important;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    * {
        color: black !important;
        background: white !important;
    }
}