* {
    margin: 20;
    padding: 20;
    box-sizing: border-box;
}

:root {
    --primary-color: #6a11cb;
    --primary-light: #8a68d6;
    --primary-dark: #4d0a9e;
    --secondary-color: #2575fc;
    --text-dark: #333333;
    --text-medium: #555555;
    --text-light: #777777;
    --background-light: #f8f5ff;
    --white: #ffffff;
    --shadow-light: rgba(106, 17, 203, 0.1);
    --shadow-medium: rgba(106, 17, 203, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--text-dark);
    background: var(--background-light);
    line-height: 1.6;
    min-height: 100vh;
}

/* Navbar Styling - Keep these as they are */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center; 
    gap: 6px;
    padding: 10px;
    width: 100%;
    max-width: 100vw;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 15px;
    height: 100%;
    align-items: center;
    margin: 0;
    padding: 0;
}

.navbar li {
    height: 45px;
    display: flex;
    align-items: center;
}

/* SIMPLIFIED Navbar links - Like .nav-btn */
.navbar a {
    background-color: #b19cd9;
    color: white;
    padding: 8px 10px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 0.9rem;
    flex-shrink: 0;
    text-align: center;
    min-width: max-content;
    transition: all 0.2s ease;
    text-decoration: none;  
    display: flex;         
    align-items: center;    
    justify-content: center;
    height: 36px;  
    box-sizing: border-box;
}

/* Home button styles */
.navbar a.home-btn {
    min-width: 50px; 
    background-color: #b19cd9;
}

.navbar a.home-btn i {
    font-size: 1.2rem;
}

.navbar a.home-btn.icon-only {
    min-width: 30px;
    width: 30px;
    padding: 12px;
}

.navbar a.home-btn.icon-only i {
    font-size: 1.5rem; 
}

/* Hover effect - no background change */
.navbar a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    /* No background color change */
}

/* Active page - only text changes to blue + underline, same background */
.navbar a.active {
    background-color: #b19cd9;
    color: blue;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.navbar a.home-btn.active {
    background-color: #9f7fda; 
    color: blue; 
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hero-section {
    text-align: center;
    padding: 20px 20px;
    background: linear-gradient(135deg, #f8f5ff 0%, #eef2ff 100%);
    margin-bottom: 10px;
    border-radius: 0 0 20px 20px;
}

.hero-logo {
    width: 120px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hero-section h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0px;
}

.hero-subtitle {
    color: #555;
    font-size: 1.0rem;
    max-width: 600px;
    margin: 0 auto 10px;
}

.app-badges {
    justify-content: center;
}

.store-badge {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.store-badge:hover {
    transform: translateY(-3px);
}

/* ===== LAYOUT CONTAINERS ===== */
.container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 0px 10px;
    text-align: center;
}

.btn-primary {
    background-color: #5ca287;
    color: var(--white); 
    padding: 10px 10px; 
    text-decoration: none; 
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--shadow-light);
    min-width: 220px;
}

.btn-primary:hover {
   transform: translateY(-3px);
   box-shadow: 0 8px 25px var(--shadow-medium);
}

/* ===== ENHANCED BUTTON STYLES ===== */
.download-btn { 
    background-color: #5ca287;
    color: var(--white); 
    padding: 10px 20px; 
    text-decoration: none; 
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    margin-right: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--shadow-light);
    min-width: 200px;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-medium);

}

/* ===== IMAGE ROTATOR ===== */
.features-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 10px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 30px var(--shadow-light);
}

.image-rotator-container {
    width: 100%;
    height: 150px;
    background: #f9f7ff;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto 10px;
}

.image-rotator {
    position: relative;
    width: 100%;
    height: 90%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide img {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border: 2px solid white;
}

.caption {
    position: absolute;
    bottom: 0;
    width: 90%;
    background: rgba(106, 17, 203, 0.5);
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 0.8rem;
}

/* INDICATORS - MUST BE OUTSIDE THE CONTAINER */
.indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0 10px;
    padding: 0;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0d6f5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: #c5b4e6;
}

.indicator.active {
    background: #813ace;
    transform: scale(1.2);
}

/* CONTROLS - MUST BE OUTSIDE THE CONTAINER */
.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 10px 0 20px;
    padding: 0;
}

.rotator-btn {
    padding: 10px 20px;
    background: #813ace;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 120px;
}

.rotator-btn:hover {
    background: #4d0a9e;
    transform: translateY(-2px);
}

/* ===== ADVERTISEMENT STYLES ===== */
.ad-container {
    margin: 30px auto;
    text-align: center;
    border: 1px solid #f0f0f0;
    padding: 25px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    box-shadow: 0 5px 20px var(--shadow-light);
}

.ad-placeholder {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
    color: var(--white);
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 8px;
}

.submit-btn {
    width: 200px;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-light);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-medium);
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a62e8 100%);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1000px) {
    .features-section {
        flex-direction: column;
        align-items: center;
    }
    
    .image-rotator-container {
        min-width: 100%;
        max-width: 700px;
        height: 300px;
        align-items: center;
    }
    
    .side-ad {
        width: 100%;
        max-width: 500px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: auto;
        padding: 10px;
        justify-content: center;
    }
    
    .navbar ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .navbar a {
        padding: 10px 18px;
        font-size: 0.95rem;
        min-width: 90px;
    }
    
    .image-rotator-container {
        height: 250px;
    }
    
    .slide img {
        max-width: 100%;
        max-height: 100%;
    }
    
    .caption {
        padding: 12px;
        font-size: 1rem;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .rotator-btn {
        width: 90%;
        max-width: 250px;
    }
    

}

@media (max-width: 480px) {
    .image-rotator-container {
        height: 250px;
    }
    
    .slide {
        padding: 20px;
    }
    
    .slide img {
        max-width: 95%;
    }
    
    .indicators {
        gap: 8px;
        margin: 15px 0;
    }
    
    .indicator {
        width: 12px;
        height: 12px;
    }
    
    .caption {
        padding: 10px;
        font-size: 0.9rem;
    }
}