/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #030914;
    color: #f5f7fb;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --bg-primary: #030914;
    --bg-secondary: #07111f;
    --bg-card: #0a1626;

    --text-primary: #f5f7fb;
    --text-secondary: #aab4c3;

    --blue: #1677ff;
    --blue-light: #3d91ff;

    --border: rgba(255, 255, 255, 0.08);

    --container-width: 1180px;
}


/* =========================================================
   GENERAL
========================================================= */

.container {
    width: min(100% - 40px, var(--container-width));
    margin: 0 auto;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    background: rgba(3, 9, 20, 0.88);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(12px);

    z-index: 1000;
}

.navbar-container {
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* ---------- Logo ---------- */

.logo {
    display: flex;
    align-items: center;

    gap: 12px;

    font-weight: 600;

    white-space: nowrap;
}

.logo-mark {
    color: var(--blue-light);

    font-size: 24px;
    font-weight: 700;
}

.logo-name {
    font-size: 15px;
}


/* ---------- Navigation ---------- */

.nav-menu {
    display: flex;
    align-items: center;

    gap: 28px;
}

.nav-link {
    position: relative;

    color: var(--text-secondary);

    font-size: 14px;

    padding: 26px 0;

    transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 2px;

    background: var(--blue);
}


/* ---------- CV ---------- */

.btn-cv {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px 16px;

    border: 1px solid rgba(61, 145, 255, 0.5);

    border-radius: 8px;

    font-size: 13px;
    font-weight: 600;

    transition: all 0.25s ease;
}

.btn-cv:hover {
    background: rgba(22, 119, 255, 0.12);

    border-color: var(--blue-light);
}


/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 100vh;

    padding-top: 72px;

    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 75% 45%,
            rgba(22, 119, 255, 0.12),
            transparent 35%
        ),
        var(--bg-primary);
}

.hero-container {
    min-height: calc(100vh - 72px);

    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 60px;
}


/* ---------- Hero content ---------- */

.hero-content {
    max-width: 600px;
}

.hero-greeting {
    color: var(--blue-light);

    font-size: 18px;
    font-weight: 600;

    margin-bottom: 10px;
}

.hero h1 {
    font-size: clamp(48px, 6vw, 76px);

    line-height: 1.05;

    letter-spacing: -2px;

    margin-bottom: 18px;
}

.hero h1 span {
    color: var(--blue-light);
}

.hero h2 {
    font-size: 28px;

    margin-bottom: 8px;
}

.hero-stack {
    color: var(--blue-light);

    font-size: 18px;
    font-weight: 500;

    margin-bottom: 22px;
}

.hero-stack span {
    color: var(--text-secondary);

    margin: 0 5px;
}

.hero-description {
    max-width: 520px;

    color: var(--text-secondary);

    font-size: 17px;

    line-height: 1.7;

    margin-bottom: 30px;
}


/* ---------- Buttons ---------- */

.hero-buttons {
    display: flex;

    gap: 14px;

    margin-bottom: 25px;
}

.btn {
    display: inline-flex;
    align-items: center;

    gap: 12px;

    padding: 13px 20px;

    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;

    transition: all 0.25s ease;
}

.btn-primary {
    background: var(--blue);

    box-shadow:
        0 8px 30px rgba(22, 119, 255, 0.25);
}

.btn-primary:hover {
    background: var(--blue-light);

    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--blue-light);

    background: rgba(255, 255, 255, 0.04);
}


/* ---------- Social links ---------- */

.social-links {
    display: flex;

    gap: 20px;
}

.social-links a {
    color: var(--text-secondary);

    font-size: 13px;

    transition: color 0.25s ease;
}

.social-links a:hover {
    color: var(--blue-light);
}


/* =========================================================
   HERO IMAGE
========================================================= */

.hero-image {
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;

    min-height: 500px;
}

.hero-image-glow {
    position: absolute;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    background: rgba(22, 119, 255, 0.12);

    filter: blur(50px);
}

.profile-circle {
    position: relative;

    width: min(420px, 80vw);
    aspect-ratio: 1;

    border-radius: 50%;

    padding: 6px;

    background:
        linear-gradient(
            135deg,
            var(--blue-light),
            var(--blue)
        );

    box-shadow:
        0 0 30px rgba(22, 119, 255, 0.35),
        0 0 80px rgba(22, 119, 255, 0.15);
}

