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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Dark mode paragraph text */
@media (prefers-color-scheme: dark) {
    p {
        color: var(--dark-text-secondary);
    }
    
    /* Additional dark mode text improvements */
    h1, h2, h3, h4, h5, h6 {
        color: var(--dark-text-primary);
    }
    
    .section-title {
        color: var(--dark-text-primary);
    }
    
    .section-title::after {
        background-color: var(--primary-color);
    }
    
    /* Ensure buttons have good contrast in dark mode */
    .btn {
        color: white;
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }
    
    .btn:hover {
        background-color: var(--primary-dark);
        border-color: var(--primary-dark);
    }
    
    .btn-outline {
        color: var(--dark-text-primary);
        border-color: var(--dark-text-muted);
        background-color: transparent;
    }
    
    .btn-outline:hover {
        color: white;
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }
    
    /* Dark mode NPO section */
    .npo {
        background-color: var(--dark-bg-secondary);
    }
    
    .npo-intro h3 {
        color: var(--dark-text-primary);
    }
    
    .npo-intro p {
        color: var(--dark-text-secondary);
    }
    
    .npo-info h4,
    .npo-cta h4 {
        color: var(--dark-text-primary);
    }
    
    .npo-item span {
        color: var(--dark-text-secondary);
    }
    
    .npo-cta p {
        color: var(--dark-text-secondary);
    }
    
    /* Dark mode media section */
    .media-placeholder {
        background-color: var(--dark-bg-tertiary);
        color: var(--dark-text-muted);
    }
    
    .media-link:hover .media-placeholder {
        background-color: var(--primary-color);
        color: white;
    }
    
    .media-source {
        color: var(--dark-text-muted);
    }
    
    .media-link:hover .media-source {
        color: var(--primary-color);
    }
}

