/* ==========================================================================
   RESET & VARIABLES
   ========================================================================== */
:root {
    --bg-color: #f9f9fb;
    --text-primary: #1a1c1d;
    --text-secondary: #5d5e63;

    --primary-color: #0058bc;
    --primary-gradient: linear-gradient(135deg, #0058bc, #c64f00);

    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 16px 40px rgba(0, 0, 0, 0.04);

    --container-xl: 1200px;
    --border-radius: 20px;
}

:root[data-theme="dark"] {
    --bg-color: #0d0d0f;
    --text-primary: #f9f9fb;
    --text-secondary: #a1a1aa;

    --glass-bg: rgba(20, 20, 20, 0.45);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

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

input,
button,
textarea,
select {
    font-family: inherit;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ==========================================================================
   AMBIENT BACKGROUND (Gradients bleeding through glass)
   ========================================================================== */
.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.ambient-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    animation: drift 20s infinite alternate ease-in-out;
}

.glow-blue {
    top: -20%;
    left: -10%;
    background: #0070eb;
}

.glow-orange {
    bottom: -20%;
    right: -10%;
    background: #ffb595;
    animation-delay: -10s;
}

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

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

/* ==========================================================================
   TYPOGRAPHY & BUTTONS
   ========================================================================== */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 100px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
    position: relative;
    z-index: 10;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: #004493;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 88, 188, 0.3);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.glass-navbar {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: var(--container-xl);
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 0.75rem 1.5rem;
    z-index: 1000;
    box-shadow: var(--glass-shadow);
}

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

.navbar-logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    display: flex;
    align-items: center;
}

.navbar-logo img {
    height: 70px;
    width: auto;
    margin: -10px 0;
    object-fit: contain;
}

.logo-dark {
    display: none;
}

[data-theme="dark"] .logo-light {
    display: none;
}

[data-theme="dark"] .logo-dark {
    display: block;
}

.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.navbar-links {
    display: flex;
    gap: 2rem;
    position: relative;
    z-index: 10;
}

.navbar-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.navbar-links a:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   SECTION LAYOUTS & ANIMATIONS
   ========================================================================== */
section {
    padding: 8rem 5%;
    max-width: var(--container-xl);
    margin: 0 auto;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding-top: 10rem;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #1a1c1d 0%, #5d5e63 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .hero-title {
    background: linear-gradient(180deg, #ffffff 0%, #8a8a8e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-actions .btn-primary.lg,
.hero-actions .btn-secondary.lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Master Node (Stitch MCP) */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.master-node {
    width: 380px;
    height: 380px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.2) 100%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 40px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem;
    transition: transform 0.1s;
    transform-style: preserve-3d;
}

.node-content {
    transform: translateZ(50px);
}

.node-logo-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(0, 88, 188, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.2);
    animation: pulse-glow 3s infinite alternate;
}

[data-theme="dark"] .node-logo-wrapper {
    background: rgba(0, 0, 0, 0.2);
}

.node-center-logo {
    width: 110px;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
    animation: float-logo 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 40px rgba(0, 88, 188, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.1);
        transform: scale(1);
    }

    100% {
        box-shadow: 0 0 70px rgba(0, 88, 188, 0.6), inset 0 0 30px rgba(255, 255, 255, 0.3);
        transform: scale(1.02);
    }
}