.profile-placeholder {
    width: 100%;
    height: 100%;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle,
            #172c47,
            #050c16 70%
        );

    color: var(--text-secondary);

    font-size: 18px;
    font-weight: 600;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 950px) {

    .nav-menu {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr;

        text-align: center;

        padding-top: 50px;
        padding-bottom: 70px;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons,
    .social-links {
        justify-content: center;
    }

    .hero-image {
        min-height: auto;
    }

    .profile-circle {
        width: 330px;
    }

}


@media (max-width: 600px) {

    .container {
        width: min(100% - 24px, var(--container-width));
    }

    .navbar-container {
        min-height: 64px;
    }

    .btn-cv {
        padding: 8px 11px;

        font-size: 12px;
    }

    .hero {
        padding-top: 64px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero h2 {
        font-size: 23px;
    }

    .hero-description {
        font-size: 15px;
    }

    .profile-circle {
        width: 280px;
    }

}

.profile-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: 50%;
}

/* =========================================================
   ABOUT / SKILLS
========================================================= */

.about-section {
    padding: 120px 0;

    background:
        linear-gradient(
            180deg,
            var(--bg-primary),
            var(--bg-secondary)
        );

    border-top: 1px solid var(--border);
}


/* ---------- Section heading ---------- */

.section-heading {
    margin-bottom: 60px;
}

.section-label {
    color: var(--blue-light);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 12px;
}

.section-heading h2 {
    max-width: 650px;

    font-size: clamp(32px, 4vw, 46px);

    line-height: 1.15;

    letter-spacing: -1px;
}


/* ---------- Main grid ---------- */

.about-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    align-items: start;
}


/* ---------- About content ---------- */

.about-content h3 {
    font-size: 30px;

    line-height: 1.25;

    margin-bottom: 25px;
}

.about-content h3 span {
    color: var(--blue-light);
}

.about-content > p {
    color: var(--text-secondary);

    font-size: 16px;

    line-height: 1.8;

    margin-bottom: 18px;

    max-width: 580px;
}


/* ---------- Highlight cards ---------- */

.about-highlights {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 14px;

    margin-top: 35px;
}

.highlight-card {
    display: flex;

    gap: 15px;

    padding: 20px;

    background: rgba(255, 255, 255, 0.025);

    border: 1px solid var(--border);

    border-radius: 10px;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.highlight-card:hover {
    transform: translateY(-3px);

    border-color: rgba(61, 145, 255, 0.4);

    background: rgba(22, 119, 255, 0.04);
}

.highlight-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 38px;
    height: 38px;

    border-radius: 8px;

    background: rgba(22, 119, 255, 0.1);

    color: var(--blue-light);

    font-size: 12px;
    font-weight: 700;
}

.highlight-card h4 {
    font-size: 14px;

    margin-bottom: 6px;
}

.highlight-card p {
    color: var(--text-secondary);

    font-size: 12px;

    line-height: 1.5;
}


/* ---------- Skills ---------- */

.skills-content {
    padding: 30px;

    background: rgba(255, 255, 255, 0.02);

    border: 1px solid var(--border);

    border-radius: 14px;
}

.skills-header {
    margin-bottom: 30px;
}

.skills-header h3 {
    font-size: 25px;

    line-height: 1.3;
}

.skills-header h3 span {
    color: var(--blue-light);
}


/* ---------- Skill groups ---------- */

.skills-groups {
    display: flex;

    flex-direction: column;

    gap: 24px;
}

.skill-group {
    padding-bottom: 20px;

    border-bottom: 1px solid var(--border);
}

.skill-group:last-child {
    padding-bottom: 0;

    border-bottom: none;
}

.skill-group h4 {
    color: var(--text-primary);

    font-size: 13px;

    margin-bottom: 12px;
}

