/* Truuze Futuristic Styles */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;500;700&display=swap');

:root {
    /* --- Default Dark Theme (Space / Cyberpunk) --- */
    --bg: #051a20;
    --bg-grad-start: #103038;
    --bg-grad-end: #051a20;

    --text-main: #e6f1f1;
    --text-muted: #8a9ea0;
    --heading: #ffffff;

    --header: rgba(16, 48, 56, 0.8);

    /* Accents - Neon Versions of App Colors */
    --accent-teal: #00f2ff;
    /* Neon Cyan for "Teal" slots */
    --accent-lime: #c0e218;
    /* Bright Lime */
    --accent-orange: #ff9f1c;
    /* Bright Orange */
    --accent-cyan: #00f2ff;
    /* Primary Interaction */

    --glass-bg: rgba(16, 48, 56, 0.35);
    /* Increased transparency (was 0.6) */
    --glass-border: rgba(0, 242, 255, 0.2);
    --store-border: 1px solid rgba(255, 255, 255, 0.25);
    /* Default Dark Mode Border */

    --card-bg: rgba(0, 0, 0, 0.3);
    --card-shadow: 0 8px 30px rgba(0, 242, 255, 0.1);

    --particle-opacity: 1;
}

[data-theme="light"] {
    /* --- Light Theme (Clean App Palette) --- */
    --bg: #FFFFFF;
    --bg-grad-start: #ffffff;
    --bg-grad-end: #f0f4f8;

    --text-main: #555555;
    --text-muted: #777777;
    --heading: #216064;
    /* Deep Teal Heading in Light Mode */

    --header: #216064;

    /* Accents - Proper App Colors */
    --accent-teal: #0A8D85;
    --accent-lime: #A5BE15;
    --accent-orange: #EB8F00;
    --accent-cyan: #1391A0;

    --glass-bg: rgba(255, 255, 255, 0.65);
    /* Increased transparency (was 0.85) */
    --glass-border: rgba(33, 96, 100, 0.15);
    --store-border: 1px solid rgba(33, 96, 100, 0.3);
    /* Darker border for visibility on white */

    --card-bg: #FFFFFF;
    --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);

    --particle-opacity: 0.5;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Body Transition */
body {
    background-color: var(--bg);
    background-image: radial-gradient(circle at 50% 50%, var(--bg-grad-start) 0%, var(--bg-grad-end) 100%);
    color: var(--text-main);
    font-family: 'Rajdhani', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    touch-action: none;
    overflow-x: hidden;
    transition: background 0.5s ease;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 0 15px var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    fill: var(--accent-cyan);
    transition: fill 0.3s;
}

/* Background Particles Container */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: var(--particle-opacity);
    transition: opacity 0.5s ease;
}

/* Main Container - 3D Tilt Effect */
.container-3d {
    position: relative;
    z-index: 10;
    text-align: center;
    transform-style: preserve-3d;
    will-change: transform;
    /* GPU Hint */
}

/* Glassmorphism Hero Panel */
.hero-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 6rem 3rem;
    /* Increased from 4rem for height */
    min-height: 700px;
    /* Force substantially taller height */
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.5);
    max-width: 800px;
    width: 90vw;
    margin: 0 auto;
    position: relative;
    overflow: hidden;

    /* Initial state for GSAP */
    opacity: 0;
    transform: translateY(50px);
    will-change: transform, opacity;
    /* Animated Gradient Background */
    background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(33, 96, 100, 0.05) 50%, var(--glass-bg) 100%);
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Glowing Border Effect - Adjusted for Light Mode */
.hero-panel::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-teal), transparent, var(--accent-lime), transparent);
    background-size: 300% 300%;
    animation: gradient-shift 6s linear infinite;
    z-index: -1;
    border-radius: 32px;
    filter: blur(10px);
    opacity: 0.5;
}

.logo-container {
    margin-bottom: 2rem;
    perspective: 500px;
}

