/* QwellCode Retro CSS - Early 2000s Aesthetic with Modern Responsiveness */

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

/* Root Variables - Bleeding Edge 2000s Lime/Black/White Theme */
:root {
    --lime-neon: #00FF00;
    --lime-dark: #00CC00;
    --black-pure: #000000;
    --black-dark: #111111;
    --white-pure: #FFFFFF;
    --white-dim: #CCCCCC;
    --gray-tech: #333333;
    --chrome-silver: #C0C0C0;

    /* Typography - Early 2000s fonts */
    --font-primary: 'Comic Sans MS', 'Chalkboard SE', cursive;
    --font-secondary: 'Arial Black', Arial, sans-serif;
    --font-mono: 'Courier New', Courier, monospace;
    --font-impact: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;

    /* Spacing */
    --container-max-width: 800px;
    --section-padding: 2rem;
    --element-spacing: 1.5rem;
}

/* Body and Background - Bleeding Edge 2000s */
body {
    font-family: var(--font-secondary);
    background: var(--black-pure);
    background-image:
        repeating-linear-gradient(
            0deg,
            var(--black-pure),
            var(--black-pure) 2px,
            var(--black-dark) 2px,
            var(--black-dark) 4px
        );
    color: var(--lime-neon);
    line-height: 1.6;
    overflow-x: hidden;
    text-shadow: 0 0 2px var(--lime-neon);
}

/* Animated Matrix-style Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--lime-neon) 1px, transparent 1px),
        linear-gradient(90deg, var(--lime-neon) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    animation: matrix 10s linear infinite;
    z-index: -1;
}

@keyframes matrix {
    0% { transform: translateY(-50px); }
    100% { transform: translateY(0px); }
}

@keyframes starfield {
    from { transform: translateX(0); }
    to { transform: translateX(200px); }
}

/* Hit Counter */
.hit-counter {
    position: fixed;
    top: 10px;
    right: 10px;
    background: var(--chrome-silver);
    color: #000;
    padding: 0.5rem;
    border: 2px outset #666;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    z-index: 1000;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hit-counter img {
    height: 15px;
    margin-right: 0.5rem;
}

/* Main Container - Bleeding Edge 2000s */
.main-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    background: var(--black-dark);
    border: 3px solid var(--lime-neon);
    box-shadow:
        0 0 20px var(--lime-neon),
        inset 0 0 20px rgba(0, 255, 0, 0.1);
    margin-top: 1rem;
    margin-bottom: 1rem;
    box-shadow:
        0 0 0 2px var(--black-pure),
        0 0 0 4px var(--lime-neon),
        0 0 20px var(--lime-neon);
}

/* Header Styles - Bleeding Edge 2000s */
.header {
    background: var(--black-pure);
    padding: 2rem;
    text-align: center;
    border-bottom: 3px solid var(--lime-neon);
    position: relative;
    background-image: repeating-linear-gradient(
        0deg,
        var(--black-pure),
        var(--black-pure) 2px,
        var(--black-dark) 2px,
        var(--black-dark) 4px
    );
}

.logo {
    font-family: var(--font-impact);
    font-size: clamp(2.5rem, 6vw, 4rem);
    text-shadow:
        2px 2px 0px var(--lime-neon),
        4px 4px 0px var(--black-pure),
        6px 6px 0px var(--lime-dark);
    letter-spacing: 2px;
}

.qwell {
    color: var(--white-pure);
}

.code {
    color: var(--lime-neon);
}

