* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #17324d;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #dceefa;
    backdrop-filter: blur(10px);
}

.navbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

/* LOGO */

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #dff3ff;
    color: #168bd0;
    font-weight: 800;
}

.logo-text {
    font-size: 1.2rem;
    color: #17324d;
}

.logo-text span {
    color: #42aeea;
}

/* NAVIGATION */

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: #31516c;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #1595dc;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid #cfeafa;
    border-radius: 10px;
    background: #ffffff;
    color: #168bd0;
    cursor: pointer;
}

.nav-cv {
    padding: 10px 17px;
    border-radius: 10px;
    background: #1595dc;
    color: #ffffff;
    font-weight: 700;
    transition: 0.25s ease;
}

.nav-cv:hover {
    background: #0d82c5;
}

/* HAMBURGER */

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;

    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;

    position: relative;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    border-radius: 3px;
    background: #168bd0;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

/* HAMBURGER TO X */

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* HERO */

.hero {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: center;
    overflow: hidden;

    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #f3fbff 55%,
        #e4f6ff 100%
    );
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 60px;
    padding: 90px 0;
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 13px;
    background: #e6f7ff;
    color: #168bd0;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
}

.availability-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #42aeea;
}

.hero-small-title {
    margin-top: 25px;
    color: #4f718c;
    font-weight: 700;
}

.hero h1 {
    margin-top: 7px;
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1;
    color: #17324d;
}

.hero h1 span {
    display: block;
    color: #1595dc;
}

.hero h2 {
    margin-top: 20px;
    font-size: 1.35rem;
    color: #31516c;
}

.hero-description {
    max-width: 650px;
    margin-top: 20px;
    color: #60798e;
    font-size: 1.05rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 20px;
    border-radius: 11px;
    font-weight: 700;
    transition: 0.25s ease;
}

.btn-primary {
    background: #1595dc;
    color: #ffffff;
}

.btn-primary:hover {
    background: #0d82c5;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #ffffff;
    color: #168bd0;
    border: 1px solid #bfe4f7;
}

.btn-secondary:hover {
    background: #edf9ff;
}