.logo {
    width: 100px;
    /* Reduced from 150px */
    height: 100px;
    /* Soft shadow instead of neon glow */
    filter: drop-shadow(0 10px 15px rgba(33, 96, 100, 0.3));
    will-change: transform;
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    /* Reduced from 3.5rem */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    color: var(--heading);
    background: none;
    -webkit-text-fill-color: var(--heading);
    text-shadow: none;
}

p.tagline {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 3rem;
    color: var(--accent-teal);
}

/* Futuristic Buttons */
.store-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    /* Increased to prevent overlap */
    margin-bottom: 4rem;
    perspective: 1000px;
}

.store-btn {
    display: block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform;
}

.store-btn img {
    height: 50px;
    width: auto;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.store-btn:hover img {
    filter: brightness(1.1) sepia(0%) hue-rotate(0deg);
    box-shadow: 0 5px 15px rgba(10, 141, 133, 0.3);
    border-color: var(--accent-teal);
}

.store-btn:hover {
    transform: translateY(-5px) scale(1.05);
}

.coming-soon {
    font-size: 0.9rem;
    color: var(--accent-lime);
    /* Lime for numbers/status */
    margin-top: -3rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 1;
    font-weight: 600;
}

/* Cyber Button - Adapted for Light Mode */
.btn-blockchain {
    position: relative;
    display: inline-block;
    padding: 1rem 3rem;
    color: var(--accent-cyan);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-family: 'Orbitron', sans-serif;
    border: 2px solid var(--accent-cyan);
    overflow: hidden;
    transition: 0.5s;
    background: rgba(5, 26, 32, 0.7);
    z-index: 1;
    cursor: pointer;
    border-radius: 4px;
}

.btn-blockchain:hover {
    background: var(--accent-cyan);
    color: #fff;
    box-shadow: 0 5px 20px rgba(19, 145, 160, 0.4);
}

/* ─── Hero Navigation Buttons ─── */
.hero-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-top: 2rem;
    width: 100%;
}

.hero-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1rem 0.8rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 242, 255, 0.15);
    border-radius: 14px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}

.hero-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-lime));
    border-radius: 3px 0 0 3px;
    opacity: 0.5;
    transition: opacity 0.3s, width 0.3s;
}

.hero-nav-btn:hover {
    transform: translateY(-4px);
    border-color: var(--accent-cyan);
    background: rgba(0, 242, 255, 0.06);
    box-shadow: 0 8px 30px rgba(0, 242, 255, 0.15), inset 0 0 20px rgba(0, 242, 255, 0.03);
}

.hero-nav-btn:hover::before {
    opacity: 1;
    width: 4px;
}

.hn-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.hn-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hn-sub {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.3;
}

/* Footer */
footer {
    position: absolute;
    bottom: 2rem;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    z-index: 10;
}

.copyright {
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--accent-cyan);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--accent-teal);
    text-shadow: none;
}

/* ─── Agent Terminal Modal (Restored) ─── */
#terminal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#terminal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

#terminal-overlay.hidden {
    display: none;
    /* True hiding for performance */
}

.terminal-window {
    width: 80%;
    max-width: 700px;
    height: 500px;
    background: rgba(10, 20, 25, 0.95);
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.2);
    display: flex;
    flex-direction: column;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#terminal-overlay.active .terminal-window {
    transform: scale(1);
}

.terminal-header {
    background: #1a1a1a;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.terminal-header .title {
    color: #888;
    margin-left: 10px;
    font-size: 0.9rem;
    flex-grow: 1;
    text-align: center;
}

#close-terminal {
    background: none;
    border: none;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 0.5;
}

#close-terminal:hover {
    color: #fff;
}

.terminal-body {
    flex-grow: 1;
    padding: 20px;
    color: var(--accent-cyan);
    font-size: 0.95rem;
    line-height: 1.5;
    overflow-y: auto;
    white-space: pre-wrap;
    -webkit-overflow-scrolling: touch;
}