.skill-list {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.skill-list span {
    padding: 7px 11px;

    border: 1px solid rgba(61, 145, 255, 0.2);

    border-radius: 6px;

    background: rgba(22, 119, 255, 0.05);

    color: var(--text-secondary);

    font-size: 12px;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.skill-list span:hover {
    color: var(--text-primary);

    border-color: rgba(61, 145, 255, 0.6);

    background: rgba(22, 119, 255, 0.1);
}

.skill-status {
    color: var(--blue-light);

    font-size: 11px;

    margin-top: 9px;
}


/* =========================================================
   ABOUT RESPONSIVE
========================================================= */

@media (max-width: 950px) {

    .about-section {
        padding: 90px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }

}


@media (max-width: 600px) {

    .about-section {
        padding: 70px 0;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .skills-content {
        padding: 22px;
    }

}

/* =========================================================
   PROJECTS
========================================================= */

.projects-section {
    padding: 120px 0;

    border-top: 1px solid var(--border);

    background: var(--bg-primary);
}

.section-heading span {
    color: var(--blue-light);
}

.section-description {
    max-width: 650px;

    margin-top: 18px;

    color: var(--text-secondary);

    font-size: 16px;

    line-height: 1.7;
}


/* ---------- Projects grid ---------- */

.projects-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;
}


/* ---------- Project card ---------- */

.project-card {
    overflow: hidden;

    background: rgba(255, 255, 255, 0.02);

    border: 1px solid var(--border);

    border-radius: 14px;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);

    border-color: rgba(61, 145, 255, 0.4);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.25);
}


/* ---------- Project image ---------- */

.project-image {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: var(--bg-secondary);
}

.project-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.03);
}


/* ---------- Status ---------- */

.project-status {
    position: absolute;

    top: 14px;
    left: 14px;

    padding: 6px 10px;

    border-radius: 6px;

    background: rgba(3, 9, 20, 0.85);

    border: 1px solid rgba(61, 145, 255, 0.3);

    color: var(--blue-light);

    font-size: 11px;

    font-weight: 600;

    backdrop-filter: blur(8px);
}


/* ---------- Content ---------- */

.project-content {
    padding: 25px;
}

.project-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 13px;
}

.project-header h3 {
    font-size: 24px;
}

.project-type {
    color: var(--text-secondary);

    font-size: 11px;

    white-space: nowrap;
}

.project-content > p {
    color: var(--text-secondary);

    font-size: 14px;

    line-height: 1.7;

    margin-bottom: 20px;
}


/* ---------- Technologies ---------- */

.project-technologies {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 25px;
}

.project-technologies span {
    padding: 6px 9px;

    border-radius: 5px;

    background: rgba(22, 119, 255, 0.06);

    border: 1px solid rgba(61, 145, 255, 0.18);

    color: var(--text-secondary);

    font-size: 11px;
}


/* ---------- Actions ---------- */

.project-actions {

    margin-top: 20px;
    
    display: flex;

    gap: 10px;
}

.project-btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 10px 14px;

    border-radius: 7px;

    font-size: 12px;

    font-weight: 600;

    transition: all 0.25s ease;
}

.project-btn-primary {
    background: var(--blue);
}

.project-btn-primary:hover {
    background: var(--blue-light);
}

.project-btn-secondary {
    border: 1px solid var(--border);

    color: var(--text-secondary);
}

.project-btn-secondary:hover {
    color: var(--text-primary);

    border-color: rgba(61, 145, 255, 0.5);
}


/* =========================================================
   PROJECTS RESPONSIVE
========================================================= */

@media (max-width: 800px) {

    .projects-section {
        padding: 90px 0;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 500px) {

    .project-content {
        padding: 20px;
    }

    .project-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 5px;
    }

}

/* =========================================================
   EDUCATION
========================================================= */

.education-section {
    padding: 120px 0;

    border-top: 1px solid var(--border);

    background: var(--bg-secondary);
}


/* ---------- Education grid ---------- */

.education-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;
}


/* ---------- Card ---------- */

