@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

/* Navigation Styles */
.navigation {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 1rem 0;
    border-bottom: 1px solid #333333;
    flex-wrap: wrap;
}

.navigation a {
    color: #cccccc;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
}

.navigation a:hover {
    color: #0032a0;
    background: rgba(0, 50, 160, 0.1);
    transform: translateY(-2px);
}

.navigation a.active {
    color: #ffffff;
    background: linear-gradient(135deg, #0032a0, #004fb8);
    box-shadow: 0 4px 15px rgba(0, 50, 160, 0.3);
}

.navigation a::after {
    display: none;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: #ffffff;
    text-align: center;
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0032a0, #0032a0);
    animation: expand-line 1s ease-out 0.8s forwards;
}

h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #ffffff;
    border-bottom: 1px solid #333333;
    padding-bottom: 10px;
    position: relative;
}

h2::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 2px;
    background: #0032a0;
    animation: slide-in 0.6s ease-out forwards;
}

h3, h4, h5 {
    color: #ffffff;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 20px;
    font-weight: 300;
    text-align: justify;
}

a {
    color: #0032a0;
    text-decoration: none;
    font-weight: 400;
    position: relative;
    transition: all 0.3s ease;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #0032a0;
    transition: width 0.3s ease;
}

a:hover {
    color: #0032a0;
    transform: translateY(-1px);
}

a:hover::after {
    width: 100%;
}

ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 10px;
    font-weight: 300;
    opacity: 0;
    animation: fade-in-item 0.6s ease-out forwards;
}

li:nth-child(1) { animation-delay: 0.1s; }
li:nth-child(2) { animation-delay: 0.2s; }
li:nth-child(3) { animation-delay: 0.3s; }
li:nth-child(4) { animation-delay: 0.4s; }
li:nth-child(5) { animation-delay: 0.5s; }
li:nth-child(6) { animation-delay: 0.6s; }

