/* Main */
main {
    background-color: none !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        margin: 1rem;
        padding: 0;
    }
    
    /* Ensure hero and footer sections have proper spacing on mobile */
    .hero-section,
    .footer-section {
        margin-left: 2rem;
        margin-right: 2rem;
        width: calc(100% - 4rem);
        max-width: calc(100% - 4rem);
    }
}

@media (max-width: 480px) {
    body {
        margin: 1rem;
    }
    
    /* Ensure hero and footer sections have proper spacing on small mobile */
    .hero-section,
    .footer-section {
        margin-left: 1.5rem;
        margin-right: 1.5rem;
        width: calc(100% - 3rem);
        max-width: calc(100% - 3rem);
    }
}

/* Prevent horizontal scroll on mobile */
.container-fluid, .container {
    overflow-x: hidden;
}

/* Touch-friendly buttons */
.btn, button, a {
    min-height: 44px;
    min-width: 44px;
}



/* Mobile Header Adjustments - Removed to avoid conflicts with header.css */

/* Common Section Styling */
.styled-section {
    margin-top: 2rem;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 5px 5px 8px 0 rgba(51, 51, 51, 0.8);
    padding: 3rem;
}

@media (max-width: 768px) {
    .styled-section {
        padding: 2rem 1.5rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .styled-section {
        padding: 1.5rem 1rem;
        margin-top: 1rem;
        border-radius: 20px;
    }
}


/* Hero Section */
.hero-section {
    margin-top: 2rem;
    background-image: url('/static/resource/hero_background.svg');
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 5px 5px 8px 0 rgba(51, 51, 51, 0.8);
    padding: 2rem;
    /* Ensure hero section doesn't expand beyond container */
    max-width: 100%;
    box-sizing: border-box;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(30, 30, 40, 0.9);
    backdrop-filter: blur(0px);
    z-index: 1;
}

.hero-section>* {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-section .btn {
    box-shadow: 0 4px 8px 0 rgba(51, 51, 51, 0.6), 0 0 15px rgba(255, 255, 255, 0.13);
    transition: all 0.3s ease;
}

.hero-section .btn:hover {
    box-shadow: 0 6px 12px 0 rgba(51, 51, 51, 0.8), 0 0 25px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-section .btn i {
    font-size: 1.1rem;
}

.hero-title h1 {
    font-weight: 700;
}

.hero-description p {
    font-size: 1.2rem;
    font-weight: 400;
}



.hero-footer {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff80;
}

.button-text {
    font-size: 1rem;
    font-weight: 550;
}

/* Mobile Hero Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .hero-title h1 {
        font-size: 2rem;
    }
    
    .hero-description p {
        font-size: 1rem;
        padding: 0 !important;
    }
    

    
    .hero-footer {
        padding: 0 !important;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Mobile hero button adjustments */
    .hero-section .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem !important;
    }
    
    .hero-section .btn:hover {
        box-shadow: 0 4px 8px 0 rgba(51, 51, 51, 0.6), 0 0 15px rgba(255, 255, 255, 0.15);
        transform: translateY(-1px);
    }
    
    .button-text {
        font-size: 0.9rem;
    }
    
    .hero-section .btn i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 1rem;
        border-radius: 20px;
    }
    
    .hero-title h1 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    

    
    /* Extra small mobile hero button adjustments */
    .hero-section .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem !important;
    }
    
    .hero-section .btn:hover {
        box-shadow: 0 3px 6px 0 rgba(51, 51, 51, 0.5), 0 0 12px rgba(255, 255, 255, 0.12);
        transform: translateY(-1px);
    }
    
    .button-text {
        font-size: 0.85rem;
    }
    
    .hero-section .btn i {
        font-size: 0.9rem;
    }
}



/* Features Section Styling */

.features-section {
    margin-top: 6rem !important;
    background-color: none !important;
}

.features-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 2rem;
}

.features-section p {
    font-size: 1.1rem;
    font-weight: 400;
    color: #666;
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: rgba(248, 249, 250, 0.8);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.25);
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 1rem;
    color: #666;
    text-align: center;
    margin-bottom: 0;
}

.feature-card i {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: rem;
}

.feature-card:hover i {
    color: #007bff;
    transition: all 1s ease;
}

.features-cta {
    text-align: center;
    margin-bottom: 6rem !important;
    margin-top: 6rem !important;
}

.features-cta a {
    display: inline-block;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(51, 51, 51, 0.9);
    transition: all 0.3s ease;
}

.features-cta a:hover {
    transform: translateY(-2px);
    box-shadow: 2px 8px 35px rgb(5, 178, 34);
    color: white;
    text-decoration: none;
    transition: all 0.7s ease;
}




/* Use Cases Section Styling */

.use-cases-section {
    margin-top: 6rem !important;
    margin-bottom: 6rem !important;
}

/* Full-width carousel that breaks out of container */
.use-cases-section .container {
    padding-left: 0;
    padding-right: 0;
    max-width: none;
    width: 100%;
}

.use-cases-header {
    padding-left: 3rem;
    padding-right: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.use-cases-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 2rem;
}

.use-cases-section > div > p {
    font-size: 1.1rem;
    font-weight: 400;
    color: #666;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.scroll-hint {
    text-align: center;
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 2rem;
    font-style: italic;
}

.scroll-hint i {
    font-size: 1.1rem;
    margin: 0 0.3rem;
    animation: scroll-pulse 2s infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.5; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(3px); }
}


/* Categories Carousel Container */
.categories-carousel-container {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    padding: 0;
}

.categories-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin; /* Firefox - show thin scrollbar */
    scrollbar-color: #ccc transparent; /* Firefox scrollbar colors */
    padding: 1rem 3rem;
    cursor: grab;
}

.categories-grid:active {
    cursor: grabbing;
}

/* Show scrollbar on webkit browsers for mouse users */
.categories-grid::-webkit-scrollbar {
    height: 8px;
}

.categories-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.categories-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.categories-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

.category-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 1.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex: 0 0 280px; /* Fixed width for carousel */
    min-height: 120px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.25);
}

.category-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-card h3 .emoji {
    font-size: 1.4rem;
    margin-right: 0.3rem;
}

.category-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Tablet Responsiveness for Sections */
@media (max-width: 992px) and (min-width: 769px) {
    .features-grid {
        max-width: 700px;
        gap: 1.5rem;
    }
}

/* Mobile Responsiveness for Sections */
@media (max-width: 768px) {
    .features-section h2,
    .use-cases-section h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .features-section p,
    .use-cases-section > div > p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1.5rem;
        margin-bottom: 2rem;
        max-width: none;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .use-cases-header {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .categories-carousel-container {
        padding: 0;
    }
    
    .categories-grid {
        gap: 1rem;
        padding: 1rem 2rem;
    }
    
    .category-card {
        padding: 1.2rem;
        flex: 0 0 260px;
    }
    
    .features-cta a {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .features-section h2,
    .use-cases-section h2 {
        font-size: 1.8rem;
    }
    
    .feature-card {
        padding: 1.2rem;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    .use-cases-header {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .categories-carousel-container {
        padding: 0;
    }
    
    .categories-grid {
        padding: 1rem 1rem;
    }
    
    .category-card {
        padding: 1rem;
        flex: 0 0 240px;
    }
    
    .category-card h3 {
        font-size: 1.1rem;
    }
}