:root {
    --primary-color: #41b6e6;
    --secondary-color: #4ECDC4;
    --dark-color: #45B7D1;
    --light-color: #72bdda;
    --text-color: #2C3E50;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--light-color);
}

/* Navbar Styles */
.navbar {
    background-color: transparent;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem; /* Add some padding */
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0; /* Remove default padding */
}

.navbar-brand img {
    transition: all 0.3s ease;
    max-height: 130px; /* Set a maximum height */
    width: auto; /* Maintain aspect ratio */
}

.navbar.scrolled {
    background-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar.scrolled .navbar-brand img {
    max-height: 60px; /* Smaller height when scrolled */
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .navbar-brand img {
        max-height: 50px; /* Slightly smaller on medium screens */
    }
    
    .navbar.scrolled .navbar-brand img {
        max-height: 35px;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        max-height: 40px; /* Even smaller on mobile screens */
    }
    
    .navbar.scrolled .navbar-brand img {
        max-height: 30px;
    }
}

.navbar-light .navbar-nav .nav-link {
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: black;
}

.navbar.scrolled .navbar-light .navbar-nav .nav-link {
    color: var(--text-color);
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0; /* Adjust this value as needed */
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white; /* This ensures all text in hero-content is white by default */
}

/* Add a semi-transparent overlay to improve text readability if needed */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Adjust opacity as needed */
    z-index: 0;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* This adds a shadow for better readability */
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5); /* This adds a shadow for better readability */
}

.download-btn {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 30px;
    transition: all 0.3s ease;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.download-pointer {
    position: absolute;
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 25%;
}

@keyframes pointUpDown {
    from { transform: translateX(-50%) translateY(0); }
    to { transform: translateX(-50%) translateY(-10px); }
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

.phone-image {
    position: absolute;
    right: -160px;
    bottom: -530px;
    max-width: 15%;
    z-index: 1;
}

.arrow-image {
    width: 100%;
    height: auto;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.3rem;
    }
}

@media (max-width: 991px) {
    .hero-image {
        margin-top: 2rem;
    }

    .phone-image {
        position: static;
        max-width: 100%;
        right: auto;
        bottom: auto;
    }

    .hero-content {
        text-align: center;
    }

    .download-btn {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }

    .feature-card, .step-card, .card {
        margin-bottom: 2rem;
    }

    .screenshot-item {
        flex: 0 0 240px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }

    .download-btn {
        font-size: 0.9rem;
        padding: 0.5rem 1.5rem;
    }

    .screenshot-item {
        flex: 0 0 200px;
    }

    #contact form {
        padding: 1rem;
    }
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Make the navbar more responsive */
@media (max-width: 991px) {
    .navbar-nav {
        background-color: var(--light-color);
        padding: 1rem;
        border-radius: 10px;
        box-shadow: 0 2px 4px rgba(0,0,0,.1);
    }

    .navbar-light .navbar-toggler {
        border-color: transparent;
    }

    .navbar-light .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
}

/* Adjust footer for small screens */
@media (max-width: 768px) {
    footer .col-md-4 {
        margin-bottom: 2rem;
    }
}

/* Ensure proper spacing for all sections */
section {
    padding: 4rem 0;
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
}

@media (max-width: 576px) {
    section {
        padding: 2rem 0;
    }
}

/* Features Section */
#features {
    background-color: #fff;
}

.feature-card {
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.feature-card i {
    color: var(--primary-color);
}

.feature-card h3 {
    margin-top: 1rem;
    font-weight: 600;
}

/* How It Works Section */
.step-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.step-number {
    position: absolute;
    top: -20px;
    left: -20px;
    background-color: var(--primary-color);
    color: #fff;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
}

/* Screenshots Section */
#screenshots {
    background-color: #f8f9fa;
    padding: 100px 0;
    overflow: hidden;
}

.screenshot-carousel {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.screenshot-slider {
    display: flex;
    animation: scroll 60s linear infinite;
}

.screenshot-item {
    flex: 0 0 280px;
    margin: 0 10px;
    padding: 10px;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.screenshot-item p {
    margin-top: 15px;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-300px * 10)); /* Adjust based on item width and count */
    }
}

/* Pause animation on hover */
.screenshot-carousel:hover .screenshot-slider {
    animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .screenshot-item {
        flex: 0 0 240px;
    }
    
    @keyframes scroll {
        100% {
            transform: translateX(calc(-260px * 10)); /* Adjust based on new item width */
        }
    }
}

@media (max-width: 576px) {
    .screenshot-item {
        flex: 0 0 200px;
    }
    
    @keyframes scroll {
        100% {
            transform: translateX(calc(-220px * 10)); /* Adjust based on new item width */
        }
    }
}

/* About Section */
#about {
    background-color: #fff;
}

#about img {
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Register Section */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.card i {
    color: var(--primary-color);
}

.card .btn {
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Contact Section */
#contact form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#contact .form-control {
    border-radius: 30px;
    padding: 0.75rem 1.5rem;
}

#contact textarea.form-control {
    border-radius: 20px;
}

#contact .btn {
    border-radius: 30px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Footer */
footer {
    background-color: var(--dark-color);
}

footer h5 {
    color: var(--light-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

footer a {
    color: var(--light-color);
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* General Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

h2 {
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.embed-responsive::before {
    content: "";
    display: block;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.embed-responsive .embed-responsive-item,
.embed-responsive iframe {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.card .btn-primary:hover {
    color: black;
    background-color: var(--light-color);
    border-color: var(--light-color);
}

/* For the "Send Message" button */
#contact .btn-primary:hover {
    color: black;
    background-color: var(--light-color);
    border-color: var(--light-color);
}

/* For the navbar links */
.navbar-light .navbar-nav .nav-link:hover {
    color: black;
}

/* For the navbar links when scrolled */
.navbar.scrolled .navbar-light .navbar-nav .nav-link:hover {
    color: black;
}

.hero-title, .hero-subtitle {
    text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.7);
}