:root {
    --primary-color: #00ff88;
    --bg-dark: #0f0f0f;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #000000 100%);
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

#background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.binary-digit {
    position: absolute;
    color: rgba(0, 255, 136, 0.15);
    font-family: 'JetBrains Mono', monospace;
    font-weight: bold;
    user-select: none;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
    animation: float 15s infinite linear;
    z-index: -1;
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    position: relative;
}

.hero-card {
    padding: 3rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    text-align: center;
    max-width: 90%;
}

.glitch-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 5rem;
    font-weight: 800;
    margin: 0;
    position: relative;
    color: var(--text-main);
    letter-spacing: 4px;
}

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

.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

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

@keyframes glitch-anim2 {
    0% { clip: rect(10px, 9999px, 80px, 0); }
    5% { clip: rect(90px, 9999px, 10px, 0); }
    10% { clip: rect(50px, 9999px, 20px, 0); }
    100% { clip: rect(20px, 9999px, 70px, 0); }
}

.subtitle {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.scroll-indicator {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.scroll-indicator span {
    width: 10px;
    height: 10px;
    border-bottom: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
    animation: scroll-arrow 2s infinite;
}

.scroll-indicator span:nth-child(2) { animation-delay: -0.2s; }
.scroll-indicator span:nth-child(3) { animation-delay: -0.4s; }

@keyframes scroll-arrow {
    0% { opacity: 0; transform: rotate(45deg) translate(-20px, -20px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(20px, 20px); }
}

/* Main Content */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding-bottom: 6rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0.7;
}

.info-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.1);
}

.info-card h2 {
    color: var(--primary-color);
    margin-top: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
}

.info-card p {
    line-height: 1.8;
    color: #ddd;
    font-size: 1rem;
}

.highlight-card {
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
}

/* Scroll Animations */
.hidden-left { opacity: 0; transform: translateX(-50px); }
.hidden-right { opacity: 0; transform: translateX(50px); }
.hidden-bottom { opacity: 0; transform: translateY(50px); }

.show {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* Footer & Socials */
footer {
    text-align: center;
    margin-top: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-btn {
    text-decoration: none;
    color: var(--bg-dark);
    background: var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.4);
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .glitch-text { font-size: 3rem; }
    .hero-card { padding: 2rem; width: 90%; }
    .container { padding: 1rem; gap: 2rem; }
    .info-card { padding: 1.5rem; }

    /* Disable complex 3D tilt on mobile for performance/usability */
    .hero-card { transform: none !important; }
}