/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-soft: #0d1117;
    --secondary-soft: #1f2937;
    --accent-pastel: #1e40af;
    --accent-light: #1e3a8a;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --white: #e6cece;
    --shadow-light: rgba(0, 0, 0, 0.25);
    --shadow-medium: rgba(0, 0, 0, 0.4);
    --accent-shadow-soft: rgba(30, 58, 138, 0.35);
    --accent-shadow-strong: rgba(30, 58, 138, 0.55);
    --focus-ring: rgba(30, 58, 138, 0.35);
    --surface-dark: #0f172a;
    --surface-mid: #111827;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Global media responsiveness */
img, video, canvas, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* WhatsApp CTA Styles */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
        transform: scale(1);
    }
}

@keyframes whatsapp-wiggle {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(-10deg); }
    40% { transform: rotate(10deg); }
    60% { transform: rotate(-5deg); }
    80% { transform: rotate(5deg); }
}

.whatsapp-cta-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    width: 100%;
    z-index: 10;
    position: relative;
}

.whatsapp-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: whatsapp-pulse 2s infinite;
    position: relative;
    overflow: visible;
}

.whatsapp-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.whatsapp-cta-button:hover {
    background: linear-gradient(135deg, #2EE872, #16A896);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
    transform: translateY(-5px) scale(1.1) !important; /* Force override animation transform */
    animation: none; /* Pause pulse on hover to focus on interaction */
}

.whatsapp-cta-button:hover::before {
    opacity: 1;
    animation: whatsapp-pulse 1.5s infinite;
}

.whatsapp-cta-icon {
    width: 35px;
    height: 35px;
    fill: currentColor;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}

.whatsapp-cta-button:hover .whatsapp-cta-icon {
    animation: whatsapp-wiggle 0.5s ease-in-out;
}



/* Specific adjustment for Modern Banner */
.mb-whatsapp {
    grid-column: 2;
    justify-self: center;
    margin-top: 1rem;
}

/* Specific adjustment for Grid Carousel */
.grid-whatsapp {
    margin-top: 5rem;
}

@media (max-width: 900px) {
    .mb-whatsapp {
        grid-column: 1;
        margin-top: 2rem;
    }
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 20px var(--shadow-light);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.navbar-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.navbar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.8));
    z-index: -1;
    pointer-events: none;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.nav-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: transparent;
    border-radius: 2px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

/* Budget Section */
.budget-section {
    padding: 6rem 0;
    background: var(--surface-dark);
    position: relative;
    overflow: hidden;
}

.budget-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--surface-dark), transparent);
    z-index: 1;
}

/* Background decoration for budget section */
.budget-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at center, rgba(30, 58, 138, 0.08) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.budget-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Budget Layout */
.budget-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.features-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
    max-width: 300px;
}

.budget-form-container {
    flex: 2;
    max-width: 600px;
    width: 100%;
}

/* Feature Cards */
.feature-card {
    background: rgba(31, 41, 55, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(31, 41, 55, 0.6);
    border-color: rgba(30, 58, 138, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.2), rgba(30, 58, 138, 0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon-wrapper {
    transform: rotate(5deg) scale(1.1);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.3), rgba(30, 58, 138, 0.2));
}

.feature-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.feature-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Float Animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.delay-1 { animation-delay: 0s; }
.delay-2 { animation-delay: 1.5s; }
.delay-3 { animation-delay: 3s; }
.delay-4 { animation-delay: 4.5s; }

/* Responsive adjustments for Budget Layout */
@media (max-width: 1024px) {
    .budget-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .features-column {
        flex-direction: row;
        width: 100%;
        max-width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .feature-card {
        width: calc(50% - 1rem);
        min-width: 250px;
    }

    .budget-form-container {
        order: -1; /* Keep form on top on tablet */
    }
}

@media (max-width: 768px) {
    .feature-card {
        width: 100%;
    }
    
    .budget-form-container {
        padding: 0 1rem;
    }
}

.budget-contact-card {
    background: rgba(17, 24, 39, 0.95);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 0 20px rgba(30, 58, 138, 0.1);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.budget-contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(30, 58, 138, 0.3),
        inset 0 0 30px rgba(30, 58, 138, 0.15);
}

.contact-icon-large {
    margin-bottom: 0.5rem;
    animation: pulse-green 2s infinite;
}

.budget-contact-card h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin: 0;
}

.budget-contact-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}



