/* =========================================================
   RUЕL BUENAVENTURA PORTFOLIO
   Modern 2026 Portfolio Design
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Inter', sans-serif;
    background: #070b12;
    color: #f5f7fa;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea {
    font-family: inherit;
}

::selection {
    background: #1677ff;
    color: #fff;
}


/* =========================================================
   VARIABLES
   ========================================================= */

:root {

    --bg: #070b12;
    --bg-soft: #0b111c;
    --card: #0e1623;
    --card-hover: #111d2d;

    --blue: #1677ff;
    --blue-light: #42a5ff;

    --cyan: #00d9ff;

    --text: #f5f7fa;
    --text-soft: #a7b0be;
    --text-muted: #6f7a89;

    --border: rgba(255,255,255,0.08);

    --gradient:
        linear-gradient(
            135deg,
            #1677ff 0%,
            #00c6ff 100%
        );

    --container: 1180px;

}


/* =========================================================
   GLOBAL
   ========================================================= */

.container {
    width: min(
        calc(100% - 40px),
        var(--container)
    );

    margin: auto;
}

.section {
    padding: 120px 0;
}

.section-label {
    display: inline-block;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 2.5px;

    color: var(--blue-light);

    margin-bottom: 18px;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 70px;
}

.section-heading.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-heading h2,
.portfolio-heading h2 {
    font-family: 'Poppins', sans-serif;

    font-size: clamp(38px, 5vw, 62px);

    line-height: 1.08;

    letter-spacing: -2px;

    margin-bottom: 22px;
}

.section-heading h2 span,
.portfolio-heading h2 span,
.contact-left h2 span,
.cta-box h2 span {
    background: var(--gradient);

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.section-heading p {
    color: var(--text-soft);

    max-width: 650px;

    font-size: 17px;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    padding: 20px 0;

    transition:
        background .3s ease,
        padding .3s ease,
        border .3s ease;
}

.site-header.scrolled {

    background:
        rgba(7,11,18,.88);

    backdrop-filter: blur(18px);

    border-bottom:
        1px solid var(--border);

    padding: 14px 0;
}

.navbar {

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.logo {

    font-family: 'Poppins', sans-serif;

    font-size: 28px;

    font-weight: 800;

    letter-spacing: -1px;
}

.logo span {
    color: var(--blue-light);
}

#sidemenu {

    display: flex;

    align-items: center;

    gap: 36px;

    list-style: none;
}

.nav-link {

    position: relative;

    color: #c5ccd7;

    font-size: 14px;

    font-weight: 500;

    transition: color .25s ease;
}

.nav-link:hover,
.nav-link.active {

    color: #fff;
}

.nav-link::after {

    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: var(--blue-light);

    transition: width .25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {

    width: 100%;
}

.nav-cta {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 11px 19px;

    border: 1px solid
        rgba(66,165,255,.35);

    border-radius: 8px;

    font-size: 13px;

    font-weight: 600;

    background:
        rgba(22,119,255,.08);

    transition: .25s ease;
}

.nav-cta:hover {

    background: var(--blue);

    border-color: var(--blue);

    transform: translateY(-2px);
}

.menu-icon,
.close-menu {

    display: none;

    cursor: pointer;

}


/* =========================================================
   HERO
   ========================================================= */

.hero {

    min-height: 100vh;

    position: relative;

    display: flex;

    align-items: center;

    overflow: hidden;

    background:

        radial-gradient(
            circle at 80% 25%,
            rgba(22,119,255,.15),
            transparent 30%
        ),

        radial-gradient(
            circle at 15% 70%,
            rgba(0,217,255,.07),
            transparent 25%
        ),

        var(--bg);
}

.hero-grid {

    position: absolute;

    inset: 0;

    opacity: .25;

    background-image:

        linear-gradient(
            rgba(255,255,255,.035) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,.035) 1px,
            transparent 1px
        );

    background-size: 70px 70px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent
        );
}

.hero-content {

    position: relative;

    max-width: 900px;

    padding-top: 70px;
}

.hero-badge {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 8px 14px;

    border-radius: 50px;

    background:
        rgba(22,119,255,.08);

    border:
        1px solid rgba(66,165,255,.2);

    color: #aebbd0;

    font-size: 12px;

    margin-bottom: 30px;
}

