/* =========================================================
   LUVEXION — STYLE.CSS
   Diseño tecnológico / futurista
========================================================= */

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

:root {
    --bg: #05070d;
    --bg-soft: #090d16;
    --bg-card: rgba(12, 18, 30, 0.72);

    --text: #f5f7ff;
    --text-soft: #a8b0c3;
    --text-muted: #6e778c;

    --primary: #7c5cff;
    --primary-light: #9d88ff;
    --secondary: #00e5ff;

    --border: rgba(255, 255, 255, 0.09);
    --border-hover: rgba(124, 92, 255, 0.55);

    --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    --glow: 0 0 35px rgba(124, 92, 255, 0.25);

    --radius: 20px;
    --max-width: 1200px;
}


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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

::selection {
    background: var(--primary);
    color: white;
}


/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #03050a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        var(--primary),
        var(--secondary)
    );
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}


/* =========================================================
   BACKGROUND
========================================================= */

.background {
    position: fixed;
    inset: 0;
    z-index: -3;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(124, 92, 255, 0.12),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 70%,
            rgba(0, 229, 255, 0.08),
            transparent 30%
        ),
        radial-gradient(
            circle at 50% 100%,
            rgba(124, 92, 255, 0.08),
            transparent 35%
        ),
        var(--bg);
}

#particles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}


/* =========================================================
   GRID EFFECT
========================================================= */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        );

    background-size: 60px 60px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 90%
    );
}


/* =========================================================
   LOADER
========================================================= */

.loader {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #03050a;

    animation: loaderHide 1s ease forwards;
    animation-delay: 2.2s;
}

.loader-content {
    width: min(90%, 400px);
    text-align: center;
}

.loader-logo {
    font-size: 38px;
    font-weight: 900;
    letter-spacing: 8px;

    background: linear-gradient(
        90deg,
        var(--primary),
        var(--secondary)
    );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    margin-bottom: 18px;

    animation: logoPulse 1.5s infinite alternate;
}

.loader-text {
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 3px;
    margin-bottom: 18px;
}

