/* Base Styles */
:root {
    --primary-color: #4a6bff;
    --secondary-color: #6c63ff;
    --accent-color: #ff6b6b;
    --dark-color: #2d3748;
    --light-color: #f8f9fa;
    --gray-color: #718096;
    --light-gray: #e2e8f0;
    --white: #ffffff;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--dark-color);
}

p {
    margin-bottom: 15px;
    color: var(--gray-color);
}

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

a:hover {
    color: var(--secondary-color);
}

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #3a56d9;
    border-color: #3a56d9;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 107, 255, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--dark-color);
    transition: var(--transition);
}

/* Mobile Menu Styles */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 100px 30px 30px;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        margin: 0;
        list-style: none;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        margin: 10px 0;
        width: 100%;
        padding: 0;
    }

    .nav-menu a {
        display: block;
        padding: 12px 0;
        width: 100%;
        color: var(--dark-color);
    }

    .nav-menu a:hover {
        color: var(--primary-color);
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        box-sizing: border-box;
    }

    .menu-toggle .bar {
        width: 25px;
        height: 3px;
        background: var(--dark-color);
        border-radius: 3px;
        transition: all 0.3s ease;
        margin: 3px 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Ensure the navbar has proper stacking context */
    .navbar {
        position: relative;
        z-index: 1000;
    }
    
    /* Ensure the menu is above other content */
    .nav-menu {
        z-index: 999;
    }
}

/* Hero Section */
.hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, #f6f8ff 0%, #eef1ff 100%);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.hero .lead {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--gray-color);
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.app-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.hero-image {
    flex: 1;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Features Section */
.features {
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid #eee;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: rgba(74, 107, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 30px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: rotateY(180deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* How It Works Section */
.how-it-works {
    background-color: #f9faff;
}

.steps {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
}

.step {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: var(--transition);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 1.3rem;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.step-number::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    transform: rotate(45deg);
    transition: 0.6s;
}

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

.step:hover .step-number {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
}

.step:hover .step-number::before {
    left: 100%;
}

/* For other circular elements */
.circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Size variations */
.circle.sm {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
}

.circle.md {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
}

.circle.lg {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
}

/* Hover effect for all circular elements */
.circle:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Pulse animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.circle.pulse {
    animation: pulse 2s infinite;
}

/* Glow effect */
.circle.glow {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
}

.circle.glow:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.8);
}

/* ... */

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.5rem;
}

.author-info h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.rating {
    color: #ffc107;
    font-size: 0.9rem;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.app-badges {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.app-badges span {
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.play-badge {
    height: 60px;
    transition: var(--transition);
}

.play-badge:hover {
    transform: scale(1.05);
}

/* Footer */
.footer {
    background-color: #1a202c;
    color: var(--light-gray);
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-about .logo {
    color: var(--white);
    margin-bottom: 20px;
    display: inline-flex;
}

.footer-about p {
    color: #a0aec0;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a0aec0;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-newsletter {
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  max-width: 420px;
  margin: 0 auto 32px auto;
  text-align: left;
  position: relative;
}

.footer-newsletter h4 {
  margin-bottom: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #24243e;
}

.footer-newsletter p {
  font-size: 1rem;
  color: #5a5a7a;
  margin-bottom: 20px;
}

#newsletter-form {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-bottom: 0;
}

#newsletter-form input[type="email"] {
  padding: 10px 16px;
  border: 1.5px solid #2d3748;
  border-radius: 24px 0 0 24px;
  outline: none;
  font-size: 1rem;
  transition: border-color 0.2s;
  width: 100%;
  min-width: 220px;
  max-width: 320px;
  background: #232738;
  color: #fff;
  flex: 1 1 220px;
  box-sizing: border-box;
}

#newsletter-form input[type="email"]::placeholder {
  color: #a0aec0;
  opacity: 1;
}

#newsletter-form input[type="email"]:focus {
  border-color: #4f46e5;
  background: #232738;
  color: #fff;
}

#newsletter-form .btn-primary {
  padding: 10px 20px;
  border: none;
  border-radius: 0 24px 24px 0;
  background: linear-gradient(90deg, #4f46e5 0%, #16b1ff 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: none;
}

