/* --- RESET & VARIABLES --- */
:root {
    /* Custom Variables extending Bootstrap */
    --accent-blue: #0070F3;
    --accent-purple: #8B5CF6;
    
    --gradient-primary: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    --gradient-text: linear-gradient(to right, #38bdf8, #818cf8, #c084fc);
    --gradient-glow: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.15) 0%, rgba(0, 0, 0, 0) 50%);

    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.bg-black { background-color: #000 !important; }
.bg-darker { background-color: #050505 !important; }

/* --- UTILITIES --- */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect, .glass-bg, .glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.hover-white:hover { color: #fff !important; }
.transition-all { transition: all 0.3s ease; }
.min-h-40 { min-height: 40px; }

/* --- BUTTONS --- */
.custom-btn-primary {
    background: #fff;
    color: #000;
    border: none;
}
.custom-btn-primary:hover {
    background: #e5e5e5;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255,255,255,0.1);
    color: #000;
}

.sticky-hover:hover {
    transform: scale(1.1);
}

/* --- NAVBAR --- */
.custom-navbar {
    transition: all 0.4s ease;
    padding: 16px 0;
    background: transparent;
}
.custom-navbar.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 12px 0;
}
.logo-icon {
    width: 24px; height: 24px;
    background: var(--gradient-primary);
    border-radius: 6px;
}

/* --- HERO SECTION --- */
.hero-bg-glow {
    position: absolute;
    top: -20%; left: 50%;
    transform: translateX(-50%);
    width: 100vw; height: 100vh;
    background: var(--gradient-glow);
    z-index: 0;
    pointer-events: none;
}
.badge-float {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    padding: 12px 20px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    font-weight: 500;
    font-size: 0.9rem;
}
.badge-float.top-right { top: 10%; right: -20px; }
.badge-float.bottom-left { bottom: 10%; left: -20px; }
.visual-card {
    transform: rotateX(5deg) translateY(0);
    transition: transform 0.4s ease;
    perspective: 1000px;
    transform-style: preserve-3d;
}
.visual-card:hover {
    transform: rotateX(0deg) translateY(-10px);
}

/* --- GENERATOR --- */
.generator-box {
    background: linear-gradient(145deg, rgba(25,25,30,0.7) 0%, rgba(10,10,12,0.9) 100%);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 1px 1px rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.08) !important;
    position: relative;
    overflow: hidden;
}
.generator-box::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-20deg); transition: 0.5s;
}
.generator-box:hover::before { left: 150%; }

.custom-input-group { 
    border-radius: 50px; 
    border: 1px solid rgba(255,255,255,0.15); 
    background: rgba(255,255,255,0.03); 
    transition: all 0.3s ease;
    overflow: hidden;
}
.custom-input-group:focus-within { 
    border-color: var(--accent-blue); 
    background: rgba(255,255,255,0.08); 
    box-shadow: 0 0 0 4px rgba(0, 112, 243, 0.15);
}
.custom-input-field {
    font-size: 1.05rem;
    padding: 14px 16px;
}
.custom-input-field:focus { box-shadow: none; border-color: transparent; }
.custom-input-group .input-group-text { padding-left: 20px; font-size: 1.1rem; }

/* --- HOW IT WORKS --- */
.steps-grid { position: relative; }
.steps-line {
    position: absolute;
    top: 50%; left: 10%; width: 80%;
    transform: translateY(-50%);
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    z-index: 0;
    opacity: 0.5;
}
.step-card {
    padding: 40px 20px 30px;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    background: linear-gradient(145deg, rgba(30,30,30,0.5) 0%, rgba(10,10,10,0.8) 100%);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 1.5rem;
    position: relative;
    z-index: 2;
    height: 100%;
    backdrop-filter: blur(10px);
}
.step-number {
    position: absolute;
    top: -18px; left: 50%;
    transform: translateX(-50%);
    width: 40px; height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
    border: 4px solid var(--bg-black);
    color: white;
}
.step-icon {
    width: 80px; height: 80px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(0,0,0,0.5) !important;
}
.step-card:hover {
    transform: translateY(-10px);
    border-color: rgba(13, 110, 253, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 30px rgba(13, 110, 253, 0.1);
}
.step-card:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--accent-blue) !important;
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.2) inset;
}
.step-card h4 { transition: color 0.3s; }
.step-card:hover h4 { color: var(--accent-blue); }