.loader-bar {
    height: 3px;
    width: 100%;
    overflow: hidden;

    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.loader-bar span {
    display: block;
    width: 0;
    height: 100%;

    background: linear-gradient(
        90deg,
        var(--primary),
        var(--secondary)
    );

    animation: loading 2s ease forwards;
}

@keyframes loading {
    to {
        width: 100%;
    }
}

@keyframes loaderHide {
    0% {
        opacity: 1;
        visibility: visible;
    }

    99% {
        opacity: 0;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

@keyframes logoPulse {
    from {
        opacity: 0.55;
    }

    to {
        opacity: 1;
        text-shadow:
            0 0 30px rgba(124, 92, 255, 0.5);
    }
}


/* =========================================================
   HEADER
========================================================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    z-index: 1000;

    height: 80px;

    display: flex;
    align-items: center;

    padding: 0 5%;

    background: rgba(5, 7, 13, 0.65);

    border-bottom: 1px solid
        rgba(255, 255, 255, 0.05);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.logo {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 4px;

    background: linear-gradient(
        90deg,
        #ffffff,
        var(--primary-light)
    );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


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

.hero {
    width: min(1200px, 90%);
    min-height: 100vh;

    margin: auto;
    padding-top: 120px;

    display: grid;
    grid-template-columns: 1.1fr 0.9fr;

    align-items: center;

    gap: 60px;
}

.hero-left {
    max-width: 700px;
}

.hero h1 {
    font-size: clamp(46px, 6vw, 82px);
    line-height: 1.02;
    font-weight: 800;

    letter-spacing: -4px;

    margin-bottom: 30px;
}

.typing-box {
    display: block;
    min-height: 1.05em;

    background: linear-gradient(
        90deg,
        var(--primary-light),
        var(--secondary)
    );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    position: relative;
}

.typing-box::after {
    content: "";

    display: inline-block;

    width: 3px;
    height: 0.85em;

    margin-left: 7px;

    background: var(--secondary);

    vertical-align: middle;

    animation: blink 0.8s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero p {
    max-width: 620px;

    color: var(--text-soft);

    font-size: 18px;
    line-height: 1.8;

    margin-bottom: 35px;
}


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

.buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 52px;

    padding: 0 25px;

    border-radius: 12px;

    font-size: 14px;
    font-weight: 700;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

.btn-primary {
    color: white;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #5d43d6
        );

    box-shadow:
        0 10px 35px rgba(124, 92, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);

    box-shadow:
        0 15px 45px rgba(124, 92, 255, 0.4);
}

.btn-secondary {
    color: var(--text);

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

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

.btn-secondary:hover {
    transform: translateY(-3px);

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

    background:
        rgba(124, 92, 255, 0.08);
}

/* =========================================================
   PLANET
========================================================= */

.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Contenedor encargado de la flotación */

.planet-float {
    width: min(360px, 70vw);
    aspect-ratio: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    animation: planetFloat 6s ease-in-out infinite;
}


/* Planeta */

.planet {
    width: 100%;
    height: 100%;

    position: relative;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 30% 25%,
            rgba(255, 255, 255, 0.35),
            transparent 8%
        ),
        radial-gradient(
            circle at 35% 30%,
            #6954ff,
            #24194f 45%,
            #090b17 75%
        );

    box-shadow:
        inset -40px -40px 80px rgba(0, 0, 0, 0.65),
        inset 15px 15px 35px rgba(255, 255, 255, 0.08),
        0 0 70px rgba(124, 92, 255, 0.3);

    /*
       SOLO el planeta gira.
       Así no interfiere con la flotación.
    */
    animation: planetRotate 20s linear infinite;

    transform-origin: center center;

    will-change: transform;
}


/* Textura */

.planet::before {
    content: "";

    position: absolute;

    inset: 15%;

    border-radius: 50%;

    background:
        repeating-linear-gradient(
            120deg,
            transparent 0 18px,
            rgba(255, 255, 255, 0.035) 19px 21px
        );

    opacity: 0.8;

    pointer-events: none;
}


/* Brillo */

.planet::after {
    content: "";

    position: absolute;

    inset: -5%;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            transparent 55%,
            rgba(124, 92, 255, 0.08) 70%,
            transparent 75%
        );

    pointer-events: none;

    animation: planetGlow 4s ease-in-out infinite alternate;
}


/* =========================================================
   ANILLO
========================================================= */

.ring {
    position: absolute;

    width: 145%;
    height: 35%;

    left: -22%;
    top: 33%;

    border:
        2px solid
        rgba(0, 229, 255, 0.6);

    border-radius: 50%;

    transform:
        rotate(-18deg)
        skewX(-10deg);

    box-shadow:
        0 0 25px rgba(0, 229, 255, 0.25);

    z-index: 2;

    pointer-events: none;
}


/* =========================================================
   ANIMACIÓN DE GIRO
========================================================= */

@keyframes planetRotate {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   ANIMACIÓN DE FLOTACIÓN
========================================================= */

@keyframes planetFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-18px);
    }

}


/* =========================================================
   ANIMACIÓN DE BRILLO
========================================================= */

@keyframes planetGlow {

    from {
        opacity: 0.65;

        filter:
            drop-shadow(
                0 0 25px
                rgba(124, 92, 255, 0.25)
            );
    }

    to {
        opacity: 1;

        filter:
            drop-shadow(
                0 0 55px
                rgba(124, 92, 255, 0.45)
            );
    }

}


/* =========================================================
   PLANETA — TABLET
========================================================= */

@media (max-width: 1000px) {

    .planet-float {
        width: 300px;
    }

}


/* =========================================================
   PLANETA — MOBILE
========================================================= */

@media (max-width: 650px) {

    .planet-float {
        width: 230px;
    }

}


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

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

    .planet-float,
    .planet,
    .planet::after {
        animation: none;
    }

}

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

section {
    width: min(var(--max-width), 90%);
    margin: auto;
}

.about,
.services,
.projects,
.tech,
.contact {
    padding: 120px 0;
}

section > h2,
.about h2 {
    font-size: clamp(34px, 5vw, 55px);
    line-height: 1.1;

    letter-spacing: -2px;

    margin-bottom: 25px;
}

section > h2::after {
    content: "";

    display: block;

    width: 55px;
    height: 3px;

    margin-top: 18px;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--secondary)
        );
}


/* =========================================================
   ABOUT
========================================================= */

.about {
    max-width: 900px;
}

.about p {
    color: var(--text-soft);

    font-size: 19px;
    line-height: 1.9;

    max-width: 800px;
}


/* =========================================================
   SERVICES
========================================================= */

.cards {
    display: grid;

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

    gap: 20px;

    margin-top: 50px;
}

