/*
 * AiTechSupply - Global Stylesheet
 * Designed for a modern, technical resource site focusing on AI.
 */

:root {
    --primary-color: #007acc; /* A strong, techy blue */
    --secondary-color: #2ecc71; /* Green for secondary actions/success */
    --background-light: #f4f7f9;
    --text-dark: #333;
    --card-bg: #ffffff;
    --border-color: #ddd;
}

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

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

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

/* ==================== Header & Nav ==================== */
#main-header {
    background-color: var(--text-dark);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

h1 a {
    color: #fff;
    text-decoration: none;
    font-size: 1.8em;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li a {
    color: #ccc;
    text-decoration: none;
    padding: 10px 15px;
    transition: color 0.3s, background-color 0.3s;
}

nav li a:hover, .active {
    color: var(--primary-color);
}

/* ==================== General Components ==================== */
.cta-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s, transform 0.1s;
    border: none;
    cursor: pointer;
}

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

.secondary {
    background-color: var(--secondary-color);
}
.secondary:hover {
    background-color: #28a745;
}


/* ==================== Layout Sections ==================== */
section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: var(--text-dark);
    color: white;
    padding: 100px 50px;
    text-align: center;
    margin-bottom: 40px;
}

.hero-section h2 {
    font-size: 3em;
    margin-bottom: 15px;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
    margin-bottom: 40px;
}

.resource-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.read-more {
    display: block;
    margin-top: 15px;
    color: var(--primary-color);
    text-decoration: none;
}


/* Latest Updates */
#latest-updates {
    background-color: #e9ecef; /* Light gray background for separation */
    padding: 60px 0;
}

.update-post {
    max-width: 700px;
    margin: 20px auto;
    padding: 25px;
    background-color: white;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Mission/Content Sections */
#mission p {
    max-width: 800px;
    margin: 15px auto 30px;
    text-align: center;
}

#contributors .team-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.member-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    text-align: center;
    width: 250px;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: #aaa;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #main-header .container {
        flex-direction: column;
        text-align: center;
    }
    nav ul {
        padding-top: 10px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-section h2 {
        font-size: 2em;
    }
}