:root{
    --bg:#050505;
    --card:#111111;
    --accent:#ff2b2b;
    --accent-dark:#b30000;
    --text:#f5f5f5;
    --muted:#9b9b9b;
    --border:rgba(255,255,255,0.08);
}

/* GLOBAL */

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

body{
    font-family:'Inter',sans-serif;
    background:var(--bg);
    color:var(--text);
    line-height:1.7;
    overflow-x:hidden;
    background-image:
        radial-gradient(circle at top right,
        rgba(255,43,43,0.08),
        transparent 30%);
}

.container{
    width:min(1200px,90%);
    margin:auto;
}

section{
    padding:100px 0;
}

h1,h2,h3{
    font-family:'Space Grotesk',sans-serif;
}

a{
    text-decoration:none;
}

/* HEADER */

.site-header{
    position:fixed;
    top:0;
    width:100%;
    z-index:1000;
    background:rgba(5,5,5,0.75);
    backdrop-filter:blur(14px);
    border-bottom:1px solid rgba(255,43,43,0.12);
}

.header-container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 0;
}

.logo{
    font-size:1.6rem;
    font-weight:700;
    color:var(--accent);
    letter-spacing:2px;
}

.site-nav ul{
    display:flex;
    gap:30px;
    list-style:none;
}

.site-nav a{
    color:var(--text);
    font-weight:500;
    transition:0.3s;
    position:relative;
}

.site-nav a::after{
    content:"";
    position:absolute;
    width:0%;
    height:2px;
    left:0;
    bottom:-6px;
    background:var(--accent);
    transition:0.3s;
}

.site-nav a:hover{
    color:var(--accent);
}

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

/* HERO */

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

.hero-bg{
    position:absolute;
    width:700px;
    height:700px;
    background:
    radial-gradient(
        circle,
        rgba(255,43,43,0.3),
        transparent 70%
    );
    top:-200px;
    right:-150px;
    filter:blur(60px);
}

.hero-content{
    position:relative;
    z-index:2;
}

.eyebrow{
    color:var(--accent);
    letter-spacing:4px;
    margin-bottom:20px;
    font-size:14px;
    font-weight:700;
}

.hero h1{
    font-size:clamp(3rem,7vw,6rem);
    line-height:1.05;
    max-width:900px;
    margin-bottom:30px;
}

.hero h1 span{
    color:var(--accent);
    text-shadow:0 0 20px rgba(255,43,43,0.5);
}

.hero-copy{
    max-width:700px;
    color:var(--muted);
    font-size:1.1rem;
    margin-bottom:40px;
}

/* BUTTONS */

.hero-actions{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}

.btn{
    padding:14px 30px;
    border-radius:14px;
    background:linear-gradient(
        135deg,
        var(--accent),
        var(--accent-dark)
    );
    color:white;
    font-weight:600;
    transition:0.35s ease;
    border:none;
    cursor:pointer;
}

.btn:hover{
    transform:translateY(-4px) scale(1.03);
    box-shadow:
        0 10px 30px rgba(255,43,43,0.35);
}

.btn-secondary{
    background:transparent;
    border:1px solid rgba(255,43,43,0.3);
}

.btn-secondary:hover{
    background:rgba(255,43,43,0.08);
}

.btn:disabled{
    opacity:0.7;
    cursor:not-allowed;
}

/* SECTION */

.section-header{
    margin-bottom:60px;
}

.section-header h2{
    font-size:3rem;
    margin-bottom:20px;
    color:var(--accent);
}

.section-header p{
    max-width:800px;
    color:var(--muted);
}

/* GLASS CARDS */

.glass{
    background:rgba(255,255,255,0.03);
    border:1px solid rgba(255,43,43,0.12);
    border-radius:24px;
    backdrop-filter:blur(12px);
    transition:0.35s ease;
    box-shadow:
        0 0 0 rgba(255,43,43,0);
}

.glass:hover{
    transform:translateY(-8px);
    border-color:rgba(255,43,43,0.4);
    box-shadow:
        0 10px 35px rgba(255,43,43,0.15);
}