@keyframes float-logo {

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

    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

/* ==========================================================================
   ABOUT / QUIENES SOMOS SECTION
   ========================================================================== */
.about-section {
    padding-top: 4rem;
}

.about-card {
    padding: 0;
    display: flex;
    text-align: left;
    overflow: hidden;
}

.about-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    min-height: 400px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

.about-content {
    flex: 1.5;
    padding: 5rem 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    color: transparent;
}

.about-lead {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.4;
}

.about-content p:not(.about-lead) {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .about-card {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        width: 100%;
        min-height: 300px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .about-content {
        padding: 3rem 2rem;
    }

    .about-content h2 {
        font-size: 2.2rem;
    }

    .about-lead {
        font-size: 1.2rem;
    }
}

@media (min-width: 900px) {
    .service-marketing {
        grid-column: 1 / -1;
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 3rem 2.5rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   TRABAJOS SECTION
   ========================================================================== */
.works-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
}

.work-card {
    flex: 1 1 400px;
    max-width: 580px;
    text-decoration: none;
    color: var(--text-primary);
    padding: 2rem;
    cursor: pointer;
}

.work-card:hover .work-image-placeholder {
    transform: scale(1.02);
}

.work-image-placeholder {
    width: 100%;
    height: 250px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px dashed rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease;
    overflow: hidden;
}

.work-image-placeholder span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.work-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.work-info p {
    font-size: 1rem;
}

/* ==========================================================================
   PORTFOLIO SECTION (MOCKUPS)
   ========================================================================== */
.portfolio-showcase {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: -4rem;
    margin-top: 4rem;
    position: relative;
    height: 500px;
}

/* MacBook Mockup CSS */
.mockup-macbook {
    position: relative;
    width: 700px;
    z-index: 1;
}

.macbook-screen {
    width: 80%;
    height: 400px;
    margin: 0 auto;
    background: #000;
    border-radius: 16px 16px 0 0;
    padding: 12px;
    border: 2px solid #b5b5b5;
    border-bottom: none;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
}

.desktop-design {
    width: 100%;
    height: 100%;
    background: #f0f0f2;
    border-radius: 4px;
    overflow: hidden;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mock-nav {
    display: flex;
    gap: 10px;
}

.mock-nav div {
    height: 12px;
    width: 40px;
    background: #e2e2e4;
    border-radius: 4px;
}

.mock-hero {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
}

/* ==========================================================================
   CUSTOM SELECT DROPDOWN REPLACEMENT
   ========================================================================== */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-select {
    padding: 0.8rem 1rem;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.3s, background 0.3s;
}

.custom-select:hover {
    border-color: var(--primary-color);
}

[data-theme="dark"] .custom-select {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .custom-select:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.custom-select-icon {
    transition: transform 0.3s ease;
}

.custom-select-wrapper.open .custom-select-icon {
    transform: rotate(180deg);
}

.custom-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
}

[data-theme="dark"] .custom-options {
    background: rgba(20, 20, 22, 0.92);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.custom-select-wrapper.open .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-option {
    padding: 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-size: 0.95rem;
}

.custom-option:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

[data-theme="dark"] .custom-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

.mock-title {
    width: 40%;
    height: 24px;
    background: #e2e2e4;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.mock-subtitle {
    width: 70%;
    height: 12px;
    background: #eeeef0;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.mock-box {
    width: 100%;
    height: 100px;
    background: #f3f3f5;
    border-radius: 8px;
}

.macbook-base {
    width: 100%;
    height: 14px;
    background: #c1c6d7;
    border-radius: 0 0 16px 16px;
    position: relative;
    display: flex;
    justify-content: center;
}

.macbook-notch {
    width: 15%;
    height: 6px;
    background: #9fa4b2;
    border-radius: 0 0 8px 8px;
}

/* iPhone Mockup CSS */
.mockup-iphone {
    position: absolute;
    right: 5%;
    bottom: -20px;
    width: 200px;
    height: 420px;
    background: #000;
    border-radius: 36px;
    padding: 10px;
    border: 2px solid #b5b5b5;
    box-shadow: -10px 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.iphone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background: #000;
    border-radius: 0 0 12px 12px;
    z-index: 3;
}

.mobile-design {
    width: 100%;
    height: 100%;
    background: #f9f9fb;
    border-radius: 26px;
    padding: 2rem 1rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mock-header {
    width: 100%;
    height: 40px;
    background: var(--primary-color);
    border-radius: 8px;
    opacity: 0.1;
}

.mock-image {
    width: 100%;
    height: 140px;
    background: #e2e2e4;
    border-radius: 12px;
}

.mock-text {
    width: 100%;
    height: 10px;
    background: #e2e2e4;
    border-radius: 4px;
}

.mock-text.short {
    width: 60%;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: var(--glass-bg);
    border-top: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 6rem 5% 2rem;
    margin-top: 6rem;
}

.footer-container {
    max-width: var(--container-xl);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    gap: 5rem;
}

.link-group h4 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.3s;
}

.link-group a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    max-width: var(--container-xl);
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }

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

    .hero-actions {
        justify-content: center;
    }

    .portfolio-showcase {
        height: auto;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .mockup-macbook {
        width: 100%;
        max-width: 600px;
    }

    .mockup-iphone {
        position: static;
        margin-top: -100px;
    }

    .hamburger-btn {
        display: block;
    }

    #btn-empezar-proyecto {
        display: none;
    }

    /* Ocultar CTA en barra móvil */

    .navbar-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--glass-bg);
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
        z-index: 999;
        justify-content: center;
        align-items: center;
        gap: 3rem;
    }

    .navbar-links.mobile-menu-active {
        display: flex;
    }

    .navbar-links a {
        font-size: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
}

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--glass-bg);
    padding: 3rem;
    text-align: center;
    position: relative;
    max-width: 400px;
    width: 90%;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.btn-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s;
}