.card {
    position: relative;

    padding: 35px;

    min-height: 280px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    background:
        linear-gradient(
            145deg,
            rgba(17, 24, 39, 0.82),
            rgba(8, 12, 21, 0.75)
        );

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

    border-radius: var(--radius);

    overflow: hidden;

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

.card::before {
    content: "";

    position: absolute;

    width: 150px;
    height: 150px;

    top: -80px;
    right: -80px;

    border-radius: 50%;

    background:
        rgba(124, 92, 255, 0.12);

    filter: blur(30px);

    transition: 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);

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

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35),
        0 0 40px rgba(124, 92, 255, 0.08);
}

.card:hover::before {
    transform: scale(1.5);
}

.icon {
    font-size: 36px;

    width: 65px;
    height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 25px;

    border-radius: 16px;

    background:
        rgba(124, 92, 255, 0.1);

    border:
        1px solid
        rgba(124, 92, 255, 0.18);
}

.card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-soft);

    font-size: 14px;
    line-height: 1.7;

    margin-bottom: 20px;
}

.card .btn-primary {
    margin-top: auto;

    min-height: 44px;

    padding: 0 18px;

    font-size: 13px;
}


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

.project-cards {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(320px, 1fr));

    gap: 25px;

    margin-top: 50px;
}

.project-card {
    position: relative;

    padding: 35px;

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(16, 23, 38, 0.95),
            rgba(7, 11, 19, 0.95)
        );

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

    overflow: hidden;

    transition:
        transform 0.4s ease,
        border-color 0.4s ease;
}

.project-card::after {
    content: "";

    position: absolute;

    width: 250px;
    height: 250px;

    right: -130px;
    bottom: -150px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(0, 229, 255, 0.12),
            transparent 70%
        );

    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-8px);

    border-color:
        rgba(0, 229, 255, 0.35);
}

.project-card-top {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 30px;

    gap: 15px;
}

.project-status {
    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.5px;

    color: #61f6ad;
}

.project-type {
    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1px;

    padding: 6px 10px;

    border-radius: 8px;

    color: var(--text-soft);

    background:
        rgba(255, 255, 255, 0.05);
}

.project-card-icon {
    width: 75px;
    height: 75px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 40px;

    margin-bottom: 25px;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(124, 92, 255, 0.14),
            rgba(0, 229, 255, 0.07)
        );

    border:
        1px solid
        rgba(124, 92, 255, 0.18);
}

.project-card h3 {
    font-size: 30px;
    margin-bottom: 12px;
}

.project-card > p {
    color: var(--text-soft);
    margin-bottom: 25px;
}

.project-card-features {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 30px;
}

.project-card-features span {
    padding: 7px 10px;

    border-radius: 8px;

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

    border:
        1px solid
        rgba(255, 255, 255, 0.06);

    color: #c7ccda;

    font-size: 11px;
}


/* =========================================================
   TECHNOLOGIES
========================================================= */

.tech {
    text-align: center;
}

.tech > h2 {
    text-align: center;
}

.tech > h2::after {
    margin-left: auto;
    margin-right: auto;
}

.tech-grid {
    display: grid;

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

    gap: 14px;

    margin-top: 50px;
}

.tech-grid span {
    min-height: 80px;

    display: flex;

    align-items: center;
    justify-content: center;

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

    border-radius: 14px;

    color: var(--text-soft);

    font-weight: 600;
    font-size: 14px;

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

    transition:
        color 0.3s ease,
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

.tech-grid span:hover {
    color: white;

    transform: translateY(-5px);

    border-color:
        rgba(0, 229, 255, 0.3);

    background:
        rgba(0, 229, 255, 0.05);
}


/* =========================================================
   CTA
========================================================= */

.cta {
    width: min(900px, 90%);

    margin: 80px auto 120px;

    padding: 80px 30px;

    text-align: center;

    border-radius: 30px;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(124, 92, 255, 0.2),
            transparent 60%
        ),
        rgba(12, 17, 29, 0.8);

    border:
        1px solid
        rgba(124, 92, 255, 0.2);

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.3);
}

.cta h2 {
    font-size: clamp(35px, 5vw, 60px);

    letter-spacing: -2px;

    margin-bottom: 10px;
}

.cta p {
    color: var(--text-soft);

    font-size: 18px;

    margin-bottom: 20px;
}


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

.contact {
    max-width: 800px;

    text-align: center;
}

.contact > h2::after {
    margin-left: auto;
    margin-right: auto;
}

