:root {
    --primary-color: #4527a0;          /* Deep Purple */
    --secondary-color: #7c4dff;         /* Lighter Purple */
    --accent-color: #b388ff;            /* Light Purple */
    --accent-color-bright: #e0c3ff;     /* Bright Purple */
    --text-color: #ffffff;              /* White text */
    --background-color: #4527a0;        /* Deep Purple background */
    --background-gradient: linear-gradient(135deg, #4527a0 0%, #673ab7 50%, #7c4dff 100%);
    --card-background: rgba(255, 255, 255, 0.08); /* Glassmorphism card background */
    --card-backdrop-blur: blur(12px);           /* Glassmorphism blur */
    --glow-shadow: 0 0 20px rgba(179, 136, 255, 0.15); /* Subtle glow effect */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background-gradient);
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

header {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--card-backdrop-blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container {
    max-width: 400px;
    margin: 0 auto;
    height: 113px; /* Adjusted height for better alignment */
}

.logo {
    margin-top: 10px; /* Adjusted to 10px for better alignment */
    width: 100%;
    height: auto;
}

.hero {
    padding: 4rem 4rem; /* Increased horizontal padding */
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.1) 0%, rgba(69, 39, 160, 0.1) 100%);
    color: white;
    min-height: 500px; /* Reduced from 600px */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto; /* Fix typo: was "margin: 50 auto" */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem; /* Increased gap between text and images */
    position: relative;
    z-index: 1;
    padding: 0 2rem;
}

.hero-text {
    flex: 0 0 45%; /* Increased from 40% */
    text-align: left;
    max-width: 600px; /* Increased from 500px */
}

.hero-images {
    flex: 0 0 50%;
    position: relative;
    height: 400px;
    min-width: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img {
    height: auto; /* Changed from 75% to auto */
    max-height: 75%; /* Added max-height */
    width: auto;
    max-width: 280px; /* Added max-width to prevent stretching */
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(69, 39, 160, 0.2);
    position: absolute;
    cursor: default; /* Changed from pointer since there's no interaction */
    object-fit: contain; /* Added to maintain aspect ratio */
}

/* Add specific styles for each image position */
.hero-img-back {
    max-height: 90%; /* Changed from height to max-height */
    right: 16%;
    transform: translateX(50%);
    z-index: 1;
}

.hero-img-middle {
    max-height: 100%; /* Changed from height to max-height */
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.hero-img-front {
    max-height: 90%; /* Changed from height to max-height */
    left: 16%;
    transform: translateX(-50%);
    z-index: 1;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(69, 39, 160, 0.5);
}

.cta-buttons {
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    margin: 0.5rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--accent-color-bright);
    color: var(--accent-color-bright);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(179, 136, 255, 0.4);
    background: rgba(224, 195, 255, 0.1);
}

/* Remove these styles since we're not using them anymore */
.btn-primary {
    background: var(--accent-color-bright);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(179, 136, 255, 0.3);
    border: none;
}

.btn-secondary {
    border: 2px solid var(--accent-color-bright);
    color: var(--accent-color-bright);
}

.features {
    padding: 2rem 2rem; /* Reduced from 4rem to 2rem */
    text-align: center;
    position: relative;
    background: rgba(238, 238, 238, 0.95); /* Almost white background */
}

.features h2 {
    color: var(--primary-color); /* Dark purple for better contrast */
    text-shadow: none; /* Remove text shadow for cleaner look */
}

/* Remove the features::before background overlay */
.features::before {
    display: none;
}

.preview-features {
    padding: 2rem 2rem; /* Reduced from 4rem to 2rem */
    text-align: center;
    background: rgba(238, 238, 238, 0.95); /* Almost white background */
    backdrop-filter: var(--card-backdrop-blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-features h2 {
    color: var(--primary-color); /* Dark purple for better contrast */
    text-shadow: none; /* Remove text shadow for cleaner look */
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 1.5rem auto; /* Reduced from 2rem to 1.5rem */
    padding: 0 2rem;
}

.preview-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(69, 39, 160, 0.1);
    border-radius: 15px; /* Added this line for rounded corners */
    box-shadow: 0 4px 15px rgba(69, 39, 160, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.preview-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(69, 39, 160, 0.2);
}

.preview-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--primary-color);
}

.preview-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.preview-item p {
    color: rgba(69, 39, 160, 0.8);
    font-size: 0.9rem;
}

.leaderboard {
    padding: 4rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--card-backdrop-blur);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard ol {
    list-style-type: decimal;
    margin: 2rem auto;
    max-width: 800px;
    text-align: left;
    padding-left: 2rem;
}

.leaderboard li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
    color: var(--text-color);
}

footer {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: var(--card-backdrop-blur);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: white;
}

h2 {
    color: var(--accent-color-bright);
    margin-bottom: 1.5rem; /* Reduced from 2rem to 1.5rem */
    text-shadow: 0 0 20px rgba(179, 136, 255, 0.3);
}

.feature-carousel {
    position: relative;
    max-width: 1200px;
    margin: 1.5rem auto; /* Reduced from 2rem to 1.5rem */
    padding: 2rem 0;
}

.carousel-container {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98); /* Slightly whiter than section */
    border: 1px solid rgba(69, 39, 160, 0.1);
    box-shadow: 0 4px 20px rgba(69, 39, 160, 0.1);
    padding: 1.5rem; /* Reduced from 2rem to 1.5rem */
    border-radius: 20px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 1rem;
}

.carousel-slide {
    flex: 0 0 calc(25% - 0.75rem); /* Show 4 images on desktop */
    max-width: calc(25% - 0.75rem);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(69, 39, 160, 0.1);
    transition: transform 0.3s ease;
}

.carousel-slide:hover {
    transform: scale(1.05);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(69, 39, 160, 0.2);
    transition: all 0.3s ease;
    z-index: 2;
}

.carousel-btn:hover {
    background: var(--secondary-color);
    color: white;
}

.carousel-btn.prev {
    left: -20px;
}

.carousel-btn.next {
    right: -20px;
}

.contact {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #f8f9fa;
}

.contact h2 {
    margin-bottom: 2rem;
    color: #333;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    padding: 2rem;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-info p {
    margin-bottom: 1.5rem;
    color: #666;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-email:hover {
    color: #0056b3;
}

@media (max-width: 1200px) {
    .hero {
        padding: 3rem 2rem;
    }

    .hero-img {
        width: 250px;
    }
    
    .hero-img-front {
        right: 70px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 2rem 1rem;
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        flex-direction: column;
        gap: 2rem;
        padding: 0;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-text {
        flex: 0 0 100%;
        text-align: center;
        padding: 0 1rem;
        margin-bottom: 1.5rem;
        position: relative;
        z-index: 2;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-images {
        display: none;
    }

    .preview-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
        justify-items: center;
        width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
    }

    .preview-item {
        padding: 1.2rem;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .preview-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .preview-item h4 {
        font-size: 0.95rem;
        margin-bottom: 0;
    }

    .preview-item p {
        display: none;
    }

    .feature-carousel {
        padding: 1rem 0;
        margin: 1rem auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .carousel-container {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .carousel-slide {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .carousel-btn.prev {
        left: -10px;
    }

    .carousel-btn.next {
        right: -10px;
    }

    .contact-container {
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .contact-info {
        padding: 1.5rem;
    }

    .contact-email {
        font-size: 0.9rem;
        word-break: break-all;
        flex-wrap: wrap;
        justify-content: center;
    }

    .contact-email i {
        margin-bottom: 0.5rem;
    }
}