/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-brand {
    font-size: 1.1rem;
    font-weight: 600;
    color: #667eea;
    text-decoration: none;
}

.nav-brand:hover {
    color: #764ba2;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #667eea;
}

/* ========== ABOUT SECTION (Hero) ========== */
.about-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    margin-top: 60px; /* Account for fixed navbar */
}

.about-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 3rem 2.5rem;
    max-width: 600px;
    text-align: center;
}

.about-container h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #667eea;
}

.about-container .tagline {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.about-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.about-links a {
    text-decoration: none;
    color: white;
    background: #667eea;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    transition: background 0.3s ease;
    font-weight: 500;
}

.about-links a:hover {
    background: #764ba2;
}

/* ========== MAIN CONTENT ========== */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Category sections */
.category {
    margin-bottom: 3rem;
    scroll-margin-top: 80px; /* Offset for fixed navbar */
}

.category h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
    color: #333;
}

/* Widget grid - responsive */
.widget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Individual widget card */
.widget {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.widget:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Widget image */
.widget-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.widget-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Widget title (main link) */
.widget-title {
    display: block;
    padding: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.widget-title:hover {
    color: #667eea;
}

/* Widget content area */
.widget-content {
    padding: 1rem;
}

.widget-content p {
    margin-bottom: 0.75rem;
    color: #555;
}

/* Secondary links in widget */
.widget-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.widget-links li a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f0f0f0;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 0.875rem;
}

.widget-links li a:hover {
    background: #667eea;
    color: white;
}

/* ========== FOOTER ========== */
footer {
    text-align: center;
    padding: 2rem;
    background: white;
    border-top: 1px solid #ddd;
    color: #666;
}

footer a {
    color: #667eea;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
    .navbar {
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .about-section {
        padding: 5rem 1rem 3rem;
    }

    .about-container {
        padding: 2rem 1.5rem;
    }

    .about-container h1 {
        font-size: 2rem;
    }

    main {
        padding: 2rem 1rem;
    }

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