.status-dot {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #39e58c;

    box-shadow:
        0 0 12px #39e58c;
}

.hero-intro {

    color: var(--blue-light);

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 3px;

    margin-bottom: 20px;
}

.hero h1 {

    font-family: 'Poppins', sans-serif;

    font-size:
        clamp(48px, 7vw, 88px);

    line-height: .99;

    letter-spacing: -4px;

    max-width: 950px;
}

.gradient-text {

    display: inline;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #42a5ff 55%,
            #00d9ff
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.hero-description {

    max-width: 650px;

    color: var(--text-soft);

    font-size: 18px;

    margin-top: 30px;

    line-height: 1.8;
}

.hero-buttons {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-top: 38px;
}

.btn-primary,
.btn-secondary {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    min-height: 52px;

    padding: 0 24px;

    border-radius: 8px;

    font-size: 14px;

    font-weight: 600;

    transition: .3s ease;
}

.btn-primary {

    color: white;

    background: var(--gradient);

    box-shadow:
        0 12px 35px
        rgba(22,119,255,.18);
}

.btn-primary:hover {

    transform: translateY(-3px);

    box-shadow:
        0 18px 40px
        rgba(22,119,255,.3);
}

.btn-secondary {

    border:
        1px solid var(--border);

    color: #d8dee7;

    background:
        rgba(255,255,255,.025);
}

.btn-secondary:hover {

    background:
        rgba(255,255,255,.07);

    border-color:
        rgba(255,255,255,.15);

    transform: translateY(-3px);
}

.hero-stats {

    display: flex;

    align-items: center;

    gap: 28px;

    margin-top: 65px;
}

.hero-stat {

    display: flex;

    flex-direction: column;
}

.hero-stat strong {

    font-family: 'Poppins', sans-serif;

    font-size: 20px;
}

.hero-stat span {

    color: var(--text-muted);

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.hero-divider {

    width: 1px;

    height: 35px;

    background: var(--border);
}

.scroll-indicator {

    position: absolute;

    bottom: 30px;

    left: 50%;

    transform: translateX(-50%);

    color: var(--text-muted);

    font-size: 10px;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.scroll-indicator span {

    display: block;

    width: 1px;

    height: 35px;

    background:
        linear-gradient(
            var(--blue-light),
            transparent
        );

    margin: 0 auto 8px;
}


/* =========================================================
   ABOUT
   ========================================================= */

.about-section {

    background: var(--bg-soft);

    border-top:
        1px solid var(--border);

    border-bottom:
        1px solid var(--border);
}

.about-grid {

    display: grid;

    grid-template-columns:
        .85fr 1.15fr;

    gap: 90px;

    align-items: center;
}

.about-image-wrapper {

    position: relative;

    max-width: 450px;
}

.about-image {

    position: relative;

    border-radius: 20px;

    overflow: hidden;

    border:
        1px solid var(--border);

    background: var(--card);
}

.about-image img {

    width: 100%;

    display: block;

    opacity: .9;

    filter: grayscale(15%);
}

.about-image-glow {

    position: absolute;

    width: 200px;
    height: 200px;

    background:
        rgba(22,119,255,.3);

    filter: blur(80px);

    top: -50px;
    left: -50px;
}

.experience-card {

    position: absolute;

    right: -30px;
    bottom: 30px;

    display: flex;

    align-items: center;

    gap: 13px;

    padding: 17px 20px;

    background:
        rgba(14,22,35,.92);

    backdrop-filter: blur(15px);

    border:
        1px solid var(--border);

    border-radius: 12px;

    box-shadow:
        0 20px 50px
        rgba(0,0,0,.3);
}

.experience-card strong {

    font-size: 28px;

    color: var(--blue-light);
}

.experience-card span {

    color: #c5ccd7;

    font-size: 11px;

    line-height: 1.4;
}

.about-content h3 {

    font-family: 'Poppins', sans-serif;

    font-size: 30px;

    line-height: 1.3;

    margin-bottom: 22px;
}

.about-content p {

    color: var(--text-soft);

    margin-bottom: 18px;

    font-size: 15px;
}

.skill-list {

    display: flex;

    flex-wrap: wrap;

    gap: 9px;

    margin-top: 28px;
}

.skill-list span {

    padding: 8px 12px;

    border:
        1px solid var(--border);

    border-radius: 6px;

    background:
        rgba(255,255,255,.025);

    color: #b9c2cf;

    font-size: 11px;
}


/* =========================================================
   SERVICES
   ========================================================= */

.services-section {

    background: var(--bg);
}

.services-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;
}

.service-card {

    position: relative;

    padding: 35px;

    min-height: 310px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.035),
            rgba(255,255,255,.015)
        );

    border:
        1px solid var(--border);

    border-radius: 16px;

    overflow: hidden;

    transition:
        transform .35s ease,
        border-color .35s ease,
        background .35s ease;
}

