:root {
    --bg: #070707;
    --bg-elev: #121212;
    --bg-elev-2: #1a1a1a;
    --text-main: #f4f4f4;
    --text-muted: #cfcfcf;
    --text-dim: #aaaaaa;
    --accent: #ff3b3b;
    --accent-bright: #ff6161;
    --border: #2a2a2a;
    --border-accent: rgba(255, 59, 59, 0.5);
    --shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 59, 59, 0.15) 0%, transparent 35%),
        radial-gradient(circle at 85% 75%, rgba(255, 100, 100, 0.1) 0%, transparent 40%),
        linear-gradient(120deg, #1a1a1a 0%, #0d0d0d 50%, #0a0a0a 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 2px,
            rgba(255, 59, 59, 0.03) 2px,
            rgba(255, 59, 59, 0.03) 4px
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 2px,
            rgba(255, 59, 59, 0.02) 2px,
            rgba(255, 59, 59, 0.02) 4px
        );
    opacity: 0.3;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--accent);
    width: min(1140px, 94%);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand h1 {
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    line-height: 1;
    color: #fff;
    letter-spacing: -0.01em;
    font-weight: 700;
}

.brand p {
    display: none;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

nav a {
    text-decoration: none;
    color: var(--text-dim);
    padding: 0.35rem 0.8rem;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: 0.2s ease;
}

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

main {
    width: min(1140px, 94%);
    margin: 0 auto;
}

.hero {
    margin-top: 1.2rem;
    padding: 4.8rem 1.1rem 3.2rem;
    position: relative;
    border: 1px solid var(--border);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255, 59, 59, 0.11) 0%, rgba(255, 59, 59, 0) 46%),
        var(--bg-elev);
    box-shadow: var(--shadow);
    text-align: left;
}

.hero::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 1rem;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, rgba(255, 59, 59, 0.15) 100%);
    border-radius: 8px;
}

.hero h2 {
    font-size: clamp(2rem, 4.6vw, 3.8rem);
    line-height: 1.12;
    max-width: 820px;
    margin-bottom: 0.95rem;
    color: #ffffff;
}

.hero p {
    max-width: 760px;
    color: var(--text-muted);
    font-size: 1.06rem;
    margin-bottom: 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.72rem;
}

.cta-button,
.cta-link {
    text-decoration: none;
    font-weight: 700;
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: 0.2s ease;
}

.cta-button {
    background: var(--accent);
    color: #fff;
    border-color: #ff7070;
}

.cta-button:hover {
    background: var(--accent-bright);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 59, 59, 0.28);
}

.cta-link {
    background: #181818;
    color: #ffb5b5;
    border-color: var(--border-accent);
}

.cta-link:hover {
    background: #211515;
    color: #ffd0d0;
    transform: translateY(-2px);
}

.about,
.projects-wrap,
footer {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-elev);
    box-shadow: var(--shadow);
}

.about {
    margin: 1rem 0 1.1rem;
    padding: 1.3rem;
}

.about h3 {
    color: #ffe1e1;
    font-size: 1.32rem;
    margin-bottom: 0.42rem;
}

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

.projects-wrap {
    margin-bottom: 1.5rem;
    padding: 1.4rem;
    background: var(--bg-elev);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.section-title {
    margin-bottom: 1rem;
    text-align: left;
}

.section-title h3 {
    color: #ffe1e1;
    font-size: 1.55rem;
}

.section-title p {
    color: var(--text-dim);
}

.projects {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
    align-items: stretch;
    background: none;
    border: none;
    padding: 0;
    transition: 0.25s ease;
}

.project-card.project-2 {
    direction: rtl;
}

.project-card.project-2 > * {
    direction: ltr;
}

.project-image {
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border-accent);
    background: var(--bg-elev-2);
    height: 100%;
    min-height: 320px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.08) 0%, rgba(255, 59, 59, 0) 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: 0.25s ease;
}

.project-card:hover .project-content {
    border-color: var(--border-accent);
    box-shadow: 0 12px 28px rgba(255, 59, 59, 0.15);
}

.tag {
    display: inline-block;
    font-size: 0.74rem;
    color: #ff9a9a;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.7rem;
    align-self: flex-start;
}

.project-card h4 {
    color: #fff;
    margin-bottom: 0.55rem;
    font-size: 1.28rem;
    line-height: 1.2;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.99rem;
}

.project-card p:last-child {
    margin: 0;
}

footer {
    margin: 0 auto 1.1rem;
    width: min(1140px, 94%);
    text-align: center;
    padding: 1.25rem;
    color: var(--text-dim);
}

@media (max-width: 860px) {
    .site-header {
        justify-content: center;
    }

    nav {
        justify-content: center;
    }

    .hero {
        text-align: center;
        padding: 4.2rem 1rem 2.8rem;
    }

    .hero h2,
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .section-title {
        text-align: center;
    }
}
