/* ==========================================================================
   VARIABLES & RESET
   ========================================================================== */
:root {
    --bg-primary: #000032;
    --bg-secondary: #0A003A;
    --bg-elevated: rgba(10, 0, 58, 0.62);
    --color-primary: #854AFD;
    --color-primary-dark: #6617FD;
    --color-text-main: #F1EAFF;
    --color-text-muted: rgba(255, 255, 255, 0.7);
    --color-white: #FFFFFF;

    --font-heading: 'Anta', sans-serif;
    --font-body: 'Geologica', sans-serif;

    --glow-primary: 0px 0px 14px rgba(102, 23, 253, 1.00);
    --glow-strong: 0px 0px 40px rgba(133, 74, 253, 1.00);

    --container-max-width: 1328px;
    --br-radius: 16px;
    --transition: 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-primary);
    color: var(--color-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ==========================================================================
   TYPOGRAPHY & BUTTONS
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-main);
    font-weight: 400;
}

.section-title {
    font-size: 48px;
    line-height: 1.2;
    text-shadow: var(--glow-strong);
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 20px;
    padding: 10px 30px;
    border-radius: 35px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: rgba(133, 74, 253, 0.90);
    color: var(--color-white);
    box-shadow: 0px 0px 10px var(--color-primary);
    border: 2px solid #F1EAFF;
}

.btn-primary:hover {
    background: var(--color-primary);
    box-shadow: 0px 0px 20px var(--color-primary);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(102, 23, 253, 0.30);
    color: var(--color-white);
    box-shadow: 0px 0px 7px var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 12px 40px;
}

.btn-secondary:hover {
    background: rgba(102, 23, 253, 0.60);
}

.btn-link {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 24px;
    text-shadow: 0px 0px 4px rgba(102, 23, 253, 1.00);
    margin-top: 15px;
    display: inline-block;
}

.btn-link:hover {
    color: #F1EAFF;
    text-shadow: var(--glow-primary);
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.navbar {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(8, 0, 48, 0.92), rgba(20, 0, 70, 0.62));
    border: 1px solid rgba(133, 74, 253, 0.3);
    border-radius: 40px;
    padding: 15px 30px;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(133, 74, 253, 0.15), 0 0 60px rgba(133, 74, 253, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 20px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-primary);
    text-shadow: var(--glow-primary);
}

/* ==========================================================================
   POST HERO SECTION
   ========================================================================== */
.post-hero {
    position: relative;
    padding-top: 200px;
    padding-bottom: 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    z-index: 0;
}

.post-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.post-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 24%, rgba(133, 74, 253, 0.24), transparent 42%),
        linear-gradient(180deg, rgba(0, 0, 32, 0.26) 0%, rgba(0, 0, 42, 0.66) 54%, var(--bg-primary) 100%);
    z-index: 1;
    pointer-events: none;
}

.post-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.post-hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 50, 0.3) 0%, var(--bg-primary) 100%);
}

.post-title {
    font-size: 64px;
    text-shadow: var(--glow-strong);
    max-width: 800px;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   MAIN POST CONTENT
   ========================================================================== */
.post-content {
    padding: 80px 0;
    position: relative;
}

/* Bolhas de blur decorativas */
.post-content::before,
.post-content::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--color-primary);
    border-radius: 50%;
    filter: blur(250px);
    opacity: 0.4;
    z-index: -1;
}

.post-content::before {
    top: -200px;
    right: -300px;
}

.post-content::after {
    bottom: -100px;
    left: -300px;
}

.post-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.post-image img {
    width: 100%;
    border-radius: var(--br-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.post-text {
    font-size: 20px;
    font-weight: 300;
    color: var(--color-text-muted);
}

.post-text p {
    margin-bottom: 25px;
    line-height: 1.8;
}

/* ==========================================================================
   RELATED POSTS
   ========================================================================== */
.related-posts {
    padding: 100px 0 200px 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.related-posts.blog-home {
    padding: 120px 0 170px;
}

.blog-bg-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1400px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.10;
    z-index: 0;
    pointer-events: none;
}

.blog-home .blog-bg-logo {
    top: 53%;
    opacity: 0.62;
}

.blog-bg-logo img {
    width: 80%;
    height: auto;
    object-fit: contain;
}

.blog-home .blog-bg-logo img {
    width: min(95%, 1080px);
    mix-blend-mode: screen;
    filter: brightness(2.2) contrast(1.2) saturate(0) drop-shadow(0 0 30px rgba(133, 74, 253, 0.35));
}

.related-posts .container {
    position: relative;
    z-index: 2;
}

.related-posts .subtitle {
    display: block;
    text-align: center;
    margin-bottom: 20px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: rgba(10, 0, 30, 0.6);
    border-radius: var(--br-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(133, 74, 253, 0.2);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(15, 0, 45, 0.7);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0px 0px 30px rgba(133, 74, 253, 0.1);
    border-color: rgba(133, 74, 253, 0.4);
}

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-content p {
    color: var(--color-text-muted);
    font-size: 15px;
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.5;
}

.card-content .btn-link {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 500;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
    padding: 120px 0;
    position: relative;
    background: var(--bg-secondary);
    text-align: center;
    overflow: hidden;
}

/* Video background for contact section */
.contact-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.contact-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 50, 0.55);
}

/* Spiral images on contact sides */
.contact-spiral {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 120%;
    width: auto;
    z-index: 1;
    pointer-events: none;
    opacity: 0.9;
}

.contact-spiral--left {
    left: -80px;
}

.contact-spiral--right {
    right: -80px;
    transform: translateY(-50%) scaleX(-1);
}

.contact-section .subtitle {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text-main);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0px 0px 4px var(--color-primary);
    display: block;
    margin-bottom: 10px;
}

