:root {
    --footer-height: 200px;
    --footer-margin: 4rem;
    --header-height: 85px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    min-height: calc(100vh - var(--header-height) - var(--footer-height) - var(--footer-margin));
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: -5vw;
    width: 110vw;
    height: 105vh;
    background:
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(120, 255, 198, 0.2) 0%, transparent 50%);
    animation: float 20s infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(3deg); }
    66% { transform: translateY(20px) rotate(-3deg); }
}

header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid rgba(138, 43, 226, 0.5);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(135deg, #8a2be2, #ff69b4, #00ffff);
    color: transparent;
    background-clip: text;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.3), rgba(255, 105, 180, 0.3));
    border: 2px solid rgba(138, 43, 226, 0.5);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.4);
    border-color: rgba(138, 43, 226, 0.8);
}

.nav-btn:hover::before {
    left: 100%;
}

.hero-section {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #8a2be2, #ff69b4, #00ffff);
    color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #b8b8b8;
    margin-bottom: 2rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 315px);
    gap: 2rem;
    margin-top: 3rem;
    justify-content: center;
}

.game-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid rgba(138, 43, 226, 0.3);
    position: relative;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(255, 105, 180, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(138, 43, 226, 0.3);
    border-color: rgba(138, 43, 226, 0.8);
}

.game-card:hover::before {
    opacity: 1;
}

.game-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #2d1b69, #11998e, #38ef7d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.game-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.game-info {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.game-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.game-description {
    color: #b8b8b8;
    font-size: 0.9rem;
    line-height: 1.4;
}

.game-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 2rem 0;
    margin-top: var(--footer-margin);
    border-top: 2px solid rgba(138, 43, 226, 0.5);
    bottom: 0;
    height: var(--footer-height);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.footer-text {
    color: #b8b8b8;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-link {
    color: #8a2be2;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ff69b4;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(255, 105, 180, 0.2));
    border: 2px solid rgba(138, 43, 226, 0.4);
    border-radius: 50%;
    color: #8a2be2;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.3), rgba(255, 105, 180, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.4);
    border-color: rgba(138, 43, 226, 0.8);
    color: #ff69b4;
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    height: 75%;
    width: auto;
}

.social-icon:hover svg {
    transform: scale(1.1);
}

.social-icon[aria-label="Discord"]:hover {
    color: #5865f2;
    border-color: rgba(88, 101, 242, 0.6);
}

.social-icon[aria-label="Discord"]:hover::before {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.2), rgba(114, 137, 218, 0.2));
}

.social-icon[aria-label="GitHub"]:hover {
    color: #424953;
    border-color: rgb(63, 69, 78);
}

.social-icon[aria-label="GitHub"]:hover::before {
    background: linear-gradient(135deg, rgb(36, 41, 46), rgb(43, 49, 55));
}

.social-icon[aria-label="YouTube"]:hover {
    color: #FF0000;
    border-color: rgba(255, 0, 0, 0.6);
}

.social-icon[aria-label="YouTube"]:hover::before {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2), rgba(255, 0, 0, 0.3));
}

.social-icon[aria-label="Steam"]:hover {
    color: #c5d3de;
    border-color: rgb(23, 26, 33);
}

.social-icon[aria-label="Steam"]:hover::before {
    background: linear-gradient(135deg, rgb(27, 40, 56), rgb(42, 70, 93));
}

/* --------- FORMS -------- */

.page-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #8a2be2, #ff69b4, #00ffff);
    color: transparent;
    background-clip: text;
}

.page-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #b8b8b8;
    margin-bottom: 3rem;
    max-width: 600px;
    justify-self: center;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    padding: 2.5rem;
    border: 2px solid rgba(138, 43, 226, 0.3);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #ffffff;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: rgba(138, 43, 226, 0.8);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #888;
}

.form-select option {
    background: #1a1a2e;
    color: #ffffff;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.required {
    color: #ff69b4;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, rgba(179, 63, 255, 0.4), rgba(255, 36, 154, 0.4));
    border: 2px solid rgba(138, 43, 226, 0.5);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.4);
    border-color: rgba(138, 43, 226, 0.8);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #b8b8b8;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    transform: translateY(-2px) scale(1.02);
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.success-message {
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid rgba(0, 255, 0, 0.3);
    color: #00ff88;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 2rem;
    display: block;
}

.error-message {
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid rgba(255, 0, 0, 0.3);
    color: #ff6b6b;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 2rem;
    display: block;
}

/* -------- Blog Stuff ---------- */

