/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2c2c2c;
    overflow-x: hidden;
}

/* Container and layout */
.container {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    background-image: url('marble_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 50%,
        rgba(0, 0, 0, 0.05) 100%
    );
    backdrop-filter: blur(0.3px);
    z-index: 1;
}

/* Main content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    gap: 4rem;
}

/* Instagram CTA positioned over background text */
.instagram-cta {
    margin-top: 8rem; /* Position over the @araujopinturas_efeitos text in background */
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(131, 58, 180, 0.3);
    position: relative;
    overflow: hidden;
}

.instagram-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.instagram-link:hover::before {
    left: 100%;
}

.instagram-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(131, 58, 180, 0.4);
}

.instagram-link:active {
    transform: translateY(-1px);
}

.instagram-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.instagram-handle {
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* WhatsApp CTA */
.whatsapp-cta {
    margin-top: 1rem; /* aparece logo abaixo do Instagram */
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(18, 140, 126, 0.3);
    position: relative;
    overflow: hidden;
}

.whatsapp-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
}

.whatsapp-link:hover::before {
    left: 100%;
}

.whatsapp-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(18, 140, 126, 0.4);
}

.whatsapp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-handle {
    font-weight: 600;
    letter-spacing: 0.02em;
}


/* Features preview */
.features-preview {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    min-width: 140px;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.feature-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    text-align: center;
}

/* Footer */
.footer {
    padding: 1.5rem 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer p {
    font-size: 0.85rem;
    color: #666;
    opacity: 0.8;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-top: 3px solid #d4af37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        background-attachment: scroll;
    }
    
    .main-content {
        padding: 1.5rem;
        gap: 3rem;
    }
    
    .instagram-cta {
        margin-top: 6rem;
    }
    
    .instagram-link {
        padding: 1rem 1.5rem;
        gap: 0.75rem;
    }
    
    .features-preview {
        gap: 1rem;
    }
    
    .feature-item {
        min-width: 120px;
        padding: 0.75rem;
    }
    
    .footer {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1rem;
        gap: 2rem;
    }
    
    .instagram-cta {
        margin-top: 4rem;
    }
    
    .instagram-link {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .features-preview {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .feature-item {
        width: 100%;
        max-width: 200px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .background-overlay {
        background: rgba(255, 255, 255, 0.9);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .container {
        background-attachment: scroll;
    }
}

/* Print styles */
@media print {
    .loading-overlay {
        display: none;
    }
    
    .container {
        background: white;
    }
    
    .background-overlay {
        display: none;
    }
    
    .instagram-link {
        background: #333;
        color: white;
    }
}