.contact-section h2 {
    font-size: 48px;
    margin-bottom: 50px;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.input-group {
    flex: 1;
}

.form-input {
    width: 100%;
    background: rgba(10, 0, 58, 0.60);
    border: 1px solid rgba(133, 74, 253, 0.3);
    border-radius: 35px;
    padding: 20px 30px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 18px;
    transition: var(--transition);
}

.form-input::placeholder {
    color: rgba(241, 234, 255, 0.4);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(133, 74, 253, 0.3);
    background: rgba(10, 0, 58, 0.90);
}

.form-input[type="file"] {
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 14px;
    font-family: var(--font-body);
    color: rgba(241, 234, 255, 0.9);
}

.form-input[type="file"]::file-selector-button {
    border: 1px solid rgba(133, 74, 253, 0.55);
    background: rgba(133, 74, 253, 0.2);
    color: #f1eaff;
    border-radius: 999px;
    padding: 8px 12px;
    margin-right: 10px;
    font-family: var(--font-heading);
    font-size: 12px;
    cursor: pointer;
}

.form-input[type="file"]::file-selector-button:hover {
    background: rgba(133, 74, 253, 0.35);
}

.textarea {
    border-radius: 25px;
    min-height: 180px;
    resize: vertical;
}

.contact-form button {
    margin-top: 20px;
    align-self: center;
}

.form-hp-wrap {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.form-hp-input {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.form-feedback {
    margin: 20px auto;
    max-width: 800px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid transparent;
    text-align: left;
}

.form-feedback p {
    margin: 0;
}

.form-feedback p + p {
    margin-top: 6px;
}

.form-feedback.is-success {
    color: #d4ffe7;
    border-color: rgba(129, 247, 180, 0.35);
    background: rgba(42, 145, 90, 0.18);
}

.form-feedback.is-error {
    color: #ffd9d9;
    border-color: rgba(255, 148, 148, 0.35);
    background: rgba(140, 38, 68, 0.2);
}

.model-help-box {
    border: 1px solid rgba(133, 74, 253, 0.28);
    background: rgba(25, 8, 80, 0.42);
    color: rgba(241, 234, 255, 0.9);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.45;
}

/* Background blurs na section de contato */
.contact-section .blur-effect {
    position: absolute;
    width: 500px;
    height: 400px;
    background: var(--color-primary);
    border-radius: 50%;
    filter: blur(200px);
    opacity: 0.3;
    z-index: 1;
}

.blur-1 {
    top: 10%;
    left: -200px;
}

.blur-2 {
    bottom: 10%;
    right: -200px;
}

.contact-container {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    position: relative;
    padding: 60px 0 30px;
    background: var(--bg-secondary);
    overflow: hidden;
}

.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    mix-blend-mode: soft-light;
    opacity: 0.5;
}

.footer-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.footer-logo {
    height: 100px;
    width: auto;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--color-primary);
    transform: translateY(-5px);
}

.footer-nav {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    font-family: var(--font-heading);
    font-size: 18px;
}

.footer-nav a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    margin-top: 20px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 16px;
    color: rgba(241, 234, 255, 0.6);
}

/* ==========================================================================
   HOME HERO SECTION
   ========================================================================== */
.home-hero {
    position: relative;
    padding-top: 180px;
    padding-bottom: 200px;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: visible;
}

.home-hero-bg {
    position: absolute;
    top: -120px;
    left: 0;
    width: 100%;
    height: calc(100% + 120px);
    z-index: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 95%);
    mask-image: linear-gradient(to bottom, black 55%, transparent 95%);
}

.home-hero-bg .bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: lighten;
    animation: floating 6s ease-in-out infinite;
}

/* Sphere video in home hero */
.sphere-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-mask-image: radial-gradient(ellipse 90% 90% at center 35%, black 40%, transparent 80%);
    mask-image: radial-gradient(ellipse 90% 90% at center 35%, black 40%, transparent 80%);
}

.home-hero-bg .bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: lighten;
    object-position: center 10%;
}

/* Ellipse glow behind hero content */
.home-hero-ellipse {
    position: absolute;
    top: -5vh;
    left: 50%;
    transform: translateX(-50%);
    width: 175vh;
    height: 140vh;
    max-width: none;
    z-index: 1;
    pointer-events: none;
    opacity: 0.9;
    mix-blend-mode: screen;
}

/* Seamless gradient at bottom of home hero - handled by mask on .home-hero-bg */

@keyframes floating {
    0% {
        transform: translateY(0);
    }

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

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

.blur-glow-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: var(--color-primary);
    border-radius: 50%;
    filter: blur(300px);
    opacity: 0.3;
}

/* Video crossfade for smooth looping */
@keyframes videoFadeLoop {
    0% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.video-crossfade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-crossfade video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero-content {
    position: relative;
    z-index: 2;
    padding-top: 100px;
}

.hero-title {
    font-size: 96px;
    line-height: 1.1;
    text-shadow: var(--glow-strong);
    margin-bottom: 30px;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--color-text-main);
    font-weight: 300;
    margin-bottom: 60px;
}

.hero-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

/* ==========================================================================
   ABOUT / QUEM SOMOS
   ========================================================================== */
.about-section {
    margin-top: 100px;
    padding: 20px 0 60px;
    position: relative;
    background: transparent;
}

.about-section .container {
    max-width: 100%;
    padding: 0 160px;
}

.about-card {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 50px 50px 180px;
    text-align: center;
}

