:root {
    --primary: #1a1a2e;
    --accent: #0f3460;
    --highlight: #e94560;
    --light: #f4f7f6;
    --dark: #16213e;
    --text-main: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

body { line-height: 1.6; color: var(--text-main); background-color: var(--light); overflow-x: hidden; display: flex; flex-direction: column; min-height: 100vh;}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    min-height: 8vh;
    background: var(--primary);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.logo { font-size: 1.5rem; font-weight: bold; letter-spacing: 2px; }

.nav-links {
    display: flex;
    justify-content: space-between;
    width: 45%;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

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

/* Main Content Area */
main { flex: 1; }

/* Hero Section (Index Page) */
.hero {
    height: 92vh;
    background: linear-gradient(rgba(26, 26, 46, 0.85), rgba(15, 52, 96, 0.85)), url('https://images.unsplash.com/photo-1532094349884-543bc11b234d?auto=format&fit=crop&w=1920&q=80') center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-content h1 { font-size: 4rem; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 3px;}
.hero-content p { font-size: 1.5rem; margin-bottom: 20px; font-weight: 300;}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--highlight);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin: 5px;
    transition: background 0.3s;
}
.btn:hover { background: #d03b55; }

/* General Page Layouts */
.page-header {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}
.page-header h1 { font-size: 2.5rem; letter-spacing: 1px; }

.container { padding: 4rem 5%; max-width: 1200px; margin: auto; }

/* Cards & Grids */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-5px); }
.card h3 { color: var(--accent); margin-bottom: 15px; border-bottom: 2px solid var(--highlight); padding-bottom: 5px; display: inline-block;}
.card i { font-size: 2.5rem; color: var(--highlight); margin-bottom: 1rem; }

.tags span {
    background: var(--dark);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 4px 2px;
    display: inline-block;
}

/* Lists */
.list-group { list-style: none; margin-top: 10px; }
.list-group li { margin-bottom: 10px; padding-left: 25px; position: relative; }
.list-group li::before {
    content: '\f105'; /* FontAwesome arrow */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--highlight);
}

/* Footer */
footer { text-align: center; padding: 20px; background: var(--dark); color: white; }

/* Mobile Menu */
.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background: white; margin: 5px; transition: all 0.3s ease; }

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0;
        height: 92vh;
        top: 8vh;
        background-color: var(--primary);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
    }
    .nav-links li { margin: 2rem 0; }
    .burger { display: block; }
    .hero-content h1 { font-size: 2.5rem; }
}
.nav-active { transform: translateX(0%); }
.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
.toggle .line2 { opacity: 0; }
.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }