
/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', Arial, sans-serif;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    z-index: 1000;
    flex-wrap: wrap;
}

.logo img {
    width: 150px;
    height: auto;
}

/* NAVIGATION */
nav {
    display: flex;
    flex-wrap: wrap;
}

nav a {
    color: #333;
    text-decoration: none;
    margin-left: 2rem;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #662b81;
    background-color: #f0e8f5;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #662b81;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* SECTIONS */
section {
    padding: 2rem;
    padding-top: 100px;
}

/* SLIDER */
#home {
    background: #f4f4f4;
    padding-top: 100px;
    height: auto;
}

.slider-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    height: 60vh;
    border-radius: 20px;
    margin-bottom: 3rem;
}

.slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slider img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    flex: 0 0 100%;
    border-radius: 20px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    color: #662b81;
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    opacity: 0.5;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.slider-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    opacity: 1;
}

.slider-btn.prev { left: 1rem; }
.slider-btn.next { right: 1rem; }

.slider-btn i {
    font-size: 2rem;
}

/* ICONS */
.icon-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    padding: 1.5rem;
    flex-wrap: wrap;
    overflow-x: hidden;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 3rem;
    color: #662b81;
    flex-shrink: 0;
    min-width: 100px;
}

.icon-item i {
    margin-bottom: 0.5rem;
}

.icon-item span {
    font-size: 1rem;
    color: #333;
}

/* PRODUCTS */
.products {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
}

.card {
    background: #f9f9f9;
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    background: #e0f7ff;
    border-color: #662b81;
    transform: scale(1.05);
}

.card img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 1000;
    color: rgb(21, 126, 168);
    margin-top: 0.5rem;
}

.product-sub {
    font-size: 0.9rem;
    color: rgb(21, 126, 168);
    margin-top: 0.2rem;
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
    color: black;
    margin-top: 0.5rem;
}

.price .per-month {
    font-size: 0.75rem;
    color: #666;
    margin-left: 0.25rem;
}

.description {
    font-size: 0.75rem;
    color: #666;
    margin: 0.5rem 0;
    padding-bottom: 15px;
}

.card-btn,
.card button {
    display: inline-block;
    background: #662b81;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 13px;
    margin-top: auto;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.card-btn:hover,
.card button:hover {
    transform: scale(1.05);
}

.card-btn:active,
.card button:active {
    transform: scale(0.95);
    background: #4c2b5e;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 1rem;
    background: #662b81;
    color: white;
}

/* ======================== RESPONSIVE DESIGN ======================== */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .slider-container {
        aspect-ratio: 16 / 9;
        height: auto; /* height determined by aspect ratio */
    }

    .slider img {
        height: 100%; /* fill container height */
        border-radius: 20px;
    }

    .products {
        grid-template-columns: repeat(3, 1fr);
    }

    .icon-row {
        gap: 2rem;
        padding: 1rem;
    }
}

/* Small tablets & large phones (600px - 767px) */
@media (max-width: 767px) {
    .slider-container {
        aspect-ratio: 16 / 9;
        height: auto;
        border-radius: 15px; /* Optional: slightly smaller corners */
    }

    .slider img {
        height: 100%;
    }

    .products {
        grid-template-columns: repeat(2, 1fr);
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    nav a {
        margin: 0.5rem 0;
    }

    .slider img {
        height: 40vh;
    }

    .slider-btn i {
        font-size: 1.5rem;
    }

    .slider-btn {
        padding: 0.5rem;
    }
}

/* Mobile Phones (<600px) */
@media (max-width: 600px) {
    .products {
        grid-template-columns: 1fr;
    }

    .icon-row {
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .icon-item {
        font-size: 1.6rem;
    }

    .icon-item span {
        font-size: 0.65rem;
    }

    .icon-row {
        gap: 1.5rem;
        padding: 1rem;
    }

    .icon-item {
        font-size: 2rem;
    }

    .product-name {
        font-size: 1.1rem;
    }

    .price {
        font-size: 1.1rem;
    }
}

/* Hamburger is hidden by default (desktop) */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #662b81;
    cursor: pointer;
}

/* Default nav for desktop */
#navMenu {
    display: flex;
    flex-direction: row;
}

/* MOBILE & TABLET NAV (below 768px) */
@media (max-width: 768px) {
        .slider-container {
        aspect-ratio: 16 / 9;
        height: auto; /* Don't force height */
    }

    .slider img {
        height: auto;           /* Let image size adjust */
        object-fit: contain;    /* Avoid cropping */
    }
    .hamburger {
        display: block;
    }

    #navMenu {
        display: none; /* Hide nav by default */
        flex-direction: column;
        width: 100%;
        background: white;
        position: absolute;
        top: 70px;
        left: 0;
        padding: 1rem 2rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    #navMenu.show {
        display: flex; /* Show nav when toggled */
    }

    nav a {
        margin: 0.5rem 0;
    }
}