.about-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.about-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.about-card>*:not(.about-card-bg) {
    position: relative;
    z-index: 1;
}

.about-card .subtitle {
    color: var(--color-primary);
}

.about-card .section-title {
    color: var(--color-white);
    font-size: 48px;
}

.about-text-box {
    max-width: 850px;
    margin: 0 auto;
    font-size: 28px;
    line-height: 28px;
    color: rgba(255, 255, 255, 0.8);
}

.about-text-box p {
    margin-bottom: 20px;
}

.about-cta {
    margin-top: 60px;
}

.bg-shape-services {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    z-index: 1;
    pointer-events: none;
    opacity: 1;
    overflow: hidden;
    -webkit-mask-image: radial-gradient(ellipse 65% 65% at center, black 35%, transparent 70%);
    mask-image: radial-gradient(ellipse 65% 65% at center, black 35%, transparent 70%);
}

.bg-shape-services video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: screen;
    filter: brightness(1.8);
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-section {
    padding: 100px 0;
    position: relative;
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(10, 0, 58, 0.95) 15%, rgba(10, 0, 58, 0.95) 85%, var(--bg-primary) 100%);
    overflow: hidden;
}

.services-section .container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    padding: 0 15px;
    margin: 0 auto;
}

.services-section .subtitle,
.services-section .section-title {
    text-align: left;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.service-card {
    background: rgba(10, 0, 30, 0.6);
    border: 1px solid rgba(133, 74, 253, 0.2);
    border-left: 6px solid var(--color-primary);
    border-radius: var(--br-radius);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: var(--transition);
    box-shadow: inset 40px 0px 60px -30px rgba(133, 74, 253, 0.2), inset 0px -30px 50px -20px rgba(10, 0, 58, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(15, 0, 45, 0.7);
    border-left: 6px solid var(--color-primary-light);
    box-shadow: inset 50px 0px 80px -30px rgba(133, 74, 253, 0.3), 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-card .icon-box {
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 50, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.service-card .btn-secondary {
    width: 100%;
    background-color: var(--color-primary);
    border: none;
    border-radius: 30px;
    color: #ffffff;
    box-shadow: 0px 0px 15px rgba(133, 74, 253, 0.4);
    opacity: 0.9;
}

.service-card .btn-secondary:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0px 0px 25px rgba(133, 74, 253, 0.7);
}

.service-card .icon-box img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.service-card h3 {
    font-size: 28px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* ==========================================================================
   PORTFOLIO SECTION
   ========================================================================== */
.portfolio-section {
    padding: 80px 0;
    position: relative;
    background: linear-gradient(180deg, var(--bg-primary) 0%, #1a0050 50%, var(--bg-primary) 100%);
    overflow: hidden;
}

.portfolio-section::before {
    content: '';
    position: absolute;
    left: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 250px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(133, 74, 253, 0.4) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
}

.portfolio-section::after {
    content: '';
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 250px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(133, 74, 253, 0.4) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
}

.portfolio-section .subtitle,
.portfolio-section .section-title {
    text-align: center;
    position: relative;
    z-index: 2;
}

.portfolio-section .subtitle {
    display: block;
    width: 100%;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    margin-top: 50px;
}

/* ==========================================================================
   PARTNERS SECTION
   ========================================================================== */
.partners-section {
    padding: 30px 0;
    position: relative;
    background: transparent;
}

.partners-section .container {
    display: flex;
    justify-content: center;
}

.partners-card {
    width: 100%;
    max-width: 1120px;
    background: linear-gradient(180deg, rgba(17, 8, 55, 0.92) 0%, rgba(64, 36, 133, 0.88) 100%);
    border: 1px solid rgba(241, 234, 255, 0.22);
    border-radius: 36px;
    padding: 44px 52px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.35), inset 0 -75px 80px -65px rgba(133, 74, 253, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.partners-card::after {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: -18px;
    height: 42px;
    border-radius: 999px;
    background: radial-gradient(ellipse at center, rgba(144, 89, 255, 0.95) 0%, rgba(144, 89, 255, 0.35) 55%, rgba(144, 89, 255, 0) 100%);
    filter: blur(8px);
    pointer-events: none;
}

.partners-text {
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
}

.partners-card .subtitle {
    font-size: 14px;
    color: var(--color-primary);
    display: block;
    margin-bottom: 5px;
}

.partners-card h2 {
    font-size: 46px;
    line-height: 1.2;
    margin-bottom: 0;
}

.partners-logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(22px, 3vw, 44px);
    flex: 1;
    max-width: 560px;
    position: relative;
    z-index: 1;
}

.partner-logo {
    max-height: 94px;
    width: clamp(110px, 12vw, 150px);
    object-fit: contain;
    opacity: 0.95;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.14));
}

.portfolio-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portfolio-card .img-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(133, 74, 253, 0.4);
    box-shadow: 0 0 25px rgba(133, 74, 253, 0.15);
    transition: var(--transition);
}

.portfolio-card:hover .img-wrapper {
    border-color: rgba(133, 74, 253, 0.7);
    box-shadow: 0 0 40px rgba(133, 74, 253, 0.25);
}

.portfolio-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.03);
}

.portfolio-content {
    text-align: center;
    padding: 30px 10px 0;
}

.portfolio-content h3 {
    font-size: 32px;
    margin-bottom: 12px;
}