.education-card {
    display: flex;

    gap: 20px;

    padding: 25px;

    background: rgba(255, 255, 255, 0.02);

    border: 1px solid var(--border);

    border-radius: 12px;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.education-card:hover {
    transform: translateY(-3px);

    border-color: rgba(61, 145, 255, 0.4);
}


/* ---------- Number ---------- */

.education-icon {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 8px;

    background: rgba(22, 119, 255, 0.1);

    color: var(--blue-light);

    font-size: 12px;
    font-weight: 700;
}


/* ---------- Content ---------- */

.education-content {
    flex: 1;
}

.education-status {
    display: inline-block;

    margin-bottom: 8px;

    color: var(--blue-light);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1px;
}

.education-content h3 {
    font-size: 20px;

    margin-bottom: 10px;
}

.education-content p {
    color: var(--text-secondary);

    font-size: 13px;

    line-height: 1.7;

    margin-bottom: 12px;
}

.education-focus {
    color: #d0d7e2;

    font-size: 11px;
}


/* =========================================================
   EDUCATION RESPONSIVE
========================================================= */

@media (max-width: 800px) {

    .education-section {
        padding: 90px 0;
    }

    .education-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 500px) {

    .education-card {
        padding: 20px;

        gap: 15px;
    }

}

/* =========================================================
   LEARNING / EDUCATION
========================================================= */

.learning-section {
    padding: 120px 0;

    background:
        linear-gradient(
            180deg,
            var(--bg-primary),
            var(--bg-secondary)
        );

    border-top: 1px solid var(--border);
}


/* ---------- Academic card ---------- */

.academic-card {
    display: flex;

    gap: 22px;

    padding: 28px;

    margin-bottom: 75px;

    background: rgba(255, 255, 255, 0.025);

    border: 1px solid var(--border);

    border-radius: 14px;

    transition:
        border-color 0.25s ease,
        transform 0.25s ease;
}

.academic-card:hover {
    transform: translateY(-3px);

    border-color: rgba(61, 145, 255, 0.4);
}


/* ---------- Number ---------- */

.learning-number {
    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 9px;

    background: rgba(22, 119, 255, 0.1);

    color: var(--blue-light);

    font-size: 12px;
    font-weight: 700;
}


/* ---------- Content ---------- */

.learning-content {
    flex: 1;
}

.learning-top {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 8px;
}

.learning-status {
    color: var(--blue-light);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1px;
}

.learning-category {
    color: var(--text-secondary);

    font-size: 11px;
}

.learning-content h3 {
    font-size: 23px;

    margin-bottom: 10px;
}

.learning-content > p {
    max-width: 850px;

    color: var(--text-secondary);

    font-size: 14px;

    line-height: 1.7;

    margin-bottom: 15px;
}

.learning-footer {
    color: #d0d7e2;

    font-size: 11px;
}


/* =========================================================
   COURSES
========================================================= */

.courses-header {
    margin-bottom: 30px;
}

.courses-header h3 {
    font-size: 28px;
}

.courses-header h3 span {
    color: var(--blue-light);
}


/* ---------- Courses grid ---------- */

.courses-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}


/* ---------- Course card ---------- */

.course-card {
    padding: 25px;

    background: rgba(255, 255, 255, 0.02);

    border: 1px solid var(--border);

    border-radius: 12px;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.course-card:hover {
    transform: translateY(-4px);

    border-color: rgba(61, 145, 255, 0.4);

    background: rgba(22, 119, 255, 0.025);
}


/* ---------- Course icon ---------- */

.course-icon {
    width: 44px;
    height: 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 22px;

    border-radius: 9px;

    background: rgba(22, 119, 255, 0.1);

    color: var(--blue-light);

    font-size: 14px;
    font-weight: 700;
}


/* ---------- Course content ---------- */

.course-top {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 10px;
}

.course-status {
    color: var(--blue-light);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 0.8px;
}

.course-category {
    color: var(--text-secondary);

    font-size: 10px;
}

.course-content h3 {
    font-size: 19px;

    line-height: 1.3;

    margin-bottom: 11px;
}

.course-content p {
    color: var(--text-secondary);

    font-size: 13px;

    line-height: 1.7;

    margin-bottom: 20px;
}


/* ---------- Tags ---------- */

.course-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;
}

.course-tags span {
    padding: 5px 8px;

    border-radius: 5px;

    background: rgba(22, 119, 255, 0.05);

    border: 1px solid rgba(61, 145, 255, 0.16);

    color: var(--text-secondary);

    font-size: 10px;
}


/* =========================================================
   CONTINUOUS LEARNING
========================================================= */

.continuous-learning {
    display: flex;

    align-items: flex-start;

    gap: 18px;

    margin-top: 50px;

    padding: 25px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            rgba(22, 119, 255, 0.08),
            rgba(255, 255, 255, 0.015)
        );

    border: 1px solid rgba(61, 145, 255, 0.2);
}

