:root {
    --background: #080b12;
    --background-secondary: #0d111a;
    --surface: #111722;
    --surface-light: #171e2b;

    --text: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent: #38bdf8;
    --accent-dark: #0ea5e9;

    --border: rgba(148, 163, 184, 0.12);

    --container: 1180px;

    --font-main: "Inter", sans-serif;
    --font-code: "JetBrains Mono", monospace;
}


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


html {
    scroll-behavior: smooth;
}


body {
    background: var(--background);
    color: var(--text);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}


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


button {
    font-family: inherit;
}


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

    margin: 0 auto;
}


.page-background {
    position: fixed;
    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 75% 20%,
            rgba(14, 165, 233, 0.08),
            transparent 30%
        ),
        radial-gradient(
            circle at 15% 70%,
            rgba(56, 189, 248, 0.04),
            transparent 25%
        );

    z-index: -1;
}


/* HEADER */

.header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    background: rgba(8, 11, 18, 0.78);

    backdrop-filter: blur(16px);

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

    z-index: 100;
}


.header-container {
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


.logo {
    font-family: var(--font-code);

    font-size: 20px;
    font-weight: 700;

    letter-spacing: -1px;
}


.logo span {
    color: var(--accent);
}


.navigation {
    display: flex;
    align-items: center;

    gap: 34px;
}


.navigation a {
    position: relative;

    color: var(--text-secondary);

    font-size: 14px;
    font-weight: 500;

    transition: color 0.25s ease;
}


.navigation a:hover {
    color: var(--text);
}


.navigation a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 1px;

    background: var(--accent);

    transition: width 0.25s ease;
}


.navigation a:hover::after {
    width: 100%;
}


.menu-toggle {
    display: none;

    width: 40px;
    height: 40px;

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

    background: transparent;

    cursor: pointer;

    padding: 9px;
}


.menu-toggle span {
    display: block;

    height: 1px;

    background: var(--text);

    margin: 5px 0;
}


/* HERO */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;

    padding-top: 76px;
}


.hero-container {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(400px, 0.85fr);

    gap: 80px;

    align-items: center;
}


.availability {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 28px;

    padding: 7px 12px;

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

    border-radius: 100px;

    background: rgba(17, 23, 34, 0.7);

    color: var(--text-secondary);

    font-family: var(--font-code);

    font-size: 11px;
}


.availability-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #4ade80;

    box-shadow: 0 0 12px rgba(74, 222, 128, 0.5);
}


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

    font-family: var(--font-code);

    font-size: 12px;
    font-weight: 500;

    letter-spacing: 2px;
}


.hero h1 {
    max-width: 760px;

    margin-top: 18px;

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

    line-height: 1.02;

    letter-spacing: -4px;

    font-weight: 800;
}


.hero h1 span {
    color: transparent;

    background:
        linear-gradient(
            90deg,
            #38bdf8,
            #7dd3fc
        );

    background-clip: text;
    -webkit-background-clip: text;
}


.hero-description {
    max-width: 620px;

    margin-top: 28px;

    color: var(--text-secondary);

    font-size: 17px;

    line-height: 1.8;
}


.hero-actions {
    display: flex;

    gap: 14px;

    margin-top: 36px;
}


.button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    min-height: 48px;

    padding: 0 22px;

    border-radius: 6px;

    font-size: 14px;
    font-weight: 600;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}


.button:hover {
    transform: translateY(-2px);
}


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

    color: #061018;
}


.button-primary:hover {
    background: #7dd3fc;
}


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

    background: rgba(17, 23, 34, 0.6);

    color: var(--text);
}


.button-secondary:hover {
    border-color: rgba(56, 189, 248, 0.4);
}


.hero-social {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 34px;

    color: var(--text-muted);

    font-size: 13px;
}


.hero-social a {
    transition: color 0.2s ease;
}


.hero-social a:hover {
    color: var(--accent);
}


/* TERMINAL */

.hero-terminal {
    position: relative;
}


.terminal-window {
    position: relative;

    overflow: hidden;

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

    border-radius: 10px;

    background: #0a0e15;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(14, 165, 233, 0.04);
}