.portfolio-content p {
    color: var(--color-text-muted);
    font-size: 15px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.portfolio-content .btn-link {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 500;
    display: inline-block;
}

/* ==========================================================================
   HELPERS & UTILS
   ========================================================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.mt-5 {
    margin-top: 50px;
}

.mt-auto {
    margin-top: auto;
}

/* ==========================================================================
   BLOG INDEX HERO
   ========================================================================== */
.blog-hero {
    position: relative;
    padding-top: 250px;
    padding-bottom: 120px;
    min-height: 62vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    z-index: 0;
}

.blog-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 22%, rgba(133, 74, 253, 0.26), transparent 46%),
        linear-gradient(180deg, rgba(0, 0, 38, 0.28) 0%, rgba(0, 0, 50, 0.76) 68%, var(--bg-primary) 100%);
    z-index: 1;
    pointer-events: none;
}

.blog-hero-bg .bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: lighten;
    animation: floating 6s ease-in-out infinite;
}

/* Video background for blog/portfolio hero */
.blog-hero-bg .bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: lighten;
    object-position: center;
}

/* Seamless gradient transition at bottom of hero */
.blog-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, var(--bg-primary), transparent);
    z-index: 1;
    pointer-events: none;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
}

.blog-hero-content .hero-title,
.blog-hero-content .portfolio-hero-title {
    margin-bottom: 20px;
    letter-spacing: 0.6px;
}

.blog-hero-content .hero-subtitle {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(241, 234, 255, 0.88);
}

/* ==========================================================================
   FEATURED POSTS
   ========================================================================== */
.featured-posts {
    padding: 60px 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
}

.featured-card-main {
    height: 100%;
}

.featured-card-main .card-img-large {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.featured-card-main .card-content h3 {
    font-size: 36px;
    margin-bottom: 20px;
}

.featured-side-posts {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.side-card {
    flex-direction: row;
}

.card-img-small {
    width: 250px;
    height: 100%;
    object-fit: cover;
}

.side-card .card-content {
    padding: 20px 30px;
    justify-content: center;
}

.side-card .card-content h4 {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 15px;
    line-height: 1.3;
    color: var(--color-text-main);
}

.text-small {
    font-size: 18px;
    margin-top: 10px;
}

/* ==========================================================================
   PORTFOLIO PAGE GALLERY
   ========================================================================== */
.portfolio-gallery {
    padding: 60px 0 100px;
}

.portfolio-page-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.portfolio-hero-title {
    font-size: clamp(58px, 9vw, 96px);
    text-shadow: 0px 0px 40px rgba(133, 74, 253, 1);
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.portfolio-page-card {
    height: 100%;
    background: rgba(241, 234, 255, 0.05);
    border-radius: 36px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.portfolio-page-card:hover {
    background: linear-gradient(180deg, rgba(10, 0, 58, 0.8) 0%, rgba(0, 0, 50, 0.8) 100%);
    box-shadow: 0px -60px 100px -20px #6617FD inset,
        0px -35px 44px -15px #854AFD inset,
        0px -15px 40px -25px #F1EAFF inset,
        0px 30px 40px 10px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-page-card .card-img-large {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 36px 36px 0 0;
}

.portfolio-page-card .card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.portfolio-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.portfolio-meta h3 {
    margin-bottom: 0 !important;
    font-size: 28px;
    color: var(--color-text-main);
}

.portfolio-tag {
    color: var(--color-primary);
    font-size: 24px;
    font-family: var(--font-heading);
    text-shadow: 0px 0px 8px rgba(102, 23, 253, 0.8);
}

.portfolio-page-card p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 30px;
}

.portfolio-page-card .btn-full {
    margin-top: auto;
    width: 100%;
    background: rgba(102, 23, 253, 0.3);
    box-shadow: 0px 0px 7px #854AFD;
    border: 2px solid #854AFD;
    border-radius: 35px;
    padding: 15px 20px;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
}

.portfolio-page-card:hover .btn-full {
    background: linear-gradient(90deg, #6617FD, #854AFD);
    box-shadow: 0 0 15px #854AFD;
    border-color: #F1EAFF;
    color: white;
}

/* ==========================================================================
   PORTFOLIO DETAILS (PROJECT) PAGE
   ========================================================================== */
.project-hero {
    position: relative;
    min-height: 78vh;
    padding-top: 220px;
    padding-bottom: 120px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
    isolation: isolate;
    z-index: 0;
}

.project-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.project-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 30%, rgba(133, 74, 253, 0.2), transparent 42%),
        linear-gradient(180deg, rgba(0, 0, 35, 0.22) 0%, rgba(0, 0, 46, 0.7) 52%, var(--bg-primary) 100%);
    z-index: 1;
    pointer-events: none;
}

.project-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.project-hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 72%;
    background: linear-gradient(180deg, rgba(0, 0, 50, 0.08) 0%, rgba(0, 0, 50, 0.56) 48%, var(--bg-primary) 100%);
}

.project-hero-content {
    text-align: left;
    width: 100%;
    position: relative;
    z-index: 2;
}

.project-title {
    font-size: clamp(62px, 9vw, 96px);
    text-shadow: 0px 0px 40px rgba(133, 74, 253, 1);
    margin-bottom: 6px;
}

.project-category {
    font-size: 32px;
    color: var(--color-primary);
    font-family: var(--font-heading);
    margin-bottom: 0;
}

.project-details {
    padding: 45px 0 70px;
}

.project-intro {
    max-width: 1100px;
    margin: 0 auto 90px;
    text-align: left;
}

.project-intro p {
    font-size: 20px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.custom-content-stack {
    display: grid;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto 30px;
}

.custom-block-title {
    font-family: var(--font-heading);
    font-size: 38px;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
}

.custom-block-paragraph {
    font-size: 20px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.76);
    margin: 0;
}

.custom-subtitle-chip {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 7px 14px;
    background: rgba(133, 74, 253, 0.22);
    border: 1px solid rgba(133, 74, 253, 0.48);
    color: #f1eaff;
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 0.3px;
}

.custom-subtitle-chip.align-right {
    margin-left: auto;
}

.custom-image-card {
    max-width: 860px;
}

.custom-image-card.custom-image-left {
    margin-right: auto;
}

.custom-image-card.custom-image-right {
    margin-left: auto;
}

.custom-image-card.custom-image-center {
    margin-left: auto;
    margin-right: auto;
}

.custom-columns-grid {
    margin-bottom: 10px;
}

.project-feature-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 120px;
}

.project-feature-row:nth-child(even) {
    grid-template-columns: 1fr 1.2fr;
}

.project-feature-row:nth-child(even) .project-feature-img {
    order: 2;
}

.project-feature-img img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 12px;
}