.submit-button {
    width: 100%;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, #25D366, #128C7E); /* WhatsApp colors */
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.submit-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    background: linear-gradient(135deg, #2EE872, #16A896);
}

.submit-button:active {
    transform: translateY(-1px) scale(0.98);
}

.button-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.submit-button.loading .button-loader {
    display: block;
}

.submit-button.loading span {
    opacity: 0.7;
}

/* Contact Button & Animation */
.whatsapp-button {
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    width: auto !important;
    min-width: 300px;
}

@keyframes pulse-green {
    0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(37, 211, 102, 0.4)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 15px rgba(37, 211, 102, 0.6)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(37, 211, 102, 0.4)); }
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(0.3);
}

@media (max-width: 768px) {
    .budget-options {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer {
    background: linear-gradient(to top, #020617, #0f172a);
    color: var(--text-primary);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--secondary-soft);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    width: 100%;
    max-width: 800px;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #f1f5f9;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 200px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.footer-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* WhatsApp Specific Highlight */
.footer-link[href*="wa.me"]:hover {
    border-color: rgba(37, 211, 102, 0.5);
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1), rgba(37, 211, 102, 0.05));
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.15);
}

/* Instagram Specific Highlight */
.footer-link[href*="instagram"]:hover {
    border-color: rgba(225, 48, 108, 0.5);
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.1), rgba(225, 48, 108, 0.05));
    box-shadow: 0 10px 20px rgba(225, 48, 108, 0.15);
}

.footer-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.footer-link:hover .footer-icon {
    transform: scale(1.1);
}

.footer-rights {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-top: 1rem;
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.8rem 1rem;
    }

    .nav-menu {
        display: flex;
        gap: 0.75rem;
        position: static;
        background: transparent;
        padding: 0;
        box-shadow: none;
        border: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .hamburger {
        display: none;
    }
    
    .budget-form {
        padding: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .features-column {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-card {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        gap: 0.5rem;
    }

    .nav-logo h1 {
        font-size: 1.2rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
    }

    .budget-form {
        padding: 1.5rem;
    }
    
    .container {
        padding: 0 15px;
    }

    .footer-link {
        width: 100%;
        min-width: 0;
    }

    .footer-social {
        gap: 0.75rem;
    }

    .footer-rights {
        font-size: 0.8rem;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Quality Seal Section */
.quality-seal-section {
    padding: 3rem 0;
    background: var(--surface-dark);
    position: relative;
    overflow: hidden;
}

.quality-seal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(37, 211, 102, 0.05), transparent 60%);
    pointer-events: none;
}

.quality-seal-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    align-items: center;
}

.quality-seal-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateY(5deg);
    transition: transform 0.5s ease;
    height: 100%;
    max-height: 350px;
}

.quality-seal-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.quality-seal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.quality-seal-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
}

.quality-seal-card::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.quality-seal-title {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.quality-seal-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    text-align: justify;
}

.quality-list {
    list-style: none;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-around;
}

.quality-list li {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    font-weight: 500;
    white-space: nowrap;
}

.quality-footer {
    text-align: center;
    font-size: 1rem !important;
    font-weight: 700;
    color: #25D366 !important;
    margin-top: 1rem;
    letter-spacing: 0.5px;
}

@media (max-width: 900px) {
    .quality-seal-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .quality-seal-image {
        transform: none;
        max-height: 200px;
    }
    
    .quality-seal-card {
        padding: 1.2rem;
    }

    .quality-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