.continuous-icon {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 8px;

    background: rgba(22, 119, 255, 0.12);

    color: var(--blue-light);

    font-size: 22px;
}

.continuous-learning h3 {
    font-size: 18px;

    margin-bottom: 8px;
}

.continuous-learning p {
    max-width: 850px;

    color: var(--text-secondary);

    font-size: 13px;

    line-height: 1.7;
}


/* =========================================================
   LEARNING RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .learning-section {
        padding: 90px 0;
    }

    .courses-grid {
        grid-template-columns: 1fr 1fr;
    }

}


@media (max-width: 650px) {

    .learning-section {
        padding: 70px 0;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .academic-card {
        padding: 20px;
    }

    .learning-top {
        align-items: flex-start;

        flex-direction: column;

        gap: 4px;
    }

    .continuous-learning {
        padding: 20px;
    }

}

/* =========================================================
   CONTACT
========================================================= */

.contact-section {
    padding: 120px 0;

    border-top: 1px solid var(--border);

    background: var(--bg-primary);
}


/* ---------- Contact grid ---------- */

.contact-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 24px;

    align-items: stretch;
}


/* =========================================================
   CONTACT INFORMATION
========================================================= */

.contact-info {
    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 14px;
}


.contact-item {
    display: flex;

    align-items: center;

    gap: 16px;

    padding: 20px;

    background: rgba(255, 255, 255, 0.02);

    border: 1px solid var(--border);

    border-radius: 10px;

    transition:
        border-color 0.25s ease,
        transform 0.25s ease;
}

.contact-item:hover {
    transform: translateX(4px);

    border-color: rgba(61, 145, 255, 0.4);
}


/* ---------- Contact icon ---------- */

.contact-icon {
    width: 44px;
    height: 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 9px;

    background: rgba(22, 119, 255, 0.1);

    color: var(--blue-light);

    font-size: 12px;

    font-weight: 700;
}


/* ---------- Contact text ---------- */

.contact-item > div:last-child {
    display: flex;

    flex-direction: column;

    gap: 5px;
}

.contact-item span {
    color: var(--text-secondary);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1px;
}

.contact-item a,
.contact-item p {
    margin: 0;

    color: var(--text-primary);

    font-size: 14px;

    text-decoration: none;
}

.contact-item a {
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: var(--blue-light);
}


/* =========================================================
   CONTACT CTA
========================================================= */

.contact-card {
    display: flex;

    flex-direction: column;

    align-items: flex-start;
    justify-content: center;

    padding: 45px;

    background:
        linear-gradient(
            135deg,
            rgba(22, 119, 255, 0.09),
            rgba(255, 255, 255, 0.02)
        );

    border: 1px solid rgba(61, 145, 255, 0.22);

    border-radius: 14px;
}


.contact-card-icon {
    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 22px;

    border-radius: 10px;

    background: rgba(22, 119, 255, 0.12);

    color: var(--blue-light);

    font-size: 20px;
}


.contact-card h3 {
    font-size: 26px;

    margin-bottom: 14px;
}


.contact-card p {
    max-width: 480px;

    margin-bottom: 25px;

    color: var(--text-secondary);

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    padding: 45px 0 25px;

    border-top: 1px solid var(--border);

    background: var(--bg-secondary);
}


/* ---------- Footer content ---------- */

.footer-content {
    display: grid;

    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    gap: 40px;

    padding-bottom: 30px;
}


/* ---------- Footer brand ---------- */

.footer-brand {
    display: flex;

    align-items: center;

    gap: 12px;
}


.footer-logo {
    color: var(--blue-light);

    font-size: 22px;

    font-weight: 800;

    text-decoration: none;
}


.footer-brand strong {
    display: block;

    margin-bottom: 3px;

    color: var(--text-primary);

    font-size: 14px;
}


.footer-brand p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 11px;
}


/* ---------- Footer links ---------- */

.footer-links {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 22px;
}


.footer-links a,
.footer-social a {
    color: var(--text-secondary);

    font-size: 11px;

    text-decoration: none;

    transition: color 0.2s ease;
}


.footer-links a:hover,
.footer-social a:hover {
    color: var(--blue-light);
}


/* ---------- Footer social ---------- */

