/* =================================
   CSS VARIABLES
   ================================= */
:root {
    --primary-color: #2D4F5E;
    --secondary-color: #3A5F6E;
    --accent-color: #FF8C00;
    --dark-blue: #1F3540;
    --light-blue: #4A6B7A;
    --text-color: #2d3748;
    --muted-text: #4a5568;
    --light-bg: #f8fafc;
    --gradient-bg: linear-gradient(135deg, #2D4F5E 0%, #3A5F6E 50%, #4A6B7A 100%);
    --accent-gradient: linear-gradient(135deg, #FF8C00 0%, #FF9500 100%);
    --card-shadow: 0 4px 6px -1px rgba(45, 79, 94, 0.1), 0 2px 4px -1px rgba(45, 79, 94, 0.06);
}

/* =================================
   RESET & BASE STYLES
   ================================= */
* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* =================================
   ACCESSIBILITY
   ================================= */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    font-size: 14px;
    font-weight: 600;
}

.skip-link:focus {
    top: 6px;
    color: #fff;
    text-decoration: none;
    outline: 3px solid #FF8C00;
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* =================================
   MEDIA QUERIES - ACCESSIBILITY
   ================================= */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--text-color);
    }
    
    .btn-primary {
        border: 2px solid transparent;
    }
}

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

/* =================================
   NAVIGATION
   ================================= */
.navbar {
    background: rgba(255,255,255,0.98) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(45, 79, 94, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: rgba(255,255,255,0.99) !important;
    box-shadow: 0 4px 20px rgba(45, 79, 94, 0.15);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: #2d3748 !important;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--secondary-color) !important;
    background-color: rgba(45, 79, 94, 0.05);
    border-radius: 4px;
}

.navbar-toggler {
    border: 2px solid var(--primary-color);
    padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* =================================
   HERO SECTION
   ================================= */
.hero-section {
    background: var(--gradient-bg);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,0 1000,300 1000,1000 0,700"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.image-placeholder {
    width: 100%;
    height: 250px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed var(--secondary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.image-placeholder .slogan {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.5;
}

/* =================================
   SECTIONS
   ================================= */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 3px;
    background: var(--accent-gradient);
    display: block;
    margin: 20px auto;
    border-radius: 2px;
}

/* =================================
   CARDS
   ================================= */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
    background: white;
}

.card:hover,
.card:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(45, 79, 94, 0.1), 0 10px 10px -5px rgba(45, 79, 94, 0.04);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.5rem;
}

.result-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(45, 79, 94, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.result-card:hover,
.result-card:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(45, 79, 94, 0.1), 0 10px 10px -5px rgba(45, 79, 94, 0.04);
}

.result-image {
    height: 200px;
    background: var(--gradient-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.result-card .p-4 {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.result-card .p-4 p {
    flex-grow: 1;
}

/* =================================
   TEAM MEMBERS
   ================================= */
.team-member {
    text-align: center;
    padding: 20px;
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.team-member-small {
    text-align: center;
    padding: 15px;
}

.team-avatar-small {
    width: 40px;
    height: 40px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.team-card-small {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
    height: 100%;
}

.team-card-small:hover,
.team-card-small:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 79, 94, 0.1);
    border-color: var(--light-blue);
}

.team-card-small:hover .team-avatar-small {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.team-name-small {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
    line-height: 1.3;
}

.team-role-small {
    font-size: 0.8rem;
    color: var(--muted-text);
    margin-bottom: 0;
}

/* =================================
   CONTACT SECTION
   ================================= */
.contact-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.contact-info {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(45, 79, 94, 0.1);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-item i {
    color: var(--accent-color);
}

/* =================================
   FUNDING SECTION
   ================================= */
.funding-section {
    background-color: white;
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.funding-box {
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    border: none;
    max-width: 70%;
    margin: -45px auto auto auto;
    padding: 1rem 1.5rem;
    position: relative;
    z-index: 10;
}

.funding-logo img {
    max-height: 70px;
    height: auto;
    width: auto;
    display: block;
}

.funding-text {
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
    color: var(--text-color);
}

/* =================================
   FOOTER
   ================================= */
.footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
}

.footer img {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.footer p {
    margin-bottom: 0.5rem;
}

/* =================================
   BUTTONS
   ================================= */
.btn-primary {
    background: var(--accent-gradient);
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(255, 140, 0, 0.39);
    min-height: 44px;
    min-width: 44px;
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
    background: linear-gradient(135deg, #FF7700 0%, #FF9500 100%);
}

/* =================================
   UTILITY CLASSES
   ================================= */
.icon-orange {
    color: var(--accent-color);
}

.text-muted {
    color: var(--muted-text) !important;
}

.status-preparation {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #dee2e6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =================================
   MEDIA QUERIES - RESPONSIVE
   ================================= */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .image-placeholder {
        height: 200px;
    }
    
    .image-placeholder .slogan {
        font-size: 1rem;
    }
    
    .funding-text {
        font-size: 0.95rem;
        padding: 0 20px;
    }
    
    .team-name-small {
        font-size: 0.85rem;
    }
    
    .team-role-small {
        font-size: 0.75rem;
    }
}