﻿/* Existing :root, [data-theme="dark"], and other styles remain unchanged */
:root {
    /* Default Theme */
    --bg-primary: linear-gradient(to bottom, #e6f7ff, #fff0f5);
    --bg-header: linear-gradient(135deg, #ff6f61, #40c4ff);
    --bg-footer: #263238;
    --bg-hero: #fff;
    --bg-features: #f5f7fa;
    --text-primary: #222;
    --text-secondary: #555;
    --text-accent: #e91e63;
    --text-shadow: rgba(64, 196, 255, 0.5);
    --button-primary: #40c4ff;
    --button-secondary: #ffca28;
    --button-prank: linear-gradient(45deg, #ffeb3b, #ff4081);
    --shadow: rgba(0, 0, 0, 0.2);
    --card-bg: #fff;
    --accent: #ff4081;
}

[data-theme="dark"] {
    /* Dark Theme */
    --bg-primary: linear-gradient(to bottom, #1a1a1a, #2c2c2c);
    --bg-header: linear-gradient(135deg, #b71c1c, #0288d1);
    --bg-footer: #121212;
    --bg-hero: #2c2c2c;
    --bg-features: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-accent: #f06292;
    --text-shadow: rgba(2, 136, 209, 0.5);
    --button-primary: #0288d1;
    --button-secondary: #ffb300;
    --button-prank: linear-gradient(45deg, #ffb300, #f50057);
    --shadow: rgba(0, 0, 0, 0.4);
    --card-bg: #333;
    --accent: #f50057;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.8;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    transition: all 0.3s ease;
}

    body.nav-open {
        margin-left: 250px;
    }

/* Other existing styles for .parallax-bg, .container, etc., remain unchanged */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/neon_grid.jpg') repeat;
    background-size: 200px;
    z-index: -1;
    animation: parallax 20s linear infinite;
    opacity: 0.15;
}

@keyframes parallax {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 200px 200px;
    }
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

section, .main-header, .main-footer {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidenav {
    min-height: 100vh;
    width: 0;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    background: var(--bg-header);
    overflow-x: hidden;
    transition: width 0.3s ease;
    box-shadow: 4px 0 10px var(--shadow);
}

    .sidenav.open {
        width: 250px;
    }

.sidenav-content {
    padding: 60px 20px 20px;
    display: flex;
    flex-direction: column;
}

.sidenav-links {
    list-style: none;
    flex-grow: 1;
}

    .sidenav-links li {
        margin-bottom: 10px;
    }

    .sidenav-links a {
        display: flex;
        align-items: center;
        padding: 12px 16px;
        text-decoration: none;
        color: white;
        font-weight: 600;
        font-size: 1.1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

        .sidenav-links a:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateX(5px);
        }

    .sidenav-links .material-icons {
        margin-right: 12px;
        font-size: 1.4rem;
    }

.closebtn {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .closebtn:hover {
        transform: scale(1.2) rotate(90deg);
    }

.main-header {
    background: var(--bg-header);
    padding: 16px 0;
    box-shadow: 0 4px 12px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation-delay: 0.2s;
}

    .main-header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 16px;
    }

.menu-button {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    margin-right: 12px;
    transition: transform 0.3s ease;
}

    .menu-button:hover, .menu-button:focus {
        transform: scale(1.1);
        outline: none;
    }

    .menu-button.active {
        transform: scale(1.2) rotate(90deg);
    }

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: clamp(1.6rem, 3vw, 1.8rem);
    text-shadow: 2px 2px var(--text-shadow);
}

    .logo img {
        width: 48px;
        height: 48px;
        margin-right: 12px;
        transition: transform 0.5s ease;
    }

        .logo img:hover {
            transform: rotate(360deg);
        }

.cta-button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px var(--shadow);
    transition: all 0.3s ease;
}

    .cta-button:hover {
        background: #f50057;
        transform: translateY(-5px);
    }

.theme-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .theme-toggle:hover {
        transform: scale(1.2);
    }

.theme-icon {
    transition: transform 0.3s ease;
}

    .theme-icon.rotate {
        transform: rotate(360deg);
    }

.hero {
    background: var(--bg-hero);
    padding: 80px 0;
    text-align: center;
    border-radius: 16px;
    margin: 24px;
    box-shadow: 0 8px 24px var(--shadow);
    animation-delay: 0.4s;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--text-accent);
    margin-bottom: 24px;
    line-height: 1.3;
    text-shadow: 2px 2px var(--text-shadow);
    animation: bounceIn 1s ease;
    text-transform: uppercase;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    60% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

.subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.primary-button, .secondary-button, .prank-button {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.1rem);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow);
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.primary-button {
    background: linear-gradient(45deg, #40c4ff, #0288d1);
    color: #fff;
    animation-delay: 0.6s;
}

    .primary-button:hover, .primary-button:focus {
        background: linear-gradient(45deg, #0288d1, #40c4ff);
        transform: translateY(-3px);
        box-shadow: 0 6px 16px var(--shadow);
        outline: none;
    }

.secondary-button {
    background: linear-gradient(45deg, #ffca28, #ffb300);
    color: var(--text-primary);
    animation-delay: 0.8s;
}

    .secondary-button:hover, .secondary-button:focus {
        background: linear-gradient(45deg, #ffb300, #ffca28);
        transform: translateY(-3px);
        box-shadow: 0 6px 16px var(--shadow);
        outline: none;
    }

.prank-button {
    background: var(--button-prank);
    color: #fff;
    font-size: clamp(1.1rem, 2.5vw, 1.2rem);
    padding: 16px 32px;
    position: relative;
    overflow: hidden;
    animation: pulse 2s ease-in-out infinite, fadeIn 1s ease forwards;
    animation-delay: 1s;
    text-shadow: 1px 1px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
}

    .prank-button::before {
        content: '✨';
        position: absolute;
        font-size: 1.5rem;
        top: 10%;
        left: 10%;
        animation: sparkle 3s infinite;
        opacity: 0;
    }

    .prank-button::after {
        content: '✨';
        position: absolute;
        font-size: 1.5rem;
        bottom: 10%;
        right: 10%;
        animation: sparkle 3s infinite 1.5s;
        opacity: 0;
    }

    .prank-button:hover, .prank-button:focus {
        background: linear-gradient(45deg, #ffca28, #f50057);
        transform: scale(1.05);
        box-shadow: 0 8px 20px var(--shadow);
        outline: none;
    }

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes sparkle {
    0% {
        opacity: 0;
        transform: translate(0, 0);
    }

    50% {
        opacity: 0.8;
        transform: translate(15px, 15px);
    }

    100% {
        opacity: 0;
        transform: translate(30px, 30px);
    }
}

.hero-image {
    margin-top: 48px;
}

.image-placeholder {
    width: clamp(320px, 40vw, 400px);
    height: clamp(213px, 26.67vw, 266px);
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px var(--shadow);
    border: 2px solid var(--accent);
}

    .image-placeholder img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.features {
    background: var(--bg-features);
    padding: 80px 0;
    text-align: center;
    animation-delay: 0.6s;
}

    .features h2 {
        font-size: clamp(2rem, 4vw, 2.8rem);
        color: var(--accent);
        margin-bottom: 24px;
        text-shadow: 2px 2px var(--text-shadow);
    }

.section-description {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-weight: 400;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 6px 16px var(--shadow);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

    .feature-card:nth-child(1) {
        animation-delay: 0.8s;
    }

    .feature-card:nth-child(2) {
        animation-delay: 1s;
    }

    .feature-card:nth-child(3) {
        animation-delay: 1.2s;
    }

    .feature-card:nth-child(4) {
        animation-delay: 1.4s;
    }

    .feature-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 24px var(--shadow);
    }

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    animation: wobble 2s infinite;
}

@keyframes wobble {
    0% {
        transform: rotate(0deg);
    }

    15% {
        transform: rotate(4deg);
    }

    30% {
        transform: rotate(-4deg);
    }

    45% {
        transform: rotate(2deg);
    }

    60% {
        transform: rotate(-2deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.feature-card h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    color: var(--text-accent);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 400;
}

.solutions {
    padding: 80px 0;
    text-align: center;
    animation-delay: 0.8s;
}

.solutions-tabs {
    max-width: 800px;
    margin: 0 auto;
}

.tab-header {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 12px 28px;
    border: none;
    background: var(--button-secondary);
    color: var(--text-primary);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.1rem);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

    .tab-button:nth-child(1) {
        animation-delay: 1s;
    }

    .tab-button:nth-child(2) {
        animation-delay: 1.2s;
    }

    .tab-button:nth-child(3) {
        animation-delay: 1.4s;
    }

    .tab-button.active, .tab-button:hover, .tab-button:focus {
        background: var(--accent);
        color: #fff;
        transform: scale(1.05);
        box-shadow: 0 4px 12px var(--shadow);
        outline: none;
    }

.tab-content {
    display: none;
    background: var(--card-bg);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 6px 16px var(--shadow);
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

    .tab-content.active {
        display: block;
    }

    .tab-content h3 {
        font-size: clamp(1.5rem, 3vw, 1.8rem);
        color: var(--accent);
        margin-bottom: 16px;
    }

    .tab-content p {
        color: var(--text-secondary);
        margin-bottom: 16px;
        font-size: clamp(0.9rem, 2vw, 1rem);
        font-weight: 400;
    }

    .tab-content ul {
        list-style: none;
        text-align: left;
        max-width: 400px;
        margin: 0 auto;
    }

    .tab-content li {
        padding: 8px 0;
        color: var(--text-primary);
        font-size: clamp(0.9rem, 2vw, 1rem);
    }

.main-footer {
    background: var(--bg-footer);
    color: #fff;
    padding: 48px 0;
    animation-delay: 1s;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 32px;
}

.footer-column h4 {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    color: var(--accent);
    margin-bottom: 16px;
}

.footer-column ul {
    list-style: none;
}

.footer-column a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 6px 0;
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: all 0.3s ease;
}

    .footer-column a:hover, .footer-column a:focus {
        transform: translateX(8px);
        color: var(--button-primary);
        outline: none;
    }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.social-links a {
    color: #fff;
    margin-left: 20px;
    text-decoration: none;
    font-size: clamp(1rem, 2vw, 1.1rem);
    transition: all 0.3s ease;
}

    .social-links a:hover, .social-links a:focus {
        transform: scale(1.2);
        color: var(--accent);
        outline: none;
    }

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.loading-text {
    color: var(--accent);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
    text-shadow: 2px 2px var(--text-shadow);
    text-transform: uppercase;
    animation: pulseText 1s infinite;
    max-width: 90%;
    line-height: 1.3;
}

@keyframes pulseText {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.loader-image {
    width: 28vmin;
    height: 28vmin;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Video Player Styles */
.rickroll-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.video-player {
    background: var(--bg-footer);
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 8px 24px var(--shadow);
    border: 2px solid var(--accent);
    max-width: 900px;
    width: 85%;
    position: relative;
    overflow: visible; /* Changed to allow buttons to be clickable outside bounds */
    display: flex;
    flex-direction: column;
    z-index: 1010; /* Above rickroll-overlay */
}

    .video-player h3 {
        color: #fff;
        font-size: clamp(1.3rem, 2.5vw, 1.6rem);
        margin-bottom: 12px;
        text-align: center;
        text-shadow: 1px 1px var(--accent);
        text-transform: uppercase;
    }

    .video-player video {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 12px;
        z-index: 5; /* Below controls but above background */
    }

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10; /* Below controls but above video */
    pointer-events: none; /* Allow clicks to pass through */
}

.video-player.paused .play-overlay {
    opacity: 1;
    pointer-events: auto; /* Allow clicking to play */
}

.play-overlay .material-icons {
    font-size: 5rem;
    color: #fff;
    cursor: pointer;
}

.controls-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0.2;
    transition: opacity 0.3s ease;
    z-index: 15; /* Above play-overlay */
    pointer-events: none; /* Prevent container from blocking clicks */
}

.video-player:hover .controls-container,
.video-player:focus-within .controls-container {
    opacity: 1;
}

.controls-container.hidden {
    opacity: 0;
    pointer-events: none;
}

.controls-container > * {
    pointer-events: auto; /* Ensure buttons and sliders are clickable */
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
    z-index: 15; /* Above play-overlay */
    pointer-events: none;
}

    .player-controls > * {
        pointer-events: auto;
    }

    .player-controls button {
        background: var(--accent);
        border: none;
        color: #fff;
        padding: 10px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 1.4rem;
        transition: all 0.3s ease;
    }

        .player-controls button:hover,
        .player-controls button:focus {
            background: #f50057;
            transform: scale(1.1);
            outline: none;
        }

    .player-controls input[type="range"] {
        width: 120px;
        accent-color: var(--button-secondary);
        cursor: pointer;
    }

.progress-wrapper {
    position: relative;
    width: 100%;
    z-index: 20; /* Above play-overlay and controls-container */
}

.progress-bar {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;
    pointer-events: auto;
}

    .progress-bar:hover {
        height: 8px;
    }

    .progress-bar::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 12px;
        height: 12px;
        background: #fff;
        border-radius: 50%;
    }

    .progress-bar::-moz-range-thumb {
        width: 12px;
        height: 12px;
        background: #fff;
        border-radius: 50%;
    }

.thumbnail-preview {
    position: absolute;
    bottom: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    display: none;
    pointer-events: none;
    z-index: 25; /* Above all controls */
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 20; /* Above play-overlay */
}

    .control-buttons button {
        background: none;
        border: none;
        color: #fff;
        font-size: 1.5rem;
        cursor: pointer;
        transition: transform 0.2s ease;
    }

        .control-buttons button:hover,
        .control-buttons button:focus {
            transform: scale(1.1);
            text-shadow: 0 0 5px #fff;
            outline: none;
        }

        .control-buttons button:active {
            transform: scale(0.95);
        }

.volume-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.volume-slider {
    width: 80px;
    -webkit-appearance: none;
    height: 5px;
    background: #444;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    pointer-events: auto;
}

    .volume-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 12px;
        height: 12px;
        background: #fff;
        border-radius: 50%;
    }

    .volume-slider::-moz-range-thumb {
        width: 12px;
        height: 12px;
        background: #fff;
        border-radius: 50%;
    }

.time-display {
    color: #fff;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
}

.player-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 30; /* Above all elements */
}

    .player-close:hover,
    .player-close:focus {
        background: #00e676;
        transform: scale(1.1);
        outline: none;
    }

.play-pause-btn, .mute-btn, .fullscreen-btn {
    pointer-events: auto;
    z-index: 20; /* Above play-overlay */
}

/* Other existing styles remain unchanged */
.fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent);
    color: #fff;
    padding: 15px;
    border-radius: 50px;
    box-shadow: 0 4px 8px var(--shadow);
    cursor: pointer;
    font-size: 1rem;
    animation: pulse 1.5s infinite;
}

.marquee {
    background: var(--bg-footer);
    color: var(--accent);
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    text-transform: uppercase;
    font-size: clamp(1rem, 2vw, 1.1rem);
}

    .marquee span {
        display: inline-block;
        animation: marquee 20s linear infinite;
    }

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Page-specific styles */
@media (max-width: 768px) {
    body.nav-open {
        margin-left: 0;
    }

    .hero h1 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .player-controls button {
        padding: 8px;
        font-size: 1.2rem;
    }

    .player-controls input[type="range"] {
        width: 80px;
    }
}

.scam-section {
    padding: 80px 0;
    text-align: center;
    animation-delay: 0.6s;
}

    .scam-section h2 {
        font-size: clamp(2rem, 5vw, 2.5rem);
        color: var(--accent);
        margin-bottom: 20px;
        text-shadow: 2px 2px var(--text-shadow);
    }

.scam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2vw;
    justify-content: center;
}

.scam-card {
    background: var(--card-bg);
    max-width: 350px;
    min-width: 200px;
    width: 100%;
    height: auto;
    padding: 1.5vw;
    border-radius: 1vw;
    box-shadow: 0 0.6vw 1.2vw var(--shadow);
    transition: transform 0.3s ease;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0 auto;
}

    .scam-card:nth-child(1) {
        animation-delay: 0.8s;
    }

    .scam-card:nth-child(2) {
        animation-delay: 1s;
    }

    .scam-card:nth-child(3) {
        animation-delay: 1.2s;
    }

    .scam-card:hover {
        transform: translateY(-1vw);
    }

.scam-image {
    width: 100%;
    height: auto;
    border-radius: 0.5vw;
    margin-bottom: 1vw;
    overflow: hidden;
}

    .scam-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
    }

.scam-card h3 {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: var(--text-accent);
    margin-bottom: 0.8vw;
}

.scam-card p {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: clamp(0.8rem, 1.2vw, 0.95rem);
    line-height: 1.4;
    overflow-y: auto;
    flex-grow: 1;
}

@media (max-width: 768px) {
    .scam-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .scam-card {
        max-width: 300px;
        min-width: 180px;
        padding: 3vw;
        border-radius: 2vw;
    }

    .scam-image {
        border-radius: 1vw;
        margin-bottom: 2vw;
    }

    .scam-card h3 {
        font-size: clamp(0.9rem, 2vw, 1.2rem);
    }

    .scam-card p {
        font-size: clamp(0.7rem, 1.8vw, 0.9rem);
    }
}

@media (max-width: 480px) {
    .scam-grid {
        grid-template-columns: 1fr;
    }

    .scam-card {
        max-width: 90vw;
        min-width: 160px;
        padding: 4vw;
    }

    .scam-image {
        border-radius: 1vw;
    }
}

.meme-section {
    padding: 80px 0;
    text-align: center;
    animation-delay: 0.6s;
}

    .meme-section h2 {
        font-size: clamp(2rem, 5vw, 2.5rem);
        color: var(--accent);
        margin-bottom: 20px;
        text-shadow: 2px 2px var(--text-shadow);
    }

.meme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    justify-content: center;
}

.meme-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 6px 12px var(--shadow);
    transition: transform 0.3s ease;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    max-width: 320px;
    margin: 0 auto;
}

    .meme-card:nth-child(1) {
        animation-delay: 0.8s;
    }

    .meme-card:nth-child(2) {
        animation-delay: 1s;
    }

    .meme-card:nth-child(3) {
        animation-delay: 1.2s;
    }

    .meme-card:hover {
        transform: translateY(-10px);
    }