.terminal-header {
    height: 44px;

    display: flex;

    align-items: center;

    justify-content: center;

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

    background: #0d121b;
}


.terminal-dots {
    position: absolute;

    left: 16px;

    display: flex;

    gap: 6px;
}


.terminal-dots span {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #334155;
}


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

    font-family: var(--font-code);

    font-size: 11px;
}


.terminal-body {
    min-height: 350px;

    padding: 30px;

    color: #cbd5e1;

    font-family: var(--font-code);

    font-size: 13px;

    line-height: 2;
}


.indent {
    padding-left: 24px;
}


.indent-double {
    padding-left: 48px;
}


.code-purple {
    color: #c084fc;
}


.code-blue {
    color: #60a5fa;
}


.code-yellow {
    color: #facc15;
}


.code-orange {
    color: #fb923c;
}


.code-green {
    color: #4ade80;
}


.terminal-cursor {
    display: inline-block;

    width: 7px;
    height: 15px;

    margin-left: 3px;

    vertical-align: middle;

    background: var(--accent);

    animation: blink 1s infinite;
}


@keyframes blink {
    50% {
        opacity: 0;
    }
}


.floating-card {
    position: absolute;

    padding: 13px 17px;

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

    border-radius: 8px;

    background: rgba(17, 23, 34, 0.9);

    backdrop-filter: blur(10px);

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}


.floating-card strong {
    display: block;

    color: var(--text);

    font-size: 13px;
}


.floating-card span {
    display: block;

    margin-top: 2px;

    color: var(--text-muted);

    font-family: var(--font-code);

    font-size: 9px;
}


.floating-card-one {
    left: -30px;
    bottom: 50px;
}


.floating-card-two {
    right: -25px;
    top: 65px;
}


/* SECTIONS */

.section {
    padding: 130px 0;
}


.section-heading {
    display: flex;

    gap: 22px;

    align-items: flex-start;

    margin-bottom: 60px;
}


.section-number {
    padding-top: 6px;

    color: var(--accent);

    font-family: var(--font-code);

    font-size: 12px;
}


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

    font-size: clamp(30px, 4vw, 46px);

    line-height: 1.1;

    letter-spacing: -2px;
}


/* ABOUT */

.about-grid {
    display: grid;

    grid-template-columns: 1.3fr 0.7fr;

    gap: 100px;
}


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


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

    color: var(--text-secondary);

    font-size: 17px;

    line-height: 1.9;
}


.about-stats {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 1px;

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

    background: var(--border);
}


.stat {
    min-height: 130px;

    padding: 25px;

    background: var(--background);

    display: flex;

    flex-direction: column;

    justify-content: center;
}


.stat strong {
    font-size: 19px;
}


.stat span {
    margin-top: 5px;

    color: var(--text-muted);

    font-size: 12px;
}


/* SKILLS */

.skills-grid {
    display: grid;

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

    gap: 14px;
}


.skill-card {
    padding: 30px;

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

    border-radius: 8px;

    background: rgba(13, 17, 26, 0.6);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}


.skill-card:hover {
    transform: translateY(-5px);

    border-color: rgba(56, 189, 248, 0.3);

    background: var(--surface);
}


.skill-icon {
    width: 44px;
    height: 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 24px;

    border: 1px solid rgba(56, 189, 248, 0.2);

    border-radius: 6px;

    background: rgba(56, 189, 248, 0.06);

    color: var(--accent);

    font-family: var(--font-code);

    font-size: 13px;
    font-weight: 500;
}


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


.skill-card p {
    margin-top: 10px;

    color: var(--text-muted);

    font-size: 13px;

    line-height: 1.7;
}


/* PROJECTS */

.projects-grid {
    display: grid;

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

    gap: 18px;
}


.project-card {
    overflow: hidden;

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

    border-radius: 9px;

    background: var(--surface);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}


.project-card:hover {
    transform: translateY(-5px);

    border-color: rgba(56, 189, 248, 0.25);
}


.project-image {
    height: 230px;

    padding: 14px;

    background:
        linear-gradient(
            135deg,
            #111827,
            #0b1220
        );
}


.project-placeholder {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px dashed rgba(148, 163, 184, 0.16);

    color: var(--text-muted);

    font-family: var(--font-code);

    font-size: 11px;

    letter-spacing: 2px;
}


