/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Base body styling */
body {
    font-size: 1.1rem;
    max-width: 100vw;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #1a202c 0%, #2d3748 100%);
}

/* Header and Navigation */
header {
    background: #1f2937;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

nav ul li a {
    font-size: 1.25rem;
    font-weight: 500;
    color: #e5e7eb;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

/* Main content */
main {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: #f0f3f6;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #93c5fd;
    border-left: 4px solid #3b82f6;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

/* Sections (excluding carousel) */
section:not(#Demo) {
    padding: 2rem;
    scroll-margin-top: 80px;
    background: #2d3748;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

section ul li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

section ul li strong {
    color: #60a5fa;
    font-weight: 600;
}

/* Carousel */
#Demo {
    padding-top: 3rem;
    scroll-margin-top: 80px;
    background: none;
    margin-bottom: 2rem;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    display: none;
    transition: opacity 0.5s ease-in-out;
}

.carousel-item.active {
    display: block;
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 0.75rem;
}

.carousel-control {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #3b82f6;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
}

.carousel-control:hover {
    background: #2563eb;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 10px;
}

.carousel-control.next {
    right: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    background: #6b7280;
    border-radius: 50%;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dots .dot.active {

    transform: scale(1.2);
}
.dot {
    transition: background-color 0.3s;
}

/* New badge */
.new {
    background: linear-gradient(120deg, #f97316 0%, #ef4444 50%, #f97316 100%);
    background-size: 200% auto;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    animation: shimmer 2s linear infinite;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Download section */
#Tai a {
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

#Tai a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#Tai p {
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    nav ul li a {
        font-size: 1rem;
        padding: 0.5rem;
    }

    .carousel-inner {
        height: 300px;
    }

    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .carousel-control.prev {
        left: 5px;
    }

    .carousel-control.next {
        right: 5px;
    }

    section:not(#Demo) {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .carousel-inner {
        height: 200px;
    }

    .carousel-control {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .carousel-control.prev {
        left: 5px;
    }

    .carousel-control.next {
        right: 5px;
    }

    .carousel-dots .dot {
        width: 10px;
        height: 10px;
    }
}

/* Shimmer animation */
@keyframes shimmer {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: -200% center;
    }
}