/* Custom Properties - Earthy & Mineral Scientific Theme */
:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    /* Theme Mineral Colors */
    --color-bg-darker: hsl(220, 20%, 8%);
    --color-bg-light: hsl(210, 15%, 95%);
    --color-card-bg: hsl(0, 0%, 100%);
    
    /* Geological Palettes */
    --color-slate-grey: hsl(210, 15%, 22%);
    --color-emerald: hsl(150, 75%, 35%);
    --color-emerald-light: hsl(150, 70%, 42%);
    --color-terracotta: hsl(18, 70%, 48%);
    --color-copper: hsl(35, 75%, 50%);
    --color-text-dark: hsl(220, 30%, 12%);
    --color-text-muted: hsl(220, 10%, 40%);
    
    --shadow-solid: 0 10px 25px rgba(22, 35, 45, 0.08);
    --shadow-hover: 0 20px 45px rgba(22, 35, 45, 0.15);
    --border-tech: 1px solid rgba(22, 35, 45, 0.1);
}

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

body {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    font-weight: 500;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    font-weight: 700;
}

/* Header Styles */
.project-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: var(--border-tech);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

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

.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-emerald);
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    border: 2px solid var(--color-emerald);
    background: transparent;
    transition: all 0.3s ease;
}

.back-home-btn:hover {
    background: var(--color-emerald);
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.2);
}

.header-logo {
    height: 40px;
    width: auto;
}

.header-institution {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.inst-details {
    display: flex;
    flex-direction: column;
}

.inst-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    line-height: 1.2;
}

.inst-dept {
    font-size: 0.75rem;
    color: var(--color-terracotta);
    font-weight: 700;
}

/* Hero Section */
.project-hero {
    background: linear-gradient(135deg, hsl(215, 25%, 18%) 0%, hsl(150, 40%, 15%) 100%);
    padding: 6.5rem 2rem 5.5rem;
    text-align: center;
    color: #ffffff;
    position: relative;
}

.project-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
}

.project-tag {
    color: #00d4ff;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.35rem 1.25rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.project-title {
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    line-height: 1.2;
    color: #ffffff;
}

.project-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    font-weight: 300;
}

/* Main Layout Grid */
.main-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    .main-container {
        grid-template-columns: 340px 1fr;
    }
}

/* Sidebar Card Styling */
.technical-sidebar {
    position: relative;
}

.sidebar-card {
    background: var(--color-card-bg);
    border-radius: 12px;
    padding: 2rem;
    border: var(--border-tech);
    box-shadow: var(--shadow-solid);
    position: sticky;
    top: 100px;
}

.sidebar-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.divider {
    height: 3px;
    width: 40px;
    background: var(--color-emerald);
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

.tech-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tech-list li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
}

.tech-list li strong {
    font-family: var(--font-heading);
    color: var(--color-slate-grey);
    font-weight: 700;
    font-size: 0.95rem;
}

.tech-list li span {
    color: var(--color-text-muted);
    font-weight: 500;
}

.tech-list li small {
    color: var(--color-terracotta);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* Core Content Styling */
.core-content {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.content-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--color-emerald);
    border-radius: 2px;
}

.content-section p {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    line-height: 1.7;
    font-weight: 400;
}

.section-desc {
    margin-bottom: 2rem !important;
}

/* Card Style Container */
.card-style {
    background: var(--color-card-bg);
    border-radius: 12px;
    padding: 2.5rem;
    border: var(--border-tech);
    box-shadow: var(--shadow-solid);
}

/* Mineral Display Showcase */
.mineral-showcase {
    border-left: 6px solid var(--color-terracotta);
}

.comparison-boxes {
    margin-top: 1.5rem;
}