.blog-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-post {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(138, 43, 226, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    min-height: 200px;
    position: relative;
    margin-bottom: 2rem;
}

.blog-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(255, 105, 180, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.blog-post:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(138, 43, 226, 0.3);
    border-color: rgba(138, 43, 226, 0.6);
}

.blog-post:hover::before {
    opacity: 1;
}

.blog-image {
    width: 315px;
    height: 250px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    position: relative;
}

/*.blog-image::after {*/
/*    content: '';*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    right: 0;*/
/*    bottom: 0;*/
/*    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(255, 105, 180, 0.1));*/
/*    opacity: 0;*/
/*    transition: opacity 0.3s ease;*/
/*}*/

.blog-post:hover .blog-image::after {
    opacity: 1;
}

.blog-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    position: relative;
    z-index: 1;
}

.blog-header {
    flex: 1;
}

.blog-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #8a2be2, #ff69b4);
    color: transparent;
    background-clip: text;
}

.blog-subtitle {
    font-size: 1.1rem;
    color: #b8b8b8;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.blog-date {
    color: #8a2be2;
    font-size: 0.9rem;
    font-weight: 600;
    align-self: flex-end;
}

.empty-state {
    text-align: center;
    padding: 0.5rem 2rem;
    color: #b8b8b8;
}

.empty-state h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

/* ----------- Modal for blogs --------- */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid rgba(138, 43, 226, 0.5);
    border-radius: 20px;
    width: 90%;
    max-width: 1200px;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px) scale(0.9); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.modal-title {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(135deg, #8a2be2, #ff69b4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 2rem;
}

.close-btn {
    background: none;
    border: 2px solid rgba(138, 43, 226, 0.5);
    color: #ff69b4;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.close-btn:hover {
    background: rgba(138, 43, 226, 0.3);
    transform: translateY(-5px) scale(1.1);
}

.article-btn {
    background: none;
    border: 2px solid rgba(138, 43, 226, 0.5);
    color: #ff69b4;
    font-size: 1rem;
    font-weight: 600;
    width: 150px;
    height: 40px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    text-decoration: none;
}

.article-btn:hover {
    background: rgba(138, 43, 226, 0.3);
    transform: translateY(-5px) scale(1.1);
}

.modal-body {
    padding: 2rem;
    color: #ffffff;
    line-height: 1.6;
}

.modal-body h1, .modal-body h2, .modal-body h3 {
    color: #ff69b4;
    margin: 1.5rem 0 1rem 0;
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1rem 0;
}

.modal-body a {
    color: #8a2be2;
    text-decoration: none;
}

.modal-body a:hover {
    color: #ff69b4;
}

/* --------- Blog Subpages------------ */

.blog-subpage {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 0 2rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    border: 2px solid rgba(138, 43, 226, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.blog-subpage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.05), rgba(255, 105, 180, 0.05));
    border-radius: 20px;
    pointer-events: none;
    z-index: -1;
}

.blog-subpage h1 {
    color: transparent;
    font-size: 3rem;
    font-weight: bold;
    margin: 0 0 3rem 0;
    text-align: center;
    background: linear-gradient(135deg, #8a2be2, #ff69b4, #00ffff);
    background-clip: text;
    line-height: 1.2;
    position: relative;
}

.blog-subpage h1::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(135deg, #8a2be2, #ff69b4);
    border-radius: 2px;
}

.blog-subpage h2 {
    color: #a134ff;
    font-size: 2rem;
    font-weight: 600;
    margin: 1rem 0 1.5rem 0;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid rgba(138, 43, 226, 0.3);
    position: relative;
}

.blog-subpage h3 {
    color: #ff69b4;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem 0;
}

.blog-subpage h4 {
    color: #00ffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
}

.blog-subpage h5 {
    color: #00d3d3;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 1.5rem 0 1rem 0;
}

.blog-subpage h6 {
    color: #00d0d0;
    font-size: 1rem;
    font-weight: 500;
    margin: 1rem 0 1rem 0;
}

.blog-subpage p {
    color: #e0e0e0;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.blog-subpage p:last-child {
    margin-bottom: 0;
}

.blog-subpage section {
    padding: 0.5rem 2.5rem;
    border-radius: 15px;
    position: relative;
}

.blog-subpage section:last-child {
    padding: 0.5rem 2.5rem 0rem 2.5rem;
}

.blog-subpage img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(138, 43, 226, 0.3);
}

.blog-subpage a {
    color: #8a2be2;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(138, 43, 226, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.blog-subpage a::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(135deg, #8a2be2, #ff69b4);
    transition: width 0.3s ease;
}