.tagline {
    font-size: 0.9rem;
    color: var(--white-dim);
    margin-top: 0.5rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.construction-badge {
    position: absolute;
    top: 10px;
    left: 10px;
}

.construction-badge img {
    height: 50px;
}

/* Navigation Bar - Bleeding Edge 2000s */
.nav-bar {
    background: var(--black-pure);
    padding: 0.5rem;
    border-bottom: 2px solid var(--lime-neon);
    border-top: 2px solid var(--lime-neon);
}

.nav-table {
    width: 100%;
    border-collapse: collapse;
}

.nav-link {
    display: block;
    color: var(--lime-neon);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    font-family: var(--font-mono);
    font-weight: bold;
    text-align: center;
    background: var(--black-dark);
    border: 1px solid var(--lime-neon);
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.nav-link:hover {
    background: var(--lime-neon);
    color: var(--black-pure);
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--lime-neon);
}

/* Section Styles - Bleeding Edge 2000s */
section {
    padding: var(--section-padding);
    border-bottom: 2px solid var(--lime-neon);
    background: var(--black-dark);
}

.section-title {
    font-family: var(--font-impact);
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: var(--lime-neon);
    text-align: center;
    margin-bottom: var(--element-spacing);
    text-shadow:
        2px 2px 0px var(--black-pure),
        4px 4px 0px var(--lime-dark),
        0 0 10px var(--lime-neon);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Welcome Section - Bleeding Edge 2000s */
.welcome-section {
    background: var(--black-pure);
    text-align: center;
    border: 2px solid var(--lime-neon);
    margin: 1rem;
}

.intro-text {
    font-size: 1.4rem;
    color: var(--white-pure);
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.welcome-gif {
    max-width: 200px;
    height: auto;
    margin: 1rem;
    border: 3px solid var(--lime-neon);
    box-shadow: 0 0 15px var(--lime-neon);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1rem;
    text-align: justify;
}

.about-badges {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.badge {
    width: 80px;
    height: auto;
}

/* Digital Arsenal - 3 Columns 1 Row */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 100%;
}

.service-card {
    background: var(--black-pure);
    border: 3px solid var(--lime-neon);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--lime-neon), transparent);
    transition: left 0.5s;
    opacity: 0.1;
}

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

.service-card:hover {
    transform: scale(1.05) rotate(-1deg);
    box-shadow: 0 0 25px var(--lime-neon);
    border-color: var(--white-pure);
}

.service-card h3 {
    font-family: var(--font-impact);
    color: var(--lime-neon);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-icon {
    margin: 1rem 0;
}

.ascii-icon {
    font-family: var(--font-mono);
    font-size: 2rem;
    color: var(--lime-neon);
    background: var(--black-dark);
    border: 2px solid var(--lime-neon);
    padding: 1rem;
    display: inline-block;
    animation: pulse-glow 2s infinite;
}

.service-features ul {
    list-style: none;
    text-align: left;
    margin-top: auto;
}

.service-features li {
    margin: 0.5rem 0;
    font-size: 0.8rem;
    color: var(--white-pure);
    font-family: var(--font-mono);
    border-left: 2px solid var(--lime-neon);
    padding-left: 0.5rem;
}

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

/* Team Section - Bleeding Edge 2000s */
.team-intro {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--white-pure);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.team-member {
    background: var(--black-pure);
    border: 3px solid var(--lime-neon);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.team-member:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 0 25px var(--lime-neon);
    border-color: var(--white-pure);
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 0;
    border: 3px solid var(--lime-neon);
    margin-bottom: 1rem;
    background: var(--black-dark);
}

.member-role {
    color: var(--lime-neon);
    font-weight: bold;
    margin: 0.5rem 0;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.member-bio {
    color: var(--white-dim);
    font-size: 0.9rem;
    line-height: 1.4;
}

.team-philosophy {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--black-dark);
    border: 2px solid var(--lime-neon);
    color: var(--white-pure);
}

/* Contact Section - Bleeding Edge 2000s */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.form-table {
    width: 100%;
    border-collapse: collapse;
}

.form-table td {
    padding: 0.5rem;
    color: var(--white-pure);
    font-family: var(--font-mono);
}

.retro-input,
.retro-select,
.retro-textarea {
    width: 100%;
    padding: 0.75rem;
    font-family: var(--font-mono);
    background: var(--black-pure);
    color: var(--lime-neon);
    border: 2px solid var(--lime-neon);
    font-size: 1rem;
}

.retro-input:focus,
.retro-select:focus,
.retro-textarea:focus {
    outline: none;
    border-color: var(--white-pure);
    box-shadow: 0 0 10px var(--lime-neon);
}

.retro-button {
    background: var(--lime-neon);
    color: var(--black-pure);
    border: 2px solid var(--white-pure);
    padding: 0.75rem 2.5rem;
    font-family: var(--font-impact);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1rem;
}

.retro-button:hover {
    background: var(--white-pure);
    color: var(--black-pure);
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--lime-neon);
}

.submit-cell {
    text-align: center;
    padding-top: 1.5rem;
}

/* Footer - Bleeding Edge 2000s */
.footer {
    background: var(--black-pure);
    padding: 2rem;
    text-align: center;
    border-top: 3px solid var(--lime-neon);
}

.footer-text {
    color: var(--lime-neon);
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    font-size: 1.1rem;
}

.footer-badges {
    margin: 1.5rem 0;
}

.footer-badges img {
    height: 40px;
    margin: 0 0.5rem;
    border: 1px solid var(--lime-neon);
    padding: 0.25rem;
}

.footer-marquee {
    color: var(--lime-neon);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        margin: 0;
        border: none;
        box-shadow: none;
    }

    .hit-counter {
        position: relative;
        top: auto;
        right: auto;
        margin: 1rem;
        text-align: center;
    }

    .construction-badge {
        position: relative;
        top: auto;
        left: auto;
        text-align: center;
        margin: 1rem 0;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-badges {
        flex-direction: row;
        justify-content: center;
    }

    .nav-table td {
        display: block;
        margin: 0.25rem 0;
    }

    .nav-link {
        display: block;
        width: 100%;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .services-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* Blink Animation */
blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--deep-space);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--electric-blue), var(--hot-pink));
    border-radius: 6px;
}

