/* AI Dream Bees - Main CSS */

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
}

.hero-carousel .carousel {
    height: 100%;
}

.hero-carousel .carousel-inner {
    height: 100%;
}

.hero-carousel .carousel-item {
    height: 100%;
}

.carousel-slide {
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content-row {
    min-height: 100%;
    padding: 2rem 0;
}

/* Slide 1: Main Hero */
.slide-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.slide-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain1" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.05"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.05"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain1)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

/* Slide 2: Features */
.slide-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    position: relative;
}

.slide-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain2" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.05"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.05"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain2)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

/* Slide 3: Community */
.slide-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    position: relative;
}

.slide-3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain3" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.05"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.05"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain3)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.carousel-content {
    position: relative;
    z-index: 2;
    color: white;
}

.carousel-title {
    color: white;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.text-gradient {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.carousel-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.carousel-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.carousel-buttons .btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.carousel-buttons .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
}

.carousel-buttons .btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
}

/* Carousel Visual Elements */
.carousel-visual {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Floating Elements for Slide 1 */
.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-elements::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 20% 60%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: float 6s ease-in-out infinite;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.floating-icon:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.3);
}

.floating-icon.icon-1 {
    top: 8%;
    left: 8%;
    animation-delay: 0s;
    width: 140px;
    height: 140px;
}

.floating-icon.icon-2 {
    top: 20%;
    right: 5%;
    animation-delay: 2s;
    width: 160px;
    height: 160px;
}

.floating-icon.icon-3 {
    bottom: 20%;
    left: 10%;
    animation-delay: 4s;
    width: 120px;
    height: 120px;
}

.floating-icon.icon-4 {
    top: 50%;
    right: 20%;
    animation-delay: 6s;
    width: 100px;
    height: 100px;
}

/* Stats Grid for Slide 2 */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.stats-grid::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
    border-radius: 30px;
    pointer-events: none;
    z-index: -1;
}

.stat-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* Community Grid for Slide 3 */
.community-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.community-grid::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
    border-radius: 25px;
    pointer-events: none;
    z-index: -1;
}

.community-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    animation: float 8s ease-in-out infinite;
}

.community-card:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.3);
}

.community-card.card-1 {
    animation-delay: 0s;
}

.community-card.card-2 {
    animation-delay: 2s;
}

.community-card.card-3 {
    animation-delay: 4s;
}

.community-card.card-4 {
    animation-delay: 6s;
}

/* Feature Lists */
.feature-list, .community-features {
    margin: 2rem 0;
}

.feature-item, .community-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.feature-item i, .community-item i {
    font-size: 1.2rem;
}

/* Carousel Controls */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.hero-carousel .carousel-control-prev {
    left: 30px;
}

