/* =========================
   VARIABLES
========================= */

:root {

    --background: #f7f9fc;
    --background-secondary: #f0f4f8;

    --surface: #ffffff;
    --surface-soft: #f8fbfe;

    --text: #172033;
    --heading: #101828;
    --muted: #5e6b7c;

    --accent: #1473e6;
    --accent-dark: #0b58b6;
    --accent-light: #eaf4ff;

    --border: #dce5ee;
    --border-blue: #cfe5ff;

    --shadow:
        0 8px 30px rgba(24, 52, 78, 0.07);

    --shadow-hover:
        0 16px 40px rgba(24, 52, 78, 0.13);

    --max-width: 1180px;

}



/* =========================
   RESET
========================= */

* {
    box-sizing: border-box;
}


html {

    scroll-behavior: smooth;

    scroll-padding-top: 90px;

}


body {

    margin: 0;

    font-family:
        "Segoe UI",
        Inter,
        Arial,
        sans-serif;

    background: var(--background);

    color: var(--text);

    line-height: 1.72;

    font-size: 16px;

}


a {

    color: inherit;

    text-decoration: none;

}


img {

    display: block;

    max-width: 100%;

}


button {

    font: inherit;

}



/* =========================
   NAVIGATION
========================= */

.navbar {

    position: sticky;

    top: 0;

    z-index: 1000;

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

    backdrop-filter: blur(16px);

    -webkit-backdrop-filter: blur(16px);

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

    box-shadow:
        0 2px 15px rgba(30, 55, 80, 0.04);

}


.nav-container {

    max-width: var(--max-width);

    margin: auto;

    min-height: 72px;

    padding:
        0 24px;

    display: flex;

    justify-content: space-between;

    align-items: center;

}


.logo {

    width: 42px;

    height: 42px;

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--accent);

    color: white;

    font-size: 16px;

    font-weight: 800;

    letter-spacing: 0.5px;

    box-shadow:
        0 7px 20px rgba(20, 115, 230, 0.22);

}


nav {

    display: flex;

    align-items: center;

    gap: 25px;

}


nav a {

    color: #465568;

    font-size: 14.5px;

    font-weight: 600;

    transition:
        color 0.2s ease;

}


nav a:hover {

    color: var(--accent);

}


.nav-cv {

    padding:
        8px 14px;

    border-radius: 8px;

    background:
        var(--accent-light);

    color:
        var(--accent-dark);

}



/* =========================
   MOBILE MENU
========================= */

.menu-toggle {

    display: none;

    width: 40px;

    height: 40px;

    border: none;

    border-radius: 8px;

    background:
        var(--accent-light);

    cursor: pointer;

    padding: 9px;

}


.menu-toggle span {

    display: block;

    height: 2px;

    width: 100%;

    margin: 4px 0;

    background:
        var(--accent-dark);

}



/* =========================
   HERO
========================= */

.hero {

    max-width:
        var(--max-width);

    min-height: 78vh;

    margin: auto;

    padding:
        105px 24px
        85px;

    display: flex;

    align-items: center;

}


.hero-grid {

    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(280px, 0.65fr);

    gap: 75px;

    align-items: center;

}


.hero-content {

    max-width: 760px;

}


.eyebrow {

    margin: 0;

    color: var(--accent);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2.2px;

}


.hero h1 {

    margin:
        13px 0
        12px;

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

    line-height: 1.06;

    letter-spacing: -2.4px;

    color: var(--heading);

}


.hero h1 span {

    color: var(--accent);

}


.hero h2 {

    max-width: 680px;

    margin:
        20px 0
        0;

    font-size:
        clamp(
            21px,
            2.5vw,
            29px
        );

    line-height: 1.35;

    font-weight: 600;

    color: #526274;

}


.hero-description {

    max-width: 700px;

    margin-top: 28px;

    font-size: 17px;

    line-height: 1.8;

    color: var(--muted);

}


.hero-buttons {

    margin-top: 36px;

    display: flex;

    gap: 13px;

    flex-wrap: wrap;

}



/* =========================
   BUTTONS
========================= */

.button {

    min-height: 46px;

    padding:
        12px 20px;

    border-radius: 9px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    font-size: 14px;

    font-weight: 700;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;

}