.blog-subpage a:hover {
    color: #ff69b4;
    border-bottom-color: transparent;
}

.blog-subpage a:hover::before {
    width: 100%;
}

/* ---------- Mobile view stuff ----------*/

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid rgba(138, 43, 226, 0.5);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.hamburger-btn:hover {
    border-color: rgba(138, 43, 226, 0.8);
    background: rgba(138, 43, 226, 0.1);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: linear-gradient(135deg, #8a2be2, #ff69b4);
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.hamburger-active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.hamburger-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

@media (max-width: 885px) {
    header{
        position: fixed;
        width: 100vw;
    }

    .header-container {
        position: relative;
    }

    .hamburger-btn {
        display: flex;
    }

    .mobile-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.925);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        padding-top: 80px;
    }

    .mobile-nav-open {
        transform: translateX(0);
    }

    .mobile-nav .nav-btn {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        width: 80%;
        max-width: 300px;
        text-align: center;
        border-radius: 15px;
        background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(255, 105, 180, 0.2));
        border: 2px solid rgba(138, 43, 226, 0.4);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        opacity: 0;
    }

    .mobile-nav .nav-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: left 0.5s;
    }

    .mobile-nav .nav-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(138, 43, 226, 0.3);
        border-color: rgba(138, 43, 226, 0.6);
    }

    .mobile-nav .nav-btn:hover::before {
        left: 100%;
    }

    /* Stagger animation for menu items */
    .mobile-nav-open .nav-btn {
        animation: slideInFromLeft 0.4s ease forwards;
    }

    .mobile-nav-open .nav-btn:nth-child(1) { animation-delay: 0.1s; }
    .mobile-nav-open .nav-btn:nth-child(2) { animation-delay: 0.2s; }
    .mobile-nav-open .nav-btn:nth-child(3) { animation-delay: 0.3s; }
    .mobile-nav-open .nav-btn:nth-child(4) { animation-delay: 0.4s; }

    @keyframes slideInFromLeft {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .mobile-nav .nav-btn {
        margin: 0;
    }

    /* -------- Blog stuff again ------- */
    main {
        padding-top: calc(4rem + var(--header-height));
    }

    .blog-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 315px));
        gap: 2rem;
        justify-content: center;
    }

    .blog-post {
        flex-direction: column;
        min-height: auto;
        max-width: 315px;
        margin-bottom: 0;
    }

    .blog-image {
        width: 100%;
        height: 250px;
    }

    .blog-content {
        padding: 1.5rem;
        min-height: 180px;
    }

    .blog-title {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .blog-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }

    .blog-date {
        font-size: 0.85rem;
        align-self: flex-start;
        margin-top: auto;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .page-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .empty-state {
        padding: 2rem 1rem;
        grid-column: 1 / -1;
    }

    .empty-state h3 {
        font-size: 1.5rem;
    }

    .empty-state p {
        font-size: 0.95rem;
    }

    .modal-content {
        width: 95%;
        max-height: 95%;
    }

    .modal-header {
        padding: 1.5rem 1rem 1rem 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .modal-title {
        font-size: 1.5rem;
        margin-right: 0;
        width: calc(100% - 50px);
    }

    .article-btn {
        order: 3;
        width: 100%;
        margin-top: 0.5rem;
    }

    .close-btn {
        order: 2;
        position: absolute;
        top: 1.5rem;
        right: 1rem;
    }

    .modal-body {
        padding: 1.5rem 1rem;
    }

    .blog-subpage {
        padding: 1.5rem 1rem 0 1rem;
        margin: 1rem 0.5rem;
    }

    .blog-subpage h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .blog-subpage h1::after {
        width: 60%;
    }

    .blog-subpage h2 {
        font-size: 1.5rem;
        margin: 1.5rem 0 1rem 0;
    }

    .blog-subpage section {
        padding: 0.5rem 1rem;
    }

    .blog-subpage section:last-child {
        padding: 0.5rem 1rem 0 1rem;
    }

    .blog-subpage p {
        font-size: 1rem;
        line-height: 1.6;
    }

    :root {
        --footer-height: 300px;
    }

    main {
        min-height: calc(100vh - var(--footer-height) - var(--footer-margin));
    }

    .btn-primary {
        min-width: 110px;
    }
}



@media (min-width: 886px) {
    .hamburger-btn {
        display: none !important;
    }

    .mobile-nav {
        position: static;
        width: auto;
        height: auto;
        background: none;
        backdrop-filter: none;
        flex-direction: row;
        justify-content: flex-end;
        transform: none;
        padding-top: 0;
    }
}