/* Selection Styling */
::selection {
    background: var(--hot-pink);
    color: #FFF;
}

/* Bleeding Edge 2000s Elements */
.retro-cursor {
    position: fixed;
    width: 15px;
    height: 15px;
    background: var(--lime-neon);
    border: 1px solid var(--white-pure);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    animation: cursor-pulse 1s infinite;
}

@keyframes cursor-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.floating-words {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.float-word {
    position: absolute;
    font-family: var(--font-impact);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--lime-neon);
    text-shadow: 2px 2px 0px var(--black-pure);
    animation: matrix-rain 8s infinite linear;
    opacity: 0.7;
}

.float-word:nth-child(1) { top: -50px; left: 5%; animation-duration: 12s; animation-delay: 0s; }
.float-word:nth-child(2) { top: -50px; left: 15%; animation-duration: 15s; animation-delay: 1s; }
.float-word:nth-child(3) { top: -50px; left: 25%; animation-duration: 10s; animation-delay: 2s; }
.float-word:nth-child(4) { top: -50px; left: 35%; animation-duration: 14s; animation-delay: 0.5s; }
.float-word:nth-child(5) { top: -50px; left: 45%; animation-duration: 11s; animation-delay: 1.5s; }
.float-word:nth-child(6) { top: -50px; left: 55%; animation-duration: 13s; animation-delay: 2.5s; }
.float-word:nth-child(7) { top: -50px; left: 65%; animation-duration: 9s; animation-delay: 3s; }
.float-word:nth-child(8) { top: -50px; left: 75%; animation-duration: 16s; animation-delay: 1.2s; }
.float-word:nth-child(9) { top: -50px; left: 85%; animation-duration: 12s; animation-delay: 2.8s; }
.float-word:nth-child(10) { top: -50px; left: 95%; animation-duration: 14s; animation-delay: 0.8s; }

@keyframes matrix-rain {
    0% {
        transform: translateY(-100px) rotate(-5deg);
        opacity: 0;
    }
    5% {
        opacity: 0.7;
    }
    95% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(calc(100vh + 100px)) rotate(5deg);
        opacity: 0;
    }
}

/* ASCII Art Elements */
.ascii-welcome, .ascii-construction, .ascii-footer, .ascii-icon, .ascii-avatar {
    font-family: var(--font-mono);
    color: var(--lime-neon);
    text-align: center;
    white-space: pre;
    animation: pulse-glow 2s infinite;
}

.ascii-icon {
    font-size: 1.5rem;
    padding: 0.5rem;
    background: var(--black-dark);
    border: 1px solid var(--lime-neon);
    display: inline-block;
    margin: 0.5rem;
}

.ascii-avatar {
    font-size: 1.2rem;
    padding: 1rem;
    background: var(--black-dark);
    border: 2px solid var(--lime-neon);
    margin: 0 auto 1rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Enhanced animations */
@keyframes pulse-glow {
    0%, 100% {
        text-shadow: 0 0 5px var(--lime-neon);
        box-shadow: 0 0 5px var(--lime-neon);
    }
    50% {
        text-shadow: 0 0 15px var(--lime-neon), 0 0 25px var(--white-pure);
        box-shadow: 0 0 15px var(--lime-neon), 0 0 25px var(--white-pure);
    }
}

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

.section-title:hover {
    animation: glitch 0.2s infinite;
}

/* Scanline effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 0, 0.03) 2px,
        rgba(0, 255, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 1000;
    animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}

/* Enhanced animations - Bleeding Edge 2000s */
@keyframes lime-pulse {
    0%, 100% {
        box-shadow: 0 0 10px var(--lime-neon);
    }
    50% {
        box-shadow: 0 0 30px var(--lime-neon), 0 0 50px var(--white-pure);
    }
}

.service-card:hover {
    animation: lime-pulse 1.5s infinite;
}

/* Glitch effect for text */
@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

.section-title:hover {
    animation: glitch 0.3s infinite;
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .hit-counter,
    .construction-badge,
    .footer-marquee,
    .retro-cursor,
    .floating-words {
        display: none;
    }
}