/* Color Variables - Pantone 292U Theme */
:root {
    --primary-color: #4A90E2;      /* Pantone 292U */
    --primary-dark: #357ABD;       /* Darker shade for hover */
    --primary-light: #6BA3E8;      /* Lighter shade for accents */
    --accent-color: #4A90E2;       /* Same as primary for consistency */
    --header-text-color: #1a1a1a; /* Header text color - darker for better contrast */
    --header-bg-color: #fff;       /* Header background color */
    
    /* Light mode colors with good contrast */
    --text-primary: #1a1a1a;       /* Primary text - very dark */
    --text-secondary: #2d2d2d;     /* Secondary text - dark */
    --text-muted: #4a4a4a;         /* Muted text - medium dark */
    --bg-primary: #ffffff;          /* Primary background - white */
    --bg-secondary: #f8f9fa;       /* Secondary background - light gray */
    --bg-tertiary: #e9ecef;        /* Tertiary background - medium gray */
    
    /* Dark mode colors with good contrast */
    --dark-text-primary: #ffffff;   /* Dark mode primary text - white */
    --dark-text-secondary: #f0f0f0; /* Dark mode secondary text - light */
    --dark-text-muted: #d0d0d0;    /* Dark mode muted text - medium light */
    --dark-bg-primary: #0d1117;     /* Dark mode primary background - very dark */
    --dark-bg-secondary: #161b22;   /* Dark mode secondary background - dark */
    --dark-bg-tertiary: #21262d;    /* Dark mode tertiary background - medium dark */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Dark mode header styles */
@media (prefers-color-scheme: dark) {
    .header {
        background-color: var(--dark-bg-primary);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        border-bottom: 1px solid #30363d;
    }
    
    .header .nav-link {
        color: var(--dark-text-primary) !important;
        font-weight: 600;
    }
    
    .header .nav-link:hover {
        color: var(--primary-color) !important;
    }
    
    .header .logo-text {
        color: var(--primary-color) !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }
    
    /* Dropdown styles removed - navigation simplified */
    
    /* Mobile menu toggle removed - navigation always visible */
}

/* Ensure proper text contrast in all header states */
.header {
    background-color: var(--header-bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header .nav-link {
    color: var(--header-text-color) !important;
    font-weight: 600;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.header .nav-link:hover {
    color: var(--primary-color) !important;
    text-shadow: none;
}

.header .logo-text {
    color: var(--primary-color) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Force light mode overrides */
.force-light-mode .header {
    background-color: #fff !important;
}

.force-light-mode .header .nav-link {
    color: #333 !important;
}

.force-light-mode .header .nav-link:hover {
    color: var(--primary-color) !important;
}

.force-light-mode .header .logo-text {
    color: var(--primary-color) !important;
}

/* Prevent JavaScript from overriding text colors */
.header .nav-link,
.header .logo-text {
    color: var(--header-text-color) !important;
    transition: color 0.3s ease !important;
}

.header .nav-link:hover {
    color: var(--primary-color) !important;
}

.header .logo-text {
    color: var(--primary-color) !important;
}

/* Dropdown styles removed - navigation simplified */

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

/* Navigation */
.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    /* Safari-specific fixes */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* Safari-specific fixes */
    -webkit-box-orient: horizontal;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    overflow: hidden;
}

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

.nav-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

/* Dropdown functionality removed - navigation simplified */

/* Mobile menu toggle removed - navigation always visible */

/* Hero Section */
.hero {
    background: #4A90E2;
    background-image: linear-gradient(rgba(74, 144, 226, 0.8), rgba(53, 122, 189, 0.8)), url('../images/teamphoto1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    margin-bottom: 2rem;
}

.hero-logo-img {
    width: 200px;
    height: 200px;
}

.hero-logo-img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

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

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    color: white;
}

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

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
    position: relative;
}

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

/* Robot Showcase */
.robot-showcase {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.robot-showcase::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 100 100"><defs><pattern id="circuit" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="2" fill="%23ddd" opacity="0.1"/><circle cx="80" cy="80" r="2" fill="%23ddd" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="%23ddd" opacity="0.1"/><circle cx="10" cy="70" r="1" fill="%23ddd" opacity="0.1"/><circle cx="90" cy="30" r="1" fill="%23ddd" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23circuit)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

/* Robot Hero Card */
.robot-hero-card {
    background: linear-gradient(135deg, #2E5B8A 0%, #1E3A5F 100%);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 10px 30px rgba(46, 91, 138, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.robot-hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 7s ease-in-out infinite;
}

.robot-hero-icon {
    font-size: 4rem;
    opacity: 0.9;
    flex-shrink: 0;
}

.robot-hero-content h3 {
    color: white;
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.robot-hero-content p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.95;
}

.robot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.robot-card {
    background-color: white;
    border-radius: 15px;
    padding: 0;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.robot-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2E5B8A, #1E3A5F, #4A90E2);
    transition: height 0.3s ease;
}

.robot-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.robot-card:hover::before {
    height: 8px;
}

.robot-image-placeholder {
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-size: 3rem;
    color: #ccc;
    overflow: hidden;
    position: relative;
}

.robot-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
    transition: transform 0.3s ease;
}

.robot-card:hover .robot-image {
    transform: scale(1.05);
}

.robot-spec-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2E5B8A, #1E3A5F);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.robot-card:hover .robot-spec-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.robot-info {
    padding: 2rem;
    text-align: left;
}

.robot-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.robot-card:hover .robot-info h3 {
    color: #2E5B8A;
}

.robot-year {
    color: #ff6b35;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.robot-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.robot-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: linear-gradient(135deg, #2E5B8A, #1E3A5F);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.robot-card:hover .feature-tag {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    transform: translateY(-2px);
}

    /* Dark mode for robot section */
@media (prefers-color-scheme: dark) {
    .robot-showcase {
        background: linear-gradient(135deg, var(--dark-bg-primary) 0%, var(--dark-bg-secondary) 100%);
    }
    
    .robot-hero-card {
        background: linear-gradient(135deg, #2E5B8A 0%, #1E3A5F 100%);
    }
    
    .robot-card {
        background: var(--dark-bg-secondary);
        border: 1px solid var(--dark-bg-tertiary);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }
    
    .robot-card:hover {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
        border-color: var(--primary-color);
    }
    
    .robot-info h3 {
        color: var(--primary-color);
    }
    
    .robot-card:hover .robot-info h3 {
        color: #2E5B8A;
    }
    
    .robot-description {
        color: var(--dark-text-secondary);
    }
    
    .robot-spec-icon {
        background: linear-gradient(135deg, #2E5B8A, #1E3A5F);
        box-shadow: 0 4px 12px rgba(46, 91, 138, 0.3);
    }
    
    .feature-tag {
        background: linear-gradient(135deg, #2E5B8A, #1E3A5F);
    }
    
    .robot-card:hover .feature-tag {
        background: linear-gradient(135deg, #ff6b35, #f7931e);
    }
    
    /* Dark mode for NPO section */
    .npo {
        background: linear-gradient(135deg, var(--dark-bg-primary) 0%, var(--dark-bg-secondary) 100%);
    }
    
    .npo-hero-card {
        background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    }
    
    .npo-info-card,
    .npo-cta-card {
        background: var(--dark-bg-secondary);
        border: 1px solid var(--dark-bg-tertiary);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }
    
    .npo-info-card:hover,
    .npo-cta-card:hover {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        border-color: #ff6b35;
    }
    
    .npo-card-content h4 {
        color: var(--dark-text-primary);
    }
    
    .npo-item span {
        color: var(--dark-text-secondary);
    }
    
    .npo-card-content p {
        color: var(--dark-text-secondary);
    }
    
    /* Dark mode for FTC section */
    .ftc-section {
        background: linear-gradient(135deg, var(--dark-bg-primary) 0%, var(--dark-bg-secondary) 100%);
    }
    
    .ftc-hero-card {
        background: linear-gradient(135deg, #2E5B8A 0%, #1E3A5F 100%);
    }
    
    .ftc-intro h3 {
        color: var(--dark-text-primary);
    }
    
    .ftc-intro p {
        color: var(--dark-text-secondary);
    }
    
    .impact-card {
        background: var(--dark-bg-secondary);
        border: 1px solid var(--dark-bg-tertiary);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }
    
    .impact-card:hover {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
        border-color: var(--primary-color);
    }
    
    .impact-content h4 {
        color: var(--dark-text-primary);
    }
    
    .impact-card:hover .impact-content h4 {
        color: #2E5B8A;
    }
    
    .impact-content p {
        color: var(--dark-text-secondary);
    }
    
    /* Dark mode for Contact section */
    .contact {
        background: linear-gradient(135deg, var(--dark-bg-primary) 0%, var(--dark-bg-secondary) 100%);
    }
    
    .contact-hero-card {
        background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    }
    
    .contact-info h3,
    .contact-form h3 {
        color: var(--dark-text-primary);
    }
    
    .contact-item span {
        color: var(--dark-text-secondary);
    }
    
    /* Dark mode for Photos section */
    .media {
        background: linear-gradient(135deg, var(--dark-bg-primary) 0%, var(--dark-bg-secondary) 100%);
    }
    
    .photos-hero-card {
        background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
        box-shadow: 0 10px 30px rgba(74, 144, 226, 0.4);
    }
    
    .media-item {
        background: var(--dark-bg-secondary);
        border: 1px solid var(--dark-bg-tertiary);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }
    
    .media-item:hover {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
        border-color: var(--primary-color);
    }
    
    .media-info h4 {
        color: var(--dark-text-primary);
    }
    
    .media-item:hover .media-info h4 {
        color: #4A90E2;
    }
    
    .media-description {
        color: var(--dark-text-secondary);
    }
    
    .media-badge {
        background: linear-gradient(135deg, #4A90E2, #357ABD);
        box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
    }
    
    .media-source {
        background: rgba(74, 144, 226, 0.2);
        color: #4A90E2;
    }
    
    .media-item:hover .media-source {
        background: rgba(74, 144, 226, 0.3);
    }
}

/* About Section */
.about {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

/* Team Section */
.team-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.about::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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ddd" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ddd" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ddd" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="%23ddd" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="%23ddd" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* About Hero Card */
.about-hero-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1565C0 100%);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 10px 30px rgba(25, 118, 210, 0.3);
    position: relative;
    overflow: hidden;
}

.about-hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.hero-logo {
    flex-shrink: 0;
}

.hero-logo-img {
    width: 120px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    opacity: 0.95;
    transition: transform 0.3s ease;
}

.about-hero-card:hover .hero-logo-img {
    transform: scale(1.05);
}

.hero-content h3 {
    color: white;
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.hero-content p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.95;
}

/* About Cards */
.about-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.about-card:hover::before {
    width: 8px;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.about-card:hover .card-icon {
    transform: scale(1.1);
    color: #1565C0;
}

.card-content h3 {
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.card-content p {
    margin: 0 0 1rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.card-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.card-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.card-content ul ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

/* Vision Card Special Styling */
.vision-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid var(--primary-color);
}

.vision-card .card-icon {
    color: #ff6b35;
}

.vision-card:hover .card-icon {
    color: #e55a2b;
}

.about-text h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.about-text li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.about-text ul ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Dark mode for About section */
@media (prefers-color-scheme: dark) {
    .about {
        background: linear-gradient(135deg, var(--dark-bg-primary) 0%, var(--dark-bg-secondary) 100%);
    }
    
    .about-hero-card {
        background: linear-gradient(135deg, var(--primary-color) 0%, #1565C0 100%);
    }
    
    .about-card {
        background: var(--dark-bg-secondary);
        border: 1px solid var(--dark-bg-tertiary);
        color: var(--dark-text-primary);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }
    
    .about-card:hover {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        border-color: var(--primary-color);
    }
    
    /* Dark mode for team section */
    .team-section {
        background: linear-gradient(135deg, var(--dark-bg-primary) 0%, var(--dark-bg-secondary) 100%);
    }
    
    .card-content h3 {
        color: var(--primary-color);
    }
    
    .card-content p,
    .card-content li {
        color: var(--dark-text-secondary);
    }
    
    .vision-card {
        background: linear-gradient(135deg, var(--dark-bg-secondary) 0%, #2d2d2d 100%);
        border: 2px solid var(--primary-color);
    }
    
    .about-text li {
        color: var(--dark-text-secondary);
    }
}

/* Team Hero Card */
.team-hero-card {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.team-hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.team-hero-icon {
    font-size: 4rem;
    opacity: 0.9;
    flex-shrink: 0;
}

.team-hero-content h3 {
    color: white;
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.team-hero-content p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.95;
}

/* Team Members */
.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.team-member {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #ff6b35, #f7931e);
    transition: height 0.3s ease;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.team-member:hover::before {
    height: 8px;
}

.member-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 4px solid var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: all 0.3s ease;
}

.team-member:hover .member-photo {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.member-role-icon {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.team-member:hover .member-role-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member:hover .member-img {
    transform: scale(1.05);
}

.member-info h4 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.team-member:hover .member-info h4 {
    color: #ff6b35;
}

.member-role {
    color: #ff6b35;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.member-bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: left;
}

/* Dark mode for team section */
@media (prefers-color-scheme: dark) {
    .team-hero-card {
        background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    }
    
    .team-member {
        background: var(--dark-bg-secondary);
        border: 1px solid var(--dark-bg-tertiary);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }
    
    .team-member:hover {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
        border-color: #ff6b35;
    }
    
    .member-info h4 {
        color: var(--primary-color);
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
        font-weight: 700;
        transition: color 0.3s ease;
    }
    
    .team-member:hover .member-info h4 {
        color: #ff6b35;
    }
    
    .member-role {
        color: #ff6b35;
        font-weight: 600;
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        background: linear-gradient(135deg, #ff6b35, #f7931e);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .member-bio {
        color: var(--dark-text-secondary);
        font-size: 0.95rem;
        line-height: 1.7;
        text-align: left;
    }
}

/* Programs Section */
.programs {
    padding: 80px 0;
    background-color: #f8f9fa;
}

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

.program-card {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.program-card:hover {
    transform: translateY(-5px);
}

.program-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.program-card h3 {
    color: #333;
    margin-bottom: 1rem;
}

.program-card p {
    margin-bottom: 1.5rem;
}

/* FTC Section */
.ftc-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.ftc-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 100 100"><defs><pattern id="tech" width="100" height="100" patternUnits="userSpaceOnUse"><rect x="20" y="20" width="10" height="10" fill="%23ddd" opacity="0.1"/><rect x="70" y="70" width="10" height="10" fill="%23ddd" opacity="0.1"/><rect x="45" y="5" width="5" height="5" fill="%23ddd" opacity="0.1"/><rect x="5" y="45" width="5" height="5" fill="%23ddd" opacity="0.1"/><rect x="90" y="25" width="5" height="5" fill="%23ddd" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23tech)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

/* FTC Hero Card */
.ftc-hero-card {
    background: linear-gradient(135deg, #2E5B8A 0%, #1E3A5F 100%);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 10px 30px rgba(46, 91, 138, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.ftc-hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.ftc-hero-logo {
    flex-shrink: 0;
}

.ftc-logo-img {
    max-width: 80px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.ftc-hero-card:hover .ftc-logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

.ftc-hero-content h3 {
    color: white;
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.ftc-tagline {
    font-size: 1.3rem;
    color: #ffd700;
    font-weight: 600;
    margin-bottom: 1rem;
    font-style: italic;
}

.ftc-hero-content p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.95;
}

/* Dark mode FTC logo */
@media (prefers-color-scheme: dark) {
    .ftc-logo-img {
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    }
    
    .ftc-logo-img:hover {
        filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
    }
}

.ftc-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.ftc-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.ftc-intro h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.ftc-intro p {
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.ftc-intro h3 {
    color: #333;
    margin-bottom: 1rem;
}

.ftc-intro p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.ftc-impact {
    margin-bottom: 4rem;
}

.ftc-impact h3 {
    text-align: center;
    color: #333;
    margin-bottom: 3rem;
}

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

.impact-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.impact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2E5B8A, #1E3A5F, #4A90E2);
    transition: height 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.impact-card:hover::before {
    height: 8px;
}

.impact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2E5B8A, #1E3A5F);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(46, 91, 138, 0.3);
}

.impact-card:hover .impact-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(46, 91, 138, 0.4);
}

.impact-content h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.impact-card:hover .impact-content h4 {
    color: #2E5B8A;
}

.impact-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

.ftc-team-info {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 3rem;
}

.ftc-team-info h3 {
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.ftc-team-info p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #666;
}

.ftc-team-info strong {
    color: var(--primary-color);
}

.ftc-competition {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
    border-left: 4px solid var(--primary-color);
}

.ftc-competition h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.ftc-competition p {
    margin-bottom: 0;
}

.ftc-cta {
    background-color: var(--primary-color);
    padding: 2.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    text-align: center;
    color: white;
}

.ftc-cta h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.ftc-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ftc-cta .btn {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.ftc-cta .btn:hover {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
    border-color: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ftc-cta .btn i {
    font-size: 0.9rem;
}

/* Media Section */
.media {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.media::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 100 100"><defs><pattern id="photos" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="%23ddd" opacity="0.1"/><circle cx="75" cy="75" r="2" fill="%23ddd" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="%23ddd" opacity="0.1"/><circle cx="10" cy="60" r="1" fill="%23ddd" opacity="0.1"/><circle cx="90" cy="40" r="1" fill="%23ddd" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23photos)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

/* Photos Hero Card */
.photos-hero-card {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.photos-hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite;
}

.photos-hero-icon {
    font-size: 4rem;
    opacity: 0.9;
    flex-shrink: 0;
}

.photos-hero-content h3 {
    color: white;
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.photos-hero-content p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.95;
}

.media-tabs {
    margin-top: 3rem;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
}

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

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.media-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.media-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4A90E2, #357ABD, #6BA3E8);
    transition: height 0.3s ease;
}

.media-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.media-item:hover::before {
    height: 8px;
}

.media-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.media-placeholder {
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.media-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-item:hover .media-image {
    transform: scale(1.05);
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.9), rgba(53, 122, 189, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 1.5rem;
}

.media-item:hover .media-overlay {
    opacity: 1;
}

.media-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.media-item:hover .media-badge {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.media-info {
    padding: 1.5rem;
    text-align: left;
}

.media-info h4 {
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.media-item:hover .media-info h4 {
    color: #4A90E2;
}

.media-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.media-source {
    display: inline-block;
    font-size: 0.8rem;
    color: #4A90E2;
    background: rgba(74, 144, 226, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.media-item:hover .media-source {
    background: rgba(74, 144, 226, 0.2);
    transform: translateY(-2px);
}

.publicity-content {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

/* Resources Section */
.resources {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.resource-card {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
}

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

.resource-card h3 {
    color: #333;
    margin-bottom: 1rem;
}

.resource-card p {
    margin-bottom: 1.5rem;
}

/* Sponsors Section */
.sponsors {
    padding: 80px 0;
}

/* NPO Section */
.npo {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.npo::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 100 100"><defs><pattern id="heart" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="3" fill="%23ddd" opacity="0.1"/><circle cx="75" cy="75" r="3" fill="%23ddd" opacity="0.1"/><circle cx="50" cy="10" r="2" fill="%23ddd" opacity="0.1"/><circle cx="10" cy="60" r="2" fill="%23ddd" opacity="0.1"/><circle cx="90" cy="40" r="2" fill="%23ddd" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23heart)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

/* NPO Hero Card */
.npo-hero-card {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.npo-hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.npo-hero-icon {
    font-size: 4rem;
    opacity: 0.9;
    flex-shrink: 0;
}

.npo-hero-content h3 {
    color: white;
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.npo-hero-content p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.95;
}

.npo-content {
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.npo-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.npo-intro h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.npo-intro p {
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.npo-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.npo-info-card,
.npo-cta-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.npo-info-card::before,
.npo-cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #f7931e, #ff6b35);
    transition: height 0.3s ease;
}

.npo-info-card:hover,
.npo-cta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.npo-info-card:hover::before,
.npo-cta-card:hover::before {
    height: 8px;
}

.npo-card-icon {
    font-size: 2.5rem;
    color: #ff6b35;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.npo-info-card:hover .npo-card-icon,
.npo-cta-card:hover .npo-card-icon {
    color: #f7931e;
    transform: scale(1.1);
}

.npo-card-content h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.npo-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.npo-item i {
    color: #ff6b35;
    font-size: 1.2rem;
    width: 20px;
    transition: color 0.3s ease;
}

.npo-info-card:hover .npo-item i {
    color: #f7931e;
}

.npo-item span {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.npo-card-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.npo-card-content .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border: none;
    color: white;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.npo-card-content .btn:hover {
    background: linear-gradient(135deg, #f7931e, #ff6b35);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.npo-card-content .btn i {
    font-size: 0.9rem;
}

.sponsors-content {
    text-align: center;
    margin-top: 3rem;
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.sponsor-item {
    text-align: center;
}

.sponsor-placeholder {
    width: 150px;
    height: 100px;
    background-color: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: #ccc;
}

.sponsor-cta {
    background-color: #f8f9fa;
    padding: 3rem;
    border-radius: 12px;
    margin-top: 3rem;
}

.sponsor-cta h3 {
    color: #333;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.contact::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 100 100"><defs><pattern id="contact" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="2" fill="%23ddd" opacity="0.1"/><circle cx="70" cy="70" r="2" fill="%23ddd" opacity="0.1"/><circle cx="50" cy="15" r="1" fill="%23ddd" opacity="0.1"/><circle cx="15" cy="65" r="1" fill="%23ddd" opacity="0.1"/><circle cx="85" cy="35" r="1" fill="%23ddd" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23contact)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

/* Contact Hero Card */
.contact-hero-card {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 9s ease-in-out infinite;
}

.contact-hero-icon {
    font-size: 4rem;
    opacity: 0.9;
    flex-shrink: 0;
}

.contact-hero-content h3 {
    color: white;
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.contact-hero-content p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.95;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.contact-info h3,
.contact-form h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

/* Dark mode contact section */
@media (prefers-color-scheme: dark) {
    .contact {
        background-color: var(--dark-bg-secondary);
    }
    
    .contact-info h3,
    .contact-form h3 {
        color: var(--dark-text-primary);
    }
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
}

.contact-item span {
    color: var(--text-secondary);
}

/* Dark mode contact items */
@media (prefers-color-scheme: dark) {
    .contact-item span {
        color: var(--dark-text-secondary);
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form input,
.form textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--bg-tertiary);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form input::placeholder,
.form textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

.form input:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Dark mode form styles */
@media (prefers-color-scheme: dark) {
    .form input,
    .form textarea {
        background-color: var(--dark-bg-secondary);
        color: var(--dark-text-primary);
        border-color: var(--dark-bg-tertiary);
    }
    
    .form input::placeholder,
    .form textarea::placeholder {
        color: var(--dark-text-muted);
        opacity: 0.9;
    }
    
    .form input:focus,
    .form textarea:focus {
        background-color: var(--dark-bg-secondary);
        color: var(--dark-text-primary);
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
    }
}

/* Footer */
.footer {
    background-color: #2d2d2d;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #444;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #ccc;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

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

/* Safari-specific fixes for navigation */
@supports (-webkit-appearance: none) {
    .nav-link {
        -webkit-box-orient: horizontal;
        -webkit-line-clamp: 1;
        line-clamp: 1;
        overflow: hidden;
        white-space: nowrap;
        display: -webkit-flex;
        -webkit-align-items: center;
        align-items: center;
    }
    
    .nav-link i {
        -webkit-flex-shrink: 0;
        flex-shrink: 0;
    }
}

/* Chrome-specific fixes for text color persistence */
@supports (-webkit-appearance: none) and (not (-ms-ime-align: auto)) {
    .header .nav-link {
        color: var(--header-text-color) !important;
        -webkit-text-fill-color: var(--header-text-color) !important;
    }
    
    .header .logo-text {
        color: var(--primary-color) !important;
        -webkit-text-fill-color: var(--primary-color) !important;
    }
    
    /* Chrome dark mode form fixes */
    @media (prefers-color-scheme: dark) {
        .form input,
        .form textarea {
            -webkit-text-fill-color: var(--dark-text-primary) !important;
            color: var(--dark-text-primary) !important;
            background-color: var(--dark-bg-secondary) !important;
        }
        
        .form input::placeholder,
        .form textarea::placeholder {
            -webkit-text-fill-color: var(--dark-text-muted) !important;
            color: var(--dark-text-muted) !important;
        }
        
        .header .nav-link {
            -webkit-text-fill-color: var(--dark-text-primary) !important;
            color: var(--dark-text-primary) !important;
        }
    }
}

/* Force light mode for better contrast */
.force-light-mode {
    --header-bg: #ffffff !important;
    --header-text: #333333 !important;
    --header-shadow: rgba(0, 0, 0, 0.1) !important;
}

.force-light-mode .header {
    background-color: var(--header-bg) !important;
    box-shadow: 0 2px 10px var(--header-shadow) !important;
}

.force-light-mode .header .nav-link {
    color: var(--header-text) !important;
}

.force-light-mode .header .logo-text {
    color: var(--primary-color) !important;
}