.btn-close:hover {
    color: var(--text-primary);
}

.modal-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.modal-content p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.modal-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-btn {
    width: 100%;
    text-align: center;
    padding: 1rem;
}

.modal-btn.whatsapp {
    background: #25D366;
    color: #fff;
    border: none;
}

.modal-btn.whatsapp:hover {
    background: #128C7E;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

/* ==========================================================================
   CONTACT PAGE CSS
   ========================================================================== */
.contact-page {
    padding-top: 150px;
    padding-bottom: 100px;
    background-color: var(--bg-color);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 5%;
}

.contact-card {
    padding: 4rem;
}

.contact-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

/* ==========================================================================
   SMOOTH MARQUEE PLACEHOLDER
   ========================================================================== */
.input-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 8px;
}

.input-wrapper input {
    width: 100%;
}

.smooth-marquee {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    white-space: nowrap;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 3;
    font-size: 1rem;
}

.input-wrapper:focus-within .smooth-marquee,
.input-wrapper.has-value .smooth-marquee {
    opacity: 0;
}

@media (hover: hover) {
    .input-wrapper:hover:not(:focus-within):not(.has-value) .smooth-marquee {
        animation: smooth-scroll-marquee 7s linear infinite;
    }
}

@keyframes smooth-scroll-marquee {
    0% {
        transform: translate(0, -50%);
    }

    /* The string is repeated. 50% translation shifts the string entirely by one cycle making it seamless */
    100% {
        transform: translate(-50%, -50%);
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 2rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.mt-3 {
    margin-top: 1.5rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #475569;
}

[data-theme="dark"] .form-group label {
    color: #d1d5db;
}

.form-group .required {
    color: #e53e3e;
    margin-left: 0.2rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.2s;
}

[data-theme="dark"] .form-group input[type="text"],
[data-theme="dark"] .form-group input[type="email"],
[data-theme="dark"] .form-group input[type="tel"],
[data-theme="dark"] .form-group textarea {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 88, 188, 0.1);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(0, 88, 188, 0.25);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 0.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: 400;
    font-size: 0.95rem;
    color: #334155;
    margin: 0;
    cursor: pointer;
}

[data-theme="dark"] .checkbox-group label {
    color: #d1d5db;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 0.8rem;
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.form-submit {
    margin-top: 2rem;
    padding: 1rem;
    font-size: 1.1rem;
    width: 100%;
}

.contact-footer {
    margin-top: 3rem;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 2rem;
}

.contact-footer p {
    color: #64748b;
    margin-bottom: 0.5rem;
}

.whatsapp-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #25D366;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s;
}

.whatsapp-number:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact-card {
        padding: 2rem;
    }
}

/* ==========================================================================
   DARK MODE TOGGLE BUTTON
   ========================================================================== */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--glass-shadow);
    z-index: 1000;
    transition: transform 0.3s ease, background 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

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

/* Dark mode mockup overrides */
[data-theme="dark"] .desktop-design,
[data-theme="dark"] .mobile-design {
    background: #1c1c1e;
}

[data-theme="dark"] .mock-hero {
    background: #2c2c2e;
}

[data-theme="dark"] .mock-nav div,
[data-theme="dark"] .mock-title,
[data-theme="dark"] .mock-subtitle,
[data-theme="dark"] .mock-box,
[data-theme="dark"] .mock-image,
[data-theme="dark"] .mock-text {
    background: #3a3a3c;
}

/* ==========================================================================
   TOAST NOTIFICATIONS (GLOBAL)
   ========================================================================== */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-notification {
    background: rgba(20, 20, 22, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    animation: toast-slide-down 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

[data-theme="light"] .toast-notification {
    background: rgba(255, 255, 255, 0.85);
    color: #000;
}

.toast-notification.success::before {
    content: "✓";
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
}

.toast-notification.error::before {
    content: "✕";
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
}

.toast-notification.hide {
    animation: toast-slide-up 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes toast-slide-down {
    0% {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }

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

@keyframes toast-slide-up {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    pointer-events: none;
}

.toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.toast-success { border-left: 4px solid #10b981; }
.toast-error { border-left: 4px solid #ef4444; }

.toast-icon { font-size: 1.2rem; }
.toast-message { font-size: 0.95rem; font-weight: 500; color: var(--text-primary); }

@media (max-width: 768px) {
    .toast { width: 90%; bottom: 20px; }
}