:root {
    --primary: #1a237e;
    --secondary: #5c6bc0;
    --accent: #ffab00;
    --dark: #121212;
    --light: #f5f5f7;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    --border-radius: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

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

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(to right, #ffab00, #ffca28);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

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

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

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

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

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(26, 35, 126, 0.2) 0%, rgba(18, 18, 18, 0.9) 70%);
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #ffab00, #ffca28);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 171, 0, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(255, 171, 0, 0.3);
    }
    to {
        text-shadow: 0 0 30px rgba(255, 171, 0, 0.5);
    }
}

.tagline {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 300;
    max-width: 800px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent);
    color: var(--dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(255, 171, 0, 0.3);
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 20px;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 171, 0, 0.5);
    background: #ffca28;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
}

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

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 20px 50px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

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

/* Tabs */
.tabs-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 70px;
}

.tabs-header {
    display: flex;
    background: rgba(26, 35, 126, 0.8);
    overflow-x: auto;
    padding: 0 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tabs-header::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: 20px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
    font-family: inherit;
}

.tab-btn:hover {
    color: var(--light);
    background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    color: var(--accent);
    background: rgba(255, 171, 0, 0.1);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    border-radius: 2px 2px 0 0;
}

.tabs-content {
    padding: 40px;
    min-height: 500px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.8s ease;
}

.tab-pane.active {
    display: block;
}

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

/* Gallery Content */
.gallery-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.gallery-text {
    padding-right: 20px;
}

.gallery-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.gallery-subtitle {
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--secondary);
}

.gallery-description {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.featured-exhibits {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    margin-top: 30px;
    border: 1px solid rgba(92, 107, 192, 0.3);
}

.exhibit-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--accent);
    font-weight: 700;
}

.exhibit {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.exhibit:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.exhibit:hover {
    transform: translateX(10px);
}

.exhibit-name {
    font-weight: 700;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.exhibit-name i {
    margin-right: 10px;
    color: var(--secondary);
    font-size: 1.2rem;
}

.exhibit p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.exhibit-impact {
    background: rgba(92, 107, 192, 0.2);
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
    font-style: italic;
    border-left: 4px solid var(--secondary);
}

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

.visual-container {
    width: 100%;
    height: 400px;
    background: linear-gradient(45deg, #4a148c, #311b92);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.visual-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.visual-content {
    text-align: center;
    padding: 30px;
    z-index: 2;
}

.visual-content i {
    font-size: 5rem;
    color: var(--accent);
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.visual-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.visual-content p {
    line-height: 1.6;
}

.quote {
    font-style: italic;
    font-size: 1.1rem;
    margin-top: 20px;
    opacity: 0.8;
    position: relative;
}

.quote::before, .quote::after {
    content: '"';
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: bold;
}

/* Timeline Navigation */
.timeline-nav {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 20px;
}

.time-btn {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--secondary);
    color: var(--light);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-family: inherit;
}

.time-btn:hover, .time-btn.active {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(92, 107, 192, 0.3);
}

/* Lab Tools */
.lab-tools {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lab-tools h4 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--accent);
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.tool-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(92, 107, 192, 0.3);
}

.tool-card:hover {
    transform: translateY(-5px);
    background: rgba(92, 107, 192, 0.2);
    border-color: var(--accent);
}

.tool-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.tool-card h5 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--light);
}

.tool-card p {
    margin-bottom: 20px;
    opacity: 0.8;
    line-height: 1.5;
}

.tool-btn {
    padding: 10px 20px;
    background: var(--accent);
    color: var(--dark);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.tool-btn:hover {
    background: #ffca28;
    transform: translateY(-2px);
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(92, 107, 192, 0.3);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(92, 107, 192, 0.2);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.feature-card i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.feature-card p {
    line-height: 1.6;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 50px 0 20px;
    text-align: center;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ffab00, #ffca28);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.footer-tagline {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    opacity: 0.8;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

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

.copyright {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 992px) {
    .gallery-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .gallery-text {
        padding-right: 0;
    }
    
    .hero {
        height: auto;
        padding: 120px 20px 80px;
    }
    
    .logo {
        font-size: 3.5rem;
    }
    
    .tagline {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 80px 20px 50px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(18, 18, 18, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(10px);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .tabs-header {
        flex-wrap: wrap;
        padding: 10px;
    }
    
    .tab-btn {
        padding: 15px 20px;
        font-size: 1rem;
        margin: 5px;
        border-radius: 25px;
    }
    
    .tabs-content {
        padding: 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.3rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .visual-container {
        height: 300px;
    }
    
    .visual-content i {
        font-size: 3rem;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 15px 60px;
    }
    
    .container {
        padding: 60px 15px 30px;
    }
    
    .tabs-content {
        padding: 15px;
    }
    
    .gallery-description {
        font-size: 1rem;
    }
    
    .featured-exhibits {
        padding: 20px;
    }
    
    .timeline-nav {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .time-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .tool-grid {
        grid-template-columns: 1fr;
    }
}