.button:hover {

    transform:
        translateY(-2px);

}


.primary {

    background:
        var(--accent);

    color: white;

    box-shadow:
        0 7px 20px
        rgba(20, 115, 230, 0.20);

}


.primary:hover {

    background:
        var(--accent-dark);

}


.secondary {

    background:
        var(--surface);

    color:
        var(--text);

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

}


.secondary:hover {

    box-shadow:
        var(--shadow);

}



/* =========================
   HERO PHOTO
========================= */

.hero-photo-wrapper {

    position: relative;

    display: flex;

    justify-content: center;

    align-items: center;

}


.photo-decoration {

    position: absolute;

    width: 90%;

    height: 90%;

    right: -8px;

    bottom: -8px;

    border-radius: 30px;

    background:
        linear-gradient(
            135deg,
            var(--accent-light),
            #dcecff
        );

    transform:
        rotate(4deg);

}


.hero-photo {

    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 355px;

    aspect-ratio:
        4 / 5;

    object-fit: cover;

    object-position:
        center center;

    border-radius: 27px;

    border:
        7px solid white;

    box-shadow:
        0 22px 55px
        rgba(35, 75, 110, 0.17);

}



/* =========================
   SECTIONS
========================= */

.dashboard,
.content-section {

    max-width:
        var(--max-width);

    margin: auto;

    padding:
        82px 24px;

}


.dashboard {

    padding-top: 65px;

}


.section-heading {

    margin-bottom: 36px;

}


.section-heading > p:first-child {

    margin: 0;

    color: var(--accent);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;

}


.section-heading h2 {

    margin:
        6px 0
        10px;

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

    line-height: 1.2;

    color:
        var(--heading);

    letter-spacing:
        -0.6px;

}


.heading-line {

    width: 54px;

    height: 3px;

    margin-top: 14px;

    border-radius: 10px;

    background:
        var(--accent);

}


.section-description {

    max-width: 700px;

    margin-top: 18px;

    color: var(--muted);

    font-size: 15.5px;

}



/* =========================
   DASHBOARD
========================= */

.dashboard-grid {

    display: grid;

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

    gap: 18px;

}


.card {

    min-height: 185px;

    padding: 28px;

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

    border-radius: 16px;

    background:
        var(--surface);

    box-shadow:
        var(--shadow);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;

}


.card:hover {

    transform:
        translateY(-4px);

    box-shadow:
        var(--shadow-hover);

    border-color:
        var(--border-blue);

}


.card-label,
.project-type {

    color:
        var(--accent);

    font-size: 11px;

    letter-spacing: 1.5px;

    font-weight: 800;

}


.card h3 {

    margin:
        18px 0
        5px;

    color:
        var(--heading);

    font-size: 19px;

}


.card p {

    margin:
        0 0
        5px;

    color:
        var(--text);

    font-size: 14.5px;

}


.card small {

    color:
        var(--muted);

    font-size: 13.5px;

}



/* =========================
   EXPERIENCE
========================= */

.timeline {

    display: grid;

    gap: 20px;

}


.timeline-item {

    display: grid;

    grid-template-columns:
        110px 1fr;

    gap: 28px;

    padding: 30px;

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

    border-radius: 16px;

    background:
        var(--surface);

    box-shadow:
        var(--shadow);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

}


.timeline-item:hover {

    transform:
        translateY(-3px);

    box-shadow:
        var(--shadow-hover);

}


.timeline-date span {

    display: inline-block;

    color:
        var(--accent);

    font-size: 14px;

    font-weight: 800;

}


.timeline-content h3 {

    margin: 0;

    color:
        var(--heading);

    font-size:
        21px;

}


.timeline-content h4 {

    margin:
        4px 0
        14px;

    color:
        var(--muted);

    font-size:
        14.5px;

    font-weight: 600;

}


.timeline-content p {

    max-width: 850px;

    margin-bottom: 0;

    color:
        var(--muted);

    font-size: 15px;

}



/* =========================
   TAGS
========================= */

.tags {

    margin-top: 18px;

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

}


.tags span {

    padding:
        6px 11px;

    background:
        var(--accent-light);

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

    border-radius:
        20px;

    color:
        var(--accent-dark);

    font-size:
        12px;

    font-weight:
        600;

}



