:root {
    --bg: #0c0e11;
    --bg-soft: #111419;
    --card: #14171c;
    --card-hover: #181c22;

    --border: #252a31;
    --border-light: #303640;

    --text: #e8eaed;
    --text-secondary: #a2a8b0;
    --text-muted: #707781;

    --accent: #78aefc;
    --accent-soft: rgba(120, 174, 252, 0.10);

    --success: #63c59a;

    --max-width: 1240px;
}


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


html {
    scroll-behavior: smooth;
}


body {
    background: var(--bg);
    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.6;
}


a {
    color: inherit;
    text-decoration: none;
}


.container {
    width: min(
        calc(100% - 48px),
        var(--max-width)
    );

    margin: 0 auto;
}


/* HEADER */

.header {
    position: sticky;
    top: 0;

    z-index: 100;

    background:
        rgba(12, 14, 17, 0.94);

    backdrop-filter:
        blur(16px);

    border-bottom:
        1px solid var(--border);
}


.header-inner {
    width: min(
        calc(100% - 48px),
        1400px
    );

    min-height: 72px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    gap: 40px;
}


.logo {
    display: flex;

    align-items: center;

    gap: 12px;

    min-width: 225px;
}


.logo-mark {
    width: 36px;
    height: 36px;

    display: grid;

    place-items: center;

    border:
        1px solid var(--border-light);

    border-radius: 8px;

    color: var(--accent);

    font-weight: 600;
}


.logo strong {
    display: block;

    font-size: 13px;

    font-weight: 600;
}


.logo small {
    display: block;

    color: var(--text-muted);

    font-size: 10px;

    margin-top: 1px;
}


.navigation {
    display: flex;

    align-items: center;

    gap: 4px;

    overflow-x: auto;

    scrollbar-width: none;
}


.navigation::-webkit-scrollbar {
    display: none;
}


.nav-link {
    padding: 9px 11px;

    color: var(--text-secondary);

    font-size: 12px;

    white-space: nowrap;

    border-radius: 6px;

    transition:
        color 0.2s,
        background 0.2s;
}


.nav-link:hover,
.nav-link.active {
    color: var(--text);

    background:
        rgba(255, 255, 255, 0.05);
}


.menu-button {
    display: none;

    border: 0;

    background: none;

    cursor: pointer;
}


.menu-button span {
    display: block;

    width: 22px;
    height: 1px;

    margin: 5px;

    background: var(--text);
}


/* HERO */

.hero {
    padding:
        110px 0 100px;

    border-bottom:
        1px solid var(--border);
}


.hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.4fr)
        minmax(320px, 0.6fr);

    gap: 100px;

    align-items: center;
}


.section-label {
    color: var(--accent);

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 2px;

    text-transform: uppercase;
}


.hero h1 {
    max-width: 800px;

    margin-top: 20px;

    font-size:
        clamp(48px, 6vw, 76px);

    line-height: 1.05;

    letter-spacing: -3px;

    font-weight: 600;
}


.hero h1 span {
    display: block;

    color: var(--text-secondary);
}


.hero-text {
    max-width: 680px;

    margin-top: 25px;

    color: var(--text-secondary);

    font-size: 16px;

    line-height: 1.8;
}


.hero-actions {
    display: flex;

    gap: 12px;

    margin-top: 36px;
}


.button {
    padding: 11px 18px;

    border-radius: 7px;

    font-size: 12px;

    transition:
        background 0.2s,
        border-color 0.2s;
}


.button-primary {
    background: var(--text);

    color: var(--bg);
}


.button-primary:hover {
    background: white;
}


.button-secondary {
    border:
        1px solid var(--border-light);

    color: var(--text-secondary);
}


.button-secondary:hover {
    border-color:
        #505863;

    color: var(--text);
}


/* PROFILE CARD */

.profile-card {
    padding: 25px;

    background:
        var(--card);

    border:
        1px solid var(--border);

    border-radius: 10px;
}


.profile-card-header {
    display: flex;

    justify-content: space-between;

    color: var(--text-muted);

    font-size: 9px;

    letter-spacing: 1.5px;
}


.profile-status {
    color: var(--success);

    letter-spacing: 0;
}


.profile-avatar {
    width: 68px;
    height: 68px;

    display: grid;

    place-items: center;

    margin-top: 35px;

    border-radius: 50%;

    background:
        var(--accent-soft);

    border:
        1px solid rgba(120, 174, 252, 0.2);

    color: var(--accent);

    font-size: 20px;

    font-weight: 600;
}


.profile-card h2 {
    margin-top: 18px;

    font-size: 20px;

    font-weight: 600;
}


.profile-card > p {
    color: var(--text-muted);

    font-size: 12px;
}


.profile-divider {
    height: 1px;

    margin: 25px 0;

    background:
        var(--border);
}


.profile-row {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding: 9px 0;

    font-size: 11px;
}


.profile-row span {
    color: var(--text-muted);
}


.profile-row strong {
    color: var(--text-secondary);

    font-weight: 500;

    text-align: right;
}


/* SECTIONS */

.section {
    padding:
        100px 0;

    border-bottom:
        1px solid var(--border);
}


.section-heading {
    max-width: 720px;

    margin-bottom: 50px;
}


.section-heading h2 {
    margin-top: 12px;

    font-size: 36px;

    line-height: 1.2;

    letter-spacing: -1px;

    font-weight: 600;
}


.section-heading p {
    margin-top: 15px;

    color: var(--text-muted);

    font-size: 14px;
}


/* ABOUT */

.about-grid {
    display: grid;

    grid-template-columns:
        1.2fr 0.8fr;

    gap: 100px;
}