/* --- TEMPLATES MAGIC --- */
.template-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    background: linear-gradient(145deg, rgba(20,20,20,1) 0%, rgba(10,10,10,1) 100%) !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.template-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(13, 110, 253, 0.5) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 40px rgba(13, 110, 253, 0.15);
}
.template-img-wrapper { aspect-ratio: 16/10; overflow: hidden; }
.template-img-wrapper img {
    height: 100%; width: 100%; object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}
.template-overlay {
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.template-card:hover .template-overlay { opacity: 1; }
.template-card:hover .template-img-wrapper img { transform: scale(1.1); filter: brightness(0.7); }

/* Animate the button inside overlay */
.template-overlay .btn {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.1s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.template-card:hover .template-overlay .btn {
    transform: translateY(0);
    opacity: 1;
}

/* --- FEATURES --- */
.feature-card { transition: background-color 0.3s ease, border-color 0.3s ease; }
.feature-card:hover {
    background: rgba(255,255,255,0.02) !important;
    border-color: var(--accent-blue) !important;
}

/* --- SERVICES --- */
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

/* --- PRICING --- */
.price-card { transition: box-shadow 0.3s ease, border-color 0.3s ease; }
.price-card:hover { 
    transform: translateY(-8px); 
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* --- MODALS --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    z-index: 1050;
    display: flex; align-items: center; justify-content: center;
    opacity: 1; transition: opacity 0.3s ease;
}
.modal-overlay.hidden { display: none !important; opacity: 0; pointer-events: none; }
.modal-content {
    background: #141414;
    border-radius: 24px;
    padding: 48px;
    width: 100%;
    max-width: 500px;
    position: relative;
    transform: translateY(0) scale(1);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255,255,255,0.08);
}
.success-content { max-width: 800px; padding: 40px; }
.modal-overlay.hidden .modal-content { transform: translateY(20px) scale(0.95); }
.close-modal {
    position: absolute;
    top: 24px; right: 24px;
    background: transparent; border: none;
    color: #A1A1AA; font-size: 1.25rem;
    cursor: pointer;
}
.close-modal:hover { color: #fff; }
.custom-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
}
.custom-input:focus {
    background: rgba(255,255,255,0.08);
    border-color: var(--accent-blue);
    box-shadow: none;
    color: #fff;
}

/* Success Modal */
.check-circle {
    width: 64px; height: 64px;
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
}
.mockup-preview {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    overflow: hidden;
}
.browser-bar { background: #1e1e1e; border-bottom: 1px solid #333; }
.url-bar { background: #000; font-family: monospace; }
.mockup-body {
    height: 300px;
    background-image: url('https://images.unsplash.com/photo-1557683316-973673baf926?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
}
.mockup-body::before {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.5); z-index: 1;
}

/* Fix Bootstrap Select appearance */
.form-select.custom-input-field option {
    background-color: #141414;
    color: #fff;
}

/* --- TEMPLATE FILTERS & ANIMATIONS --- */
.filter-btn {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}
.filter-btn-inactive {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #a0a0a0 !important;
}
.filter-btn-inactive:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.filter-btn-active {
    background: linear-gradient(135deg, #0070F3, #8B5CF6) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(0, 112, 243, 0.3) !important;
    transform: translateY(-2px);
}

@keyframes cardFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.animate-card {
    opacity: 0;
    animation: cardFadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.preview-btn {
    background: linear-gradient(135deg, #0070F3, #8B5CF6);
    color: white !important;
    border: none;
    padding: 10px 24px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(0, 112, 243, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.preview-btn:hover {
    box-shadow: 0 12px 30px rgba(0, 112, 243, 0.6);
    filter: brightness(1.1);
    transform: translateY(-2px);
}
