/* === styles.css === */

*,
*::before,
*::after {
box-sizing: border-box;
}

/* ... (General body styles remain the same) ... */
* { margin: 0; padding: 0; }

/* --- Root Variables and General Styles --- */
:root {
    --bg-dark: #121212;
    --bg-light: #1E1E1E;
    --text-primary: #E0E0E0;
    --text-secondary: #B3B3B3;
    --accent-primary: #4A90E2;
    --accent-hover: #5A9DEF;
    --border-color: #333333;
    --header-height: 80px;
}

/* ... (General body styles remain the same) ... */
* {margin: 0; padding: 0; }
body { font-family: 'Montserrat', sans-serif; background-color: var(--bg-dark); color: var(--text-primary); line-height: 1.6; }


/* --- Header --- */
.main-header {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    background-color: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000; /* Increased z-index */
}

/* MODIFICATION: Logo container styles */
.logo-container {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: 'Roboto Slab', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.3s ease;
    font-weight: bold;
}

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

/* MODIFICATION: Hamburger Menu Styles (initially hidden) */
.hamburger-menu {
    display: none; /* Hidden on larger screens */
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001; /* Above the header background */
    padding: 10px;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px 0;
    border-radius: 3px;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Animation for hamburger to 'X' */
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* ... (Main Content Grid and Card styles remain the same) ... */
.content-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); grid-auto-rows: 250px; gap: 1.5rem; padding: 1.5rem; }
.card { background-color: var(--bg-light); border: 1px solid var(--border-color); border-radius: 8px; transition: transform 0.3s ease, box-shadow 0.3s ease; display: grid; grid-template-rows: subgrid; grid-row: span 1; padding: 1.5rem; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); }
.card-span-row-2 { grid-row: span 2; }
.card-span-col-2 { grid-column: span 2; }
.card-header h3 { font-family: 'Roboto Slab', serif; color: var(--accent-primary); margin-bottom: 0.5rem; }
.card-body { color: var(--text-secondary); }
.card-footer { margin-top: 1rem; align-self: end; }
.btn { display: inline-block; background-color: var(--accent-primary); color: #fff; padding: 0.6rem 1.2rem; border-radius: 4px; text-decoration: none; font-weight: bold; transition: background-color 0.3s ease; }
.btn:hover { background-color: var(--accent-hover); }


/* ... (Footer styles remain the same) ... */
.main-footer { padding: 2rem; background-color: var(--bg-light); border-top: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-info a { color: var(--text-secondary); text-decoration: none; }
.footer-info a:hover { text-decoration: underline; }
.social-links a { color: var(--text-secondary); margin-left: 1.5rem; font-size: 1.5rem; transition: color 0.3s ease; }
.social-links a:hover { color: var(--accent-primary); }


/* --- MODIFICATION: Responsive Breakpoint for Mobile Navigation --- */

@media (max-width: 820px) {
    .card-span-col-2 {
        grid-column: span 1;
    }
}

/* New breakpoint for hamburger menu */
@media (max-width: 550px) {
    .hamburger-menu {
        display: block; /* Show the hamburger icon */
    }

    .main-nav {
        /* Mobile navigation panel styles */
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-dark);
        
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        /* Hide it off-screen by default */
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
    }

    .main-nav.active {
        transform: translateX(0); /* Slide it into view */
    }

    .main-nav a {
        margin: 1.5rem 0;
        font-size: 1.5rem; /* Make links larger for mobile */
    }
}