.about-text {
    max-width: 700px;
}


.about-text p {
    margin-bottom: 20px;

    color: var(--text-secondary);

    font-size: 15px;

    line-height: 1.9;
}


.about-stats {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 10px;
}


.stat-card {
    min-height: 125px;

    padding: 20px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    background: var(--card);

    border:
        1px solid var(--border);

    border-radius: 8px;
}


.stat-number {
    color: var(--text);

    font-size: 24px;

    font-weight: 600;
}


.stat-title {
    color: var(--text-muted);

    font-size: 10px;
}


/* SKILLS */

.skills-section {
    background:
        #0e1014;
}


.skills-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;
}


.skill-card {
    min-height: 230px;

    padding: 25px;

    background:
        var(--card);

    border:
        1px solid var(--border);

    border-radius: 9px;

    transition:
        background 0.2s,
        border-color 0.2s;
}


.skill-card:hover {
    background:
        var(--card-hover);

    border-color:
        var(--border-light);
}


.skill-card-number {
    color: var(--text-muted);

    font-size: 10px;

    margin-bottom: 25px;
}


.skill-card h3 {
    font-size: 17px;

    font-weight: 600;

    margin-bottom: 20px;
}


.skill-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}


.skill-tags span,
.project-tags span {
    padding: 5px 8px;

    color: var(--text-secondary);

    background:
        rgba(255, 255, 255, 0.035);

    border:
        1px solid var(--border);

    border-radius: 4px;

    font-size: 10px;
}


/* MONITORING */

.monitoring-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;
}


.monitor-card {
    position: relative;

    display: flex;

    align-items: flex-start;

    gap: 18px;

    padding: 25px;

    background:
        var(--card);

    border:
        1px solid var(--border);

    border-radius: 9px;

    transition:
        transform 0.2s,
        border-color 0.2s;
}


.monitor-card:hover {
    transform:
        translateY(-3px);

    border-color:
        var(--border-light);
}


.monitor-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    border-radius: 7px;

    background:
        var(--accent-soft);

    color: var(--accent);

    font-weight: 600;
}


.monitor-card h3 {
    font-size: 15px;

    font-weight: 600;
}


.monitor-card p {
    margin-top: 5px;

    color: var(--text-muted);

    font-size: 11px;

    line-height: 1.6;
}


.monitor-arrow {
    position: absolute;

    top: 25px;
    right: 20px;

    color: var(--text-muted);

    transition:
        transform 0.2s;
}


.monitor-card:hover .monitor-arrow {
    transform:
        translateX(4px);

    color: var(--accent);
}


/* PROJECTS */

.projects-section {
    background:
        #0e1014;
}


.projects-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;
}


.project-card {
    padding: 28px;

    background:
        var(--card);

    border:
        1px solid var(--border);

    border-radius: 9px;
}


.project-top {
    display: flex;

    justify-content: space-between;

    gap: 15px;

    color: var(--text-muted);

    font-size: 9px;

    letter-spacing: 1px;
}


.project-card h3 {
    margin-top: 45px;

    font-size: 22px;

    font-weight: 600;
}


.project-card p {
    min-height: 65px;

    margin-top: 12px;

    color: var(--text-muted);

    font-size: 12px;

    line-height: 1.7;
}


.project-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    margin-top: 25px;
}


/* CONTACT */

.contact-container {
    display: grid;

    grid-template-columns:
        1fr auto;

    align-items: end;

    gap: 60px;
}


.contact-container h2 {
    max-width: 600px;

    margin-top: 12px;

    font-size: 38px;

    line-height: 1.2;

    font-weight: 600;
}


.contact-container p {
    max-width: 600px;

    margin-top: 15px;

    color: var(--text-muted);

    font-size: 13px;
}


.contact-links {
    display: flex;

    flex-direction: column;

    gap: 10px;
}


.contact-links a {
    min-width: 130px;

    padding: 9px 14px;

    border:
        1px solid var(--border);

    border-radius: 5px;

    color: var(--text-secondary);

    font-size: 11px;

    text-align: center;

    transition:
        color 0.2s,
        border-color 0.2s;
}


.contact-links a:hover {
    color: var(--text);

    border-color:
        var(--border-light);
}


/* FOOTER */

.footer {
    padding:
        25px 0;

    color: var(--text-muted);

    font-size: 10px;
}


.footer-inner {
    display: flex;

    justify-content: space-between;
}


/* MOBILE */

@media (max-width: 1100px) {

    .header-inner {
        gap: 20px;
    }

    .navigation {
        display: none;
    }

    .menu-button {
        display: block;

        margin-left: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .profile-card {
        max-width: 600px;
    }

    .skills-grid,
    .projects-grid,
    .monitoring-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 700px) {

    .container {
        width:
            calc(100% - 32px);
    }

    .header-inner {
        width:
            calc(100% - 32px);
    }

    .hero {
        padding:
            70px 0;
    }

    .hero h1 {
        font-size: 44px;

        letter-spacing: -2px;
    }

    .section {
        padding:
            70px 0;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .about-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .skills-grid,
    .projects-grid,
    .monitoring-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;

        align-items: start;
    }

    .contact-links {
        flex-direction: row;

        flex-wrap: wrap;
    }

    .footer-inner {
        flex-direction: column;

        gap: 8px;
    }
    @media (max-width: 1100px) {

    .navigation.mobile-open {
        position: absolute;

        top: 72px;
        left: 0;
        right: 0;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        padding: 12px 24px;

        background:
            rgba(12, 14, 17, 0.98);

        border-bottom:
            1px solid var(--border);
    }

    .navigation.mobile-open .nav-link {
        padding: 12px;
    }

}

}