.meme-image, .meme-imageBill {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.meme-card h3 {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: var(--text-accent);
    margin-bottom: 10px;
}

.meme-card p {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: clamp(0.8rem, 1.2vw, 0.95rem);
    line-height: 1.4;
    margin-bottom: 10px;
}

.meme-audio {
    width: 100%;
    height: 40px;
    border-radius: 5px;
    border: 1px solid var(--accent);
    background: var(--card-bg);
    outline: none;
}

    .meme-audio::-webkit-media-controls-enclosure {
        background: var(--card-bg);
        border-radius: 5px;
    }

    .meme-audio::-webkit-media-controls-play-button {
        background-color: var(--accent);
        border-radius: 50%;
        padding: 5px;
    }

    .meme-audio::-webkit-media-controls-volume-slider {
        background: var(--accent);
        border-radius: 3px;
    }

@media (max-width: 768px) {
    .meme-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .meme-card {
        min-height: 360px;
        max-width: 280px;
        padding: 15px;
        border-radius: 10px;
    }

    .meme-image, .meme-imageBill {
        height: 150px;
        border-radius: 8px;
        margin-bottom: 10px;
    }

    .meme-card h3 {
        font-size: clamp(0.9rem, 2vw, 1.2rem);
    }

    .meme-card p {
        font-size: clamp(0.7rem, 1.8vw, 0.9rem);
        margin-bottom: 10px;
    }

    .meme-audio {
        height: 35px;
        border-radius: 4px;
    }
}

@media (max-width: 480px) {
    .meme-grid {
        grid-template-columns: 1fr;
    }

    .meme-card {
        min-height: 340px;
        max-width: 100%;
        padding: 10px;
    }

    .meme-image, .meme-imageBill {
        height: 140px;
        border-radius: 6px;
    }

    .meme-audio {
        height: 30px;
        border-radius: 3px;
    }
}

@media (max-width: 768px) {
    .hero {
        margin: 16px;
        padding: 48px 0;
    }

        .hero h1 {
            font-size: clamp(1.8rem, 4vw, 2.5rem);
        }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .image-placeholder {
        width: clamp(240px, 60vw, 300px);
        height: clamp(160px, 40vw, 200px);
    }

    .features-grid {
        gap: 16px;
    }

    .tab-header {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .tab-button {
        width: 100%;
        max-width: 300px;
    }

    .footer-links {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        margin: 12px;
        padding: 32px 0;
    }

    .features {
        padding: 48px 0;
    }

    .solutions {
        padding: 48px 0;
    }

    .main-footer {
        padding: 32px 0;
    }
}

.minigames-section {
    padding: 80px 0;
    text-align: center;
    animation-delay: 0.6s;
}

    .minigames-section h2 {
        font-size: clamp(2rem, 5vw, 2.5rem);
        color: var(--accent);
        margin-bottom: 20px;
        text-shadow: 2px 2px var(--text-shadow);
    }

.minigame-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    justify-content: center;
}

.minigame-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 6px 12px var(--shadow);
    transition: transform 0.3s ease;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    max-width: 320px;
    margin: 0 auto;
}

    .minigame-card:nth-child(1) {
        animation-delay: 0.8s;
    }

    .minigame-card:nth-child(2) {
        animation-delay: 1s;
    }

    .minigame-card:hover {
        transform: translateY(-10px);
    }

