*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #f9fafb;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

h1,
h2,
h3 {
    line-height: 1.2;
}

:root {
    --primary: #6366f1;
    /* indigo-500 */
    --primary-dark: #4f46e5;
    /* indigo-600 */
    --secondary: #06b6d4;
    /* cyan-500 */
    --bg-dark: #111827;
    /* gray-900 */
    --text-light: #f3f4f6;
    /* gray-100 */
}

/* --- Reusable --- */
.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}
.container.hero img{
    border-radius: 12px;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* --- Header --- */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--text-light);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.nav__logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav__menu {
    display: flex;
    gap: 1.5rem;
}

.nav__link {
    position: relative;
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.25rem;
    width: 0;
    height: 2px;
    background: var(--text-light);
    transition: width 0.3s ease;
}

.nav__link:hover::after {
    width: 100%;
}

.section-title {
    margin-bottom: 1rem;
    text-align: center;
}

/* Carousel */
.carousel-container {
    position: relative;
    margin-top: 2rem;
}

.carousel-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 0.5rem;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 215px;
    scroll-snap-align: start;
    background: var(--bg-dark);
    padding: 1rem;
    border-radius: 0.75rem;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    cursor: pointer;
    

    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.border:hover {
    border: 3px solid #67fa8c;
    animation: 1s bgColor linear infinite;
}

.carousel-item img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    
}
.rotate{
    transition-delay: 1s;
}
/* image rotate*/
.rotate:hover {
    animation: spin 1.5s linear infinite;
    transform-origin: center center; 
  }
.lang {
    display: block;
    margin-top: 0.5rem;
    font-weight: 600;
    color: #fff;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

.carousel-btn:hover {
    background: #fff;
}

.carousel-prev {
    left: -18px;
}

.carousel-next {
    right: -18px;
}

/* Mobile nav */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: var(--text-light);
}

/* --- Hero --- */
.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: center;
    gap: 2rem;
    padding: 4rem 0 6rem;
}

.hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.hero__subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* --- Features --- */
.features {
    padding: 4rem 0;
}

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

.feature {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.feature__icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* --- Testimonials --- */
.testimonials {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0;
}

.testimonial {
    text-align: center;
    max-width: 320px;
    margin: 0 auto;
}

.testimonial img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.testimonial p {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.testimonial h3 {
    font-size: 1rem;
    font-weight: 600;
}

/* --- Pricing --- */
.pricing {
    padding: 4rem 0;
}

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

.plan {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan:hover {
    border: 1px solid var(--primary);
    cursor: pointer;
}

.plan:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.plan__price {
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem 0;
}

.plan ul {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
}

.plan li {
    margin-bottom: 0.5rem;
}

/* --- CTA --- */
.cta {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: var(--text-light);
    padding: 4rem 0;
    text-align: center;
}

.cta h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

/* --- Footer --- */
footer {
    background: #1f2937;
    color: #9ca3af;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
}



/* --- Animations --- */
[data-animate] {
    opacity: 0;
    animation: fadeUp 0.8s forwards;
}

[data-animate="1"] {
    animation-delay: 0.1s;
}

[data-animate="2"] {
    animation-delay: 0.3s;
}

[data-animate="3"] {
    animation-delay: 0.5s;
}
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes spin {
    0% {
         transform: rotateY(0deg);
         }
    100% {
         transform: rotateY(360deg); 
        }
  }
  @keyframes bgColor {
    0%{
        border: 5px solid var(--secondary)
    }
    100%{
        border: 5px solid var(--bg-dark);
    }
  }
/* --- responsive --- */
@media (max-width: 768px) {
    .nav__menu {
        position: absolute;
        top: 70px;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
        border-radius: 0.5rem;
        display: none;
    }

    .nav__menu.show {
        display: flex;
        width: 100%;
        z-index: 2;
        text-align: center;
    }

    .nav__link {
        color: var(--bg-dark);
        font-weight: 600;
    }

    .hamburger {
        display: flex;
    }

    .carousel-item {
        flex: 0 0 100%;
    }
    .carousel-track {
    animation: none;
  }
    .carousel-btn {
        display: none;
    }

}