.hero-carousel .carousel-control-next {
    right: 30px;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Carousel Indicators */
.hero-carousel .carousel-indicators {
    bottom: 30px;
    margin-bottom: 0;
}

.hero-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.hero-carousel .carousel-indicators button.active {
    background: white;
    transform: scale(1.2);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-carousel {
        height: 60vh;
        min-height: 450px;
        max-height: 600px;
    }
    
    .carousel-title {
        font-size: 2.5rem;
    }
    
    .carousel-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .carousel-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .hero-content-row {
        padding: 1rem 0;
    }
    
    .carousel-visual {
        min-height: 250px;
    }
    
    .floating-icon {
        padding: 1rem;
    }
    
    .floating-icon.icon-1 {
        width: 80px;
        height: 80px;
    }
    
    .floating-icon.icon-2 {
        width: 90px;
        height: 90px;
    }
    
    .floating-icon.icon-3 {
        width: 70px;
        height: 70px;
    }
    
    .floating-icon.icon-4 {
        width: 60px;
        height: 60px;
    }
    
    .stats-grid {
        max-width: 300px;
        gap: 1rem;
    }
    
    .community-grid {
        max-width: 250px;
        gap: 0.8rem;
    }
    
    .floating-icon {
        padding: 1.5rem;
    }
    
    .floating-icon.icon-1 {
        width: 100px;
        height: 100px;
    }
    
    .floating-icon.icon-2 {
        width: 120px;
        height: 120px;
    }
    
    .floating-icon.icon-3 {
        width: 80px;
        height: 80px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .community-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .hero-carousel .carousel-control-prev {
        left: 15px;
    }
    
    .hero-carousel .carousel-control-next {
        right: 15px;
    }
}

@media (max-width: 576px) {
    .hero-carousel {
        height: 70vh;
        min-height: 400px;
    }
    
    .carousel-title {
        font-size: 2rem;
    }
    
    .carousel-subtitle {
        font-size: 1rem;
    }
    
    .carousel-visual {
        height: 250px;
    }
    
    .stats-grid {
        max-width: 250px;
    }
    
    .community-grid {
        max-width: 200px;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .community-card {
        padding: 1rem;
    }
    
    .feature-item, .community-item {
        font-size: 1rem;
    }
}

.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

/* FAQ Section */
.faq-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.faq-card:hover {
    background: white;
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.faq-card .card-body {
    padding: 2rem;
    text-align: center;
}

.faq-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.faq-card:hover .faq-icon {
    background: rgba(99, 102, 241, 0.15);
    transform: scale(1.1);
}

.faq-question {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

.faq-answer {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Responsive FAQ */
@media (max-width: 768px) {
    .faq-card .card-body {
        padding: 1.5rem;
    }
    
    .faq-icon {
        width: 50px;
        height: 50px;
    }
    
    .faq-icon i {
        font-size: 1.5rem !important;
    }
    
    .faq-question {
        font-size: 1rem;
    }
    
    .faq-answer {
        font-size: 0.9rem;
    }
}

/* Navigation */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    border-radius: 12px 12px 0 0;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1.1rem;
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.input-group-text {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-right: none;
}

.input-group .form-control {
    border-left: none;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: #ffffff !important;
    margin-top: -76px; /* Offset navbar height */
    padding-top: 76px; /* Add padding to account for navbar */
    isolation: isolate; /* Create new stacking context */
}

.hero-section * {
    color: #ffffff !important;
}

/* Ensure hero section overrides all base template styles */
.hero-section,
.hero-section *,
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4,
.hero-section h5,
.hero-section h6,
.hero-section p,
.hero-section span,
.hero-section div,
.hero-section a,
.hero-section button {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(26, 26, 46, 0.8) 0%, 
        rgba(22, 33, 62, 0.8) 50%, 
        rgba(15, 52, 96, 0.8) 100%);
}

.hero-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
}

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

.min-vh-75 {
    min-height: 75vh;
}

/* Hero Content */
.hero-content {
    animation: fadeInUp 1s ease-out;
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.hero-content * {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Force white text for all hero section elements */
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4,
.hero-section h5,
.hero-section h6,
.hero-section p,
.hero-section span,
.hero-section div {
    color: #ffffff !important;
}

.hero-section .text-white {
    color: #ffffff !important;
}

.hero-section .text-gradient,
.hero-section .text-gradient-animated {
    color: #ffffff !important;
}

.hero-badge {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    animation: fadeInUp 1s ease-out 0.4s both;
    color: #ffffff !important;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.6);
    margin-bottom: 1.5rem !important;
    position: relative;
    z-index: 2;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 1s ease-out 0.6s both;
    margin-bottom: 2rem !important;
    position: relative;
    z-index: 2;
}

.text-gradient-animated {
    color: #ffffff !important;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.6);
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
    .text-gradient-animated {
        color: #ffffff !important;
        background: none;
        -webkit-text-fill-color: initial;
    }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Hero Stats */
.hero-stats {
    animation: fadeInUp 1s ease-out 0.8s both;
    position: relative;
    z-index: 2;
}

.stat-item {
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #ffffff !important;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.6);
}

.stat-label {
    font-size: 0.9rem;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Actions */
.hero-actions {
    animation: fadeInUp 1s ease-out 1s both;
    position: relative;
    z-index: 2;
}

.btn-hero-primary {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border: none;
    color: white;
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-hero-primary::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;
}

.btn-hero-primary:hover::before {
    left: 100%;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    color: white;
}

/* Hero Features */
.hero-features {
    animation: fadeInUp 1s ease-out 1.2s both;
    position: relative;
    z-index: 2;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Hero Visual */
.hero-visual {
    animation: fadeInUp 1s ease-out 0.6s both;
    position: relative;
    z-index: 2;
}

.hero-image-container {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card {
    position: absolute;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.floating-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.card-1 {
    width: 280px;
    height: 200px;
    top: 50px;
    left: 50px;
    animation: float1 6s ease-in-out infinite;
    z-index: 3;
}

.card-2 {
    width: 200px;
    height: 150px;
    top: 200px;
    right: 80px;
    animation: float2 8s ease-in-out infinite;
    z-index: 2;
}

.card-3 {
    width: 160px;
    height: 100px;
    bottom: 100px;
    left: 100px;
    animation: float3 7s ease-in-out infinite;
    z-index: 1;
}

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

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-1deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

/* AI Preview Card */
.ai-preview-card {
    padding: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.preview-dots {
    display: flex;
    gap: 4px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca3f; }

.preview-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
}

.preview-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.preview-image-placeholder {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.preview-text {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

/* AI Stats Card */
.ai-stats-card {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
}

.stats-icon {
    font-size: 1.5rem;
}

.stats-content {
    flex: 1;
}

.stats-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.stats-label {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

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

/* Hero Section Isolation - Override any base template styles */
.hero-section {
    /* Reset any inherited styles */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    line-height: 1.6 !important;
    
    /* Ensure proper positioning */
    position: relative !important;
    z-index: 1 !important;
}

/* Override any Bootstrap or base template button styles in hero */
.hero-section .btn {
    border-radius: 8px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

/* Override any Bootstrap or base template text styles in hero */
.hero-section .text-white {
    color: #ffffff !important;
}

.hero-section .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Ensure hero section badges are properly styled */
.hero-section .badge {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Override any Bootstrap container or row styles in hero */
.hero-section .container,
.hero-section .row,
.hero-section .col,
.hero-section .col-lg-6,
.hero-section .col-lg-3,
.hero-section .col-md-6,
.hero-section .col-4 {
    position: relative;
    z-index: 2;
}

/* Ensure hero section is completely isolated from base template */
.hero-section {
    /* Override any potential margin/padding from base template */
    margin: 0 !important;
    padding: 0 !important;
    
    /* Ensure proper display */
    display: flex !important;
    align-items: center !important;
    
    /* Override any potential width/height constraints */
    width: 100% !important;
    min-height: 100vh !important;
}

/* Gallery */
.gallery-card {
    overflow: hidden;
    border-radius: 12px;
}

.gallery-card .card-img-top {
    transition: transform 0.3s ease;
}

.gallery-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Generation Form */
.generation-form {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.preview-area {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    transition: all 0.2s ease;
}

.preview-area:hover {
    border-color: var(--primary-color);
    background: #f1f5f9;
}

/* Dashboard Stats */
.card.bg-primary,
.card.bg-success,
.card.bg-info,
.card.bg-warning {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 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%; }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        margin-bottom: 2rem;
    }
    
    .stat-item {
        margin-bottom: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 300px;
        margin-bottom: 1rem;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .hero-image-container {
        height: 300px;
        margin-top: 2rem;
    }
    
    .floating-card {
        position: relative;
        margin: 1rem auto;
        animation: none;
    }
    
    .card-1,
    .card-2,
    .card-3 {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        width: 250px;
        height: 150px;
        margin: 1rem auto;
    }
    
    .hero-scroll-indicator {
        bottom: 20px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats .row {
        flex-direction: column;
    }
    
    .stat-item {
        margin-bottom: 0.5rem;
    }
    
    .feature-item {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .hero-image-container {
        height: 250px;
    }
    
    .card-1,
    .card-2,
    .card-3 {
        width: 200px;
        height: 120px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --light-color: #1e293b;
        --dark-color: #f8fafc;
    }
    
    body {
        background-color: #0f172a;
        color: var(--dark-color);
    }
    
    .card {
        background-color: #1e293b;
        color: var(--dark-color);
    }
    
    .form-control {
        background-color: #1e293b;
        border-color: #374151;
        color: var(--dark-color);
    }
    
    .input-group-text {
        background-color: #374151;
        border-color: #374151;
        color: var(--dark-color);
    }
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #ffffff !important; /* Fallback color */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
    .text-gradient {
        color: #ffffff !important;
        background: none;
        -webkit-text-fill-color: initial;
    }
}

.shadow-soft {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.border-soft {
    border: 1px solid #e2e8f0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    border-top: 1px solid #333;
    color: #fff !important;
}

footer h5, footer h6 {
    color: #fff !important;
    font-weight: 600;
}

footer p {
    color: #fff !important;
}

footer .text-muted {
    color: #fff !important;
}

footer .social-links a {
    transition: all 0.3s ease;
    display: inline-block;
    color: #fff !important;
}

footer .social-links a:hover {
    transform: translateY(-2px);
    color: #007bff !important;
}

footer ul li a {
    transition: all 0.3s ease;
    position: relative;
    color: #fff !important;
}

footer ul li a.text-muted {
    color: #fff !important;
}

footer ul li a:hover {
    color: #007bff !important;
    padding-left: 5px;
}

footer ul li a.text-muted:hover {
    color: #007bff !important;
}

footer ul li a i {
    transition: all 0.3s ease;
}

footer ul li a:hover i {
    transform: scale(1.1);
}

footer hr {
    border-color: #444 !important;
}

footer .text-muted {
    color: #fff !important;
}

footer .text-light {
    color: #fff !important;
}

/* Footer responsive adjustments */
@media (max-width: 768px) {
    footer .text-md-end {
        text-align: left !important;
        margin-top: 1rem;
    }
    
    footer .social-links {
        margin-top: 1rem;
    }
}