.minigame-image {
    width: 100%;
    height: 180px;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

    .minigame-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.minigame-card h3 {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: var(--text-accent);
    margin-bottom: 10px;
}

.minigame-card p {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: clamp(0.8rem, 1.2vw, 0.95rem);
    line-height: 1.4;
    margin-bottom: 10px;
    flex-grow: 1;
}

.minigame-card button {
    margin-top: auto;
}

.game-canvas-section {
    padding: 40px 0;
    text-align: center;
    background: var(--bg-hero);
    border-radius: 16px;
    margin: 24px;
    box-shadow: 0 8px 24px var(--shadow);
}

.game-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

    .game-controls h2 {
        font-size: clamp(1.5rem, 3vw, 2rem);
        color: var(--text-accent);
    }

    .game-controls p {
        font-size: clamp(1rem, 2vw, 1.2rem);
        color: var(--text-secondary);
    }

#gameCanvas {
    width: 100%;
    max-width: 800px;
    height: 60vh;
    max-height: 600px;
    border: 2px solid var(--accent);
    border-radius: 10px;
    display: block;
    margin: 0 auto;
    background: var(--card-bg);
}

@media (max-width: 768px) {
    .minigame-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .minigame-card {
        min-height: 360px;
        max-width: 280px;
        padding: 15px;
        border-radius: 10px;
    }

    .minigame-image {
        height: 150px;
        border-radius: 8px;
        margin-bottom: 10px;
    }

    .minigame-card h3 {
        font-size: clamp(0.9rem, 2vw, 1.2rem);
    }

    .minigame-card p {
        font-size: clamp(0.7rem, 1.8vw, 0.9rem);
    }

    #gameCanvas {
        height: 50vh;
    }
}