.project-content {
    padding: 28px;
}


.project-top {
    display: flex;

    align-items: center;

    justify-content: space-between;
}


.project-type {
    color: var(--accent);

    font-family: var(--font-code);

    font-size: 9px;

    letter-spacing: 1.5px;
}


.project-link {
    color: var(--text-muted);

    font-size: 20px;

    transition: color 0.2s ease;
}


.project-link:hover {
    color: var(--accent);
}


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

    font-size: 22px;
}


.project-card p {
    margin-top: 10px;

    color: var(--text-secondary);

    font-size: 13px;

    line-height: 1.7;
}


.project-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 22px;
}


.project-tags span {
    padding: 5px 9px;

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

    border-radius: 4px;

    color: var(--text-muted);

    font-family: var(--font-code);

    font-size: 9px;
}


/* CONTACT */

.contact {
    padding-top: 60px;
    padding-bottom: 130px;
}


.contact-box {
    position: relative;

    overflow: hidden;

    min-height: 360px;

    display: flex;

    align-items: center;

    padding: 70px;

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

    border-radius: 10px;

    background:
        linear-gradient(
            120deg,
            rgba(14, 165, 233, 0.08),
            rgba(13, 17, 26, 0.7)
        );
}


.contact-content {
    position: relative;

    max-width: 700px;

    z-index: 2;
}


.contact-content h2 {
    margin-top: 15px;

    font-size: clamp(36px, 5vw, 58px);

    line-height: 1.05;

    letter-spacing: -3px;
}


.contact-content h2 span {
    display: block;

    color: var(--accent);
}


.contact-content p {
    max-width: 550px;

    margin-top: 22px;

    margin-bottom: 30px;

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


.contact-decoration {
    position: absolute;

    right: 8%;

    display: flex;

    gap: 10px;

    color: rgba(56, 189, 248, 0.06);

    font-family: var(--font-code);

    font-size: 200px;

    line-height: 1;
}


/* FOOTER */

.footer {
    border-top: 1px solid var(--border);
}


.footer-container {
    min-height: 80px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    color: var(--text-muted);

    font-size: 11px;
}


.footer-code {
    font-family: var(--font-code);
}


/* RESPONSIVE */

@media (max-width: 1000px) {

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

        gap: 70px;

        padding-top: 70px;
    }


    .hero-content {
        max-width: 750px;
    }


    .hero-terminal {
        max-width: 700px;

        width: 100%;

        margin: 0 auto;
    }


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

        gap: 50px;
    }

}


@media (max-width: 760px) {

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


    .header-container {
        height: 68px;
    }


    .menu-toggle {
        display: block;
    }


    .navigation {
        position: absolute;

        top: 68px;
        left: 16px;
        right: 16px;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        padding: 8px;

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

        border-radius: 8px;

        background: rgba(13, 17, 26, 0.98);

        opacity: 0;

        visibility: hidden;

        transform: translateY(-10px);

        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0.25s ease;
    }


    .navigation.active {
        opacity: 1;

        visibility: visible;

        transform: translateY(0);
    }


    .navigation a {
        padding: 13px 15px;
    }


    .navigation a::after {
        display: none;
    }


    .hero {
        padding-top: 100px;
    }


    .hero h1 {
        font-size: clamp(42px, 12vw, 62px);

        letter-spacing: -3px;
    }


    .hero-description {
        font-size: 15px;
    }


    .hero-actions {
        flex-direction: column;

        align-items: stretch;
    }


    .button {
        width: 100%;
    }


    .floating-card {
        display: none;
    }


    .terminal-body {
        min-height: 310px;

        padding: 20px;

        font-size: 10px;

        overflow-x: auto;
    }


    .section {
        padding: 90px 0;
    }


    .section-heading {
        margin-bottom: 40px;
    }


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


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


    .project-image {
        height: 200px;
    }


    .contact-box {
        min-height: 400px;

        padding: 40px 25px;
    }


    .contact-decoration {
        right: -20px;

        font-size: 150px;
    }


    .footer-container {
        min-height: 100px;

        flex-direction: column;

        justify-content: center;

        gap: 8px;
    }

}