/* ==================== BOOTSTRAP CUSTOMIZATION - WHITE THEME ==================== */
:root {
    --bs-primary: #8b5cf6;
    --bs-secondary: #64748b;
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(180deg, #f3e8ff 0%, #faf5ff 50%, #ffffff 100%);
    color: #1e1b4b;
    padding-top: 76px;
}

html {
    scroll-behavior: smooth;
}

/* ==================== CUSTOM UTILITIES ==================== */
.gradient-text {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #f3e8ff;
    color: #8b5cf6;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0rem 0;
    background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%);
    overflow: hidden;
}

.hero-bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0.3;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(139, 92, 246, 0.3);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(168, 85, 247, 0.3);
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: rgba(139, 92, 246, 0.2);
    top: 50%;
    right: 20%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(50px, 50px); }
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 0rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== DOWNLOAD CARD ==================== */
.download-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.url-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.url-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 0.25rem rgba(139, 92, 246, 0.15);
}

.btn-download-main {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-download-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

.error-msg {
    color: #dc3545;
    margin-top: 1rem;
    font-size: 0.875rem;
}

/* ==================== PREVIEW SECTION ==================== */
.preview-section {
    display: none;
    margin-top: 2rem;
}

.preview-section.active {
    display: block;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.slide-card {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.slide-card.selected {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.slide-card img {
    width: 100%;
    height: auto;
    display: block;
}

.slide-checkbox {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 10;
}

.format-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.btn-format {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem 1.5rem;
    border: 2px solid #dee2e6;
    background: white;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-format:hover,
.btn-format.active {
    border-color: #8b5cf6;
    background-color: #8b5cf6;
    color: white;
}

.btn-final-download {
    width: 100%;
    padding: 1rem 2rem;
    background: #198754;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.btn-final-download:hover {
    background: #157347;
    transform: translateY(-2px);
}

.navigation-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-go-back,
.btn-download-another {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: 2px solid #8b5cf6;
    background: white;
    color: #8b5cf6;
    border-radius: 0.5rem;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-go-back:hover,
.btn-download-another:hover {
    background: #8b5cf6;
    color: white;
}

/* ==================== STATS ==================== */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

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

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #8b5cf6;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: #dee2e6;
}

/* ==================== SECTIONS ==================== */
.intro-section,
.howto-section,
.features-section,
.review-section,
.faq-section,
.benefits-banner,
.conclusion-section {
    padding: 5rem 0;
}

.intro-section {
    background-color: #faf5ff;
}

/* ==================== INTRO SECTION ==================== */
.intro-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.intro-features {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.intro-feature-item {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.feature-icon-circle {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.intro-image-container {
    position: relative;
}

.intro-main-image {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.intro-stat-card {
    position: absolute;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card-1 { top: 20px; right: -20px; }
.stat-card-2 { bottom: 80px; left: -20px; }
.stat-card-3 { bottom: 20px; right: 20px; }

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3e8ff;
    color: #8b5cf6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e1b4b;
}

.intro-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.intro-desc {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.8;
}

/* ==================== HOW TO SECTION ==================== */
.howto-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.howto-steps {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.howto-step {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.step-num {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.step-text h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-text p {
    color: #64748b;
    font-size: 0.95rem;
}

.howto-image {
    position: relative;
}

.rounded-image {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.howto-floating {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: #8b5cf6;
}

/* ==================== FEATURES SECTION ==================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

.section-desc {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==================== BENEFITS BANNER ==================== */
.benefits-banner {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.benefits-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.benefit-item i {
    font-size: 1.5rem;
    color: #198754;
}

/* ==================== REVIEW SECTION ==================== */
.review-card {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

.review-avatar {
    text-align: center;
    margin-bottom: 2rem;
}

.review-avatar i {
    font-size: 5rem;
    color: #8b5cf6;
}

.review-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.review-content p {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.review-signature {
    margin-top: 2rem;
    font-style: italic;
    color: #64748b;
}

.developer-link {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 600;
}

.developer-link:hover {
    text-decoration: underline;
}

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

.faq-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.faq-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f3e8ff;
    color: #8b5cf6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.faq-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.faq-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==================== CONCLUSION SECTION ==================== */
.conclusion-section {
    background: #faf5ff;
}

.conclusion-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.conclusion-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.conclusion-content p {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
    color: white;
}

/* ==================== FOOTER ==================== */
.main-footer {
    background: #212529;
    color: white;
    padding: 3rem 0 1.5rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo i {
    color: #8b5cf6;
}

.footer-text {
    color: #adb5bd;
    margin-bottom: 2rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #343a40;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    background: #8b5cf6;
    color: white;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: white;
}

.footer-copy {
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #343a40;
}

/* ==================== LOADER ==================== */
.custom-loader-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.custom-loader {
    width: 64px;
    height: 64px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.custom-loader-text {
    color: white;
    margin-top: 1rem;
    font-size: 1.125rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .intro-wrapper {
        grid-template-columns: 1fr;
    }
    
    .intro-right {
        order: -1;
    }
    
    body {
        padding-top: 70px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .features-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-divider {
        display: none;
    }
    
    .download-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .format-buttons {
        flex-direction: column;
    }
    
    .btn-format {
        width: 100%;
    }
    
    .navigation-buttons {
        flex-direction: column;
    }
}
