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

/*
 * Accessibility-focused color scheme:
 * - High contrast ratios (WCAG AAA compliant)
 * - Colors distinguishable for color vision deficiency
 * - Dyslexia-friendly font (OpenDyslexic fallback to Arial/Sans-serif)
 */
:root {
    --primary-color: #2c5f8d;
    --secondary-color: #4a7ba7;
    --accent-color: #d97706;
    --text-color: #1a1a1a;
    --bg-color: #ffffff;
    --bg-secondary: #f5f5f5;
    --border-color: #cccccc;
    --link-color: #2c5f8d;
    --link-hover: #1e4464;
    --success-color: #059669;
    --error-color: #dc2626;
    --nav-height: 70px;
}

body {
    font-family: Arial, 'Helvetica Neue', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography - Dyslexia-friendly settings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

ul, ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

a {
    color: var(--link-color);
    text-decoration: underline;
    transition: color 0.2s ease;
}

a:hover, a:focus {
    color: var(--link-hover);
}

a:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.nav-brand {
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    transition: background-color 0.3s ease;
    border-radius: 4px;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        margin: 0;
    }

    .nav-menu.active {
        max-height: 500px;
        padding: 1rem;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        padding: 1rem;
        width: 100%;
        display: block;
    }
}

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

/* Content Sections */
.content-section {
    background-color: var(--bg-color);
    padding: 2rem 0;
}

/* Forecast Controls */
.forecast-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.control-group label {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
}

.forecast-select {
    padding: 0.75rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.forecast-select:hover {
    border-color: var(--primary-color);
}

.forecast-select:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
    border-color: var(--primary-color);
}

/* Loading Indicator */
.loading-indicator {
    padding: 1.5rem;
    margin: 1rem 0;
    background-color: var(--bg-secondary);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

.loading-indicator p {
    margin: 0;
    font-weight: 600;
    color: var(--primary-color);
}

/* Error Message */
.error-message {
    padding: 1.5rem;
    margin: 1rem 0;
    background-color: #fee;
    border-left: 4px solid var(--error-color);
    border-radius: 4px;
}

.error-message p {
    margin: 0;
    font-weight: 600;
    color: var(--error-color);
}

/* Forecast Display */
.forecast-display {
    margin: 2rem 0;
}

.forecast-display h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.forecast-image-container,
.forecast-video-container {
    width: 100%;
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.forecast-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.forecast-video {
    width: 50%;
    height: auto;
    display: block;
    border-radius: 4px;
}

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

.product-card {
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: border-color 0.2s ease;
}

.product-card:hover {
    border-color: var(--primary-color);
}

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

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0.25rem;
}

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

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

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

.btn-secondary {
    background-color: var(--bg-secondary);
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

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

.link-button {
    background: none;
    border: none;
    color: var(--link-color);
    text-decoration: underline;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
}

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

.modal-content {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h2 {
    margin-top: 0;
}

.modal-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

/* Footer */
.footer {
    background-color: var(--bg-secondary);
    padding: 2rem 0;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer p {
    margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        margin: 0;
    }

    .nav-menu.active {
        max-height: 500px;
        padding: 1rem;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        padding: 1rem;
        width: 100%;
        display: block;
    }

    .forecast-controls {
        flex-direction: column;
    }

    .control-group {
        width: 100%;
    }

    .forecast-image-container,
    .forecast-video-container {
        min-height: 250px;
    }

    .forecast-video {
        width: 80%;
    }

    .btn {
        width: 100%;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}

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

    .nav-container {
        padding: 0 1rem;
    }

    .nav-brand {
        font-size: 1.2rem;
    }

    .forecast-controls {
        padding: 1rem;
    }

    .forecast-video {
        width: 100%;
    }
}

/* Hero Banner */
.hero-banner {
    background-image: url("images/seestar_5.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 100px 20px;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: white;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: #4a90e2;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #357abd;
    transform: translateY(-2px);
}

/* Banner Sections */
.banner-section {
    padding: 80px 20px;
    text-align: center;
}

.banner-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.banner-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 30px;
}

.partners-banner .container {
    text-align: center;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin: 30px 0;
}

.partners-logos img {
    max-height: 60px;
    max-width: 200px;
    width: auto;
    height: auto;
    filter: grayscale(0%);
    opacity: 1;
    transition: all 0.3s ease;
}

.partners-logos img:hover {
    filter: grayscale(50%);
    opacity: 0.5;
}

.section-link {
    display: inline-block;
    padding: 12px 30px;
    color: #4a90e2;
    text-decoration: none;
    border: 2px solid #4a90e2;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.section-link:hover {
    background-color: #4a90e2;
    color: white;
    transform: translateY(-2px);
}

/* About Banner */
.about-banner {
    background-color: #f8f9fa;
}

/* Approaches Banner */
.approaches-banner {
    background-color: #ffffff;
}

/* Partners Banner */
.partners-banner {
    background-color: #f0f4f8;
}

/* Contact Banner */
.contact-banner {
    background-color: var(--primary-color);
    color: white;
}

.contact-banner h2 {
    color: white;
}

.contact-banner .section-link {
    color: white;
    border-color: white;
}

.contact-banner .section-link:hover {
    background-color: white;
    color: var(--primary-color);
}

.contact-info {
    margin-top: 30px;
}

.contact-info p {
    margin: 10px auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .banner-section h2 {
        font-size: 2rem;
    }

    .banner-section p {
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer button,
    .forecast-controls {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}

/* Team grid (circular avatars) */
.team-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.team-card {
  margin: 0;
}

.team-figure {
  margin: 0;
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  gap: 0.9rem;

  padding: 0.9rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.team-caption {
  line-height: 1.2;
}

.team-name {
  font-weight: 600;
}

.team-affiliation {
  margin-top: 0.2rem;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Small screens: stack avatar above text */
@media (max-width: 420px) {
  .team-figure {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-info {
    font-size: 0.9em;
    margin-left: 10px;
}

.info-link {
    margin-left: 10px;
    font-size: 0.9em;
    text-decoration: none;
    color: #007bff;
}