.footer-social {
    display: flex;

    justify-content: flex-end;

    gap: 18px;
}


/* ---------- Footer bottom ---------- */

.footer-bottom {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding-top: 22px;

    border-top: 1px solid var(--border);
}


.footer-bottom p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 10px;
}


/* =========================================================
   CONTACT / FOOTER RESPONSIVE
========================================================= */

@media (max-width: 850px) {

    .contact-section {
        padding: 90px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 35px;
    }

    .footer-content {
        grid-template-columns: 1fr;

        gap: 25px;

        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-links {
        flex-wrap: wrap;
    }

    .footer-social {
        justify-content: center;
    }

}


@media (max-width: 550px) {

    .contact-section {
        padding: 70px 0;
    }

    .contact-item {
        padding: 16px;
    }

    .contact-card {
        padding: 25px;
    }

    .contact-card h3 {
        font-size: 22px;
    }

    .footer {
        padding-top: 35px;
    }

    .footer-bottom {
        flex-direction: column;

        text-align: center;

        gap: 8px;
    }

}

/* =========================================================
   PROJECTS - NEW STRUCTURE
========================================================= */

.projects-category {
    margin-top: 70px;
}

.projects-category-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 28px;
}

.projects-category-heading h3 {
    font-size: 28px;
    line-height: 1.2;
}

.projects-category-heading h3 span {
    color: var(--blue-light);
}

.category-description {
    max-width: 430px;

    color: var(--text-secondary);

    font-size: 13px;
    line-height: 1.7;
}


/* =========================================================
   FEATURED PROJECTS
========================================================= */

.featured-projects {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 24px;
}

.featured-project {
    overflow: hidden;

    background: rgba(255, 255, 255, 0.02);

    border: 1px solid var(--border);

    border-radius: 14px;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.featured-project:hover {
    transform: translateY(-5px);

    border-color: rgba(61, 145, 255, 0.4);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.25);
}


/* ---------- Images ---------- */

.featured-project .project-image {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: var(--bg-secondary);
}

.featured-project .project-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.featured-project:hover .project-image img {
    transform: scale(1.03);
}


/* ---------- Meta ---------- */

.project-meta {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 10px;

    color: var(--blue-light);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.8px;
}


/* ---------- Content ---------- */

.featured-project .project-content {
    padding: 28px;
}

.featured-project .project-content h3 {
    font-size: 28px;

    margin-bottom: 13px;
}

.featured-project .project-content > p {
    color: var(--text-secondary);

    font-size: 14px;

    line-height: 1.7;

    margin-bottom: 20px;
}


/* ---------- Role ---------- */

.project-role {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 18px;

    font-size: 11px;
}

.project-role strong {
    color: var(--text-primary);
}

.project-role span {
    color: var(--text-secondary);
}


/* =========================================================
   PROFESSIONAL PROJECTS
========================================================= */

.professional-projects {
    padding-top: 20px;
}

.professional-projects-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}