/* =========================
   PROJECTS
========================= */

.project-grid {

    display: grid;

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

    gap: 20px;

}


.project-card {

    padding: 32px;

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

    border-radius: 16px;

    background:
        var(--surface);

    box-shadow:
        var(--shadow);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

}


.project-card:hover {

    transform:
        translateY(-4px);

    box-shadow:
        var(--shadow-hover);

}


.project-card h3 {

    margin:
        11px 0;

    color:
        var(--heading);

    font-size:
        25px;

}


.project-card p {

    min-height: 84px;

    margin: 0;

    color:
        var(--muted);

    font-size: 15px;

    line-height: 1.72;

}


.project-link-placeholder {

    margin-top: 22px;

    color:
        var(--accent);

    font-size:
        13px;

    font-weight:
        700;

}



/* =========================
   SKILLS
========================= */

.skills-grid {

    display: grid;

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

    gap: 18px;

}


.skill-group {

    padding: 28px;

    background:
        var(--surface);

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

    border-radius: 15px;

    box-shadow:
        var(--shadow);

}


.skill-group h3 {

    margin:
        0 0
        12px;

    color:
        var(--accent-dark);

    font-size:
        18px;

}


.skill-group p {

    margin: 0;

    color:
        var(--muted);

    font-size: 14.5px;

    line-height: 1.72;

}



/* =========================
   PRESENTATIONS
========================= */

.simple-list {

    display: grid;

    gap: 14px;

}


.simple-list article {

    display: grid;

    grid-template-columns:
        110px 1fr;

    gap: 25px;

    padding:
        25px 28px;

    background:
        var(--surface);

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

    border-left:
        4px solid var(--accent);

    border-radius:
        12px;

    box-shadow:
        var(--shadow);

}


.activity-date {

    color:
        var(--accent);

    font-size:
        12px;

    font-weight:
        800;

    letter-spacing:
        1px;

}


.simple-list h3 {

    margin:
        0 0
        5px;

    color:
        var(--heading);

    font-size:
        18px;

}


.simple-list p {

    margin: 0;

    color:
        var(--muted);

    font-size: 14.5px;

}


.status {

    display: inline-block;

    margin-top: 10px;

    padding:
        4px 9px;

    border-radius: 20px;

    background:
        var(--accent-light);

    color:
        var(--accent-dark);

    font-size:
        11px;

    font-weight:
        700;

}



/* =========================
   EDUCATION
========================= */

.education-grid {

    display: grid;

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

    gap: 20px;

}


.education-card {

    position: relative;

    padding: 30px;

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

    border-radius: 16px;

    background:
        var(--surface);

    box-shadow:
        var(--shadow);

}


.education-date {

    display: inline-block;

    margin-bottom: 17px;

    color:
        var(--accent);

    font-size:
        12px;

    font-weight:
        800;

}


.education-card h3 {

    margin: 0;

    color:
        var(--heading);

    font-size:
        21px;

}


.education-card h4 {

    margin:
        7px 0
        13px;

    color:
        var(--accent-dark);

    font-size:
        15px;

}


.education-card p {

    color:
        var(--muted);

    font-size:
        14.5px;

}


.education-description {

    padding-top: 15px;

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

}



/* =========================
   CONTACT
========================= */

.contact-section {

    padding-bottom: 100px;

}


.contact-card {

    padding: 42px;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 50px;

    align-items: start;

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

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f2f8ff
        );

    box-shadow:
        var(--shadow);

}


.contact-copy h3 {

    margin:
        0 0
        14px;

    color:
        var(--heading);

    font-size:
        28px;

}


.contact-copy p {

    max-width: 520px;

    margin: 0;

    color:
        var(--muted);

    font-size: 15px;

}


.contact-links {

    display: grid;

    gap: 12px;

}


.contact-button {

    padding:
        16px 18px;

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

    border-radius:
        11px;

    background:
        var(--surface);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;

}


.contact-button:hover {

    transform:
        translateX(4px);

    border-color:
        var(--border-blue);

    box-shadow:
        var(--shadow);

}


.contact-label {

    display: block;

    margin-bottom: 3px;

    color:
        var(--accent);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.4px;

}