@media (max-width: 480px) {
    .minigame-grid {
        grid-template-columns: 1fr;
    }

    .minigame-card {
        min-height: 340px;
        max-width: 100%;
        padding: 10px;
    }

    .minigame-image {
        height: 140px;
        border-radius: 6px;
    }

    .game-controls {
        flex-direction: column;
        align-items: center;
    }

    #gameCanvas {
        height: 40vh;
    }
}

.meme-generator-section {
    padding: 80px 0;
    text-align: center;
    animation-delay: 1s;
}

    .meme-generator-section h2 {
        font-size: clamp(2rem, 5vw, 2.5rem);
        color: var(--accent);
        margin-bottom: 20px;
        text-shadow: 2px 2px var(--text-shadow);
    }

.meme-generator {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    align-items: flex-start;
}

.meme-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
    width: 100%;
}

.meme-template-selector,
.meme-text-inputs,
.meme-style-options {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 16px var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.meme-text-inputs,
.meme-style-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .input-group label {
        font-size: clamp(0.9rem, 1.5vw, 1rem);
        color: var(--text-primary);
        font-weight: 600;
    }

    .input-group input,
    .input-group select {
        padding: 10px;
        border-radius: 8px;
        border: 1px solid var(--accent);
        background: var(--bg-hero);
        color: var(--text-primary);
        font-size: clamp(0.9rem, 1.5vw, 1rem);
        outline: none;
        transition: all 0.3s ease;
    }

        .input-group input:focus,
        .input-group select:focus {
            border-color: var(--button-primary);
            box-shadow: 0 0 8px var(--text-shadow);
        }

.meme-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.meme-preview {
    max-width: 400px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px var(--shadow);
    border: 2px solid var(--accent);
}

#memeCanvas {
    width: 100%;
    height: auto;
    background: var(--card-bg);
}

