@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Fallback font import if Mooxy is a known web font, else we use local or fallback */
/* Using Poppins as a solid modern fallback for the minimalist look */

:root {
    /* Light Mode Variables (Default for Minimalist High-End) */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F5F7;
    --text-primary: #000000;
    --text-secondary: #666666;
    --border-color: #E5E5E5;
    --accent: #02C39A;
    /* Turquoise/Emerald Mix */
    --btn-text: #FFFFFF;
    --header-bg: rgba(255, 255, 255, 0.8);
    --invert-logo: 1;
    /* Logos are white, so in light mode we invert them to black */
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: #111111;
    --text-primary: #FFFFFF;
    --text-secondary: #999999;
    --border-color: #333333;
    --accent: #02C39A;
    /* Turquoise/Emerald Mix */
    --btn-text: #FFFFFF;
    --header-bg: rgba(0, 0, 0, 0.8);
    --invert-logo: 0;
    /* Keep white logos white in dark mode */
}

/* System Preference Fallback if no data-theme is set */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-primary: #000000;
        --bg-secondary: #111111;
        --text-primary: #FFFFFF;
        --text-secondary: #999999;
        --border-color: #333333;
        --accent: #02C39A;
        --btn-text: #FFFFFF;
        --header-bg: rgba(0, 0, 0, 0.8);
        --invert-logo: 0;
    }
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    /* Use Poppins for body */
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    max-width: 1400px;
    /* Wider container for high-end look */
    margin: 0 auto;
    padding: 0 40px;
}

.logo-img {
    height: 60px;
}

.section-padding {
    padding: 150px 0;
    /* Massive padding for negative space */
}

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

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    text-align: center;
    border: 1px solid var(--accent);
}

.btn-primary {
    background: var(--accent);
    color: var(--btn-text);
}

.btn-primary:hover {
    transform: scale(1.05);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-primary);
    transition: background 0.3s;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Hide moon in dark mode, hide sun in light mode */
[data-theme="dark"] .icon-moon,
:root:not([data-theme="light"]) .icon-moon {
    display: none;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .icon-moon {
        display: none;
    }

    :root:not([data-theme="light"]) .icon-sun {
        display: block;
    }
}

[data-theme="light"] .icon-sun {
    display: none;
}

[data-theme="light"] .icon-moon {
    display: block;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 30px 0;
    transition: all 0.4s ease;
}

.header.scrolled {
    padding: 15px 0;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    filter: invert(var(--invert-logo));
    transition: filter 0.4s ease;
}

.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--text-primary);
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Mooxy', 'Poppins', sans-serif;
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.05em;
    /* Separar las letras como fue solicitado */
    margin-bottom: 30px;
}

.hero-desc {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 50px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
    opacity: 0.2;
    /* Subtle background image */
}

[data-theme="dark"] .hero-image-wrapper {
    opacity: 0.4;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Optional: filter: grayscale(100%); */
}

/* Big Typography Sections */
.massive-heading {
    font-family: 'Mooxy', 'Poppins', sans-serif;
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.05em;
    /* Separar las letras como fue solicitado */
    margin-bottom: 40px;
}

.sub-heading {
    font-size: 1.5rem;
    color: var(--text-secondary);
    max-width: 800px;
}

/* Features (Minimalist Grid) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-top: 80px;
    border-top: 1px solid var(--border-color);
    padding-top: 60px;
}

.feature-item h3 {
    font-family: 'Mooxy', 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.feature-num {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 20px;
}

/* Feature Image Split */
.split-section {
    display: flex;
    align-items: center;
    gap: 80px;
}

.split-content {
    flex: 1;
}

.split-image {
    flex: 1;
    border-radius: 4px;
    overflow: hidden;
}

.split-image img {
    width: 100%;
    transition: transform 0.7s ease;
}

.split-image:hover img {
    transform: scale(1.03);
}

.minimal-list {
    list-style: none;
    margin-top: 40px;
}

.minimal-list li {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    font-size: 1.25rem;
    font-weight: 500;
}

/* Portfolio Gallery */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 80px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/9;
    /* Ensures all items, even without images, share this format */
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    /* Ensure it fills the aspect ratio container */
    aspect-ratio: 16/9;
    /* Requested 16:9 format */
    object-fit: cover;
    border-radius: 8px;
    object-position: top;
    /* Start at the top */
    transition: object-position 4s ease-in-out, transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio-item:hover img {
    /* Optional: scale(1.02) to keep a slight pop */
    object-position: bottom;
    /* Scroll down to the bottom on hover */
}

