* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Mono', monospace;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    position: relative;
    z-index: 1;
}

/* Binary Background Animation */
.binary-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
}

.binary-stream {
    position: absolute;
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    color: #00ff88;
    white-space: nowrap;
    animation: binaryFlow 20s linear infinite;
}

#binary1 {
    top: 10%;
    animation-delay: 0s;
}

#binary2 {
    top: 30%;
    animation-delay: -5s;
}

#binary3 {
    top: 50%;
    animation-delay: -10s;
}

#binary4 {
    top: 70%;
    animation-delay: -15s;
}

@keyframes binaryFlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100vw); }
}

/* Navigation */
.nav-3d {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 136, 0.3);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 900;
    color: #00ff88;
}

.brand-binary {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    color: #ffffff;
    opacity: 0.7;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #00ff88;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00ff88;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5rem;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.title-line {
    display: block;
    color: #ffffff;
}

.title-binary {
    display: block;
    color: #00ff88;
    font-size: 2rem;
    margin: 0.5rem 0;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-3d {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-3d.primary {
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    color: #000000;
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

.btn-3d.secondary {
    background: transparent;
    color: #00ff88;
    border: 2px solid #00ff88;
}

.btn-3d:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 255, 136, 0.4);
}

/* 3D Cube */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cube-3d {
    position: relative;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    animation: rotateCube 10s infinite linear;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, rgba(0, 255, 136, 0.1), rgba(0, 255, 136, 0.3));
    border: 2px solid #00ff88;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
}

.cube-face.front { transform: rotateY(0deg) translateZ(100px); }
.cube-face.back { transform: rotateY(180deg) translateZ(100px); }
.cube-face.right { transform: rotateY(90deg) translateZ(100px); }
.cube-face.left { transform: rotateY(-90deg) translateZ(100px); }
.cube-face.top { transform: rotateX(90deg) translateZ(100px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(100px); }

@keyframes rotateCube {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Sections */
section {
    padding: 5rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #00ff88;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

/* Cards Container */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
}

.card-3d {
    height: 300px;
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-3d:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.card-front {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 255, 136, 0.05));
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.card-back {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 255, 136, 0.1));
    border: 1px solid rgba(0, 255, 136, 0.5);
    transform: rotateY(180deg);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card-front h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #00ff88;
}

.card-front p {
    color: #cccccc;
    opacity: 0.8;
}

.card-back h4 {
    font-family: 'Orbitron', monospace;
    color: #00ff88;
    margin-bottom: 1rem;
}

.card-back ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.card-back li {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.card-link {
    color: #00ff88;
    text-decoration: none;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border: 1px solid #00ff88;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.card-link:hover {
    background: #00ff88;
    color: #000000;
}

/* About Section */
.about {
    background: rgba(0, 0, 0, 0.3);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    width: 100%;
    align-items: center;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #cccccc;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    font-size: 0.9rem;
}

.binary-pattern {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pattern-line {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: #00ff88;
    text-align: center;
    opacity: 0.6;
}

/* Contact Section */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    width: 100%;
}

.contact-card {
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.5);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-family: 'Orbitron', monospace;
    color: #00ff88;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: #cccccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .title-binary {
        font-size: 1.5rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}