:root {
    --bg-color: #0B0E14;
    --bg-light: #151923;
    --bg-card: #1A1E29;
    --text-main: #FFFFFF;
    --text-muted: #9BA1A6;
    --primary: #4C51F7;
    --primary-hover: #5A60FF;
    --accent: #A555EC;
    --glass-bg: rgba(26, 30, 41, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
    --font-family: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    cursor: none; /* Hide default cursor */
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: difference;
}

.custom-cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s, opacity 0.3s;
}

.custom-cursor.active {
    width: 60px;
    height: 60px;
    background-color: rgba(255,255,255,1);
    mix-blend-mode: exclusion;
}

.custom-cursor-follower.active {
    opacity: 0;
}

/* Hide scrollbar for a cleaner look */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 84px;
    padding: 0 5%;
    background-color: rgba(11, 14, 20, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
    overflow: visible;
}

.logo {
    display: inline-flex;
    align-items: center;
    opacity: 0; /* Initial state for GSAP */
}
.logo-img {
    display: block;
    height: 130px;
    width: auto;
}

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

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}
.nav-links a.active {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 5px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.social-icons a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}
.social-icons a:hover {
    color: var(--text-main);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(76, 81, 247, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 81, 247, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-small {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}
.btn-outline-small:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.link-btn {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: gap 0.3s ease;
}
.link-btn:hover {
    gap: 0.75rem;
}

/* Typography */
.subtitle {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    padding: 0;
    overflow: hidden;
    background-color: var(--bg-color);
}

.hero-media {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-header-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-buttons-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-buttons-overlay .btn {
    position: absolute;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    white-space: nowrap;
    pointer-events: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* GSAP Initial States */
.hero-content h1, .hero-content p {
    opacity: 0;
    transform: translateY(30px);
}
/* Below this width the image shrinks too much for the overlay buttons to stay
   legible/tappable, so fall back to a normal stacked layout with real text. */
@media (max-width: 700px) {
    .hero {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .hero-media {
        order: 1;
        height: auto;
        aspect-ratio: 1370 / 625;
    }

    .hero-content.sr-only {
        order: 2;
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        padding: 2rem 5% 0;
        overflow: visible;
        clip: auto;
        white-space: normal;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.6rem;
    }

    .hero-buttons-overlay {
        order: 3;
        position: static;
        inset: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        padding: 1.5rem 5% 2.5rem;
    }

    .hero-buttons-overlay .btn {
        position: static;
        width: auto;
        height: auto;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

.hero h1 {
    font-family: 'Luckiest Guy', cursive;
    text-transform: uppercase;
    font-size: 5rem;
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: #fff;
    -webkit-text-stroke: 2px #0B0E14;
    text-shadow:
        3px 3px 0 #0B0E14,
        6px 6px 0 rgba(0, 0, 0, 0.35),
        0 10px 30px rgba(76, 81, 247, 0.4);
}

.highlight {
    background: linear-gradient(90deg, #4C51F7, #A555EC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 2px #0B0E14;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-img-container {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: transform 0.5s ease;
}

.hero-img-container:hover {
    transform: scale(1.05);
    z-index: 5;
}

.img-main {
    width: 300px;
    height: 450px;
    object-fit: cover;
    z-index: 3;
    position: relative;
    border: 2px solid rgba(255,255,255,0.1);
}

.img-secondary-1 {
    width: 200px;
    height: 350px;
    object-fit: cover;
    transform: translateY(20px) rotate(-5deg);
    opacity: 0.8;
}

.img-secondary-2 {
    width: 200px;
    height: 350px;
    object-fit: cover;
    transform: translateY(-20px) rotate(5deg);
    opacity: 0.8;
}

/* Games Section */
.games-section {
    padding: 5rem 5%;
    background-color: var(--bg-light);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 420px));
    gap: 1.5rem;
}

.game-card {
    background-color: #0A0A0C;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
}

.game-card:hover {
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.4);
}

/* Clips the cover zoom/hover effects to the card's rounded corners, while
   letting the mascot badge (a sibling of this wrapper) overflow the card. */
.game-tile-clip {
    border-radius: inherit;
    overflow: hidden;
}

/* Game Tile (eShop-style card) */
.game-tile-cover {
    position: relative;
}

.game-tile-cover img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.game-tile-body {
    padding: 1.1rem 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.game-tile-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFFFFF;
}

.game-tile-meta {
    font-size: 0.8rem;
    color: #9BA1A6;
}

.game-tile-body .badge {
    align-self: flex-start;
    margin-top: 0.25rem;
    background-color: var(--accent);
    color: #fff;
}

.game-tile-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-top: 0.4rem;
}

.game-tile-status {
    margin-top: 0.25rem;
}

.game-tile-status-text {
    display: flex;
    flex-direction: column;
    padding-right: 80px;
}

/* Sits outside .game-tile-clip so it can spill past the card's edge. */
.game-card .game-tile-mascot {
    position: absolute;
    top: 316px;
    right: -18px;
    width: 108px;
    height: 108px;
    object-fit: contain;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5));
    pointer-events: none;
}

.game-tile-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.game-tile-category {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #9BA1A6;
}

.game-tile-fav {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: #565C66;
    padding: 0;
    line-height: 1;
    transition: color 0.25s ease, transform 0.25s ease;
}
.game-tile-fav:hover {
    color: #FF4D6D;
    transform: scale(1.15);
}
.game-tile-fav.active {
    color: #FF4D6D;
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.game-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.game-card:hover img {
    transform: scale(1.08);
}

.card-content {
    padding: 1.5rem;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.game-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.game-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.badge {
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-available {
    background-color: rgba(165, 85, 236, 0.2);
    color: #c988ff;
}

.badge-upcoming {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(5px);
}

.absolute-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.dark-card .card-content {
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.8));
    position: absolute;
    bottom: 0;
    width: 100%;
}
.dark-card img {
    height: 350px;
}

/* Features */
.features-section {
    padding: 4rem 5%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    background-color: var(--bg-color);
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--primary);
    background-color: rgba(76, 81, 247, 0.1);
    padding: 1rem;
    border-radius: 12px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease;
}

.feature:hover .feature-icon {
    transform: scale(1.15) rotate(5deg) translateY(-5px);
    background-color: rgba(76, 81, 247, 0.2);
}

.feature-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* GSAP Feature Initial State */
.feature {
    opacity: 0;
    transform: translateY(20px);
}

/* About Section */
.news-section {
    padding: 5rem 5%;
    display: grid;
    justify-items: center;
    background-color: var(--bg-light);
    border-top: 1px solid var(--glass-border);
}

.news-section .news-widget {
    width: 100%;
    max-width: 600px;
}

.news-widget {
    background-color: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.news-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    opacity: 0; /* GSAP Initial state */
    transform: translateX(20px);
}

.news-item:hover {
    transform: translateX(10px);
}

.news-item-img-wrapper {
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
}

.news-item img {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item:hover img {
    transform: scale(1.1);
}

.news-info h5 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.news-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.news-info .date {
    font-size: 0.75rem;
    color: var(--primary);
}

/* Comments Section */
.comments-section {
    padding: 5rem 5%;
    background-color: var(--bg-color);
    border-top: 1px solid var(--glass-border);
}

.comments-wrap {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.account-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
}

.account-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.account-setup {
    width: 100%;
}

.account-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.account-tab {
    background: none;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.account-tab.active {
    color: var(--text-main);
    border-color: var(--primary);
    background-color: rgba(76, 81, 247, 0.15);
}

.account-error {
    color: #ff6b7a;
    font-size: 0.85rem;
    margin-top: 0.6rem;
}

.account-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.account-form input {
    flex: 1 1 200px;
    background-color: var(--bg-light);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.7rem 1rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
}
.account-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.account-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    text-transform: uppercase;
    object-fit: cover;
}

.account-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.account-info strong {
    font-size: 1rem;
}
.account-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.account-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

.google-btn-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    min-height: 40px;
}

.account-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-bottom: 1rem;
}
.account-divider::before,
.account-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.profile-edit {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
}

.account-avatar-wrap {
    position: relative;
}
.account-avatar-wrap .account-avatar {
    width: 84px;
    height: 84px;
    font-size: 1.6rem;
}

.account-avatar-edit {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--bg-card);
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s ease;
}
.account-avatar-edit:hover {
    background: var(--primary-hover);
}

