/* ========================================
   1. MAIN SETTINGS
======================================== */

:root {
    --background: #050816;
    --background-light: #0a1022;
    --card-background: rgba(15, 23, 42, 0.78);
    --card-hover: rgba(20, 31, 55, 0.95);

    --primary: #22d3ee;
    --primary-dark: #0891b2;
    --secondary: #3b82f6;

    --text-primary: #f8fafc;
    --text-secondary: #a8b3cf;
    --border: rgba(148, 163, 184, 0.18);

    --header-height: 72px;
    --container-width: 1120px;
    --border-radius: 18px;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--background);
    color: var(--text-primary);
    font-family:
        Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

.container {
    width: min(100% - 40px, var(--container-width));
    margin-inline: auto;
}

.section {
    padding: 110px 0;
}



/* ========================================
   2. NAVIGATION
======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    width: 100%;
    height: var(--header-height);

    background: rgba(5, 8, 22, 0.78);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    color: var(--text-primary);
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
}

.navigation {
    display: flex;
    align-items: center;
    gap: 36px;
}

.navigation a {
    position: relative;
    padding: 8px 0;

    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;

    transition:
        color var(--transition),
        transform var(--transition);
}

.navigation a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    width: 0;
    height: 2px;
    margin: auto;

    background: var(--primary);
    content: "";

    transition: width var(--transition);
}

.navigation a:hover,
.navigation a:focus-visible {
    color: var(--primary);
}

.navigation a:hover::after,
.navigation a:focus-visible::after {
    width: 100%;
}

.menu-button {
    display: none;
    padding: 6px;

    background: transparent;
    border: 0;
    color: var(--text-primary);

    font-size: 1.7rem;
    cursor: pointer;
}



/* ========================================
   3. HERO SECTION
======================================== */

.hero {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 100vh;
    padding-top: var(--header-height);

    isolation: isolate;
    overflow: hidden;
}

.hero::before {
    position: absolute;
    z-index: -2;
    inset: 0;

    background-image:
        linear-gradient(rgba(34, 211, 238, 0.045) 1px, transparent 1px),
        linear-gradient(
            90deg,
            rgba(34, 211, 238, 0.045) 1px,
            transparent 1px
        );
    background-size: 55px 55px;
    content: "";
}

.hero-background {
    position: absolute;
    z-index: -1;
    inset: 0;

    background:
        radial-gradient(
            circle at 75% 35%,
            rgba(59, 130, 246, 0.22),
            transparent 30%
        ),
        radial-gradient(
            circle at 20% 80%,
            rgba(34, 211, 238, 0.13),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            rgba(5, 8, 22, 0.15),
            var(--background) 75%
        );
}

.hero-content {
    padding-top: 60px;
    padding-bottom: 60px;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 30px;
    padding: 9px 15px;

    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 100px;

    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 600;
}

.status-dot {
    width: 9px;
    height: 9px;

    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.85);

    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.55;
        transform: scale(0.8);
    }
}

