/* Pimp CSS Framework – Modular Structure */


/* Fonts */

@font-face {
    font-family: 'Michroma';
    src: url('/fonts/Michroma-Regular.woff2') format('woff2'), url('/fonts/Michroma-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Tektur';
    src: url('/fonts/Tektur-Regular.woff2') format('woff2'), url('/fonts/Tektur-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}


/* Resets and Variables */

:root {
    --bg-color: #000000;
    --text-color: #00ff00;
    --accent-glow: #00ff00;
    --border-style: dashed 1px var(--text-color);
    --font-mono: 'Michroma', 'Courier New', monospace;
    --font-sans: 'Tektur', -apple-system, sans-serif;
    --transition: all 0.3s ease;
    --typing-speed: 0.1s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Global Styles */

body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}


/* Matrix Rain */

#matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}


/* Cookie Banner */

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    border: var(--border-style);
    padding: 15px;
    z-index: 100;
    display: none;
    text-align: center;
}

.cookie-banner p {
    margin-bottom: 10px;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.cookie-banner.active {
    display: block;
}


/* Lightbox */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    border: var(--border-style);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--text-color);
    font-size: 2em;
    cursor: pointer;
    text-shadow: 0 0 5px var(--accent-glow);
}


/* Terminal Window */

.terminal-window {
    border: var(--border-style);
    padding: 20px;
    margin: 20px auto;
    max-width: 1200px;
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Typing Effect */

.typing {
    border-right: 2px solid var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    animation: typing 5s steps(60, end), blink 0.75s step-end infinite;
    display: block;
    width: 100%;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    from,
    to {
        border-color: transparent;
    }
    50% {
        border-color: var(--text-color);
    }
}


/* Availability Notice */

.availability {
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
    text-shadow: 0 0 5px var(--accent-glow);
}


/* Countdowns with Glitch Effect */

.countdowns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.countdown {
    border: var(--border-style);
    padding: 15px;
    text-align: center;
    min-width: 200px;
}

.countdown h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    font-family: var(--font-mono);
}

.countdown-timer {
    font-size: 1.1em;
    position: relative;
}

.countdown-timer.glitch {
    animation: glitch 2s linear infinite;
}

.countdown-timer.glitch::before,
.countdown-timer.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.countdown-timer.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00ff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-top 1s linear infinite;
}

.countdown-timer.glitch::after {
    left: -2px;
    text-shadow: 2px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-bottom 1.5s linear infinite;
}

@keyframes glitch {
    2%,
    64% {
        transform: translate(2px, 0) skew(0deg);
    }
    4%,
    60% {
        transform: translate(-2px, 0) skew(0deg);
    }
    62% {
        transform: translate(0, 0) skew(5deg);
    }
}

@keyframes glitch-top {
    2%,
    64% {
        transform: translate(2px, -2px);
    }
    4%,
    60% {
        transform: translate(-2px, 2px);
    }
    62% {
        transform: translate(13px, -1px) skew(-13deg);
    }
}

@keyframes glitch-bottom {
    2%,
    64% {
        transform: translate(-2px, 0);
    }
    4%,
    60% {
        transform: translate(-2px, 0);
    }
    62% {
        transform: translate(-22px, 5px) skew(21deg);
    }
}


/* Navigation */

.nav {
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.9);
    padding: 10px 20px;
    border-bottom: var(--border-style);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav__menu a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.nav__menu a:hover {
    text-shadow: 0 0 10px var(--accent-glow);
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.nav__toggle-icon {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    position: relative;
}

.nav__toggle-icon::before,
.nav__toggle-icon::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: var(--transition);
}

.nav__toggle-icon::before {
    top: -8px;
}

.nav__toggle-icon::after {
    top: 8px;
}

.nav--open .nav__toggle-icon {
    background: transparent;
}

.nav--open .nav__toggle-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.nav--open .nav__toggle-icon::after {
    transform: rotate(-45deg);
    top: 0;
}


/* CTA Button */

.cta-button {
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 10px 20px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-mono);
}

.cta-button:hover {
    box-shadow: 0 0 15px var(--accent-glow);
    background: rgba(0, 255, 0, 0.1);
}


/* Hero Section */

#hero {
    text-align: center;
    padding: 50px 20px;
}

#hero h1 {
    font-size: 3em;
    font-family: var(--font-mono);
}


/* Projects Section */

#projects {
    padding: 40px 20px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    border: var(--border-style);
    padding: 20px;
    transition: var(--transition);
}

.project-card:hover {
    box-shadow: 0 0 15px var(--accent-glow);
    transform: scale(1.02);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 10px;
    border: var(--border-style);
    transition: var(--transition);
}