.service-card:hover {

    transform: translateY(-7px);

    border-color:
        rgba(66,165,255,.3);

    background: var(--card-hover);
}

.service-number {

    position: absolute;

    top: 20px;
    right: 25px;

    color:
        rgba(255,255,255,.07);

    font-family: 'Poppins';

    font-size: 45px;

    font-weight: 800;
}

.service-icon {

    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background:
        rgba(22,119,255,.1);

    border:
        1px solid rgba(22,119,255,.15);

    color: var(--blue-light);

    font-size: 20px;

    margin-bottom: 25px;
}

.service-card h3 {

    font-family: 'Poppins';

    font-size: 21px;

    margin-bottom: 12px;
}

.service-card p {

    color: var(--text-soft);

    font-size: 13px;

    line-height: 1.7;
}

.service-tags {

    display: flex;

    gap: 7px;

    margin-top: 22px;
}

.service-tags span {

    color: var(--text-muted);

    font-size: 10px;

    padding: 5px 8px;

    border-radius: 4px;

    background:
        rgba(255,255,255,.04);
}

.featured-service {

    background:
        linear-gradient(
            145deg,
            rgba(22,119,255,.12),
            rgba(14,22,35,.8)
        );

    border-color:
        rgba(66,165,255,.2);
}


/* =========================================================
   PROCESS
   ========================================================= */

.process-section {

    padding: 110px 0;

    background:
        #05080e;

    border-top:
        1px solid var(--border);

    border-bottom:
        1px solid var(--border);
}

.process-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 0;
}

.process-item {

    padding: 0 35px;

    border-left:
        1px solid var(--border);
}

.process-item:first-child {

    border-left: none;

    padding-left: 0;
}

.process-item span {

    color: var(--blue-light);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2px;
}

.process-item h3 {

    font-family: 'Poppins';

    font-size: 21px;

    margin: 15px 0 10px;
}

.process-item p {

    color: var(--text-muted);

    font-size: 13px;

    max-width: 220px;
}


/* =========================================================
   PORTFOLIO
   ========================================================= */

.portfolio-section {

    background: var(--bg-soft);
}

.portfolio-heading {

    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 50px;

    margin-bottom: 60px;
}

.portfolio-heading p {

    color: var(--text-soft);

    max-width: 380px;

    font-size: 14px;

    padding-bottom: 8px;
}

.portfolio-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 22px;
}

.project-card {

    background: var(--card);

    border:
        1px solid var(--border);

    border-radius: 15px;

    overflow: hidden;

    transition:
        transform .35s ease,
        border-color .35s ease;
}

.project-card:hover {

    transform: translateY(-6px);

    border-color:
        rgba(66,165,255,.3);
}

.project-large {

    grid-column:
        span 2;
}

.project-image {

    position: relative;

    overflow: hidden;

    height: 300px;
}

.project-large .project-image {

    height: 430px;
}

.project-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition:
        transform .5s ease;
}

.project-card:hover
.project-image img {

    transform: scale(1.04);
}

.project-overlay {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(4,10,18,.55);

    opacity: 0;

    transition: opacity .3s ease;
}

.project-card:hover
.project-overlay {

    opacity: 1;
}

.project-link {

    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: white;

    color: #10151d;

    transition: transform .3s ease;
}

.project-link:hover {

    transform: scale(1.1);
}

.project-info {

    padding: 25px 27px 28px;
}