.introduction {
    margin-bottom: 8px;
    color: var(--primary);

    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.hero h1 {
    max-width: 900px;
    margin-bottom: 8px;

    font-size: clamp(3.2rem, 9vw, 6.5rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1;
}

.hero h2 {
    max-width: 900px;

    color: var(--text-secondary);
    font-size: clamp(1.8rem, 5vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.18;
}

.hero h2 span {
    display: block;

    background: linear-gradient(
        90deg,
        var(--primary),
        var(--secondary)
    );
    background-clip: text;
    -webkit-background-clip: text;

    color: transparent;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    max-width: 700px;
    margin-top: 28px;

    color: var(--text-secondary);
    font-size: 1.08rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;

    margin-top: 38px;
}



/* ========================================
   4. BUTTONS
======================================== */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;
    padding: 12px 24px;

    border: 1px solid transparent;
    border-radius: 10px;

    font-size: 0.95rem;
    font-weight: 700;

    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.button:hover {
    transform: translateY(-3px);
}

.primary-button {
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );
    color: #021018;

    box-shadow: 0 12px 35px rgba(34, 211, 238, 0.2);
}

.primary-button:hover {
    box-shadow: 0 16px 40px rgba(34, 211, 238, 0.32);
}

.secondary-button {
    background: rgba(15, 23, 42, 0.45);
    border-color: rgba(34, 211, 238, 0.38);
    color: var(--primary);
}

.secondary-button:hover {
    background: rgba(34, 211, 238, 0.1);
    border-color: var(--primary);
}



/* ========================================
   5. SECTION HEADINGS
======================================== */

.section-heading {
    margin-bottom: 50px;
}

.section-heading p,
.small-heading {
    margin-bottom: 8px;

    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-heading h2,
.cv-card h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -0.035em;
    line-height: 1.2;
}



/* ========================================
   6. ABOUT SECTION
======================================== */

.about-section {
    background: var(--background-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(250px, 360px) 1fr;
    align-items: center;
    gap: 70px;
}

.about-card {
    position: relative;
    padding: 14px;

    background: linear-gradient(
        145deg,
        rgba(34, 211, 238, 0.18),
        rgba(59, 130, 246, 0.06)
    );
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 24px;
}

.about-card::before {
    position: absolute;
    z-index: -1;
    inset: 25px;

    background: rgba(34, 211, 238, 0.25);
    border-radius: 50%;
    filter: blur(45px);
    content: "";
}

.profile-placeholder {
    display: grid;
    place-items: center;

    min-height: 410px;

    background:
        radial-gradient(
            circle at 50% 30%,
            rgba(34, 211, 238, 0.18),
            transparent 42%
        ),
        #080e1d;
    border-radius: 15px;
}

.profile-placeholder span {
    display: grid;
    place-items: center;

    width: 150px;
    height: 150px;

    background: rgba(34, 211, 238, 0.08);
    border: 2px solid rgba(34, 211, 238, 0.35);
    border-radius: 50%;

    color: var(--primary);
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.08em;

    box-shadow:
        0 0 40px rgba(34, 211, 238, 0.13),
        inset 0 0 25px rgba(34, 211, 238, 0.08);
}

.about-content h3 {
    margin-bottom: 20px;

    color: var(--text-primary);
    font-size: clamp(1.5rem, 4vw, 2.15rem);
    letter-spacing: -0.025em;
}

.about-content > p {
    margin-bottom: 18px;
    color: var(--text-secondary);
}

.information-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;

    margin-top: 34px;
}

.information-item {
    padding: 18px;

    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--border);
    border-radius: 12px;

    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition);
}

.information-item:hover {
    background: var(--card-hover);
    border-color: rgba(34, 211, 238, 0.35);
    transform: translateY(-3px);
}

.information-item span {
    display: block;
    margin-bottom: 5px;

    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.information-item strong {
    color: var(--text-primary);
    font-size: 0.94rem;
}



/* ========================================
   7. CV SECTION
======================================== */

.cv-section {
    position: relative;
    overflow: hidden;
}

.cv-card {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;

    padding: 55px;

    background:
        linear-gradient(
            120deg,
            rgba(15, 23, 42, 0.96),
            rgba(8, 20, 40, 0.92)
        );
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: var(--border-radius);

    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.cv-card::after {
    position: absolute;
    right: -100px;
    bottom: -150px;

    width: 330px;
    height: 330px;

    background: rgba(34, 211, 238, 0.11);
    border-radius: 50%;
    filter: blur(40px);
    content: "";
}

.cv-card > * {
    position: relative;
    z-index: 1;
}

.cv-card > div {
    max-width: 690px;
}

.cv-card h2 {
    margin-bottom: 18px;
}

.cv-card p:not(.small-heading) {
    color: var(--text-secondary);
}



/* ========================================
   8. CONTACT SECTION
======================================== */

.contact-section {
    background: var(--background-light);
    border-top: 1px solid var(--border);
}

.contact-container {
    text-align: center;
}

.contact-container .section-heading {
    margin-bottom: 22px;
}

.contact-introduction {
    max-width: 680px;
    margin: 0 auto 42px;

    color: var(--text-secondary);
    font-size: 1.05rem;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;

    max-width: 800px;
    margin: auto;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 18px;

    padding: 24px;

    background: var(--card-background);
    border: 1px solid var(--border);
    border-radius: 14px;

    text-align: left;

    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition);
}

a.contact-card:hover {
    background: var(--card-hover);
    border-color: rgba(34, 211, 238, 0.38);
    transform: translateY(-4px);
}

.contact-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;

    width: 48px;
    height: 48px;

    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 12px;

    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 700;
}

