* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #000000;
    --secondary-bg: #0a0a0a;
    --tertiary-bg: #151515;
    --gold: #ff0404;
    --light-text: #eaeaea;
    --muted-text: #a8a8a8;
}

html {
    scroll-behavior: smooth;
    height: 100%;
    background: #000000;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000000;
    color: var(--light-text);
    overflow-x: hidden;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* VANTA Background */
#vanta-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 4, 4, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff0404 0%, #2fab57 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: flex;
    align-items: center;
}

.nav-menu {
    display: none;
}

.nav-link {
    display: none;
}

.nav-link::after {
    display: none;
}

.nav-link:hover::after {
    display: none;
}

.nav-link:hover {
    display: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    min-height: auto;
    display: block;
    position: relative;
    overflow: visible;
    padding: 50px 2rem 30px;
    background: transparent;
    text-align: center;
    margin-top: 70px;
    margin-bottom: 70px;
    flex-shrink: 0;
}

.hero-content {
    max-width: 100%;
    z-index: 10;
    margin: 0;
    padding: 0;
}

.gradient-text {
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ff0404 0%, #2fab57 50%, #2fab57 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: -1px;
    line-height: 1.3;
    word-wrap: break-word;
    white-space: normal;
}

.description {
    font-size: 1.1rem;
    color: var(--muted-text);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.cta-button {
    padding: 1rem 3rem;
    font-size: 1rem;
    color: white;
    background: linear-gradient(135deg, #ff0404 0%, #2fab57 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(255, 4, 4, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 4, 4, 0.4);
}

.cta-button:active {
    transform: translateY(-1px);
}

/* About Section */
.about {
    position: relative;
    z-index: 1;
    padding: 120px 0;
    background: linear-gradient(135deg, #16213e 0%, #0f0f1e 100%);
}

.section-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 5rem;
    background: linear-gradient(135deg, #ff0404 0%, #2fab57 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--muted-text);
    margin-bottom: 1.5rem;
    line-height: 1.9;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 4, 4, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 4, 4, 0.1);
    transition: all 0.3s ease;
}

.stat:hover {
    background: rgba(255, 4, 4, 0.1);
    transform: translateY(-10px);
}

.stat h3 {
    font-size: 2.5rem;
    color: #ff0404;
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--muted-text);
    font-size: 0.9rem;
}

/* Projects Section */
.projects {
    position: relative;
    z-index: 1;
    padding: 120px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #050505 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.project-card {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 4, 4, 0.08) 0%, rgba(47, 171, 87, 0.08) 100%);
    border-radius: 15px;
    border: 1px solid rgba(255, 4, 4, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    background: linear-gradient(135deg, rgba(255, 4, 4, 0.15) 0%, rgba(47, 171, 87, 0.15) 100%);
    border-color: rgba(255, 4, 4, 0.2);
    transform: translateY(-10px);
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.card-content p {
    color: var(--muted-text);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tags span {
    background: rgba(255, 4, 4, 0.2);
    color: #ff0404;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 4, 4, 0.3);
}

/* Skills Section */
.skills {
    position: relative;
    z-index: 1;
    padding: 120px 0;
    background: linear-gradient(135deg, #050505 0%, #0a0a0a 100%);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.skill-category {
    padding: 2rem;
    background: rgba(255, 4, 4, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 4, 4, 0.1);
    transition: all 0.3s ease;
}

.skill-category:hover {
    background: rgba(255, 4, 4, 0.1);
    transform: translateY(-10px);
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #ff0404;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: linear-gradient(135deg, rgba(255, 4, 4, 0.1) 0%, rgba(47, 171, 87, 0.1) 100%);
    color: var(--light-text);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 4, 4, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-tag:hover {
    background: linear-gradient(135deg, rgba(255, 4, 4, 0.2) 0%, rgba(47, 171, 87, 0.2) 100%);
    border-color: rgba(255, 4, 4, 0.4);
    transform: scale(1.1);
}

/* Keyboard Section */
.keyboard-section {
    position: relative;
    z-index: 1;
    padding: 30px 0 50px 0;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-height: auto;
    margin-top: 70px;
    margin-bottom: 80px;
}

.keyboard-subtitle {
    display: none;
}

.keyboard-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 100%;
}

.keyboard {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    background: transparent;
    border-radius: 0px;
    border: none;
    box-shadow: none;
}

.key-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    width: 100%;
}

.key-row:last-child {
    justify-content: center;
    margin-left: -30px;
}

.spacebar-row {
    margin-top: 0.2rem;
}

.key {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.4) 0%, rgba(10, 10, 10, 0.4) 100%);
    border: 1px solid rgba(100, 100, 100, 0.3);
    border-radius: 6px;
    color: var(--light-text);
    font-weight: 600;
    cursor: pointer;
    transition: none;
    transform-style: preserve-3d;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    backdrop-filter: blur(10px);
    user-select: none;
    -webkit-user-select: none;
}

.key:hover {
    background: linear-gradient(180deg, rgba(42, 58, 26, 0.5) 0%, rgba(26, 42, 10, 0.5) 100%);
    transform: translateY(-10px) rotateX(20deg);
    box-shadow: 0 8px 20px rgba(47, 171, 87, 0.25);
    border-color: rgba(47, 171, 87, 0.6);
}

/* Highlighted Keys (A, Y, U, S, H) */
.key.highlight {
    background: linear-gradient(180deg, rgba(58, 26, 26, 0.5) 0%, rgba(42, 10, 10, 0.5) 100%);
    border-color: rgba(100, 100, 100, 0.3);
    box-shadow: 0 0 12px rgba(255, 4, 4, 0.3), inset 0 1px 0 rgba(255,255,255,0.05), inset 0 -2px 4px rgba(0,0,0,0.4);
}

.key.highlight:hover {
    background: linear-gradient(180deg, rgba(74, 42, 42, 0.6) 0%, rgba(58, 26, 26, 0.6) 100%);
    box-shadow: 0 8px 20px rgba(255, 4, 4, 0.35), 0 0 15px rgba(255, 4, 4, 0.4), inset 0 1px 0 rgba(255,255,255,0.1);
    border-color: rgba(100, 100, 100, 0.5);
}

/* Wide Keys (Enter) */
.key-wide {
    width: 70px;
    font-size: 0.75rem;
}

/* Keys with Secondary Symbols */
.key-symbol {
    position: relative;
    flex-direction: column;
}

.symbol {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.65rem;
    opacity: 0.6;
}

/* Contact Section */
.contact {
    position: relative;
    z-index: 1;
    padding: 120px 0;
    background: linear-gradient(135deg, #16213e 0%, #0f0f1e 100%);
    text-align: center;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: var(--muted-text);
    margin-bottom: 3rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(255, 4, 4, 0.1) 0%, rgba(47, 171, 87, 0.1) 100%);
    border: 2px solid rgba(255, 4, 4, 0.3);
    color: #ff0404;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.contact-link:hover {
    background: linear-gradient(135deg, #ff0404 0%, #2fab57 100%);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 4, 4, 0.3);
}

/* Footer */
.footer {
    padding: 1rem 2rem;
    text-align: right;
    color: var(--muted-text);
    border-top: none;
    background: transparent;
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 999;
    font-size: 0.65rem;
}

.footer p {
    margin: 0;
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.5rem;
    }

    .navbar {
        padding: 0.75rem 1.5rem;
    }

    .keyboard-section {
        padding: 20px 0 30px 0;
    }

    .keyboard {
        padding: 1.5rem;
        gap: 0.5rem;
    }

    .key {
        width: 50px;
        height: 50px;
        font-size: 0.8rem;
    }

    .key-row:last-child {
        margin-left: -25px;
    }

    .footer {
        padding: 0.75rem 1rem;
        font-size: 0.55rem;
    }
}

@media (max-width: 600px) {
    .logo {
        font-size: 1.3rem;
    }

    .navbar {
        padding: 0.5rem 1rem;
    }

    .keyboard-section {
        padding: 10px 0 15px 0;
        margin-top: 55px;
        margin-bottom: 55px;
    }

    .keyboard {
        padding: 1rem;
        gap: 0.4rem;
    }

    .key {
        width: 40px;
        height: 40px;
        font-size: 0.7rem;
    }

    .key-row {
        gap: 0.5rem;
    }

    .key-row:last-child {
        margin-left: -20px;
    }

    .key-wide {
        width: 45px;
    }

    .symbol {
        font-size: 0.55rem;
    }

    .footer {
        padding: 0.5rem 0.75rem;
        font-size: 0.5rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 0.9rem;
    }

    .nav-container {
        padding: 0.3rem 0.5rem;
    }

    .keyboard-section {
        padding: 5px 10px 5px 10px;
        margin-top: 0;
        margin-bottom: 0;
        flex: 1;
        height: 100vh;
        min-height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .keyboard-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .keyboard {
        padding: 0.5rem;
        gap: 0.3rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        max-width: 100vw;
    }

    .key {
        width: 28px;
        height: 28px;
        font-size: 0.55rem;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }

    .key-row {
        gap: 0.3rem;
        width: auto;
        justify-content: flex-start;
        margin: 0;
    }

    .key-row:last-child {
        margin-left: 0;
    }

    .key-wide {
        width: 32px;
    }

    .symbol {
        font-size: 0.4rem;
        top: 1px;
        right: 1px;
    }

    .footer {
        padding: 0.3rem 0.4rem;
        font-size: 0.38rem;
    }
}

    .key-spacebar {
        width: 240px;
    }

    .stat {
        padding: 1.5rem 1rem;
    }

    .stat h3 {
        font-size: 2rem;
    }