@media (max-width: 768px) {
    .meme-generator {
        flex-direction: column;
        align-items: center;
    }

    .meme-controls,
    .meme-preview {
        max-width: 100%;
    }

    .meme-preview {
        width: clamp(240px, 80vw, 320px);
    }

    #memeCanvas {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .meme-generator-section {
        padding: 48px 0;
    }

    .meme-controls {
        padding: 16px;
    }

    .input-group input,
    .input-group select {
        padding: 8px;
    }

    .meme-actions {
        flex-direction: column;
        align-items: center;
    }
}

.meme-of-the-day {
    padding: 60px 0;
    text-align: center;
    animation: fadeIn 1s ease-in;
}

    .meme-of-the-day h2 {
        font-size: clamp(2rem, 5vw, 2.5rem);
        color: var(--accent);
        margin-bottom: 16px;
        text-shadow: 2px 2px var(--text-shadow);
    }

    .meme-of-the-day .meme-card {
        max-width: 400px;
        margin: 0 auto;
        background: var(--card-bg);
        padding: 24px;
        border-radius: 12px;
        box-shadow: 0 6px 16px var(--shadow);
        border: 2px solid var(--accent);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

        .meme-of-the-day .meme-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 24px var(--shadow);
        }

    .meme-of-the-day .image-placeholder {
        width: 100%;
        height: auto;
        border-radius: 8px;
        margin-bottom: 16px;
    }

    .meme-of-the-day h3 {
        font-size: clamp(1.2rem, 2.5vw, 1.5rem);
        color: var(--text-primary);
        margin-bottom: 8px;
    }

    .meme-of-the-day p {
        font-size: clamp(0.9rem, 1.5vw, 1rem);
        color: var(--text-secondary);
        margin-bottom: 12px;
    }

    .meme-of-the-day .date {
        font-size: clamp(0.8rem, 1.2vw, 0.9rem);
        color: var(--accent);
        font-weight: 600;
    }

@media (max-width: 768px) {
    .meme-of-the-day {
        padding: 48px 0;
    }

        .meme-of-the-day .meme-card {
            max-width: 320px;
        }
}

@media (max-width: 480px) {
    .meme-of-the-day {
        padding: 32px 0;
    }

        .meme-of-the-day .meme-card {
            padding: 16px;
        }

        .meme-of-the-day h2 {
            font-size: clamp(1.8rem, 4vw, 2rem);
        }
}

img.lazyload {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img:not(.lazyload) {
    opacity: 1;
}

@media (max-width: 600px) {
    .control-buttons button {
        font-size: 2rem;
    }

    .progress-bar {
        height: 8px;
    }

        .progress-bar::-webkit-slider-thumb {
            width: 16px;
            height: 16px;
        }

        .progress-bar::-moz-range-thumb {
            width: 16px;
            height: 16px;
        }
}