.project-category {

    display: block;

    color: var(--blue-light);

    font-size: 10px;

    letter-spacing: 1.5px;

    font-weight: 700;

    margin-bottom: 8px;
}

.project-info h3 {

    font-family: 'Poppins';

    font-size: 21px;

    margin-bottom: 8px;
}

.project-info p {

    color: var(--text-muted);

    font-size: 13px;
}

.project-large .project-info {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 40px;
}

.project-large .project-info p {

    padding-top: 4px;
}

.portfolio-cta {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 25px;

    margin-top: 60px;
}

.portfolio-cta p {

    color: var(--text-soft);

    font-size: 14px;
}


/* =========================================================
   CTA
   ========================================================= */

.cta-section {

    padding: 80px 0;

    background: var(--bg);
}

.cta-box {

    position: relative;

    text-align: center;

    overflow: hidden;

    padding: 90px 30px;

    border-radius: 20px;

    border:
        1px solid rgba(66,165,255,.18);

    background:

        radial-gradient(
            circle at center,
            rgba(22,119,255,.13),
            transparent 55%
        ),

        #0b111c;
}

.cta-decoration {

    position: absolute;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    border:
        1px solid
        rgba(66,165,255,.08);

    top: 50%;
    left: 50%;

    transform:
        translate(-50%,-50%);
}

.cta-box h2 {

    position: relative;

    font-family: 'Poppins';

    font-size:
        clamp(35px, 5vw, 58px);

    line-height: 1.1;

    max-width: 750px;

    margin: auto auto 20px;
}

.cta-box p {

    position: relative;

    color: var(--text-soft);

    max-width: 600px;

    margin: 0 auto 32px;

    font-size: 15px;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-section {

    background: var(--bg-soft);
}

.contact-grid {

    display: grid;

    grid-template-columns:
        .8fr 1.2fr;

    gap: 100px;

    align-items: start;
}

.contact-left h2 {

    font-family: 'Poppins';

    font-size:
        clamp(38px, 5vw, 58px);

    line-height: 1.1;

    letter-spacing: -2px;

    margin-bottom: 25px;
}

.contact-left > p {

    color: var(--text-soft);

    font-size: 15px;

    max-width: 450px;

    margin-bottom: 35px;
}

.contact-details {

    display: flex;

    flex-direction: column;

    gap: 18px;
}

.contact-details a {

    display: flex;

    align-items: center;

    gap: 15px;
}

.contact-icon {

    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 9px;

    color: var(--blue-light);

    background:
        rgba(22,119,255,.08);

    border:
        1px solid rgba(22,119,255,.15);
}

.contact-details small {

    display: block;

    color: var(--text-muted);

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.contact-details strong {

    display: block;

    color: #d9dee6;

    font-size: 13px;

    margin-top: 2px;
}

.social-icons {

    display: flex;

    gap: 9px;

    margin-top: 32px;
}

.social-icons a {

    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background:
        rgba(255,255,255,.04);

    border:
        1px solid var(--border);

    color: var(--text-soft);

    transition: .25s ease;
}

.social-icons a:hover {

    color: white;

    background: var(--blue);

    border-color: var(--blue);

    transform: translateY(-3px);
}

.download-cv {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    margin-top: 28px;

    color: var(--blue-light);

    font-size: 13px;

    font-weight: 600;
}

.download-cv:hover {

    color: white;
}

.contact-form-wrapper {

    padding: 35px;

    background:
        rgba(255,255,255,.025);

    border:
        1px solid var(--border);

    border-radius: 16px;
}

.form-row {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 15px;
}

.form-group {

    margin-bottom: 18px;
}

.form-group label {

    display: block;

    color: #b8c1ce;

    font-size: 11px;

    font-weight: 600;

    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {

    width: 100%;

    border:
        1px solid var(--border);

    outline: none;

    background:
        rgba(255,255,255,.035);

    color: white;

    padding: 14px 15px;

    border-radius: 7px;

    font-size: 13px;

    resize: vertical;

    transition:
        border .25s ease,
        background .25s ease;
}

.form-group input:focus,
.form-group textarea:focus {

    border-color:
        rgba(66,165,255,.5);

    background:
        rgba(22,119,255,.04);
}

.form-group input::placeholder,
.form-group textarea::placeholder {

    color: #596474;
}

.submit-btn {

    border: none;

    cursor: pointer;

    width: auto;
}

.submit-btn:disabled {

    opacity: .6;

    cursor: wait;
}

#msg {

    display: block;

    margin-top: 15px;

    font-size: 12px;
}

#msg.success {

    color: #45dc92;
}

#msg.error {

    color: #ff6b7d;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {

    padding: 35px 0;

    background: #05080e;

    border-top:
        1px solid var(--border);
}

