/* ===================================
   DYSTNT - Landing Page Styles
   =================================== */

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

:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #151515;
    --accent-red: #00d4ff;
    --accent-dark-red: #0099cc;
    --accent-purple: #b388ff;
    --accent-grey: #6b6b6b;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: #2a2a2a;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* Background Effects */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 10, 20, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 15, 25, 0.2) 0%, transparent 50%);
    z-index: -1;
    animation: particleMove 20s ease-in-out infinite;
}

@keyframes particleMove {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="300" height="300" filter="url(%23noise)" opacity="0.05"/></svg>');
    opacity: 0.15;
    pointer-events: none;
    z-index: 100;
    animation: grain 8s steps(10) infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -5%); }
    20% { transform: translate(-10%, 5%); }
    30% { transform: translate(5%, -10%); }
    40% { transform: translate(-5%, 15%); }
    50% { transform: translate(-10%, 5%); }
    60% { transform: translate(15%, 0); }
    70% { transform: translate(0, 10%); }
    80% { transform: translate(-15%, 0); }
    90% { transform: translate(10%, 5%); }
}

/* Glitch Effect */
.glitch {
    position: relative;
    animation: glitch 5s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-bg);
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-grey);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #ffffff;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 90px, 0); }
    25% { clip: rect(50px, 9999px, 20px, 0); }
    50% { clip: rect(30px, 9999px, 70px, 0); }
    75% { clip: rect(80px, 9999px, 40px, 0); }
    100% { clip: rect(20px, 9999px, 60px, 0); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.user-name {
    color: var(--text-primary);
    font-size: 1rem;
    letter-spacing: 1px;
}

.logout-btn {
    background: transparent;
    border: 2px solid var(--accent-red);
    color: var(--accent-red);
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: var(--accent-red);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(179, 136, 255, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Landing Section */
.landing-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.landing-container {
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.landing-header {
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.landing-logo {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(4rem, 10vw, 6rem);
    font-weight: 900;
    letter-spacing: 10px;
    margin-bottom: 1rem;
}

.landing-subtitle {
    font-family: 'Audiowide', cursive;
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: 5px;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-dark-red), var(--accent-grey));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.landing-tagline {
    color: var(--text-secondary);
    font-size: 1rem;
    letter-spacing: 2px;
}

/* Auth Forms */
.auth-container {
    background: rgba(21, 21, 21, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 3rem 2.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease 0.2s both;
}

.auth-form {
    animation: fadeIn 0.5s ease;
}

.auth-form.hidden {
    display: none;
}

.form-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-grey));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.input-group {
    position: relative;
    margin-bottom: 2rem;
}

.input-group input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1rem;
    padding: 0.8rem 0;
    transition: all 0.3s ease;
    outline: none;
}

.input-group input:focus {
    border-bottom-color: var(--accent-red);
}

.input-group input::placeholder {
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-dark-red));
    transition: width 0.3s ease;
}

.input-group input:focus + .input-line {
    width: 100%;
}

.auth-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-dark-red));
    color: var(--text-primary);
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.auth-btn:hover::before {
    left: 100%;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(179, 136, 255, 0.5);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-switch {
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-switch span {
    color: var(--accent-red);
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
}

.auth-switch span:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* Dashboard Section */
.dashboard-section {
    min-height: 100vh;
    padding-top: 100px;
}

.dashboard-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.dashboard-title {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: 5px;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-grey));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    animation: fadeIn 1s ease 0.3s both;
}

.app-card {
    background: rgba(21, 21, 21, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(179, 136, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.app-card:hover::before {
    left: 100%;
}

.app-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-red);
    box-shadow: 0 10px 40px rgba(179, 136, 255, 0.3);
}

.app-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-dark-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.app-card:hover .app-icon {
    transform: scale(1.1) rotate(10deg);
}

.icon-text {
    font-size: 3rem;
}

.app-name {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.8rem;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.app-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.app-btn {
    background: transparent;
    border: 2px solid var(--accent-red);
    color: var(--accent-red);
    padding: 0.8rem 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-decoration: none;
}

.app-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-red);
    transition: left 0.3s ease;
    z-index: -1;
}

.app-btn:hover::before {
    left: 0;
}

.app-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent-red);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .landing-container {
        padding: 1rem;
    }
    
    .auth-container {
        padding: 2rem 1.5rem;
    }
    
    .dashboard-content {
        padding: 2rem 1rem;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .app-card {
        padding: 2rem 1.5rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hamburger {
        display: flex;
    }
}