#contactForm {
    display: flex;

    flex-direction: column;

    gap: 15px;

    margin-top: 45px;
}

#contactForm input,
#contactForm textarea {
    width: 100%;

    color: white;

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

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

    border-radius: 12px;

    outline: none;

    padding: 17px 18px;

    transition:
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

#contactForm input::placeholder,
#contactForm textarea::placeholder {
    color: var(--text-muted);
}

#contactForm input:focus,
#contactForm textarea:focus {
    border-color:
        rgba(124, 92, 255, 0.65);

    background:
        rgba(124, 92, 255, 0.04);

    box-shadow:
        0 0 0 4px
        rgba(124, 92, 255, 0.08);
}

#contactForm textarea {
    min-height: 160px;
    resize: vertical;
}

#contactForm button {
    min-height: 55px;

    border: 0;
    border-radius: 12px;

    color: white;

    font-weight: 800;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #5940d1
        );

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

#contactForm button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 15px 35px
        rgba(124, 92, 255, 0.3);
}


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

footer {
    padding: 60px 20px 40px;

    text-align: center;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.06);

    background:
        rgba(3, 5, 10, 0.7);
}

footer h3 {
    font-size: 22px;

    letter-spacing: 4px;

    margin-bottom: 10px;
}

footer > p {
    color: var(--text-muted);

    font-size: 13px;

    margin-bottom: 30px;
}

footer small {
    display: block;

    margin-top: 30px;

    color: #4f5668;

    font-size: 11px;
}


/* =========================================================
   LEGAL LINKS
========================================================= */

.legal-links {
    display: flex;

    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 12px 20px;
}

.legal-link {
    border: 0;

    padding: 0;

    background: transparent;

    color: var(--text-muted);

    font-size: 12px;

    transition:
        color 0.3s ease;
}

.legal-link:hover {
    color: var(--secondary);
}


/* =========================================================
   LEGAL MODAL
========================================================= */

.legal-modal {
    position: fixed;

    inset: 0;

    z-index: 5000;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 25px;

    background:
        rgba(0, 0, 0, 0.78);

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

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.legal-modal.active {
    opacity: 1;
    visibility: visible;
}

.legal-modal-box {
    width: min(950px, 100%);
    height: min(750px, 90vh);

    display: flex;

    flex-direction: column;

    overflow: hidden;

    border-radius: 22px;

    background: #080c15;

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    box-shadow:
        0 40px 120px
        rgba(0, 0, 0, 0.7);

    transform:
        translateY(25px)
        scale(0.97);

    transition:
        transform 0.35s ease;
}

.legal-modal.active .legal-modal-box {
    transform:
        translateY(0)
        scale(1);
}

.legal-modal-header {
    min-height: 75px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 0 25px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.07);
}

.legal-modal-title {
    display: flex;

    align-items: center;

    gap: 12px;

    font-size: 17px;
}

.legal-modal-title span {
    color: var(--secondary);

    text-shadow:
        0 0 15px
        rgba(0, 229, 255, 0.5);
}

.legal-modal-close {
    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 10px;

    color: white;

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

    font-size: 25px;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.legal-modal-close:hover {
    background:
        rgba(255, 70, 90, 0.15);

    transform: rotate(90deg);
}

.legal-modal-content {
    flex: 1;

    overflow: hidden;
}

.legal-modal-content iframe {
    width: 100%;
    height: 100%;

    border: 0;

    background: white;
}

.legal-modal-footer {
    min-height: 65px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 0 25px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.07);
}

.legal-modal-footer-text {
    color: var(--text-muted);

    font-size: 11px;
}

.legal-modal-button {
    border:
        1px solid
        var(--border);

    border-radius: 9px;

    padding: 9px 18px;

    color: white;

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

    font-size: 12px;

    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}

.legal-modal-button:hover {
    border-color:
        var(--border-hover);

    background:
        rgba(124, 92, 255, 0.1);
}


/* =========================================================
   COOKIE CONSENT
========================================================= */

.cookie-consent {
    position: fixed;

    left: 20px;
    right: 20px;
    bottom: 20px;

    z-index: 4000;

    display: flex;

    justify-content: center;

    opacity: 0;
    visibility: hidden;

    transform: translateY(30px);

    transition:
        opacity 0.4s ease,
        transform 0.4s ease,
        visibility 0.4s ease;
}