.project-image:hover {
    filter: brightness(1.1) drop-shadow(0 0 5px var(--accent-glow));
}


/* Process Section */

#process {
    padding: 40px 20px;
    text-align: center;
}

.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    margin: 20px 0;
}

.step {
    flex: 1;
    min-width: 200px;
    border: var(--border-style);
    padding: 20px;
}


/* Pricing Section */

#pricing {
    padding: 40px 20px;
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.plan-card {
    border: var(--border-style);
    padding: 20px;
    text-align: center;
    position: relative;
}

.plan-card--popular {
    background: rgba(0, 255, 0, 0.1);
}

.price {
    font-size: 2em;
    color: var(--accent-glow);
}


/* FAQs Section */

#faqs {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.faq-item {
    border: var(--border-style);
    margin: 10px 0;
    overflow: hidden;
}

.faq-question {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.faq-question:hover {
    background: rgba(0, 255, 0, 0.2);
}

.faq-answer {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 15px;
}


/* Stats Section */

#stats {
    padding: 40px 20px;
    text-align: center;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat {
    border: var(--border-style);
    padding: 20px;
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* Testimonials Section */

#testimonials {
    padding: 40px 20px;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.testimonial {
    border: var(--border-style);
    padding: 20px;
    text-align: center;
}

.avatar {
    width: 60px;
    height: 60px;
    background: #333;
    border-radius: 50%;
    margin: 0 auto 10px;
    transition: var(--transition);
}

.avatar:hover {
    box-shadow: 0 0 10px var(--accent-glow);
}


/* Outlook Section */

#outlook {
    padding: 40px 20px;
}

.blog__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.blog-post {
    border: var(--border-style);
    padding: 20px;
}

.blog-post a {
    color: var(--text-color);
    text-decoration: none;
}

.blog-post a:hover {
    text-shadow: 0 0 5px var(--accent-glow);
}


/* Footer Section */

footer {
    padding: 40px 20px;
    text-align: center;
    border-top: var(--border-style);
    background: rgba(0, 0, 0, 0.9);
}

footer a {
    color: var(--text-color);
    text-decoration: none;
}

footer a:hover {
    text-shadow: 0 0 5px var(--accent-glow);
}

.divider {
    border: none;
    border-top: var(--border-style);
    margin: 20px 0;
}

.slider-container {
    margin: 20px 0;
}

.slider-container label {
    display: block;
    margin-bottom: 10px;
}

#rain-speed {
    width: 200px;
    -webkit-appearance: none;
    background: #333;
    height: 5px;
    border-radius: 5px;
}

#rain-speed::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--text-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-glow);
}

#rain-speed::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--text-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-glow);
}


/* 404 Page */

.error-404 {
    text-align: center;
    padding: 50px 20px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.error-404 h1.glitch {
    font-size: 4em;
    font-family: var(--font-mono);
    color: var(--text-color);
    animation: glitch 2s linear infinite;
}

.error-404 .typing {
    font-size: 1.2em;
    margin: 20px 0;
    font-family: var(--font-sans);
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.error-image {
    width: 200px;
    height: 200px;
    margin: 20px auto;
    display: block;
    filter: drop-shadow(0 0 10px var(--accent-glow));
    animation: float 2s ease-in-out infinite, image-glitch 2s linear infinite;
}

@keyframes image-glitch {
    0%,
    100% {
        transform: translate(0);
        filter: hue-rotate(0deg) brightness(1);
    }
    10%,
    30% {
        transform: translate(2px, 0);
        filter: hue-rotate(10deg) brightness(1.1);
    }
    20%,
    40% {
        transform: translate(-2px, 0);
        filter: hue-rotate(-10deg) brightness(0.9);
    }
    50% {
        transform: skew(1deg);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}


/* Responsive Design */

@media (max-width: 768px) {
    .project-grid,
    .pricing__grid,
    .testimonials__grid,
    .blog__grid,
    .stats__grid {
        grid-template-columns: 1fr;
    }
    .process-steps {
        flex-direction: column;
    }
    .countdowns {
        flex-direction: column;
        align-items: center;
    }
    .countdown {
        width: 100%;
        max-width: 300px;
    }
    .cookie-banner {
        padding: 10px;
    }
    .cookie-buttons {
        flex-direction: column;
        gap: 5px;
    }
    .nav__toggle {
        display: block;
    }
    .nav__menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        padding: 20px;
        border-bottom: var(--border-style);
    }
    .nav--open .nav__menu {
        display: flex;
    }
    .nav__menu li {
        margin: 10px 0;
    }
    .cta-button {
        margin-top: 10px;
    }
}