.project-feature-text h3 {
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 18px;
}

.project-feature-text p {
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

/* ==========================================================================
   ADMIN
   ========================================================================== */

/* --- Admin Form Sections (dynamic form organization) --- */
.admin-form-section {
    border: 1px solid rgba(133, 74, 253, 0.18);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 16px;
    background: rgba(10, 0, 58, 0.28);
    transition: opacity 0.25s ease, max-height 0.35s ease;
}

.admin-form-section-title {
    font-family: var(--font-heading);
    font-size: 17px;
    color: var(--color-text-main);
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.admin-form-section-hint {
    font-size: 13px;
    color: rgba(241, 234, 255, 0.55);
    margin-bottom: 14px;
    line-height: 1.5;
}

/* Smooth visual transition when sections appear/disappear */
.admin-form-section[data-visible-for-post],
.admin-form-section[data-visible-for-project] {
    animation: adminSectionFadeIn 0.3s ease;
}

@keyframes adminSectionFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.admin-topbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.admin-topbar .btn {
    font-size: 16px;
    padding: 10px 18px;
}

.admin-topbar .btn.is-active {
    background: linear-gradient(90deg, #6617FD, #854AFD);
    border-color: #F1EAFF;
    box-shadow: 0 0 18px rgba(133, 74, 253, 0.8);
}

.upload-label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-size: 14px;
    color: rgba(241, 234, 255, 0.8);
}

.menu-sortable {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.menu-sortable-item {
    display: grid;
    grid-template-columns: 36px 1fr 1.3fr auto;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(133, 74, 253, 0.3);
    background: rgba(10, 0, 58, 0.5);
    border-radius: 14px;
    padding: 12px 14px;
    cursor: move;
}

.menu-sortable-item.dragging {
    opacity: 0.5;
}

.drag-handle {
    text-align: center;
    font-size: 22px;
    line-height: 1;
    color: var(--color-primary);
}

.menu-label {
    font-family: var(--font-heading);
}

.menu-url {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-visible-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.content-template-preview {
    border: 1px dashed rgba(133, 74, 253, 0.45);
    border-radius: 12px;
    padding: 12px 14px;
    color: rgba(241, 234, 255, 0.88);
    font-size: 14px;
    margin-top: 6px;
}

.visual-preview {
    background: radial-gradient(circle at 10% 0%, rgba(133, 74, 253, 0.18), rgba(10, 0, 58, 0.45));
    border-style: solid;
    border-color: rgba(133, 74, 253, 0.35);
}

.preview-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 13px;
    letter-spacing: 0.2px;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(133, 74, 253, 0.2);
    border: 1px solid rgba(241, 234, 255, 0.28);
}

.preview-canvas {
    display: grid;
    gap: 8px;
}

.preview-hero {
    width: 100%;
}

.preview-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.preview-row.two {
    grid-template-columns: 1fr 1fr;
}

.preview-col {
    display: grid;
    gap: 8px;
    align-content: start;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.preview-tile {
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(133, 74, 253, 0.35);
    background: rgba(5, 0, 40, 0.8);
}

.preview-hero .preview-tile {
    height: 88px;
}

.preview-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-tile.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(241, 234, 255, 0.75);
    font-size: 12px;
    font-family: var(--font-heading);
}

.preview-text-line {
    height: 9px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(133, 74, 253, 0.7), rgba(241, 234, 255, 0.25));
}

.preview-text-line.long {
    width: 90%;
}

.admin-mini-list {
    display: grid;
    gap: 10px;
    max-height: 340px;
    overflow: auto;
    padding-right: 4px;
}

.admin-mini-item {
    display: grid;
    grid-template-columns: 26px 62px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 10px;
    background: rgba(10, 0, 58, 0.5);
    border: 1px solid rgba(133, 74, 253, 0.2);
}

.admin-mini-item img {
    width: 62px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
}

.admin-order-list .admin-mini-item.dragging {
    opacity: 0.55;
}

.inline-form {
    margin: 0;
}

.admin-delete-btn {
    font-size: 12px;
    padding: 8px 12px;
}

.dynamic-fields {
    display: grid;
    gap: 10px;
}

.model-field-group {
    border: 1px solid rgba(133, 74, 253, 0.28);
    border-radius: 12px;
    padding: 10px;
    background: rgba(5, 0, 40, 0.42);
}

.upload-group-title {
    margin-bottom: 10px;
    font-family: var(--font-heading);
    font-size: 15px;
    color: rgba(241, 234, 255, 0.96);
}

.upload-slot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.upload-slot-card {
    display: grid;
    gap: 6px;
    border: 1px solid rgba(133, 74, 253, 0.24);
    border-radius: 12px;
    padding: 10px;
    background: rgba(10, 0, 58, 0.35);
}

.upload-slot-card span {
    font-size: 12px;
    letter-spacing: 0.2px;
    color: rgba(241, 234, 255, 0.85);
}

.builder-import-btn {
    margin-top: 10px;
    width: 100%;
}

.builder-reset-btn {
    margin-top: 8px;
    width: 100%;
}

.custom-options-grid {
    margin-top: 10px;
    display: grid;
    gap: 8px;
    font-size: 14px;
    color: rgba(241, 234, 255, 0.88);
}

.custom-options-grid label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.builder-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 4px;
}

.builder-toolbar .btn {
    padding: 12px 18px;
    min-width: 180px;
}

.builder-tutorial {
    margin-top: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(133, 74, 253, 0.25);
    border-radius: 12px;
    padding: 10px;
    background: rgba(10, 0, 58, 0.28);
}

.builder-tutorial summary {
    cursor: pointer;
    font-family: var(--font-heading);
    color: rgba(241, 234, 255, 0.95);
}

.builder-tutorial ol {
    margin-top: 10px;
    margin-left: 18px;
    display: grid;
    gap: 6px;
    font-size: 14px;
    color: rgba(241, 234, 255, 0.86);
}

.generated-custom-section {
    margin-top: 14px;
    border: 1px solid rgba(133, 74, 253, 0.26);
    border-radius: 12px;
    background: rgba(10, 0, 58, 0.26);
    padding: 12px;
}

.generated-custom-header {
    font-family: var(--font-heading);
    font-size: 15px;
    color: rgba(241, 234, 255, 0.96);
    margin-bottom: 6px;
}

.generated-custom-subtitle {
    margin-top: 10px;
    margin-bottom: 8px;
    font-size: 13px;
    color: rgba(241, 234, 255, 0.84);
}

.generated-custom-hint {
    font-size: 12px;
    color: rgba(241, 234, 255, 0.72);
    margin-bottom: 8px;
}

.generated-custom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.generated-custom-stack {
    display: grid;
    gap: 8px;
}

.generated-custom-text {
    display: grid;
    gap: 6px;
}

.generated-custom-text span {
    font-size: 12px;
    color: rgba(241, 234, 255, 0.84);
}

.builder-panel {
    border: 1px solid rgba(133, 74, 253, 0.22);
    border-radius: 12px;
    padding: 12px;
    background: rgba(10, 0, 58, 0.32);
}

.builder-block-list {
    display: grid;
    gap: 10px;
}

.builder-block-item {
    border: 1px solid rgba(133, 74, 253, 0.3);
    border-radius: 12px;
    padding: 10px;
    background: rgba(5, 0, 40, 0.55);
    display: grid;
    gap: 8px;
}

.builder-block-item.dragging {
    opacity: 0.6;
}

.builder-block-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: center;
}