.comp-card {
    background: rgba(220, 100, 50, 0.03);
    border: 1px solid rgba(220, 100, 50, 0.15);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.comp-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.comp-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.adsorp {
    background-color: var(--color-terracotta);
    color: #ffffff;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.app-item {
    background: var(--color-bg-light);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    border-left: 3px solid var(--color-emerald);
}

.app-item strong {
    display: block;
    color: var(--color-slate-grey);
    margin-bottom: 0.25rem;
}

/* AI and Tech Integration Section */
.ai-box {
    background: rgba(0, 212, 255, 0.03);
    border-left: 4px solid #00d4ff;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-top: 1.5rem;
}

.ai-box p {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: var(--color-text-dark);
}

/* Experiment Section styling */
.experiment-interactive {
    margin-top: 2rem;
    background: var(--color-bg-light);
    border-radius: 8px;
    padding: 1.5rem;
}

.exp-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid rgba(0,0,0,0.06);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    border: none;
    background: #ffffff;
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.tab-btn.active, .tab-btn:hover {
    background: var(--color-emerald);
    color: #ffffff;
    border-color: var(--color-emerald);
}

.filter-display-card {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

@media (max-width: 600px) {
    .filter-display-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

.filter-media {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 auto;
}

.filter-info-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-info-panel h4 {
    font-size: 1.2rem;
}

.filter-metrics {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.filter-metrics li strong {
    color: var(--color-text-dark);
}

.filter-info-panel p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--color-text-muted);
}

/* Aspect Colors classes */
.quality-turbid {
    color: var(--color-terracotta);
    font-weight: 700;
}

.quality-clear {
    color: var(--color-emerald);
    font-weight: 700;
}

.quality-excellent {
    color: #00d4ff;
    font-weight: 800;
}

/* Didactic Sequences Grid */
.didactic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.didactic-card {
    background: var(--color-card-bg);
    border-radius: 12px;
    padding: 2.2rem;
    border: var(--border-tech);
    box-shadow: var(--shadow-solid);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    border-top: 4px solid var(--color-emerald);
}

.didactic-card:nth-child(2) {
    border-top-color: var(--color-terracotta);
}

.didactic-badge {
    align-self: flex-start;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--color-bg-light);
    color: var(--color-text-muted);
}

.didactic-card h3 {
    font-size: 1.25rem;
}

.didactic-title {
    font-weight: 700;
    font-size: 0.95rem !important;
    color: var(--color-slate-grey) !important;
    margin-bottom: 0.25rem !important;
}

.didactic-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.didactic-card ul li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--color-text-muted);
}

.didactic-card ul li::before {
    content: '▪';
    position: absolute;
    left: 0;
    color: var(--color-emerald);
}

.didactic-card:nth-child(2) ul li::before {
    color: var(--color-terracotta);
}

/* Conclusion Quote */
.highlight-quote {
    background: rgba(16, 185, 129, 0.03);
    border-left: 4px solid var(--color-emerald);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-top: 1.5rem;
}

.highlight-quote p {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 600;
    color: var(--color-slate-grey);
    margin-bottom: 0;
}

/* Footer Styling */
.project-footer {
    background-color: var(--color-slate-grey);
    color: rgba(255,255,255,0.6);
    padding: 3rem 2rem;
    text-align: center;
    font-size: 0.85rem;
    margin-top: 6rem;
    border-top: var(--border-tech);
}

/* Responsiveness */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .project-hero {
        padding: 4rem 1.5rem;
    }
    
    .card-style {
        padding: 1.75rem;
    }
    
    .didactic-grid {
        grid-template-columns: 1fr;
    }
}

/* Video Section Styles */
.video-section {
    background: linear-gradient(135deg, hsl(210, 15%, 93%) 0%, hsl(150, 20%, 93%) 100%);
    border-top: var(--border-tech);
    border-bottom: var(--border-tech);
    padding: 4rem 2rem 4.5rem;
    margin-top: 0;
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.video-container h2 {
    font-size: 2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.video-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--color-emerald);
    border-radius: 2px;
}

.video-container p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(22, 35, 45, 0.15);
    border: 2px solid rgba(22, 35, 45, 0.08);
    margin-top: 1rem;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