.portfolio-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: var(--bg-primary);
    padding: 15px 25px;
    border-radius: 40px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-info {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-info h4 {
    font-family: 'Mooxy', 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* FAQ Minimal */
.faq-wrap {
    max-width: 800px;
    margin: 80px auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item:first-child {
    border-top: 1px solid var(--border-color);
}

.faq-header {
    width: 100%;
    background: none;
    border: none;
    padding: 30px 0;
    text-align: left;
    font-family: 'Mooxy', 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-header .icon {
    font-weight: 300;
    font-size: 2rem;
    transition: transform 0.3s;
}

.faq-item.active .faq-header .icon {
    transform: rotate(45deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-content p {
    padding-bottom: 30px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Footer & Form */
.footer {
    background-color: var(--bg-secondary);
    padding: 100px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.minimal-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    font-size: 1.2rem;
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.3s;
    border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom {
    margin-top: 100px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
}

/* Animations Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Background Blobs */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
    animation: floatBlob 10s infinite alternate ease-in-out;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: -100px;
    left: -100px;
    border-radius: 50%;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: rgba(2, 195, 154, 0.3);
    bottom: -150px;
    right: -100px;
    border-radius: 50%;
    animation-delay: 2s;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: rgba(0, 0, 0, 0.05);
    top: 50%;
    left: 50%;
    border-radius: 50%;
    animation-delay: 4s;
}

[data-theme="dark"] .blob-3 {
    background: rgba(255, 255, 255, 0.05);
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* Custom Cursor Follower */
.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: difference;
    display: none;
    /* enable via JS for non-touch */
}

@media (pointer: fine) {
    .cursor-follower {
        display: block;
    }
}

/* Typing Animation */
.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--text-primary);
    animation: blink 1s step-end infinite;
    margin-left: 5px;
}

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

/* Tilt Effect on Hover */
.tilt-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.tilt-effect:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .tilt-effect:hover {
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.05);
}

/* Staggered Items */
.stagger-item {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.active .stagger-item {
    opacity: 1;
    transform: translateX(0);
}

.reveal.active .stagger-item:nth-child(1) {
    transition-delay: 0.2s;
}

.reveal.active .stagger-item:nth-child(2) {
    transition-delay: 0.4s;
}

.reveal.active .stagger-item:nth-child(3) {
    transition-delay: 0.6s;
}

/* Stats Section */
.stats-section {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-family: 'Mooxy', 'Poppins', sans-serif;
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 10px;
    font-weight: 800;
}

.stat-item p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Tech Marquee */
.tech-marquee-section {
    padding: 80px 0;
    background-color: var(--bg-secondary);
    overflow: hidden;
}

.marquee-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 250px;
    height: 100%;
    z-index: 2;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-secondary) 0%, transparent 100%);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-secondary) 0%, transparent 100%);
}

.marquee-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

.tech-item {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-size: 2rem;
    font-family: 'Mooxy', 'Poppins', sans-serif;
    font-weight: 600;
    margin: 0 40px;
    color: var(--text-primary);
    transition: color 0.3s;
}

.tech-item:hover {
    color: var(--accent);
}

.tech-item i {
    font-size: 2.5rem;
}

@keyframes marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }

    /* Assuming content is doubled for seamless loop */
}

/* Footer Giant Logo */
.footer-giant-logo {
    width: 100%;
    margin-top: 80px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    pointer-events: none;
    opacity: 1;
}

.footer-giant-logo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: top;
}

/* --- REDESIGN ADDITIONS --- */

/* 1. Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.text-loading {
    display: flex;
    font-size: 50px;
    font-weight: 800;
    font-family: 'Mooxy', 'Arial Black', sans-serif;
    color: var(--text-primary);
    letter-spacing: 5px;
}

.letters-loading {
    animation: bounce 1.5s infinite ease-in-out;
    display: inline-block;
}

.preloader-content .sub-txt {
    font-size: 14px;
    letter-spacing: 3px;
    color: var(--accent);
    text-transform: uppercase;
    margin-top: 10px;
    font-family: 'Poppins', sans-serif;
    opacity: 0;
    animation: fadeIn 2s forwards 0.5s;
}

@keyframes bounce {

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

    50% {
        transform: translateY(-15px);
        color: var(--accent);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* 2. Parallax Floating Shapes (Hero) */
.parallax-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
    transition: transform 0.1s linear;
    /* Smooth mouse tracking */
}

.parallax-shape.shape-1 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    top: 20%;
    left: 10%;
}

.parallax-shape.shape-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(162, 59, 218, 0.5) 0%, transparent 70%);
    bottom: 10%;
    right: 5%;
}

.parallax-shape.shape-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    top: 15%;
    right: 20%;
}

.parallax-shape.shape-4 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
    bottom: 20%;
    left: 20%;
}