.profile-edit .account-form {
    width: 100%;
    justify-content: center;
}
.profile-edit .account-form input {
    text-align: center;
}

.profile-edit-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    width: 100%;
}

.crop-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1.5rem;
}

.crop-dialog {
    background-color: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    width: min(90vw, 340px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.crop-dialog h3 {
    font-size: 1.1rem;
}

.crop-viewport {
    width: 260px;
    height: 260px;
    max-width: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: #000;
    cursor: grab;
    touch-action: none;
}

.crop-viewport.dragging {
    cursor: grabbing;
}

.crop-image {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.crop-zoom {
    width: 100%;
}

.crop-actions {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    justify-content: flex-end;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.comment-form[hidden] {
    display: none;
}

.comment-form textarea {
    resize: vertical;
    min-height: 90px;
    background-color: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
}
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.comment-form .btn {
    align-self: flex-end;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-item {
    display: flex;
    gap: 0.9rem;
    background-color: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1rem 1.25rem;
}

.comment-item .account-avatar {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
}

.comment-body {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 0.3rem;
}
.comment-header strong {
    font-size: 0.92rem;
}
.comment-header span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.comment-delete {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.2rem;
    transition: color 0.2s ease;
}
.comment-delete:hover {
    color: #ff5c5c;
}
.comment-delete:disabled {
    opacity: 0.5;
    cursor: default;
}

.comment-body p {
    font-size: 0.92rem;
    color: var(--text-muted);
    word-break: break-word;
}

.comments-empty {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem 0;
}

/* About Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-color);
    z-index: 1000;
}

.modal-overlay.active {
    display: block;
}

.modal-box {
    background-color: var(--bg-color);
    border: none;
    border-radius: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    overflow-y: auto;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    animation: modalPop 0.3s ease;
}

@keyframes modalPop {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.modal-content {
    padding: 4rem 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-content h2 {
    font-size: 3rem;
}

.modal-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 2;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .modal-box {
        grid-template-columns: 1fr;
        grid-template-rows: 40vh auto;
        height: auto;
        min-height: 100vh;
    }
    .modal-image img {
        height: 40vh;
    }
    .modal-content {
        padding: 2.5rem 1.5rem;
    }
    .modal-content h2 {
        font-size: 2rem;
    }
    .modal-close {
        top: 1rem;
        right: 1rem;
    }
}

/* Footer */
footer {
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    background-color: var(--bg-color);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.footer-links a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .features-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-section {
        grid-template-columns: 1fr;
    }
    .nav-links, .social-icons {
        display: none;
    }
    footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