.builder-drag-handle {
    cursor: grab;
    opacity: 0.85;
}

.builder-remove-btn {
    border: 1px solid rgba(255, 120, 120, 0.45);
    background: rgba(255, 60, 60, 0.15);
    color: #ffdede;
    border-radius: 999px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 12px;
}

.builder-inline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.builder-preset-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.builder-preset-btn {
    border: 1px solid rgba(133, 74, 253, 0.45);
    background: rgba(133, 74, 253, 0.16);
    color: #f1eaff;
    border-radius: 999px;
    padding: 7px 10px;
    cursor: pointer;
    font-size: 12px;
}

.builder-dropzone {
    position: relative;
    border: 1px dashed rgba(133, 74, 253, 0.55);
    border-radius: 12px;
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px;
    background: rgba(10, 0, 58, 0.28);
    cursor: pointer;
}

.builder-dropzone.dragover {
    border-color: rgba(241, 234, 255, 0.95);
    background: rgba(133, 74, 253, 0.25);
}

.builder-dropzone-label {
    font-size: 12px;
    color: rgba(241, 234, 255, 0.8);
}

.builder-dropzone-preview {
    width: 100%;
    height: 96px;
    object-fit: cover;
    border-radius: 8px;
}

.builder-hidden-file {
    display: none;
}

.builder-clear-image {
    position: absolute;
    top: 8px;
    right: 8px;
    border: 1px solid rgba(255, 120, 120, 0.45);
    background: rgba(255, 60, 60, 0.2);
    color: #ffdede;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 11px;
    cursor: pointer;
}

.builder-text {
    min-height: 95px;
    border-radius: 14px;
    padding: 12px;
    font-size: 15px;
    font-family: var(--font-body);
}

.builder-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.builder-expand-btn,
.preview-expand-btn {
    margin-bottom: 10px;
}

.builder-preview-title {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 8px;
}

.builder-highlight {
    grid-column: 1 / -1;
    display: inline-flex;
    width: fit-content;
    margin-bottom: 8px;
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(133, 74, 253, 0.24);
    color: #f1eaff;
    border: 1px solid rgba(133, 74, 253, 0.52);
    font-family: var(--font-heading);
    font-size: 12px;
    letter-spacing: 0.3px;
}

.builder-highlight.align-left {
    justify-self: start;
}

.builder-highlight.align-right {
    justify-self: end;
}

.builder-check-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 13px;
    color: rgba(241, 234, 255, 0.92);
}

.preview-custom-highlight {
    display: flex;
    margin-bottom: 8px;
}

.preview-custom-highlight.align-left {
    justify-content: flex-start;
}

.preview-custom-highlight.align-right {
    justify-content: flex-end;
}