/* Terminal Colors */
.cmd {
    color: #f1f1f1;
}

.cmd-active {
    color: #00f2ff;
    font-weight: bold;
}

.comment {
    color: #6a9955;
}

.output {
    color: #ccc;
}

.highlight {
    color: var(--accent-cyan);
    font-weight: bold;
}

/* ─── Screenshot Gallery (Restored) ─── */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    padding: 0 1rem;
}

.screen-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--card-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
    aspect-ratio: 9 / 19.5;
    /* Mobile ratio */
    box-shadow: var(--card-shadow);
}

.screen-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.screen-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-cyan);
    z-index: 10;
}

.screen-card:hover img {
    transform: scale(1.08);
}

.screen-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(33, 96, 100, 0.95);
    /* Deep Teal */
    color: #fff;
    padding: 10px;
    font-size: 0.85rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.screen-card:hover .screen-caption {
    transform: translateY(0);
}

/* ─── Web App Badge (Restored & Corrected) ─── */
.web-app-btn {
    text-decoration: none;
    display: inline-block;
    /* Ensure proper spacing */
    height: 50px;
    /* Match image height */
}

.web-badge {
    height: 100%;
    /* Fill container */
    background: #000;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: #fff;
    min-width: 150px;
    box-shadow: none;
    transition: all 0.3s ease;
}

.web-badge .icon {
    font-size: 20px;
    margin-right: 10px;
}

.web-badge .text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.0;
}

.web-app-btn:hover .web-badge {
    filter: brightness(1.1);
    box-shadow: 0 5px 15px rgba(10, 141, 133, 0.3);
    border-color: var(--accent-teal);
}

.web-badge .small {
    font-size: 0.6rem;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.web-badge .large {
    font-size: 1rem;
    font-weight: 700;
    font-family: sans-serif;
}



.store-btn:hover .web-badge {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px var(--accent-cyan);
    filter: brightness(1.2);
}

/* ─── Glitch Utilities ─── */
@keyframes glitch-anim-1 {
    0% {
        clip-path: inset(20% 0 80% 0);
        transform: translate(-2px, 1px);
    }

    20% {
        clip-path: inset(60% 0 10% 0);
        transform: translate(2px, -1px);
    }

    40% {
        clip-path: inset(40% 0 50% 0);
        transform: translate(-2px, 2px);
    }

    60% {
        clip-path: inset(80% 0 5% 0);
        transform: translate(2px, -2px);
    }

    80% {
        clip-path: inset(10% 0 70% 0);
        transform: translate(-1px, 1px);
    }

    100% {
        clip-path: inset(30% 0 50% 0);
        transform: translate(1px, -1px);
    }
}

.glitch-hover:hover {
    animation: glitch-anim-1 0.3s infinite linear alternate-reverse;
}

/* ─── Dynamic Tagline Cursor ─── */
#dynamic-text {
    color: var(--accent-cyan);
    font-weight: bold;
    border-right: 2px solid var(--accent-cyan);
    animation: blink 0.7s infinite;
    padding-right: 5px;
}

@keyframes blink {

    0%,
    100% {
        border-color: transparent;
    }

    50% {
        border-color: var(--accent-cyan);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    p.tagline {
        font-size: 1.2rem;
    }

    .hero-panel {
        padding: 3rem 1.5rem;
    }

    .hero-nav {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .hero-nav-btn {
        flex-direction: row;
        gap: 0.6rem;
        padding: 0.8rem 1rem;
        text-align: left;
    }

    .hn-sub {
        text-align: left;
    }

    .store-buttons {
        flex-direction: column;
        align-items: center;
    }

    .screenshot-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem;
    }

    .terminal-window {
        width: 95%;
        height: 60vh;
    }
}

/* ─── Accessibility / SEO Utilities ─── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}