.professional-project-card {
    overflow: hidden;

    background: rgba(255, 255, 255, 0.02);

    border: 1px solid var(--border);

    border-radius: 12px;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.professional-project-card:hover {
    transform: translateY(-4px);

    border-color: rgba(61, 145, 255, 0.35);
}


.professional-project-image {
    position: relative;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: var(--bg-secondary);
}

.professional-project-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.professional-project-card:hover
.professional-project-image img {
    transform: scale(1.03);
}


.professional-project-content {
    padding: 22px;
}

.professional-project-content h3 {
    font-size: 20px;

    line-height: 1.3;

    margin-bottom: 10px;
}

.professional-project-content > p {
    color: var(--text-secondary);

    font-size: 13px;

    line-height: 1.7;

    margin-bottom: 18px;
}


/* =========================================================
   OTHER PROJECTS
========================================================= */

.other-projects {
    padding-bottom: 30px;
}

.other-project-card {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 25px;

    background: rgba(255, 255, 255, 0.02);

    border: 1px solid var(--border);

    border-radius: 12px;

    transition:
        border-color 0.25s ease,
        transform 0.25s ease;
}

.other-project-card:hover {
    transform: translateY(-3px);

    border-color: rgba(61, 145, 255, 0.35);
}

.other-project-card h3 {
    font-size: 18px;

    margin: 8px 0;
}

.other-project-card p {
    max-width: 700px;

    color: var(--text-secondary);

    font-size: 13px;

    line-height: 1.6;
}


/* =========================================================
   PROJECTS RESPONSIVE
========================================================= */

@media (max-width: 850px) {

    .featured-projects,
    .professional-projects-grid {
        grid-template-columns: 1fr;
    }

    .projects-category-heading {
        align-items: flex-start;

        flex-direction: column;
    }

}


@media (max-width: 600px) {

    .projects-category {
        margin-top: 55px;
    }

    .featured-project .project-content {
        padding: 22px;
    }

    .featured-project .project-content h3 {
        font-size: 24px;
    }

    .professional-project-content {
        padding: 20px;
    }

    .other-project-card {
        align-items: flex-start;

        flex-direction: column;
    }

}

.projects-category-heading {
    margin-bottom: 40px;
}

.projects-category-heading h3 {
    margin-bottom: 12px;
}

.category-description {
    max-width: 700px;
    margin: 0;
    line-height: 1.7;
}

/* =========================================================
   FILTROS DE PROYECTOS
========================================================= */

.project-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.project-filter {
    padding: 9px 18px;

    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;

    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;

    cursor: pointer;

    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.project-filter:hover {
    color: var(--text-primary);
    border-color: var(--blue);
}

.project-filter.active {
    color: #ffffff;
    background: var(--blue);
    border-color: var(--blue);
}

.project-filter:active {
    transform: translateY(1px);
}

/* =========================================================
   TECNOLOGÍAS DE PROYECTOS
========================================================= */

.project-tech {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 7px 10px;

    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 6px;

    color: var(--text-secondary);
    font-size: 0.8rem;

    transition:
        border-color 0.25s ease,
        color 0.25s ease,
        background-color 0.25s ease;
}

.project-tech i {
    font-size: 1rem;
}

.project-tech:hover {
    color: var(--text-primary);
    border-color: var(--blue);
    background: rgba(30, 136, 229, 0.05);
}

/* =========================================================
   OTHER PROJECTS
========================================================= */

.other-projects {
    padding-bottom: 40px;
}


.other-projects-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}


/* ---------- Card ---------- */

.other-project-card {
    overflow: hidden;

    background: rgba(255, 255, 255, 0.02);

    border: 1px solid var(--border);

    border-radius: 12px;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.other-project-card:hover {
    transform: translateY(-4px);

    border-color: rgba(61, 145, 255, 0.35);
}


/* ---------- Image ---------- */

.other-project-image {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: var(--bg-secondary);
}


.other-project-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.4s ease;
}


.other-project-card:hover
.other-project-image img {
    transform: scale(1.03);
}


/* ---------- Content ---------- */

.other-project-content {
    padding: 22px;
}


.other-project-content h3 {
    font-size: 20px;

    line-height: 1.3;

    margin-bottom: 10px;
}


.other-project-content > p {
    color: var(--text-secondary);

    font-size: 13px;

    line-height: 1.7;

    margin-bottom: 18px;
}


/* ---------- Responsive ---------- */

@media (max-width: 850px) {

    .other-projects-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   CONTACT ICONS
========================================================= */

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    flex-shrink: 0;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.02);

    color: var(--blue);

    font-size: 18px;

    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;
}


.contact-item:hover .contact-icon {
    color: #ffffff;

    border-color: var(--blue);

    background: rgba(30, 136, 229, 0.08);

    transform: translateY(-2px);
}


/* =========================================================
   CONTACT CARD ICON
========================================================= */

.contact-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    margin-bottom: 22px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.02);

    color: var(--blue);

    font-size: 21px;
}

/* =========================================================
   COLORES DE ICONOS DE CONTACTO
========================================================= */

/* Email */
.contact-item:nth-child(1) .contact-icon {
    color: #EA4335;
}

/* WhatsApp */
.contact-item:nth-child(2) .contact-icon {
    color: #25D366;
}

/* GitHub */
.contact-item:nth-child(3) .contact-icon {
    color: #ffffff;
}

/* LinkedIn */
.contact-item:nth-child(4) .contact-icon {
    color: #0A66C2;
}

/* Ubicación */
.contact-item:nth-child(5) .contact-icon {
    color: #FF4D4D;
}

