/* ===========================
   CSS Variables
   =========================== */
:root {
    --bg-dark: #0a0e27;
    --bg-darker: #050812;
    --bg-card: rgba(10, 14, 39, 0.8);
    --matrix-green: #00ff41;
    --cyan: #00ffff;
    --purple: #b366ff;
    --red: #ff4444;
    --text-primary: #e0e0e0;
    --text-dim: #888;
    --border: rgba(0, 255, 65, 0.3);
    --border-cyan: rgba(0, 255, 255, 0.3);
}

/* ===========================
   Reset & Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', 'Monaco', monospace;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a2e 50%, var(--bg-dark) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   Header
   =========================== */
header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    background: rgba(5, 8, 18, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--matrix-green);
    text-shadow: 0 0 10px var(--matrix-green);
    letter-spacing: 2px;
}

.logo a {
    color: var(--matrix-green);
    text-decoration: none;
}

nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a {
    color: var(--cyan);
    text-decoration: none;
    transition: all 0.3s;
    padding: 8px 12px;
}

nav a:hover {
    text-shadow: 0 0 10px var(--cyan);
}

.btn-primary {
    border: 2px solid var(--matrix-green);
    padding: 8px 20px !important;
    border-radius: 4px;
}

.btn-primary:hover {
    background: var(--matrix-green);
    color: var(--bg-dark) !important;
    text-shadow: none !important;
}

/* ===========================
   Hero Section
   =========================== */
.hero-content {
    text-align: center;
    padding: 80px 20px;
}

h1 {
    font-size: 48px;
    color: var(--matrix-green);
    text-shadow: 0 0 20px var(--matrix-green);
    margin-bottom: 20px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px var(--matrix-green);
    }
    to {
        text-shadow: 0 0 20px var(--matrix-green), 0 0 30px var(--matrix-green);
    }
}

.tagline {
    font-size: 24px;
    color: var(--cyan);
    margin-bottom: 60px;
}

/* ===========================
   Problem/Solution Section
   =========================== */
.problem-solution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto 60px;
    text-align: left;
}

.problem, .solution {
    background: var(--bg-card);
    border: 2px solid var(--border);
    padding: 30px;
    border-radius: 8px;
    transition: all 0.3s;
}

.problem:hover, .solution:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.2);
}

.problem h3 {
    color: var(--red);
    margin-bottom: 15px;
    font-size: 20px;
}

.solution h3 {
    color: var(--matrix-green);
    margin-bottom: 15px;
    font-size: 20px;
}

.problem ul, .solution ul {
    list-style: none;
    padding-left: 0;
}

.problem li, .solution li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.problem li::before {
    content: "×";
    position: absolute;
    left: 0;
    color: var(--red);
    font-size: 20px;
}

.solution li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--matrix-green);
    font-size: 18px;
}

/* ===========================
   CTA Button
   =========================== */
.cta-button {
    display: inline-block;
    background: var(--matrix-green);
    color: var(--bg-dark);
    padding: 15px 40px;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
    border: 2px solid var(--matrix-green);
}

.cta-button:hover {
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.8);
    transform: translateY(-2px);
}

/* ===========================
   Features Section
   =========================== */
.features {
    padding: 80px 20px;
    background: var(--bg-darker);
}

.features h2 {
    text-align: center;
    font-size: 36px;
    color: var(--cyan);
    margin-bottom: 60px;
    text-shadow: 0 0 10px var(--cyan);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    text-align: center;
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s;
}

.feature:hover {
    border-color: var(--matrix-green);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
    transform: translateY(-5px);
}

.feature .icon {
    color: var(--matrix-green);
    margin-bottom: 20px;
    display: block;
}

.feature h3 {
    color: var(--matrix-green);
    margin-bottom: 15px;
}

.feature p {
    color: var(--text-dim);
}

/* ===========================
   Preview/Themes Section
   =========================== */
.preview {
    padding: 80px 20px;
}

.preview h2 {
    text-align: center;
    font-size: 36px;
    color: var(--cyan);
    margin-bottom: 60px;
    text-shadow: 0 0 10px var(--cyan);
}

.theme-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.theme-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.theme-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 255, 65, 0.3);
}