.footer-content {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}

.footer-content > p {

    color: var(--text-muted);

    font-size: 11px;
}

.footer-content .copyright {

    font-size: 10px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .nav-cta {
        display: none;
    }

    .menu-icon {

        display: block;

        font-size: 22px;

        color: white;
    }

    #sidemenu {

        position: fixed;

        top: 0;
        right: -280px;

        width: 280px;
        height: 100vh;

        padding:
            90px 35px 30px;

        display: flex;

        align-items: flex-start;

        flex-direction: column;

        gap: 25px;

        background:
            rgba(8,13,22,.98);

        backdrop-filter: blur(20px);

        border-left:
            1px solid var(--border);

        transition:
            right .35s ease;

        z-index: 1001;
    }

    #sidemenu.open {
        right: 0;
    }

    .close-menu {

        display: block;

        position: absolute;

        top: 28px;
        right: 30px;

        font-size: 20px;

        color: #fff;
    }

    .about-grid {

        grid-template-columns: 1fr;

        gap: 60px;
    }

    .about-image-wrapper {

        margin: auto;

        width: 90%;
    }

    .services-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

    .process-grid {

        grid-template-columns:
            repeat(2, 1fr);

        gap: 40px;
    }

    .process-item {

        border-left: none;

        padding: 0;
    }

    .portfolio-heading {

        align-items: flex-start;

        flex-direction: column;

        gap: 15px;
    }

    .contact-grid {

        grid-template-columns: 1fr;

        gap: 60px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .container {

        width:
            min(
                calc(100% - 30px),
                var(--container)
            );
    }

    .section {

        padding: 85px 0;
    }

    .hero {

        min-height: 100svh;
    }

    .hero-content {

        padding-top: 50px;
    }

    .hero h1 {

        font-size: 46px;

        letter-spacing: -2.5px;
    }

    .hero-description {

        font-size: 15px;

        line-height: 1.7;
    }

    .hero-buttons {

        flex-direction: column;

        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {

        width: 100%;
    }

    .hero-stats {

        gap: 15px;

        margin-top: 45px;
    }

    .hero-stat strong {

        font-size: 16px;
    }

    .hero-stat span {

        font-size: 8px;
    }

    .hero-divider {

        height: 28px;
    }

    .scroll-indicator {

        display: none;
    }

    .section-heading h2,
    .portfolio-heading h2 {

        font-size: 38px;

        letter-spacing: -1.5px;
    }

    .about-image-wrapper {

        width: 100%;
    }

    .experience-card {

        right: 12px;

        bottom: 15px;

        padding: 12px 14px;
    }

    .experience-card strong {

        font-size: 23px;
    }

    .services-grid {

        grid-template-columns: 1fr;
    }

    .service-card {

        min-height: auto;

        padding: 28px;
    }

    .process-grid {

        grid-template-columns: 1fr;

        gap: 35px;
    }

    .portfolio-grid {

        grid-template-columns: 1fr;
    }

    .project-large {

        grid-column:
            span 1;
    }

    .project-image,
    .project-large .project-image {

        height: 240px;
    }

    .project-large .project-info {

        display: block;
    }

    .project-large .project-info p {

        margin-top: 10px;
    }

    .portfolio-cta {

        flex-direction: column;

        text-align: center;
    }

    .cta-box {

        padding: 65px 20px;
    }

    .cta-box h2 {

        font-size: 38px;
    }

    .contact-form-wrapper {

        padding: 22px;
    }

    .form-row {

        grid-template-columns: 1fr;
    }

    .footer-content {

        flex-direction: column;

        text-align: center;
    }

}