.preview-custom-highlight-chip {
    width: 42%;
    height: 9px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(133, 74, 253, 0.82), rgba(241, 234, 255, 0.35));
}

.builder-preview-paragraph {
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
}

.builder-preview-image {
    display: flex;
    margin-bottom: 10px;
}

.builder-preview-image.side-left {
    justify-content: flex-start;
}

.builder-preview-image.side-center {
    justify-content: center;
}

.builder-preview-image.side-right {
    justify-content: flex-end;
}

.builder-preview-image .preview-tile {
    width: 56%;
    min-height: 80px;
}

.builder-preview-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.builder-preview-split.image-left .preview-tile {
    order: 1;
}

.builder-preview-split.image-left div:last-child {
    order: 2;
}

.builder-preview-split.image-right .preview-tile {
    order: 2;
}

.builder-preview-split.image-right div:last-child {
    order: 1;
}

.builder-preview-columns2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.builder-col-note {
    font-size: 11px;
    color: rgba(241, 234, 255, 0.7);
}

.preview-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
}

body.modal-open {
    overflow: hidden;
}

.preview-modal.open {
    display: block;
}

.preview-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
}

.preview-modal-content {
    position: relative;
    max-width: 1100px;
    width: calc(100% - 40px);
    margin: 30px auto;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(133, 74, 253, 0.35);
    background: rgba(6, 0, 45, 0.92);
    max-height: calc(100vh - 60px);
    overflow: auto;
}

.preview-modal-canvas {
    min-height: 460px;
}

.preview-modal-canvas .preview-canvas {
    min-height: 420px;
}

.preview-modal-close {
    margin-left: auto;
    margin-bottom: 10px;
    display: block;
    border: 1px solid rgba(133, 74, 253, 0.45);
    background: rgba(133, 74, 253, 0.16);
    color: #f1eaff;
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    font-family: var(--font-heading);
}

.order-preview-panel {
    margin-top: 12px;
    border: 1px solid rgba(133, 74, 253, 0.22);
    border-radius: 10px;
    padding: 10px;
    background: rgba(10, 0, 58, 0.35);
}

.order-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.order-preview-card {
    position: relative;
    border: 1px solid rgba(133, 74, 253, 0.24);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(5, 0, 40, 0.65);
}

.order-preview-card img,
.order-preview-empty {
    width: 100%;
    height: 64px;
    object-fit: cover;
}

.order-preview-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: rgba(241, 234, 255, 0.7);
}

.order-preview-card p {
    font-size: 12px;
    margin: 8px;
    line-height: 1.35;
}

.order-preview-index {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-family: var(--font-heading);
    background: rgba(133, 74, 253, 0.95);
    color: #fff;
}

.admin-mini-item p {
    margin-bottom: 2px;
}

.admin-mini-item small {
    color: rgba(241, 234, 255, 0.65);
}

.featured-picker {
    border: 1px solid rgba(133, 74, 253, 0.24);
    border-radius: 14px;
    padding: 12px;
    background: rgba(10, 0, 58, 0.35);
}

.featured-grid-two {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.featured-list-title {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 6px;
}

.featured-available-list,
.featured-selected-list {
    display: grid;
    gap: 8px;
    max-height: 320px;
    overflow: auto;
    padding-right: 4px;
}

.featured-available-list li,
.featured-selected-item {
    list-style: none;
    display: grid;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(133, 74, 253, 0.22);
    border-radius: 10px;
    background: rgba(5, 0, 40, 0.55);
    padding: 8px;
}

.featured-available-list li {
    grid-template-columns: auto 54px 1fr;
}

.featured-available-list img {
    width: 54px;
    height: 38px;
    border-radius: 6px;
    object-fit: cover;
}

.featured-available-list p,
.featured-selected-item p {
    margin-bottom: 0;
}

.featured-available-list small,
.featured-selected-item small {
    color: rgba(241, 234, 255, 0.66);
}

.featured-selected-item {
    grid-template-columns: 26px 1fr auto;
    cursor: move;
}

.featured-selected-item.dragging {
    opacity: 0.55;
}

.featured-selected-meta {
    min-width: 0;
}

.featured-selected-meta p,
.featured-selected-meta small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-add-btn,
.featured-remove-btn {
    font-size: 12px;
    padding: 8px 10px;
}

/* ==========================================================================
   MOBILE MENU OVERLAYS & HAMBURGER
   ========================================================================== */
.hamburger-btn {
    display: none; /* hidden by default on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 0;
}

.hamburger-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--color-white);
    border-radius: 4px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 8px rgba(133, 74, 253, 0.5);
}

.hamburger-btn.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(8, 0, 48, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.mobile-nav-overlay.active .mobile-nav-content {
    transform: translateY(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.mobile-nav-links a {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--color-text-main);
    text-shadow: 0 0 10px rgba(133, 74, 253, 0.3);
}

.mobile-nav-links a:active,
.mobile-nav-links a:hover {
    color: var(--color-primary);
    text-shadow: var(--glow-primary);
    transform: scale(1.05);
}

.mobile-btn-cta {
    font-size: 24px;
    padding: 15px 40px;
}

/* ==========================================================================
   RESPONSIVE (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
    .desktop-only {
        display: none !important;
    }
    
    .hamburger-btn {
        display: flex; /* show on tablet/mobile */
        margin-left: auto;
    }

    .nav-container {
        padding: 15px 25px;
    }

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

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

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

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

    .portfolio-page-grid {
        grid-template-columns: 1fr;
    }

    .side-card {
        flex-direction: column;
    }

    .card-img-small {
        width: 100%;
        height: 200px;
    }

    .project-feature-row,
    .project-feature-row:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-feature-row:nth-child(even) .project-feature-img {
        order: -1;
    }

    /* Typography adjustments */
    .hero-title,
    .project-title {
        font-size: clamp(48px, 6vw, 64px);
    }

    .post-title,
    .section-title {
        font-size: clamp(36px, 5vw, 48px);
    }

    .home-hero, .post-hero, .project-hero, .blog-hero {
        padding-top: 160px;
        min-height: 60vh;
    }

    .partners-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 38px 34px;
        gap: 30px;
    }

    .partners-card h2 {
        font-size: 40px;
    }

    .partners-logos {
        width: 100%;
        max-width: none;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .menu-sortable-item {
        grid-template-columns: 30px 1fr;
        grid-template-areas:
            'drag label'
            'drag url'
            'drag visible';
    }

    .drag-handle {
        grid-area: drag;
    }

    .menu-label {
        grid-area: label;
    }

    .menu-url {
        grid-area: url;
    }

    .menu-visible-toggle {
        grid-area: visible;
    }

    .featured-grid-two {
        grid-template-columns: 1fr;
    }

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

    .upload-slot-grid,
    .builder-inline-grid {
        grid-template-columns: 1fr;
    }

    .generated-custom-grid {
        grid-template-columns: 1fr;
    }

    .builder-preview-columns2 {
        grid-template-columns: 1fr;
    }

    .preview-modal-content {
        width: calc(100% - 20px);
        margin: 20px auto;
    }
}