.contact-button strong {

    color:
        var(--text);

    font-size:
        14px;

}



/* =========================
   FOOTER
========================= */

footer {

    background:
        #edf3f8;

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

}


.footer-container {

    max-width:
        var(--max-width);

    margin: auto;

    padding:
        36px 24px;

    display: grid;

    grid-template-columns:
        1fr auto;

    gap:
        15px 30px;

    align-items: center;

}


.footer-container strong {

    color:
        var(--heading);

}


.footer-container p {

    margin:
        3px 0
        0;

    color:
        var(--muted);

    font-size:
        13px;

}


.footer-links {

    display: flex;

    gap: 20px;

}


.footer-links a {

    color:
        var(--muted);

    font-size:
        14px;

    font-weight:
        600;

}


.footer-links a:hover {

    color:
        var(--accent);

}


.copyright {

    grid-column:
        1 / -1;

    padding-top:
        15px;

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

}



/* =========================
   SCROLL ANIMATIONS
========================= */

.fade-in {

    opacity: 0;

    transform:
        translateY(18px);

    transition:
        opacity 0.6s ease,
        transform 0.6s ease;

}


.fade-in.visible {

    opacity: 1;

    transform:
        translateY(0);

}



/* =========================
   TABLET
========================= */

@media (max-width: 950px) {


    .menu-toggle {

        display: block;

    }


    nav {

        position: absolute;

        top: 72px;

        left: 0;

        right: 0;

        display: none;

        flex-direction:
            column;

        align-items:
            stretch;

        gap: 0;

        padding:
            12px 24px
            22px;

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

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

        box-shadow:
            var(--shadow);

    }


    nav.active {

        display: flex;

    }


    nav a {

        padding:
            12px 0;

        border-bottom:
            1px solid #edf2f7;

    }


    .nav-cv {

        background:
            transparent;

    }


    .hero {

        padding-top: 70px;

    }


    .hero-grid {

        grid-template-columns: 1fr;

        gap: 45px;

    }


    .hero-photo-wrapper {

        order: -1;

        justify-content:
            flex-start;

    }


    .hero-photo {

        max-width: 290px;

    }


    .photo-decoration {

        width: 275px;

        height: 92%;

        left: 12px;

        right: auto;

    }


    .dashboard-grid {

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

    }


    .contact-card {

        grid-template-columns:
            1fr;

    }

}



/* =========================
   MOBILE
========================= */

@media (max-width: 650px) {


    body {

        font-size: 15px;

    }


    .nav-container {

        min-height: 65px;

    }


    nav {

        top: 65px;

    }


    .hero {

        min-height: auto;

        padding:
            55px 20px
            60px;

    }


    .hero h1 {

        font-size: 46px;

        letter-spacing:
            -1.7px;

    }


    .hero h2 {

        font-size: 21px;

    }


    .hero-description {

        font-size: 16px;

    }


    .hero-photo {

        max-width: 235px;

        border-radius: 22px;

    }


    .photo-decoration {

        width: 225px;

    }


    .dashboard,
    .content-section {

        padding:
            60px 20px;

    }


    .dashboard-grid,
    .project-grid,
    .skills-grid,
    .education-grid {

        grid-template-columns:
            1fr;

    }


    .card {

        min-height: auto;

    }


    .timeline-item {

        grid-template-columns:
            1fr;

        gap: 8px;

        padding: 24px;

    }


    .timeline-date {

        margin-bottom: 3px;

    }


    .simple-list article {

        grid-template-columns:
            1fr;

        gap: 6px;

        padding: 23px;

    }


    .contact-card {

        padding: 27px;

    }


    .contact-copy h3 {

        font-size: 23px;

    }


    .footer-container {

        grid-template-columns:
            1fr;

    }


    .footer-links {

        flex-wrap: wrap;

    }


    .copyright {

        grid-column: 1;

    }

}



/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 400px) {


    .hero h1 {

        font-size: 40px;

    }


    .hero-buttons {

        flex-direction: column;

    }


    .button {

        width: 100%;

    }

}



/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {

    html {

        scroll-behavior: auto;

    }


    .fade-in {

        opacity: 1;

        transform: none;

        transition: none;

    }

}