#newsletter-form .btn-primary:hover, #newsletter-form .btn-primary:focus {
  background: linear-gradient(90deg, #4338ca 0%, #0ea5e9 100%);
}

#response-message {
  margin-top: 14px;
  font-size: 1rem;
  min-height: 22px;
  transition: color 0.2s;
  color: #16b1ff;
}


#newsletter-form input[type="email"]:focus {
  border-color: #4f46e5;
}

#newsletter-form .btn-primary {
  padding: 10px 20px;
  border: none;
  border-radius: 0 24px 24px 0;
  background: linear-gradient(90deg, #4f46e5 0%, #16b1ff 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(79,70,229,0.08);
}

#newsletter-form .btn-primary:hover, #newsletter-form .btn-primary:focus {
  background: linear-gradient(90deg, #4338ca 0%, #0ea5e9 100%);
}

#response-message {
  margin-top: 14px;
  font-size: 1rem;
  min-height: 22px;
  transition: color 0.2s;
}

@media (max-width: 600px) {
  .footer-newsletter {
    padding: 10px 0 0 0;
    max-width: 100vw;
    text-align: center;
  }
  #newsletter-form {
    flex-direction: column;
    gap: 6px;
    align-items: center;
    margin-bottom: 0;
  }
  #newsletter-form input[type="email"] {
    width: 100%;
    min-width: 0;
    max-width: 280px;
    border-radius: 10px;
    font-size: 0.98rem;
    box-sizing: border-box;
    padding: 6px 10px;
    margin-bottom: 0;
    border: 1.5px solid #374151;
    background: #232738;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-height: 36px;
    height: 36px;
  }
  #newsletter-form .btn-primary {
    width: 100%;
    max-width: 280px;
    border-radius: 10px;
    font-size: 1rem;
    padding: 6px 0;
    margin-top: 0;
    min-height: 36px;
    height: 36px;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  #response-message {
    font-size: 0.97rem;
    margin-top: 8px;
  }
}


.footer-bottom {
    border-top: 1px solid #2d3748;
    padding: 20px 0;
    text-align: center;
    color: #a0aec0;
    font-size: 0.9rem;
}

.footer-legal {
    margin-top: 10px;
}

.footer-legal a {
    color: #a0aec0;
    margin: 0 10px;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .app-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
        transition: var(--transition);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .steps {
        flex-direction: column;
        align-items: center;
    }
    
    .step {
        width: 100%;
        max-width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-about .logo {
        margin-left: auto;
        margin-right: auto;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .newsletter-form {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .app-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 5px;
        margin-bottom: 10px;
    }
    
    .newsletter-form .btn {
        border-radius: 5px;
        width: 100%;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

/* App Preview Grid */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1300px;
    margin: 60px auto 0;
    padding: 0 30px;
    justify-content: center;
    align-items: stretch;
}

.preview-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    aspect-ratio: 9/16;
    border: 1px solid rgba(0,0,0,0.05);
}

.preview-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(99,102,241,0.1) 0%, rgba(168,85,247,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.preview-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(99,102,241,0.2);
}

.preview-item:hover::before {
    opacity: 1;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 0;
}

.preview-item:hover img {
    transform: scale(1.05);
}

/* Add a subtle border to images */
.preview-item img {
    border: 1px solid rgba(0,0,0,0.05);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .preview-grid {
        grid-template-columns: repeat(4, 1fr);
        padding: 0 40px;
    }
}

@media (max-width: 1024px) {
    .preview-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
}

@media (max-width: 576px) {
    .preview-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        padding: 0 15px;
        gap: 20px;
    }
    
    .preview-item {
        aspect-ratio: 9/16; /* More vertical on mobile */
    }
}

/* App Preview Styles */
.app-preview {
    max-width: 100%;
    margin: 40px auto;
    text-align: center;
    padding: 0 20px;
}

.preview-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.preview-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .app-preview {
        margin: 30px auto;
    }
    
    .preview-image {
        border-radius: 8px;
    }
}
