@import url('variables.css');

/* Dual-State Header Logic */
.header {
    transition: background-color 0.3s ease, padding 0.3s ease, transform 0.3s ease;
}

/* Transparent State (for Hero Section) */
.header.transparent-mode {
    background-color: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.header.transparent-mode .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.header.transparent-mode .nav-link:hover {
    color: #ffffff !important;
    opacity: 1;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

.header.transparent-mode .navbar-svg-icon .toggler-line {
    stroke: #ffffff !important;
    /* White menu icon */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.header.transparent-mode .navbar-brand .logo,
.header.transparent-mode .premium {
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Navbar Styles handled in common.css */

/* Hero Section */

.herosection-container {
    padding: 10vh;
}

.welcome {
    /* background-image: url(../images/backgrounds/imgFondoHero.webp); */
    position: relative;
    /* Ensure container matches parent */
    overflow: hidden;
    /* keep canvas inside rounded corners */
    height: 100vh;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#liquid-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    border-radius: inherit;
    /* Match parent rounded corners */
}


.btn {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    margin-top: 30px;
    color: var(--purple-light);
    border: 2px solid var(--purple-light);
    border-radius: 50px;
    padding: 0.8rem 2.5rem;
    /* Matches blog size */
    font-size: 1.1rem;
    /* Adjusted size */
    font-weight: 600;
    /* Heavier font like blog */
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
    /* Changed to Poppins like blog buttons */
    cursor: pointer;
}

.btn i {
    font-size: 1rem;
    margin-right: 8px;
    vertical-align: middle;
}

.btn:hover {
    background-color: var(--purple-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(138, 79, 248, 0.2);
}

/* Specific adjustment for Hero Section (Dark Background) */
.hero-content .btn {
    border-color: #fff;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for depth */
}

.hero-content .btn:hover {
    background-color: #fff;
    color: var(--purple-light);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    /* White glow */
}

@media (max-width: 768px) {
    .btn {
        font-size: 16px;
        padding: 8px 16px;
    }

    .text-white {
        padding: 0 20px;
        /* Prevent text touching edges on mobile */
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 7px 14px;
    }

    .btn .btn-icon {
        width: 16px;
        margin-right: 6px;
    }
}

/* Renamed from .text-white to .text-main for light background */
.text-white h1 {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 60px;
}

.text-white h1 span {
    font-family: var(--font-secondary);
    font-style: italic;
    font-weight: 600;
    font-size: 69px;
}

.text-white h4 {
    margin-top: 30px;
    font-size: 23px;
    font-weight: 300;
}

/* Rotating text animation */

.words-wrapper .words {
    display: inline-block;
    position: relative;
    vertical-align: middle;
    width: var(--width);
    height: 60px;
    padding: 0 10px;
    box-sizing: content-box;
    transition: all 0.8s;
}

.words-wrapper .words span {
    position: absolute;
    top: -19px;
    left: 50%;
    opacity: 0;
    transform: translate(-50%, -100%);
    transition: transform 0.7s, opacity 0.25s 0.25s;
}

.words-wrapper .words span.current {
    opacity: 1;
    transform: translate(-50%, 0);
}

.words-wrapper .words span.next {
    transform: translate(-50%, 100%);

}

@media (max-width: 1200px) {
    .text-white h1 {
        font-size: 54px;
    }

    .text-white h1 span {
        font-size: 62px;
    }

    .text-white h4 {
        font-size: 21px;
    }

    .words-wrapper .words span {
        top: -12px;
    }

    .welcome {
        background-size: cover;
    }
}

@media (max-width: 1024px) {
    .text-white h1 {
        font-size: 48px;
    }

    .text-white h1 span {
        font-size: 55px;
    }

    .text-white h4 {
        font-size: 19px;
    }

    .words-wrapper .words span {
        top: -8px;
    }
}

@media (max-width: 768px) {
    .text-white h1 {
        font-size: 40px;
    }

    .text-white h1 span {
        font-size: 46px;
    }

    .text-white h4 {
        font-size: 18px;
    }

    .words-wrapper .words span {
        top: -1px;
    }
}

@media (max-width: 480px) {
    .text-white h1 {
        font-size: 32px;
    }

    .text-white h1 span {
        font-size: 39px;
    }

    .text-white h4 {
        font-size: 16px;
    }

    .words-wrapper .words span {
        top: 3.5px;
    }
}

/* Features */

.reading {
    padding: 0 0;
    padding-top: 10px;
}

.reading-section {
    text-align: center;
    padding: 20px;
}

.reading-heading {
    font-size: 32px;
    margin: 0;
}

.reading-subtext {
    color: var(--text-muted);
    font-size: 19.2px;
    margin: 10px 0;
}

.dif-txt {
    color: var(--purple-light);

    font-family: var(--font-secondary) !important;
    font-style: italic;
    font-size: 41px;
}

@media (max-width: 1200px) {
    .reading-heading {
        font-size: 22px;
    }

    .dif-txt {
        font-size: 28px;
    }

    .reading-icon {
        width: 20px;
        height: 20px;
    }

    .reading-subtext {
        font-size: 15px;
    }
}



/* FAQs */
/* FAQs */

.wrapper-faq {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 50px auto;
    width: 60%;
}

.container-faq {
    background-color: var(--bg-main);

    color: var(--text-color);

    border-radius: 12px;
    border: 1px solid #ccc;
    margin: 10px 0;
    width: 100%;
    overflow: hidden;
}

.question {
    font-size: 1rem;
    font-weight: 600;
    color: var(--purple-hover);

    padding: 16px 20px;
    position: relative;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.question::after {
    content: "";
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;

    background-color: var(--purple-light);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'%3E%3C/line%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 16px;

    box-shadow: 0 4px 10px rgba(157, 96, 207, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
}

.question.active::after {
    transform: rotate(135deg);
    background-color: var(--soft-orange);
    box-shadow: 0 4px 10px rgba(225, 148, 127, 0.3);
}

.answercont {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.container-faq .answer {
    padding: 0 20px 20px;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .faq-header {
        text-align: left !important;
        padding: 0 !important;
        position: sticky;
        top: 100px;
    }
}

@media screen and (max-width: 790px) {
    .wrapper-faq {
        width: 90%;
    }

    .question {
        font-size: 0.9rem;
    }
}

/* Pricing section */

.rounded-lg {
    border-radius: 1rem !important;
}

.text-small {
    font-size: 0.9rem !important;
}

.text-uppercase {
    letter-spacing: 0.2em;
}

.btn-warning {
    color: #fff;
}

.btn-warning:hover {
    color: #fff;
}

.col-lg-4 {
    margin: 10px 0 !important;
}

.pricing-txt {
    background: none;
    border: 1px solid var(--purple-light);

    color: var(--purple-light);

    font-family: 'Poppins', Calibri, sans-serif;
    padding: 2px;
}

.price-txt {
    margin-top: 20px
}

.pricing-sec h2 {
    padding-top: 10px;
}

.pricing-sec {
    border: 1.5px solid rgba(200, 200, 200, 0.5);
    background-color: var(--bg-main);

}

.btn-pricing {
    font-size: 16px;
}

.btn-pricing:hover {
    color: #fff;
}

.gradient-txt {
    display: inline-block;
    background-image: linear-gradient(45deg, #7dd191, #54afe4, var(--purple-light), var(--purple-light));

    color: transparent;
    -webkit-background-clip: text;
    /* Edge, Chrome */
    background-clip: text;
    /* Safari, FF */
    animation: gradientAnimation 4s linear infinite;
    animation-direction: alternate;
    background-size: 300% 100%;
}

.gradient-bg {
    display: inline-block;
    background-image: linear-gradient(45deg, #7dd191, #54afe4, var(--purple-light), var(--purple-light));

    animation: gradientAnimation 4s linear infinite;
    animation-direction: alternate;
    background-size: 300% 100%;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

/* Footer */


/* End of landing specific styles */

/* Background Decorations */
body {
    position: relative;
    overflow-x: hidden;
}

.decoration-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.decoration-star {
    position: absolute;
    color: var(--purple-light);
    width: 40px;
    height: 40px;
    z-index: 1;
    /* Behind text but visible */
    animation: pulse-sparkle 3s infinite ease-in-out;
}

.decoration-star svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.blur-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.4;
    z-index: -1;
    background: radial-gradient(circle, var(--purple-light) 0%, rgba(157, 96, 207, 0) 70%);
}

@keyframes pulse-sparkle {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

/* Specific Positions */

/* FAQ Section Decor */
.glow-faq {
    width: 500px;
    height: 500px;
    right: -15%;
    top: 45%;
    /* Approximate position for FAQ */
}

.star-faq {
    left: 5%;
    top: 48%;
    /* Near FAQ Title */
}

/* Pricing Section Decor */
.glow-pricing {
    width: 600px;
    height: 600px;
    left: -15%;
    top: 75%;
    /* Approximate position for Pricing */
}

.star-pricing {
    right: 8%;
    top: 78%;
    /* Near Pricing cards */
}

/* Hero Composition Styles */
.hero-composition {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    min-width: 100%;
    min-height: 100vh;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    transform: scale(1.15);
}

.hero-flower {
    position: absolute;
    top: 20%;
    z-index: 2;
    pointer-events: none;
    width: auto;
}

.flower-left {
    left: 0;
    height: 100vh;
    /* Base scale */
}

.flower-right {
    right: 0;
    height: 100vh;
}

/* Desktop: Loosely framing */
@media (min-width: 1025px) {
    .flower-left {
        left: 0%;
        height: 90vh;
    }

    .flower-right {
        right: -2%;
        height: 90vh;
    }
}

/* Tablet: Move closer toward center */
@media (max-width: 1024px) {
    .flower-left {
        left: -1%;
        height: 90vh;
    }

    .flower-right {
        right: -1%;
        height: 90vh;
    }
}

/* Mobile: Cluster inward, compress horizontally */
@media (max-width: 768px) {
    .hero-flower {
        opacity: 0.9;
        /* Ensure text readability */
    }

    .flower-left {
        left: -10%;
        height: 90vh;
    }

    .flower-right {
        right: -20%;
        height: 90vh;
    }
}

/* FIX: Force hamburger menu items to be black on mobile/tablet (max-width 991px), overriding transparent mode */
@media (max-width: 991px) {
    .header.transparent-mode .nav-link {
        color: black !important;
    }

    .header.transparent-mode .nav-link:hover {
        color: black !important;
    }
}

/* Ensure content is readable and on top */
.hero-content {
    position: relative;
    z-index: 3;
    /* text-shadow removed */
}

/* =========================================
   PERFORMANCE OPTIMIZATION (CLS Fixes)
   ========================================= */
/* Reserve space for dynamic React components to prevent layout shifts */

#magic-bento-root {
    min-height: 800px;
    /* Estimate for bento grid */
    contain: content;
    /* Improves rendering performance */
}

#faq-list-root {
    min-height: 400px;
    contain: content;
}

#pricing-list-root {
    min-height: 500px;
    contain: content;
}

/* Adjust for mobile where height might be different */
@media (max-width: 768px) {
    #magic-bento-root {
        min-height: 1200px;
        /* Stacks vertically on mobile */
    }
}