/* ===== L33T HACKER THEME - BLACK & WHITE ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00ff00;
    --secondary-color: #0fff0f;
    --bg-dark: #0a0a0a;
    --bg-darker: #000000;
    --text-primary: #ffffff;
    --text-secondary: #00ff00;
    --accent: #00ffff;
    --border-color: #333333;
    --glow: #00ff00;
}

/* Black and White Theme */
body.bw-theme {
    --primary-color: #1a1a1a;
    --secondary-color: #333333;
    --bg-dark: #f5f5f5;
    --bg-darker: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #1a1a1a;
    --accent: #404040;
    --border-color: #d0d0d0;
    --glow: #1a1a1a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body.bw-theme {
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
}

/* ===== MATRIX BACKGROUND ===== */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.03;
}

body.bw-theme .matrix-bg {
    opacity: 0.01;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-color);
    padding: 1rem 2rem;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.1);
}

body.bw-theme .navbar {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 3px;
    animation: glow 2s ease-in-out infinite;
}

.logo-text {
    color: var(--primary-color);
}

.bracket {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.theme-toggle,
.lang-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 12px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 0;
    transition: all 0.3s ease;
}

.theme-toggle:hover,
.lang-toggle:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

body.bw-theme .theme-toggle:hover,
body.bw-theme .lang-toggle:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.9rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 2rem 2rem;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    animation: slideInLeft 1s ease-out;
}

.title {
    font-size: 4rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    opacity: 0.9;
}

body.bw-theme .subtitle {
    color: var(--text-primary);
    opacity: 1;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    padding: 12px 30px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

body.bw-theme .btn {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

body.bw-theme .btn-primary {
    border-color: var(--primary-color);
}

body.bw-theme .btn-primary:hover {
    color: #ffffff;
    background: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    z-index: -1;
    transition: left 0.3s ease;
}

.btn-primary {
    border-color: var(--primary-color);
}

.btn-primary:hover {
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.btn-primary:hover::before {
    left: 0;
}

.btn-secondary {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-secondary:hover {
    color: var(--bg-dark);
    background: var(--accent);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.btn-text {
    position: relative;
    z-index: 1;
}

/* ===== HERO VISUAL ===== */
.hero-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
}

.panda-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.panda-ascii {
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    line-height: 1;
    color: var(--text-secondary);
    margin: 0;
    padding: 0;
    white-space: pre;
    animation: pandaFloat 4s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

body.bw-theme .panda-ascii {
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(26, 26, 26, 0.2);
}

@keyframes pandaFloat {
    0%, 100% {
        transform: translateY(0) scaleX(1);
        opacity: 1;
    }
    25% {
        transform: translateY(-15px) scaleX(1.02);
    }
    50% {
        transform: translateY(0) scaleX(1);
    }
    75% {
        transform: translateY(-10px) scaleX(0.98);
    }
}

/* ===== SECTION STYLING ===== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-out;
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.line-separator {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 0 auto;
}

/* ===== ABOUT SECTION ===== */
.about {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

body.bw-theme .about-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
}

.about-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.1), transparent);
    transition: top 0.3s ease;
}

.about-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.1);
    background: rgba(0, 255, 0, 0.02);
}

.about-card:hover::before {
    top: 0;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent);
    font-weight: bold;
}

.about-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.about-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

body.bw-theme .about-card p {
    color: rgba(26, 26, 26, 0.8);
}

/* ===== SERVICES SECTION ===== */
.services {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

body.bw-theme .service-card {
    background: rgba(0, 0, 0, 0.03);
    border: 2px solid var(--border-color);
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    background: rgba(0, 255, 0, 0.02);
    transform: translateY(-5px);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.service-number {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: bold;
}

.service-status {
    font-size: 0.8rem;
    color: var(--primary-color);
    letter-spacing: 1px;
    padding: 4px 8px;
    border: 1px solid var(--primary-color);
}

.service-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.service-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

body.bw-theme .service-card p {
    color: rgba(26, 26, 26, 0.75);
}

/* ===== STATS SECTION ===== */
.stats {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    background: rgba(0, 255, 0, 0.02);
}

body.bw-theme .stat-item {
    background: rgba(0, 0, 0, 0.02);
    border: 2px solid var(--border-color);
}

.stat-number {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.bw-theme .stat-label {
    color: rgba(26, 26, 26, 0.8);
}

/* ===== CONTACT SECTION ===== */
.contact {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
}

.info-value {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

body.bw-theme .info-value {
    color: rgba(26, 26, 26, 0.85);
}

.info-value:hover {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* ===== CONTACT FORM ===== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

body.bw-theme .form-input {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
}

.form-input::placeholder {
    color: rgba(0, 255, 0, 0.5);
}

body.bw-theme .form-input::placeholder {
    color: rgba(26, 26, 26, 0.5);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 255, 0, 0.02);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.1);
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(0, 0, 0, 0.5);
    border-top: 2px solid var(--primary-color);
    padding: 2rem;
    text-align: center;
}

body.bw-theme .footer {
    background: rgba(0, 0, 0, 0.05);
    border-top: 2px solid var(--primary-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 1rem;
}

body.bw-theme .footer-content {
    color: rgba(26, 26, 26, 0.85);
}

.footer-links {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.divider {
    color: var(--border-color);
    margin: 0 0.5rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 1s ease-in-out infinite;
}

/* ===== ANIMATIONS ===== */
@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(0, 255, 0, 0.8), 0 0 30px rgba(0, 255, 0, 0.5);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes glitch {
    0% {
        text-shadow: 
            2px 0 var(--accent),
            -2px 0 var(--primary-color);
    }
    50% {
        text-shadow: 
            -2px 0 var(--accent),
            2px 0 var(--primary-color);
    }
    100% {
        text-shadow: 
            2px 0 var(--accent),
            -2px 0 var(--primary-color);
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.glitch {
    animation: glitch 2s ease-in-out;
}

.typewriter {
    overflow: hidden;
    display: inline-block;
    animation: typewriter 1.5s steps(50, end);
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding-top: 80px;
    }

    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .hero-visual {
        height: 300px;
    }

    .tech-orbs {
        width: 200px;
        height: 200px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav-menu {
        gap: 1rem;
        font-size: 0.8rem;
    }

    .services-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .title {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero {
        padding: 100px 1rem 1rem;
    }

    .hero-visual {
        display: none;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
    }
}