.theme-preview {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.theme-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.theme-content h3 {
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.reminder-text {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.4;
}

/* Theme-specific backgrounds */
.matrix-theme {
    background: linear-gradient(135deg, #001a00 0%, #003300 100%);
    color: var(--matrix-green);
}

.matrix-theme::before {
    content: "010101010";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    font-size: 100px;
    opacity: 0.05;
    overflow: hidden;
}

.cyan-theme {
    background: linear-gradient(135deg, #001a1a 0%, #003333 100%);
    color: var(--cyan);
}

.purple-theme {
    background: linear-gradient(135deg, #1a001a 0%, #330033 100%);
    color: var(--purple);
}

.red-theme {
    background: linear-gradient(135deg, #1a0000 0%, #330000 100%);
    color: var(--red);
}

.minimal-theme {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-card h4 {
    padding: 15px 20px 5px;
    color: var(--matrix-green);
    font-size: 20px;
}

.theme-card > p {
    padding: 0 20px 20px;
    color: var(--text-dim);
    font-size: 14px;
}

/* ===========================
   Message Categories
   =========================== */
.message-categories {
    padding: 80px 20px;
    background: var(--bg-darker);
}

.message-categories h2 {
    text-align: center;
    font-size: 36px;
    color: var(--cyan);
    margin-bottom: 60px;
    text-shadow: 0 0 10px var(--cyan);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.category {
    text-align: center;
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s;
}

.category:hover {
    border-color: var(--matrix-green);
    transform: translateY(-5px);
}

.category i {
    color: var(--matrix-green);
    margin-bottom: 15px;
}

.category h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.category p {
    color: var(--text-dim);
}

/* ===========================
   Final CTA Section
   =========================== */
.cta-final {
    padding: 100px 20px;
    text-align: center;
}

.cta-final h2 {
    font-size: 36px;
    color: var(--cyan);
    margin-bottom: 20px;
}

.cta-final p {
    font-size: 18px;
    color: var(--text-dim);
    margin-bottom: 40px;
}

/* ===========================
   Download Page Styles
   =========================== */
.download-page {
    min-height: 80vh;
}

.page-header {
    padding: 60px 20px 40px;
    text-align: center;
    background: var(--bg-darker);
}

.page-header h1 {
    font-size: 42px;
}

.subtitle {
    font-size: 18px;
    color: var(--text-dim);
    margin-top: 20px;
}

.resolution-info {
    padding: 60px 20px;
    background: var(--bg-card);
}

.resolution-info h2 {
    text-align: center;
    font-size: 32px;
    color: var(--cyan);
    margin-bottom: 40px;
}

.resolution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.resolution-item {
    text-align: center;
    padding: 20px;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.resolution-item i {
    color: var(--matrix-green);
    font-size: 32px;
    margin-bottom: 10px;
}

.resolution-item h4 {
    color: var(--text-primary);
    margin-bottom: 5px;
}

.resolution-item p {
    color: var(--text-dim);
    font-size: 14px;
}

/* ===========================
   Wallpaper Showcase
   =========================== */
.wallpapers-section {
    padding: 60px 20px;
}

.wallpapers-section h2 {
    text-align: center;
    font-size: 36px;
    color: var(--cyan);
    margin-bottom: 60px;
}

.wallpaper-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    padding: 30px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 8px;
    align-items: center;
}

.showcase-preview {
    height: 300px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.showcase-info h3 {
    color: var(--matrix-green);
    font-size: 28px;
    margin-bottom: 15px;
}

.showcase-info i {
    margin-right: 10px;
}

.theme-description {
    color: var(--text-dim);
    margin-bottom: 25px;
    font-size: 16px;
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.download-btn {
    background: var(--bg-dark);
    color: var(--matrix-green);
    border: 2px solid var(--matrix-green);
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    transition: all 0.3s;
}

.download-btn:hover {
    background: var(--matrix-green);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.download-btn i {
    margin-right: 5px;
}

/* ===========================
   Usage Tips Section
   =========================== */
.usage-tips {
    padding: 60px 20px;
    background: var(--bg-darker);
}

.usage-tips h2 {
    text-align: center;
    font-size: 32px;
    color: var(--cyan);
    margin-bottom: 40px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.tip {
    background: var(--bg-card);
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
}

.tip i {
    color: var(--matrix-green);
    margin-bottom: 15px;
}

.tip h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 20px;
}

.tip ol {
    text-align: left;
    padding-left: 20px;
    color: var(--text-dim);
}

.tip li {
    margin-bottom: 8px;
}

/* ===========================
   Note Section
   =========================== */
.note-section {
    padding: 40px 20px;
}

.note-box {
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid var(--cyan);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
}

.note-box i {
    color: var(--cyan);
    font-size: 32px;
    flex-shrink: 0;
}

.note-box h3 {
    color: var(--cyan);
    margin-bottom: 10px;
}

.note-box p {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.note-box code {
    background: var(--bg-darker);
    padding: 2px 8px;
    border-radius: 3px;
    color: var(--matrix-green);
    font-size: 14px;
}

/* ===========================
   Footer
   =========================== */
footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    background: var(--bg-darker);
}

footer a {
    color: var(--cyan);
    text-decoration: none;
    transition: all 0.3s;
}

footer a:hover {
    text-shadow: 0 0 10px var(--cyan);
}

.footer-tagline {
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.7;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 968px) {
    .wallpaper-showcase {
        grid-template-columns: 1fr;
    }

    .showcase-preview {
        height: 250px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 32px;
    }

    .tagline {
        font-size: 18px;
    }

    .problem-solution {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .theme-gallery {
        grid-template-columns: 1fr;
    }

    nav {
        flex-direction: column;
        gap: 10px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }

    .download-buttons {
        flex-direction: column;
    }

    .download-btn {
        width: 100%;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .resolution-grid {
        grid-template-columns: 1fr 1fr;
    }

    .note-box {
        flex-direction: column;
    }
}

/* ===========================
   Animations
   =========================== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature, .theme-card, .category {
    animation: slideIn 0.5s ease-out;
}