.parallax-shape.shape-5 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(2, 195, 154, 0.3) 0%, transparent 70%);
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
}

.parallax-shape.shape-6 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 105, 180, 0.4) 0%, transparent 70%);
    top: 10%;
    left: 40%;
}

/* Flat Particles */
.parallax-shape.particle {
    filter: none;
    /* No blur for particles */
    opacity: 0.8;
}

.parallax-shape.particle-1 {
    width: 15px;
    height: 15px;
    background-color: var(--accent);
    top: 25%;
    left: 25%;
}

.parallax-shape.particle-2 {
    width: 8px;
    height: 8px;
    background-color: rgba(162, 59, 218, 1);
    bottom: 30%;
    right: 25%;
}

.parallax-shape.particle-3 {
    width: 12px;
    height: 12px;
    border: 2px solid var(--accent);
    background-color: transparent;
    top: 60%;
    left: 15%;
}

.parallax-shape.particle-4 {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(59, 130, 246, 0.8);
    background-color: transparent;
    top: 15%;
    right: 40%;
}

/* 3. Header Sticky Glassmorphism Upgrade */
.header.scrolled {
    background: rgba(var(--bg-primary-rgb, 255, 255, 255), 0.7);
    /* Assuming light mode by default */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .header.scrolled {
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header.scrolled .logo-img {
    height: 35px;
    /* Shrink logo slightly */
}

/* 4. Service Cards Bloom Effect */
.feature-item {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(2, 195, 154, 0.15) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.6s ease, transform 0.6s ease;
    z-index: -1;
    pointer-events: none;
}

.feature-item:hover::before {
    opacity: 1;
    transform: scale(1);
}

.feature-item:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
}

.feature-item .feature-num {
    transition: color 0.4s ease, transform 0.4s ease;
}

.feature-item:hover .feature-num {
    color: var(--accent);
    transform: scale(1.1);
}

/* Floating Action Buttons (FAB) */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}
.fab-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s;
    text-decoration: none;
}
.fab-btn:hover {
    transform: scale(1.1);
    color: #fff; /* Ensure icon stays white */
}
.whatsapp-btn {
    background-color: #25D366; /* WhatsApp green */
}
.whatsapp-btn:hover {
    background-color: #1ebe57;
}
.scroll-top {
    background-color: var(--accent);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top:hover {
    background-color: var(--text-primary);
}

/* Chatbot Widget */
.chatbot-widget {
    position: fixed;
    bottom: 95px;
    right: 30px;
    width: 350px;
    max-width: 90vw;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid var(--border-color);
}
.chatbot-widget.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.chatbot-header {
    background: #25D366;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.chatbot-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.chatbot-close:hover {
    opacity: 1;
}
.chatbot-body {
    padding: 20px;
    background-color: var(--bg-secondary);
    min-height: 200px;
    max-height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
    animation: slideUp 0.4s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}
.chat-message p {
    margin: 0;
    color: inherit;
}
.bot-message {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.user-message {
    background-color: #25D366;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.chatbot-footer {
    display: flex;
    padding: 15px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}
.chatbot-footer input {
    flex: 1;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}
.chatbot-footer input:focus {
    border-color: var(--accent);
}
.chatbot-footer button {
    background: var(--accent);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}
.chatbot-footer button:hover {
    transform: scale(1.05);
}
@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Checkbox group styling */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.checkbox-group input[type="checkbox"] {
    width: auto;
    padding: 0;
    margin: 0;
    cursor: pointer;
}
.checkbox-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    margin: 0;
}
.checkbox-group a {
    color: var(--accent);
    text-decoration: underline;
}

/* 5. Privacy Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: var(--bg-primary);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid var(--border-color);
}
.modal-overlay.active .modal-content {
    transform: scale(1);
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}
.modal-close:hover {
    color: var(--accent);
}
.modal-title {
    padding: 30px 40px 15px;
    margin: 0;
    font-family: 'Mooxy', 'Poppins', sans-serif;
    border-bottom: 1px solid var(--border-color);
}
.modal-body {
    padding: 20px 40px 40px;
    overflow-y: auto;
}
.modal-body h4 {
    margin-top: 25px;
    margin-bottom: 10px;
    color: var(--accent);
}
.modal-body p, .modal-body ul {
    color: var(--text-secondary);
    line-height: 1.8;
}
.modal-body ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

/* --- END REDESIGN ADDITIONS --- */

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 4rem;
    }

    .massive-heading {
        font-size: 3rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .split-section {
        flex-direction: column;
        gap: 40px;
    }

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

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

@media (max-width: 768px) {
    .nav ul {
        display: none;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-padding {
        padding: 80px 0;
    }

    .hero {
        padding-top: 120px;
        min-height: 80vh;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
}