/* Card Components */
.definition-card, .method-card {
    background: linear-gradient(135deg, #111111, #1a1a1a);
    border: 1px solid #333333;
    border-radius: 0;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.definition-card:hover, .method-card:hover {
    border-color: #0032a0;
    box-shadow: 0 12px 40px rgba(0, 50, 160, 0.2);
    transform: translateY(-2px);
}

/* Dataset Features */
.dataset-features, .importance-grid, .analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card, .importance-card, .analysis-card {
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    border: 1px solid #333333;
    border-radius: 0;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover, .analysis-card:hover {
    border-color: #0032a0;
    box-shadow: 0 8px 25px rgba(0, 50, 160, 0.15);
    transform: translateY(-3px);
}

.importance-card.critical {
    border-color: #e74c3c;
}

.importance-card.urgent {
    border-color: #f39c12;
}

.importance-card.global {
    border-color: #3498db;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Climate Impacts */
.climate-impacts, .ecosystem-impacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.impact-item, .ecosystem-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(0, 50, 160, 0.05);
    border: 1px solid rgba(0, 50, 160, 0.2);
    border-radius: 0;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.ecosystem-card {
    flex-direction: column;
    text-align: center;
}

.impact-item:hover, .ecosystem-card:hover {
    background: rgba(0, 50, 160, 0.1);
    border-color: #0032a0;
    transform: translateY(-2px);
}

.impact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Metrics Grid */
.metrics-grid, .coverage-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.metric-card, .stat-card {
    background: linear-gradient(135deg, #111111, #222222);
    border: 2px solid #333333;
    border-radius: 0;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover, .stat-card:hover {
    border-color: #0032a0;
    box-shadow: 0 10px 30px rgba(0, 50, 160, 0.2);
    transform: scale(1.05);
}

.metric-value, .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0032a0;
    margin: 1rem 0;
    text-shadow: 0 0 20px rgba(0, 50, 160, 0.5);
}

/* Region Details */
.region-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.region-card {
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    border-radius: 0;
    padding: 2rem;
    border: 1px solid #333333;
}

.region-card.arctic {
    border-left: 4px solid #74C0FC;
}

.region-card.antarctic {
    border-left: 4px solid #E599F7;
}

.arctic-facts, .antarctic-facts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fact-item, .benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0;
    padding: 1rem;
}

.fact-icon, .benefit-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Pipeline Steps */
.pipeline-steps {
    margin: 2rem 0;
}

.step {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 50, 160, 0.1), rgba(0, 50, 160, 0.05));
    border-radius: 0;
    border: 1px solid rgba(0, 50, 160, 0.3);
    transition: all 0.3s ease;
}

.step:hover {
    background: linear-gradient(135deg, rgba(0, 50, 160, 0.2), rgba(0, 50, 160, 0.1));
    transform: translateX(5px);
}

.step-number {
    font-size: 2rem;
    font-weight: 700;
    color: #0032a0;
    background: rgba(0, 50, 160, 0.2);
    border-radius: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Ocean Effects */
.ocean-effects {
    margin: 2rem 0;
}

.effect-item {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    border-radius: 0;
    border: 1px solid #333333;
    transition: all 0.3s ease;
}

.effect-item:hover {
    border-color: #0032a0;
    box-shadow: 0 8px 25px rgba(0, 50, 160, 0.15);
}

.effect-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0032a0;
    background: rgba(0, 50, 160, 0.2);
    border-radius: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Human Impacts */
.human-impacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.impact-category {
    background: linear-gradient(135deg, #111111, #1a1a1a);
    border: 1px solid #333333;
    border-radius: 0;
    padding: 2rem;
    transition: all 0.3s ease;
}

.impact-category:hover {
    border-color: #0032a0;
    box-shadow: 0 8px 25px rgba(0, 50, 160, 0.15);
    transform: translateY(-2px);
}

/* Infrastructure Grid */
.infrastructure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.infra-card {
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    border: 1px solid #333333;
    border-radius: 0;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.infra-card:hover {
    border-color: #0032a0;
    box-shadow: 0 8px 25px rgba(0, 50, 160, 0.15);
    transform: translateY(-2px);
}

/* Tech Stack */
.tech-stack {
    margin: 2rem 0;
}

.tech-category {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 50, 160, 0.05), rgba(0, 50, 160, 0.02));
    border-radius: 0;
    border: 1px solid rgba(0, 50, 160, 0.2);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-tag {
    background: rgba(0, 50, 160, 0.2);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: #0032a0;
    transform: scale(1.1);
}

/* Science Benefits */
.science-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.code-link {
    background-color: #111111;
    padding: 15px;
    border-radius: 0;
    border: 1px solid #333333;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.code-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 50, 160, 0.1), transparent);
    transition: left 0.6s ease;
}

.code-link:hover {
    border-color: #0032a0;
    box-shadow: 0 0 20px rgba(0, 50, 160, 0.2);
}

.code-link:hover::before {
    left: 100%;
}

.code-link a {
    font-family: 'Inter', monospace;
    font-weight: 400;
}

section {
    margin-bottom: 40px;
}

footer {
    margin-top: 60px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333333;
}

.attribution {
    font-size: 0.9rem;
    font-weight: 300;
    color: #cccccc;
}

.attribution span {
    color: #e4002b;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(228, 0, 43, 0.3);
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1.0s; }
.delay-6 { animation-delay: 1.2s; }

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

@keyframes expand-line {
    to {
        width: 100px;
    }
}

@keyframes slide-in {
    to {
        width: 50px;
    }
}

@keyframes fade-in-item {
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    p {
        text-align: left;
    }
    
    .navigation {
        gap: 1rem;
    }
    
    .navigation a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .region-details {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .effect-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .dataset-features,
    .importance-grid,
    .analysis-grid,
    .metrics-grid,
    .coverage-stats {
        grid-template-columns: 1fr;
    }
}

/* Subtle scroll-triggered animations for better performance */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

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

@keyframes slide-in {
    to {
        width: 50px;
    }
}

@keyframes fade-in-item {
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    p {
        text-align: left;
    }
}

/* Subtle scroll-triggered animations for better performance */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* Contact Page Styles */
.contact-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.contact-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: #999999;
    margin-bottom: 3rem;
    font-weight: 300;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid #333333;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #555555, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: #555555;
    background: rgba(30, 30, 30, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #cccccc;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: scale(1.1);
}

.contact-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: #999999;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.contact-role {
    color: #777777 !important;
    font-style: italic;
}

.contact-link {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 6px;
    display: inline-block;
}

.contact-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.contact-cta {
    text-align: center;
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid #333333;
    border-radius: 16px;
    padding: 3rem 2rem;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #333333, #555555, #333333);
    z-index: -1;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-cta:hover::before {
    opacity: 0.3;
}

.contact-cta h2 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-cta p {
    color: #999999;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

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

.cta-button {
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 150px;
    text-align: center;
}

.cta-button.primary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid #555555;
}

.cta-button.primary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #777777;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.cta-button.secondary {
    background: transparent;
    color: #cccccc;
    border: 1px solid #444444;
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-color: #666666;
    transform: translateY(-2px);
}

/* Navigation active state for contact */
.navigation a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #555555;
}

/* Responsive Design for Contact Page */
@media (max-width: 768px) {
    .contact-title {
        font-size: 2.2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-cta {
        padding: 2rem 1.5rem;
    }
    
    .contact-cta h2 {
        font-size: 1.6rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .contact-title {
        font-size: 1.8rem;
    }
    
    .contact-subtitle {
        font-size: 1rem;
    }
    
    .contact-card {
        padding: 1.2rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
}
