:root {
    --primary-color: #4e54c8;
    --secondary-color: #8f94fb;
    --dark-color: #333;
    --light-color: #f5f9ff;
    --text-color: #555;
    --transition: all 0.3s ease-in-out;
}

/* Global Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

section {
    padding: 100px 0;
    position: relative;
}

.btn {
    padding: 12px 28px;  /* Increased horizontal padding */
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 8px;  /* Added default margin to all buttons */
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    box-shadow: 0 10px 20px rgba(78, 84, 200, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(78, 84, 200, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Enhanced button styles for better interactivity */
.download-btn {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    transition: all 0.3s ease;
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(78, 84, 200, 0.3);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(78, 84, 200, 0.5);
}

.download-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(78, 84, 200, 0.4);
}

.download-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* Header Styles */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 24px;
    color: var(--primary-color);
}

.nav-link {
    color: var(--dark-color);
    font-weight: 600;
    margin: 0 10px;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    position: relative;
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-image-container {
    position: relative;
}

.hero-image {
    max-width: 100%;
    animation: float 6s ease-in-out infinite;
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.wave-divider-dark {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.hero-buttons {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;  /* Using gap for more consistent spacing */
}

.hero-buttons .btn {
    min-width: 160px;  /* Ensure minimum width for better appearance */
}

/* App Section */
.app-section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--light-color);
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    margin-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.app-mockup-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-frame {
    position: relative;
    width: 300px;
    height: 600px;
    background-color: var(--dark-color);
    border-radius: 40px;
    overflow: hidden;
    padding: 12px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    transform: perspective(1000px) rotateY(15deg);
    transition: transform 1s ease;
}

.phone-frame:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.phone-screen {
    background-color: #fff;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
}

.mockup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-info {
    padding: 20px;
}

.app-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.feature-list {
    padding: 0;
    list-style: none;
}

.feature-list li {
    padding: 8px 0;
    font-size: 1.1rem;
}

.feature-list i {
    color: var(--primary-color);
    margin-right: 10px;
}

.app-buttons {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;  /* More space between app buttons */
    justify-content: flex-start; /* Align buttons to the left for proper alignment */
}

.app-buttons .btn {
    min-width: 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.app-buttons .btn::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    left: 0;
    top: 0;
    border-radius: 50px;
    opacity: 0;
    transition: all 0.3s ease;
}

.app-buttons .btn:hover::after {
    opacity: 1;
}

.app-buttons .btn:active::after {
    background: rgba(0, 0, 0, 0.1);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 0;
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-buttons {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;  /* Even more space for CTA buttons */
    align-items: center;
}

.cta-buttons .btn {
    min-width: 180px;
    margin: 5px;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    display: inline-block;
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    line-height: 40px;
    text-align: center;
    margin-right: 10px;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Media Queries */
@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .phone-frame {
        width: 250px;
        height: 500px;
    }
    section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: auto;
        padding: 120px 0 80px;
    }
    .app-mockup-container {
        margin: 40px 0;
    }
    .app-info {
        text-align: center;
    }
    .feature-list li {
        text-align: left;
    }
    .phone-frame {
        transform: perspective(1000px) rotateY(0deg);
        margin: 0 auto;
    }
    .app-buttons {
        justify-content: center; /* Center buttons on mobile */
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .btn {
        padding: 10px 20px;
        margin: 5px;
    }
    .section-title h2 {
        font-size: 2rem;
    }
    .app-info h3 {
        font-size: 1.8rem;
    }
    .phone-frame {
        width: 220px;
        height: 440px;
    }
    .cta-section h2 {
        font-size: 1.8rem;
    }
    .app-buttons, .hero-buttons, .cta-buttons {
        justify-content: center;
        gap: 15px;
    }
    
    .app-buttons .btn {
        min-width: 180px;
    }
}

/* Make sure buttons are clickable */
.btn, .download-btn {
    cursor: pointer !important;
    pointer-events: auto !important;
    user-select: none;
    position: relative;
    z-index: 10; /* Ensure buttons are above other elements */
}

/* Fix button hover effects that might interfere with clickability */
.btn::before, .btn::after {
    z-index: -1; /* Ensure pseudo-elements don't interfere with clicks */
}