.contact-item:hover .contact-icon {
    border-color: var(--blue);

    background: rgba(30, 136, 229, 0.08);

    transform: translateY(-2px);
}

/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    padding: 9px;

    background: transparent;

    border: 1px solid var(--border);
    border-radius: 8px;

    cursor: pointer;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;
}


.mobile-menu-toggle span {
    display: block;

    width: 20px;
    height: 2px;

    background: var(--text-primary);

    border-radius: 2px;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .navbar-container {
        position: relative;
    }


    /* Mostrar botón */

    .mobile-menu-toggle {
        display: flex;
    }


    /* Ocultar navegación inicialmente */

    .nav-menu {
        position: absolute;

        top: calc(100% + 10px);
        left: 0;
        right: 0;

        display: flex;

        flex-direction: column;

        gap: 5px;

        padding: 12px;

        background: var(--bg-secondary);

        border: 1px solid var(--border);
        border-radius: 12px;

        box-shadow:
            0 20px 40px rgba(0, 0, 0, 0.3);

        opacity: 0;
        visibility: hidden;

        transform: translateY(-10px);

        transition:
            opacity 0.25s ease,
            visibility 0.25s ease,
            transform 0.25s ease;

        z-index: 1000;
    }


    /* Menú abierto */

    .nav-menu.mobile-open {
        opacity: 1;

        visibility: visible;

        transform: translateY(0);
    }


    /* Enlaces */

    .nav-menu .nav-link {
        width: 100%;

        padding: 12px 14px;

        border-radius: 7px;

        text-align: center;
    }


    .nav-menu .nav-link:hover {
        background: rgba(255, 255, 255, 0.04);
    }


    .nav-menu .btn-cv {
    display: flex;

    width: 100%;

    justify-content: center;
    align-items: center;

    margin-top: 8px;
}/* CV */

    .btn-cv {
        display: none;
    }


    /* Animación hamburguesa → X */

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

}

/* =========================================================
   TECHNOLOGY ICONS
========================================================= */

.skill-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.skill-item i {
    font-size: 1.15rem;
}


/* ================= BACKEND ================= */

.skill-item .devicon-python-plain {
    color: #3776AB;
}

.skill-item .devicon-django-plain {
    color: #092E20;
}

.skill-item .fa-code {
    color: var(--blue);
}


/* ================= DATABASE ================= */

.skill-item .devicon-mysql-plain {
    color: #4479A1;
}

.skill-item .devicon-postgresql-plain {
    color: #4169E1;
}

.skill-item .devicon-sqlite-plain {
    color: #003B57;
}

.skill-item .devicon-redis-plain {
    color: #DC382D;
}


/* ================= FRONTEND ================= */

.skill-item .devicon-html5-plain {
    color: #E34F26;
}

.skill-item .devicon-css3-plain {
    color: #1572B6;
}

.skill-item .devicon-javascript-plain {
    color: #F7DF1E;
}

.skill-item .devicon-angularjs-plain {
    color: #DD0031;
}


/* ================= TOOLS ================= */

.skill-item .devicon-git-plain {
    color: #F05032;
}

.skill-item .devicon-github-original {
    color: #FFFFFF;
}

.skill-item .devicon-docker-plain {
    color: #2496ED;
}

.skill-item .devicon-vscode-plain {
    color: #007ACC;
}


/* ================= CLOUD ================= */

.skill-item .devicon-amazonwebservices-plain-wordmark {
    color: #FF9900;
}


/* =========================================================
   PROJECT CAROUSEL
========================================================= */

.project-carousel {
    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    opacity: 0;

    pointer-events: none;
    transition: opacity 0.35s ease;
}

.carousel-slide.is-active {
    opacity: 1;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;

    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;

    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;

    background: rgba(5, 15, 31, 0.72);
    color: #ffffff;

    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;

    transform: translateY(-50%);
    transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.project-carousel:hover .carousel-arrow,
.project-carousel:focus-within .carousel-arrow {
    opacity: 1;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
    background: var(--blue);
    outline: none;
}

.carousel-prev {
    left: 14px;
}

.carousel-next {
    right: 14px;
}

@media (max-width: 768px) {
    .carousel-arrow {
        width: 34px;
        height: 34px;

        opacity: 1;
    }
}
