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

html {
    scroll-behavior: smooth;
}

body {
    background: #0a0404;
    color: #edf2f8;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    font-weight: 400;
    position: relative;
    overflow-x: hidden;
}

canvas#plexus {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: -2;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(224, 78, 78, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(224, 78, 78, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

nav {
    background: rgba(13, 4, 4, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(224, 78, 78, 0.2);
    padding: 16px 32px;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

nav:hover {
    background: rgba(13, 4, 4, 0.95);
    border-bottom-color: rgba(224, 78, 78, 0.4);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #ff4a2a 50%, #ff7b4a 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-decoration: none;
    letter-spacing: -0.03em;
    transition: transform 0.2s ease;
    display: inline-block;
}

.logo:hover {
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    gap: 48px;
}

.nav-links a {
    color: #c9b6b6;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #e04e4e, #ff7b4a);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #ff6b6b;
}

section {
    padding: 100px 0;
    position: relative;
}

.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-20px) translateX(10px); }
}

h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 40%, #e04e4e 80%, #ff8a5c 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gradient-text {
    background: linear-gradient(125deg, #ffffff, #ff6b6b, #ff4a2a);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

.gradient-text::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 30%;
    background: rgba(224, 78, 78, 0.2);
    filter: blur(12px);
    z-index: -1;
}

.subhead {
    font-size: 1.25rem;
    color: #b4c0e0;
    max-width: 560px;
    margin-bottom: 48px;
    border-left: 4px solid #e04e4e;
    padding-left: 28px;
    font-weight: 450;
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 32px 0 48px;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.stat {
    background: rgba(224, 78, 78, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(224, 78, 78, 0.3);
    border-radius: 100px;
    padding: 10px 28px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
}

.stat:hover {
    background: rgba(224, 78, 78, 0.2);
    border-color: rgba(224, 78, 78, 0.6);
    transform: translateY(-2px);
}

.stat strong {
    color: #FFFDB8;
    font-size: 1.1rem;
    font-weight: 700;
    margin-right: 6px;
}

.btn-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #e04e4e, #c03939);
    color: #fff;
    padding: 14px 36px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(224, 78, 78, 0.3);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(224, 78, 78, 0.5);
    background: linear-gradient(135deg, #ff5e5e, #d04444);
}

.btn:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    border: 2px solid #e04e4e;
    color: #e04e4e;
    box-shadow: none;
}

.btn-outline:hover {
    background: rgba(224, 78, 78, 0.15);
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.btn-outline::before {
    background: rgba(224, 78, 78, 0.2);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 56px;
    letter-spacing: -0.03em;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 0;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #e04e4e, #ff8a5c);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.section-title:hover::after {
    width: 100px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 28px 0 48px;
}

.skill {
    background: rgba(224, 78, 78, 0.08);
    border: 1px solid rgba(224, 78, 78, 0.3);
    border-radius: 60px;
    padding: 10px 26px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    letter-spacing: 0.3px;
    backdrop-filter: blur(4px);
}

.skill:hover {
    border-color: #e04e4e;
    background: rgba(224, 78, 78, 0.15);
    transform: translateY(-3px) scale(1.02);
    color: #ff8a6b;
}

.card {
    background: rgba(46, 15, 15, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(224, 78, 78, 0.2);
    border-radius: 32px;
    padding: 48px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.card:hover {
    border-color: rgba(224, 78, 78, 0.5);
    transform: translateY(-8px);
    background: rgba(46, 15, 15, 0.8);
    box-shadow: 0 20px 40px -15px rgba(224, 78, 78, 0.3);
}

.card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff, #ffae8a);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.card p {
    color: #c4cef0;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-box {
    background: rgba(46, 15, 15, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(224, 78, 78, 0.25);
    border-radius: 48px;
    padding: 64px 48px;
    text-align: center;
    transition: all 0.35s ease;
}

.contact-box:hover {
    border-color: rgba(224, 78, 78, 0.6);
    transform: scale(1.01);
    background: rgba(46, 15, 15, 0.75);
    box-shadow: 0 15px 40px rgba(224, 78, 78, 0.2);
}

.discord {
    background: rgba(224, 78, 78, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    border-radius: 100px;
    font-size: 1.3rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: #ffccaa;
    margin: 24px 0;
    border: 1px solid rgba(224, 78, 78, 0.4);
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
}

.discord::before {
    content: '';
    font-size: 1.2rem;
}

.discord:hover {
    background: rgba(224, 78, 78, 0.2);
    border-color: #e04e4e;
    transform: translateY(-2px);
    color: #ffffff;
}

footer {
    text-align: center;
    padding: 48px 24px;
    color: #7a6e7a;
    font-size: 0.75rem;
    border-top: 1px solid rgba(224, 78, 78, 0.15);
    letter-spacing: 0.5px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 24px;
}

@media (max-width: 900px) {
    h1 {
        font-size: 3.5rem;
    }
    .container {
        padding: 0 28px;
    }
    .nav-links {
        gap: 28px;
    }
    section {
        padding: 70px 0;
    }
    .card {
        padding: 36px;
    }
}

@media (max-width: 700px) {
    .nav-links {
        gap: 20px;
    }
    .nav-links a {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
    h1 {
        font-size: 2.8rem;
    }
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }
    h1 {
        font-size: 2.2rem;
    }
    .subhead {
        font-size: 1rem;
        padding-left: 20px;
    }
    .card {
        padding: 28px;
    }
    .contact-box {
        padding: 40px 24px;
    }
    .discord {
        font-size: 1rem;
        padding: 12px 28px;
    }
    .btn {
        padding: 12px 28px;
    }
    .grid-2 {
        gap: 24px;
    }
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #e04e4e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff6b6b;
}

::selection {
    background: rgba(224, 78, 78, 0.4);
    color: #ffffff;
}