/* ABOUT */

.about-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
}

.about-copy,
.about-panel{
    padding:40px;
}

.about-copy{
    color:var(--muted);
}

.tab-titles{
    display:flex;
    gap:12px;
    margin-bottom:30px;
    flex-wrap:wrap;
}

.tab-links{
    border:none;
    background:rgba(255,255,255,0.04);
    color:var(--text);
    padding:10px 18px;
    border-radius:12px;
    cursor:pointer;
    transition:0.3s;
}

.tab-links:hover{
    background:rgba(255,43,43,0.15);
}

.active-link{
    background:var(--accent);
    color:white;
}

.tab-contents{
    display:none;
}

.active-tab{
    display:block;
}

.tab-contents ul{
    list-style:none;
}

.tab-contents li{
    margin-bottom:24px;
    color:var(--muted);
}

.tab-contents li span{
    display:block;
    margin-bottom:8px;
    color:var(--accent);
    font-weight:600;
}

/* PROJECTS */

.work-list{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:30px;
}

.work{
    padding:35px;
    min-height:280px;
    overflow:hidden;
    position:relative;
}

.work::before{
    content:"";
    position:absolute;
    width:150%;
    height:150%;
    background:
    radial-gradient(
        circle,
        rgba(255,43,43,0.12),
        transparent 70%
    );
    top:-40%;
    left:-40%;
}

.layer{
    position:relative;
    z-index:2;
    height:100%;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
}

.layer h3{
    font-size:1.6rem;
    margin-bottom:12px;
}

.layer p{
    color:var(--muted);
    margin-bottom:20px;
}

.layer a{
    width:52px;
    height:52px;
    border-radius:50%;
    background:var(--accent);
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:0.3s;
}

.layer a:hover{
    transform:rotate(10deg) scale(1.08);
}

/* CONTACT */

.contact-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
}

.contact-left,
.contact-right{
    padding:40px;
}

.contact-left p{
    margin:20px 0;
    color:var(--muted);
}

.social-icons{
    display:flex;
    gap:16px;
    margin-top:30px;
}

.social-icons a{
    width:52px;
    height:52px;
    border-radius:50%;
    background:rgba(255,255,255,0.04);
    display:flex;
    align-items:center;
    justify-content:center;
    color:white;
    transition:0.3s;
    border:1px solid rgba(255,43,43,0.1);
}

.social-icons a:hover{
    background:var(--accent);
    transform:translateY(-5px);
}

/* FORM */

form input,
form textarea{
    width:100%;
    padding:16px;
    margin-bottom:20px;
    border-radius:14px;
    border:1px solid rgba(255,43,43,0.12);
    background:rgba(255,255,255,0.03);
    color:white;
    outline:none;
    transition:0.3s;
}

form input:focus,
form textarea:focus{
    border-color:var(--accent);
    box-shadow:
        0 0 20px rgba(255,43,43,0.15);
}

/* FOOTER */

.site-footer{
    text-align:center;
    padding:30px 0;
    border-top:1px solid rgba(255,43,43,0.1);
    color:var(--muted);
}

/* ANIMATIONS */

.hidden{
    opacity:0;
    transform:translateY(40px);
    transition:all 0.8s ease;
}

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

/* CURSOR GLOW */

.cursor-glow{
    position:fixed;
    width:320px;
    height:320px;
    border-radius:50%;
    background:
    radial-gradient(
        circle,
        rgba(255,43,43,0.16),
        transparent 70%
    );
    pointer-events:none;
    transform:translate(-50%,-50%);
    z-index:0;
}

/* SCROLLBAR */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#090909;
}

::-webkit-scrollbar-thumb{
    background:linear-gradient(
        var(--accent),
        var(--accent-dark)
    );
    border-radius:20px;
}

/* RESPONSIVE */

@media(max-width:900px){

    .about-grid,
    .contact-grid{
        grid-template-columns:1fr;
    }

    .hero h1{
        font-size:3rem;
    }

    .header-container{
        flex-direction:column;
        gap:20px;
    }

    .site-nav ul{
        gap:18px;
    }

}