.cookie-consent.active {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.cookie-consent-box {
    width: min(1050px, 100%);

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 25px 28px;

    border-radius: 18px;

    background:
        rgba(9, 14, 24, 0.95);

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    box-shadow:
        0 25px 80px
        rgba(0, 0, 0, 0.5);

    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.cookie-consent-content {
    flex: 1;
}

.cookie-consent-content h2 {
    font-size: 16px;
    margin-bottom: 8px;
}

.cookie-consent-content p {
    color: var(--text-muted);

    font-size: 12px;

    line-height: 1.6;

    margin-bottom: 5px;
}

.cookie-policy-link {
    padding: 0;

    border: 0;

    color: var(--secondary);

    background: transparent;

    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;

    align-items: center;

    gap: 10px;
}

.cookie-reject,
.cookie-accept {
    min-height: 42px;

    padding: 0 18px;

    border-radius: 9px;

    font-size: 12px;
    font-weight: 700;

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.cookie-reject {
    color: var(--text-soft);

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

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

.cookie-accept {
    color: white;

    border:
        1px solid transparent;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #5d43d6
        );
}

.cookie-reject:hover,
.cookie-accept:hover {
    transform: translateY(-2px);
}


/* =========================================================
   REVEAL ANIMATIONS
========================================================= */

.reveal {
    opacity: 0;

    transform:
        translateY(35px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal.active,
.reveal.visible {
    opacity: 1;

    transform:
        translateY(0);
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1000px) {

    .hero {
        grid-template-columns: 1fr;

        text-align: center;

        padding-top: 150px;
    }

    .hero-left {
        margin: auto;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .buttons {
        justify-content: center;
    }

    .hero-right {
        padding: 30px 0 80px;
    }

    .planet {
        width: 300px;
    }

    .cards {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .tech-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 650px) {

    header {
        height: 65px;

        justify-content: center;
    }

    .logo {
        font-size: 17px;
        letter-spacing: 3px;
    }

    .hero {
        width: 88%;

        padding-top: 120px;

        gap: 20px;
    }

    .hero h1 {
        font-size:
            clamp(40px, 12vw, 58px);

        letter-spacing: -2.5px;
    }

    .hero p {
        font-size: 15px;

        line-height: 1.7;
    }

    .buttons {
        flex-direction: column;

        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .planet {
        width: 230px;
    }

    .about,
    .services,
    .projects,
    .tech,
    .contact {
        padding: 80px 0;
    }

    section > h2,
    .about h2 {
        font-size: 38px;

        letter-spacing: -1.5px;
    }

    .about p {
        font-size: 16px;
    }

    .cards {
        grid-template-columns: 1fr;

        margin-top: 35px;
    }

    .card {
        min-height: auto;

        padding: 28px;
    }

    .project-cards {
        grid-template-columns: 1fr;

        margin-top: 35px;
    }

    .project-card {
        padding: 28px;
    }

    .project-card h3 {
        font-size: 27px;
    }

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

        margin-top: 35px;
    }

    .tech-grid span {
        min-height: 65px;
    }

    .cta {
        margin:
            50px auto 80px;

        padding: 60px 25px;
    }

    .cta h2 {
        font-size: 38px;
    }

    .contact {
        width: 88%;
    }

    .cookie-consent {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .cookie-consent-box {
        flex-direction: column;

        align-items: stretch;

        padding: 22px;

        gap: 20px;
    }

    .cookie-consent-actions {
        display: grid;

        grid-template-columns:
            1fr 1fr;
    }

    .cookie-reject,
    .cookie-accept {
        width: 100%;
    }

    .legal-modal {
        padding: 10px;
    }

    .legal-modal-box {
        height: 94vh;

        border-radius: 16px;
    }

    .legal-modal-footer {
        padding: 12px 18px;

        min-height: 60px;
    }

    .legal-modal-footer-text {
        display: none;
    }

    .legal-modal-button {
        margin-left: auto;
    }
}


/* =========================================================
   VERY SMALL DEVICES
========================================================= */

@media (max-width: 400px) {

    .hero h1 {
        font-size: 38px;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .cookie-consent-actions {
        grid-template-columns: 1fr;
    }

    .legal-links {
        flex-direction: column;

        gap: 12px;
    }
}


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

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

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;

        transform: none;
    }
}


/* =========================================================
   PRINT
========================================================= */

@media print {

    .loader,
    #particles,
    .background,
    .cookie-consent,
    .legal-modal {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}