.contact-card div span {
    display: block;

    color: var(--text-secondary);
    font-size: 0.82rem;
}

.contact-card strong {
    color: var(--text-primary);
    font-size: 0.95rem;
    overflow-wrap: anywhere;
}



/* ========================================
   9. FOOTER
======================================== */

.footer {
    padding: 30px 0;

    background: #030510;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.87rem;
    text-align: center;
}

.back-to-top {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;

    transition: color var(--transition);
}

.back-to-top:hover {
    color: var(--text-primary);
}



/* ========================================
   10. ACCESSIBILITY
======================================== */

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(34, 211, 238, 0.65);
    outline-offset: 4px;
}



/* ========================================
   11. TABLET RESPONSIVENESS
======================================== */

@media (max-width: 900px) {
    .section {
        padding: 90px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .about-card {
        width: min(100%, 430px);
        margin: auto;
    }

    .profile-placeholder {
        min-height: 380px;
    }

    .cv-card {
        align-items: flex-start;
        flex-direction: column;
        padding: 42px;
    }

    .contact-options {
        grid-template-columns: 1fr;
    }
}



/* ========================================
   12. MOBILE RESPONSIVENESS
======================================== */

@media (max-width: 700px) {
    :root {
        --header-height: 66px;
    }

    .container {
        width: min(100% - 32px, var(--container-width));
    }

    .section {
        padding: 75px 0;
    }

    .menu-button {
        display: block;
    }

    .navigation {
        position: absolute;
        top: var(--header-height);
        right: 16px;
        left: 16px;

        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 4px;

        padding: 16px;

        background: rgba(8, 14, 30, 0.98);
        border: 1px solid var(--border);
        border-radius: 14px;

        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.42);
    }

    .navigation.active {
        display: flex;
    }

    .navigation a {
        display: block;
        padding: 12px 14px;
        border-radius: 8px;
    }

    .navigation a::after {
        display: none;
    }

    .navigation a:hover {
        background: rgba(34, 211, 238, 0.08);
    }

    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + 80px);
        padding-bottom: 90px;
    }

    .hero-content {
        padding-top: 0;
        padding-bottom: 0;
    }

    .status {
        align-items: flex-start;
        margin-bottom: 24px;
        font-size: 0.78rem;
    }

    .status-dot {
        margin-top: 4px;
    }

    .hero h1 {
        font-size: clamp(3rem, 16vw, 4.5rem);
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-buttons .button {
        width: 100%;
    }

    .section-heading {
        margin-bottom: 35px;
    }

    .information-grid {
        grid-template-columns: 1fr;
    }

    .profile-placeholder {
        min-height: 330px;
    }

    .profile-placeholder span {
        width: 125px;
        height: 125px;
        font-size: 3rem;
    }

    .cv-card {
        gap: 32px;
        padding: 30px 24px;
    }

    .cv-card .button {
        width: 100%;
    }

    .contact-card {
        padding: 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
    }
}



/* ========================================
   13. SMALL MOBILE SCREENS
======================================== */

@media (max-width: 420px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero h2 {
        font-size: 1.6rem;
    }

    .contact-card {
        align-items: flex-start;
    }
}



/* ========================================
   14. REDUCED MOTION
======================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}