/* ===== RESET E VARIÁVEIS ===== */
:root {
    --primary-color: #00b3fe;
    --secondary-color: #ff9f1d;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --muted-color: #6c757d;
    --white: #ffffff;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* ===== UTILITÁRIOS ===== */
.min-vh-75 {
    min-height: 75vh;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0099e6);
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, #0099e6, var(--primary-color));
}

.btn-outline-secondary {
    border: 2px solid #e9ecef;
    color: var(--dark-color);
}

.btn-outline-secondary:hover {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
    transform: translateY(-2px);
}

.card {
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* ===== HEADER ===== */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    transition: var(--transition);
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--dark-color) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--muted-color) !important;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 179, 254, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content h1 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-image img {
    max-width: 400px;
    transition: var(--transition);
}

.hero-image img:hover {
    transform: scale(1.05) rotate(2deg);
}

/* ===== GENERATOR SECTION ===== */
.generator-section {
    background-color: #f8f9fa;
}

.upload-area {
    border: 3px dashed #dee2e6;
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    transform: translateY(-2px);
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background-color: rgba(0, 179, 254, 0.05);
    transform: scale(1.02);
}

.uploaded-image img {
    max-height: 200px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.controls {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-range {
    accent-color: var(--primary-color);
}

.form-range::-webkit-slider-thumb {
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-light);
}

.form-range::-moz-range-thumb {
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-light);
}

/* ===== MOCKUP CONTAINER ===== */
.mockup-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mockup-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 159, 29, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.mockup-wrapper {
    position: relative;
    z-index: 2;
}

#mockupCanvas {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    background: white;
    transition: var(--transition);
}

#mockupCanvas:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.mockup-info {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 1rem;
    position: relative;
    z-index: 2;
}

/* ===== STEP ICONS ===== */
.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.step-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

.step-icon i {
    color: white;
    position: relative;
    z-index: 2;
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #2c2c2c 100%);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .mockup-container {
        padding: 1rem;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
    }
    
    .step-icon i {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .controls {
        padding: 1rem;
    }
}

/* ===== ANIMAÇÕES ADICIONAIS ===== */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

.scale-in {
    animation: scaleIn 0.4s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== LOADING STATES ===== */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ===== SCROLLBAR PERSONALIZADA ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}



/* ===== MODAL DE DOWNLOAD ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

.modal-overlay.show {
    display: flex;
}

.modal-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* ===== EFEITOS SUTIS EM MOVIMENTO ===== */
.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(0, 179, 254, 0.1), rgba(255, 159, 29, 0.1));
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    top: 30%;
    right: 30%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(90deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-10px) translateX(-15px) rotate(180deg);
        opacity: 0.3;
    }
    75% {
        transform: translateY(15px) translateX(5px) rotate(270deg);
        opacity: 0.4;
    }
}

/* ===== CONTAINER DO MODAL ===== */
.modal-container {
    position: relative;
    z-index: 10;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: scaleIn 0.3s ease-out;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    font-weight: 600;
    color: var(--dark-color);
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--muted-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--dark-color);
}

.modal-body {
    padding: 1.5rem;
}

/* ===== ÁREA DO ANÚNCIO ===== */
.ad-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius);
    padding: 1rem;
    border: 2px dashed #dee2e6;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-placeholder {
    width: 100%;
}

.ad-content {
    color: var(--muted-color);
}

/* ===== CONTAGEM REGRESSIVA ===== */
.countdown-container {
    padding: 2rem 1rem;
}

.countdown-circle {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.countdown-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.countdown-svg {
    transform: rotate(-90deg);
}

.countdown-bg {
    fill: none;
    stroke: #e9ecef;
    stroke-width: 4;
}

.countdown-progress {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 220;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.countdown-text h5 {
    color: var(--dark-color);
    font-weight: 600;
}

.countdown-text p {
    font-size: 1.1rem;
}

#countdownSeconds {
    font-weight: bold;
    color: var(--primary-color);
}

/* ===== DOWNLOAD MANUAL ===== */
.manual-download {
    animation: slideUp 0.5s ease-out;
}

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

.alert {
    background: rgba(0, 179, 254, 0.1);
    border: 1px solid rgba(0, 179, 254, 0.2);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

/* ===== RESPONSIVIDADE DO MODAL ===== */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header,
    .modal-body {
        padding: 1rem;
    }
    
    .countdown-container {
        padding: 1rem;
    }
    
    .ad-container {
        min-height: 150px;
    }
}

@media (max-width: 576px) {
    .modal-title {
        font-size: 1.1rem;
    }
    
    .countdown-number {
        font-size: 1.2rem;
    }
    
    .countdown-svg {
        width: 60px;
        height: 60px;
    }
    
    .countdown-bg,
    .countdown-progress {
        r: 25;
    }
    
    .shape {
        display: none; /* Ocultar formas em telas muito pequenas */
    }
}

/* ===== ANIMAÇÕES ADICIONAIS ===== */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 1rem auto;
    max-width: 100%;
}

.countdown-circle {
    position: relative;
    width: 80px;
    height: 80px;
}

.countdown-svg {
    width: 100%;
    height: auto;
    transform: rotate(-90deg); /* se estiver usando animação circular */
}

.countdown-bg,
.countdown-progress {
    fill: none;
    stroke-width: 5;
    cx: 40;
    cy: 40;
    r: 35;
}

.countdown-bg {
    stroke: #eee;
}

.countdown-progress {
    stroke: #007bff;
    stroke-dasharray: 220;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.3s linear;
}

.countdown-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.25rem;
    font-weight: bold;
}

@media (max-width: 480px) {
    .countdown-circle {
        width: 60px;
        height: 60px;
    }

    .countdown-number {
        font-size: 1rem;
    }
}

.botaomp {
    display: inline-block;
    background: linear-gradient(135deg, #ff0080, #7928ca);
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.botaomp::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.botaomp:hover::before {
    left: 125%;
}

.botaomp:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}