.hero-socials {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.hero-socials a {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #cde9f8;
    border-radius: 50%;

    color: #168bd0;
    background: #ffffff;

    font-size: 0.75rem;
    font-weight: 800;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.profile-card {
    position: relative;
    width: min(430px, 100%);
}

.profile-image-wrapper {
    padding: 12px;
    background: #ffffff;
    border-radius: 30px;

    box-shadow:
        0 25px 60px rgba(38, 143, 194, 0.15);
}

.profile-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 23px;
}

.floating-badge {
    position: absolute;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 12px 16px;

    background: #ffffff;
    border: 1px solid #d8eef9;
    border-radius: 13px;

    box-shadow:
        0 12px 30px rgba(38, 143, 194, 0.13);

    color: #31516c;
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-one {
    left: -25px;
    bottom: 50px;
}

.badge-two {
    right: -25px;
    top: 50px;
}

/* SECTIONS */

.section {
    padding: 100px 0;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 55px;
}

.section-heading.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-label {
    display: inline-block;
    margin-bottom: 12px;

    color: #1595dc;
    font-size: 0.85rem;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: #17324d;
    line-height: 1.15;
}

.section-heading h2 span {
    color: #1595dc;
}

.section-heading p {
    margin-top: 15px;
    color: #688095;
}

/* ABOUT */

.about-section {
    background: #ffffff;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 70px;
    align-items: center;
}

.about-image-box {
    position: relative;
    max-width: 450px;
}

.about-profile-image {
    width: 100%;
    border-radius: 25px;
}

.experience-card {
    position: absolute;
    right: -30px;
    bottom: 25px;

    display: grid;
    grid-template-columns: auto 1fr auto;

    gap: 12px;
    align-items: center;

    max-width: 260px;
    padding: 17px;

    background: #ffffff;
    border: 1px solid #d9eef9;
    border-radius: 15px;

    box-shadow:
        0 15px 35px rgba(38, 143, 194, 0.13);
}

.experience-card strong {
    font-size: 1.8rem;
    color: #1595dc;
}

.experience-card span {
    font-size: 0.8rem;
    font-weight: 700;
    color: #31516c;
}

.experience-arrow {
    color: #1595dc;
}

.about-content h3 {
    font-size: 2rem;
    color: #17324d;
    margin-bottom: 20px;
}

.about-content h3 span {
    color: #1595dc;
}

.about-content p {
    color: #647d91;
    margin-bottom: 15px;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.about-details div {
    padding: 15px;
    background: #f5fbff;
    border-radius: 12px;
}

.about-details span,
.about-details strong {
    display: block;
}

.about-details span {
    color: #7890a1;
    font-size: 0.8rem;
}

.about-details strong {
    color: #31516c;
    font-size: 0.9rem;
    margin-top: 3px;
}

/* SKILLS */

.skills-section {
    background: #f5fbff;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.skill-card {
    padding: 30px 22px;

    background: #ffffff;
    border: 1px solid #d9eef9;
    border-radius: 18px;

    transition: transform 0.25s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-icon {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #e4f6ff;
    color: #1595dc;
    border-radius: 14px;

    font-weight: 800;
}

.skill-card h3 {
    margin-top: 18px;
    color: #17324d;
}

.skill-card p {
    margin-top: 8px;
    color: #6b8294;
}

/* PROJECTS */

.projects-section {
    background: #ffffff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.project-card {
    overflow: hidden;

    background: #ffffff;
    border: 1px solid #d9eef9;
    border-radius: 20px;

    box-shadow:
        0 10px 30px rgba(38, 143, 194, 0.07);
}

.project-image {
    min-height: 210px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    background: #e4f6ff;
    color: #1595dc;
}

.project-alt {
    background: #edf9ff;
}

.project-third {
    background: #f3fbff;
}

.project-number,
.project-category {
    position: absolute;
    top: 15px;

    padding: 6px 10px;

    border-radius: 20px;
    background: #ffffff;

    font-size: 0.7rem;
    font-weight: 800;
}

.project-number {
    left: 15px;
}

.project-category {
    right: 15px;
}

.project-preview {
    font-size: 1.3rem;
    font-weight: 800;
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    color: #17324d;
}

.project-content p {
    margin-top: 10px;
    color: #6a8193;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 18px 0;
}

.project-tech span {
    padding: 5px 9px;

    background: #eef9ff;
    color: #168bd0;

    border-radius: 6px;

    font-size: 0.7rem;
    font-weight: 700;
}

.project-link {
    color: #1595dc;
    font-weight: 700;
    font-size: 0.9rem;
}

/* CERTIFICATES */

.certificates-section {
    background: #f5fbff;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.certificate-card {
    overflow: hidden;

    background: #ffffff;
    border: 1px solid #d9eef9;
    border-radius: 18px;
}

.certificate-image {
    height: 220px;

    background: #eaf8ff;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CERTIFICATE 8 PORTRAIT */

.certificate-image.portrait-certificate {
    height: 300px;
    background: #eaf8ff;
}

.certificate-image.portrait-certificate img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.certificate-content {
    padding: 22px;
}

.certificate-type {
    color: #1595dc;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.certificate-content h3 {
    margin-top: 7px;
    color: #17324d;
}

.certificate-content p {
    margin-top: 8px;
    color: #687f91;
}

.certificate-date {
    display: block;
    margin-top: 12px;

    color: #1595dc;
    font-size: 0.85rem;
    font-weight: 700;
}

.pdf-preview {
    flex-direction: column;
}

.pdf-icon {
    padding: 10px 15px;

    border-radius: 8px;

    background: #1595dc;
    color: #ffffff;

    font-weight: 800;
}

.pdf-text {
    margin-top: 8px;
    color: #31516c;
    font-weight: 700;
}

.certificate-link {
    display: inline-block;
    margin-top: 15px;

    color: #1595dc;
    font-weight: 700;
}

/* FUN FACTS */

.fun-facts-section {
    background: #ffffff;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.fact-card {
    padding: 30px 22px;

    text-align: center;

    border: 1px solid #d9eef9;
    border-radius: 18px;

    background: #ffffff;
}

.fact-icon {
    font-size: 2rem;
}

.fact-card h3 {
    margin-top: 15px;
    color: #17324d;
}

.fact-card p {
    margin-top: 7px;
    color: #6b8294;
}

/* CTA */

.cta-section {
    padding: 90px 0;

    background: #1595dc;
    color: #ffffff;
}

.cta-content {
    max-width: 700px;
    text-align: center;
    margin: auto;
}

.cta-content .section-label {
    color: #dff5ff;
}

.cta-content h2 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.cta-content p {
    margin: 15px auto 25px;
    max-width: 600px;
    color: #e8f8ff;
}

.btn-light {
    background: #ffffff;
    color: #1595dc;
}

/* CONTACT */

.contact-section {
    background: #ffffff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: #17324d;
}

.contact-info > p {
    margin: 12px 0 30px;
    color: #6b8294;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #e6f7ff;
    border-radius: 12px;
}

.contact-item span {
    display: block;
    color: #8093a2;
    font-size: 0.8rem;
}

.contact-item a,
.contact-item strong {
    color: #31516c;
    font-size: 0.9rem;
}

.contact-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 25px;
}

.contact-socials a {
    padding: 8px 12px;

    background: #f0faff;
    color: #168bd0;

    border-radius: 8px;

    font-size: 0.8rem;
    font-weight: 700;
}

.contact-form {
    padding: 30px;

    background: #f5fbff;
    border: 1px solid #d9eef9;
    border-radius: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;

    color: #31516c;
    font-weight: 700;
    font-size: 0.85rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 14px;

    border: 1px solid #cfe8f6;
    border-radius: 10px;

    background: #ffffff;
    color: #17324d;

    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #1595dc;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-message {
    margin-top: 10px;
    color: #1595dc;
}

/* FOOTER */

.footer {
    background: #eaf8ff;
    padding: 60px 0 25px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
}

.footer-brand p {
    max-width: 400px;
    margin-top: 15px;
    color: #60798d;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-links h4 {
    color: #17324d;
    margin-bottom: 7px;
}

.footer-links a {
    color: #60798d;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #1595dc;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    margin-top: 45px;
    padding-top: 20px;

    border-top: 1px solid #cfe8f6;

    color: #7890a0;
    font-size: 0.8rem;
}

/* BACK TO TOP */

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #1595dc;
    color: #ffffff;

    z-index: 900;
}

/* DECORATIVE SHAPES */

.shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.shape-one {
    width: 300px;
    height: 300px;
    right: -120px;
    top: 90px;
    background: rgba(93, 191, 239, 0.08);
}

.shape-two {
    width: 180px;
    height: 180px;
    left: -80px;
    bottom: 80px;
    background: rgba(93, 191, 239, 0.08);
}

.shape-three {
    width: 80px;
    height: 80px;
    right: 35%;
    bottom: 12%;
    background: rgba(93, 191, 239, 0.08);
}

/* REVEAL */

.reveal {
    opacity: 1;
    transform: none;
}

.js-enabled .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.js-enabled .reveal.visible {
    opacity: 1;
    transform: none;
}

/* TABLETS */

@media (max-width: 900px) {

    .nav-wrapper {
        gap: 15px;
    }

    .nav-links {
        gap: 14px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons,
    .hero-socials {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        display: flex;
        justify-content: center;
    }

    .skills-grid,
    .facts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid,
    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* HAMBURGER: PHONES AND TABLETS */

@media (max-width: 760px) {

    .navbar {
        position: relative;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-wrapper {
        display: none;

        position: absolute;

        top: calc(100% + 1px);
        left: 0;
        right: 0;

        width: 100%;

        padding: 15px;

        background: #ffffff;

        border-bottom: 1px solid #dceefa;

        box-shadow:
            0 15px 30px rgba(38, 143, 194, 0.10);

        z-index: 1000;
    }

    .nav-wrapper.active {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-wrapper nav {
        width: 100%;
    }

    .nav-links {
        width: 100%;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;

        padding: 13px 10px;

        border-bottom: 1px solid #edf7fc;
    }

    .nav-actions {
        width: 100%;

        padding-top: 12px;

        justify-content: flex-start;
    }
}

/* SMALL PHONES */

@media (max-width: 600px) {

    .hero {
        min-height: auto;
    }

    .hero-grid {
        padding: 70px 0;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .section {
        padding: 75px 0;
    }

    .skills-grid,
    .projects-grid,
    .certificates-grid,
    .facts-grid {
        grid-template-columns: 1fr;
    }

    .about-details {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .badge-one {
        left: 5px;
    }

    .badge-two {
        right: 5px;
    }

    .certificate-image.portrait-certificate {
        height: 360px;
    }
}

/* VERY SMALL PHONES */

@media (max-width: 400px) {

    .container {
        width: 94%;
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo-mark {
        width: 38px;
        height: 38px;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .contact-form {
        padding: 20px;
    }
}

/* DESKTOP */

@media (min-width: 761px) {

    .menu-toggle {
        display: none !important;
    }

    .nav-wrapper {
        display: flex !important;

        position: static;

        width: auto;

        padding: 0;

        background: transparent;

        border: none;

        box-shadow: none;
    }
}