/* 
 * CircuitStart.org Styles
 * Based on logo colors: blue (#2b96d3), dark gray (#333), and black (#000)
 */

/* Base Styles */
:root {
    --primary-color: #2b96d3; /* Blue from logo */
    --primary-dark: #1e7cb2; /* Darker blue for hover effects */
    --secondary-color: #333; /* Dark gray from logo */
    --bg-color: #000; /* Black from logo background */
    --text-color: #fff;
    --light-gray: #f5f5f5;
    --medium-gray: #ddd;
    --header-bg: #1a1a1a; /* Lighter background for header */
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1.5rem;
    font-weight: 700;
}

h1 {
    font-size: 3rem;
}

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

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1.1rem;
}

.primary-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    padding: 0.8rem 1.5rem;
}

.primary-btn:hover {
    background-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
}

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

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Header and Navigation */
header {
    background-color: var(--header-bg);
    padding: 2rem 0;
    position: relative;
}

nav.container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 3rem;
    gap: 3rem;
}

.logo {
    margin-bottom: 0;
    flex: 0 0 350px;
}

.logo img {
    max-height: 250px;
    width: auto;
}

.header-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.language-selector {
    margin-left: auto;
}

.language-selector select {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    font-size: 1rem;
    cursor: pointer;
}

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

.hero {
    text-align: right;
    padding: 0;
}

.hero h1 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: 0;
}

.hero-cta {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Mission Section */
.mission-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #222 100%);
}

.mission-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.mission-text {
    flex: 1;
    min-width: 300px;
}

.mission-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Programs Section */
.programs-section {
    padding: 5rem 0;
    background-color: var(--bg-color);
}

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

.card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.card-icon {
    margin-bottom: 1.5rem;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.card ul {
    padding-left: 1.5rem;
}

.card li {
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #111 0%, var(--secondary-color) 100%);
    text-align: center;
}

.contact-content {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.contact-email {
    margin-bottom: 2rem;
}

.email-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-weight: 500;
    font-size: 1.1rem;
}

.email-link:hover {
    background-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.social-link:hover {
    background-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: #111;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
    display: flex;
    justify-content: center;
}

.footer-logo img {
    max-height: 100px;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

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

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

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

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    nav.container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .logo {
        flex: 0 0 auto;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .logo img {
        max-height: 180px;
    }

    .header-content {
        text-align: center;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .language-selector {
        margin-left: 0;
    }

    .hero {
        text-align: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
    
    .mission-content,
    .contact-content,
    .footer-content {
        flex-direction: column;
    }

    .program-cards {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        text-align: center;
    }

    .social-links {
        flex-wrap: wrap;
    }

    .btn {
        padding: 0.8rem 1.5rem;
    }

    .contact-email {
        margin-bottom: 1.5rem;
    }

    .email-link {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
} 