@media (max-width: 768px) {
    .cards-grid,
    .services-grid,
    .portfolio-grid,
    .featured-grid,
    .portfolio-page-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
    }

    .nav-container {
        border-radius: 20px;
        padding: 12px 20px;
        margin-top: 10px;
    }
    
    .navbar {
        top: 10px;
        padding: 0 10px;
    }

    .hero-title,
    .project-title {
        font-size: clamp(36px, 8vw, 48px);
    }

    .post-title,
    .section-title {
        font-size: clamp(32px, 7vw, 40px);
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .post-hero,
    .blog-hero,
    .project-hero {
        padding-top: 130px;
        padding-bottom: 50px;
    }
    
    .home-hero {
        padding-top: 130px;
        padding-bottom: 120px;
    }

    .project-category {
        font-size: 20px;
    }

    .related-posts.blog-home {
        padding: 80px 0 100px;
    }

    .blog-home .blog-bg-logo {
        top: 48%;
        opacity: 0.52;
    }

    /* Ajuste para o retangulo do "Quem Somos" */
    .about-section .container {
        padding: 0 15px;
    }
    
    .about-card {
        padding: 35px 20px 80px;
    }

    .partners-card {
        padding: 40px 20px;
        align-items: center;
        text-align: center;
    }

    .partners-card h2 {
        font-size: 30px;
    }

    /* "Nossas conexões" vertical spacing */
    .partners-logos {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .partner-logo {
        max-height: 80px;
    }
    
    /* Footer stacking on mobile */
    .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .footer-logo {
        height: 70px;
    }
    
    /* Contact sections adjustments */
    .contact-section {
        padding: 80px 0;
    }
    
    .contact-section h2 {
        font-size: 36px;
        margin-bottom: 30px;
    }

    /* Hide decorative spirals on small screens to avoid overflow issues */
    .contact-spiral {
        display: none;
    }
}

/* ==========================================================================
   ACCESSIBILITY — Skip Link
   ========================================================================== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 9999;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 12px 24px;
    border-radius: 0 0 var(--br-radius) var(--br-radius);
    font-family: var(--font-heading);
    font-size: 16px;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   ACCESSIBILITY — Focus Visible (WCAG 2.1)
   ========================================================================== */
:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Remove default outline for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

/* ==========================================================================
   UNIFIED BLOG POST HERO — Same style as project-hero
   ========================================================================== */
.post-hero-unified {
    /* Inherits all .project-hero styles via class;
       additional overrides (if any) go here */
}

.post-details-unified {
    /* Inherits .project-details;
       additional text styling for long-form content */
}

.post-details-unified .post-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 40px;
}

.post-details-unified .post-image img {
    width: 100%;
    border-radius: var(--br-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.post-details-unified .post-text {
    font-size: 20px;
    font-weight: 300;
    color: var(--color-text-muted);
}

.post-details-unified .post-text p {
    margin-bottom: 25px;
    line-height: 1.8;
}

/* Enhanced hero gradient for better text contrast on light backgrounds */
.project-hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 72%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 50, 0.08) 0%,
        rgba(0, 0, 50, 0.56) 48%,
        var(--bg-primary) 100%
    );
}

/* ==========================================================================
   RESPONSIVE — Unified blog-post hero
   ========================================================================== */
@media (max-width: 768px) {
    .post-details-unified .post-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ==========================================================================
   ADMIN & UTILS MOBILE
   ========================================================================== */
@media (max-width: 1024px) {
    .hide-on-mobile {
        display: none !important;
    }
    
    .admin-mobile-warning {
        display: block !important;
        background: rgba(140, 38, 68, 0.2);
        border: 1px solid rgba(255, 148, 148, 0.35);
        color: #ffd9d9;
        font-family: var(--font-body);
        font-size: 14px;
        padding: 12px 16px;
        border-radius: 12px;
        margin-bottom: 20px;
        text-align: center;
        line-height: 1.5;
    }

    .admin-topbar {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .admin-topbar .btn {
        font-size: 14px;
        padding: 8px 16px;
    }
}

@media (min-width: 1025px) {
    .admin-mobile-warning {
        display: none !important;
    }
}
