/* Base Styles */
:root {
    --primary-color: #9370DB; /* Medium Purple */
    --secondary-color: #B19CD9; /* Light Purple */
    --accent-color: #6A5ACD; /* Slate Blue */
    --dark-color: #2D1B4D; /* Deep Purple */
    --light-color: #F4F0FF; /* Light purple background */
    --text-color: #ffffff;
    --body-font: 'Open Sans', sans-serif;
    --heading-font: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(147, 112, 219, 0.25);
    --font-size-base: 16px;
    --gradient-bg: linear-gradient(135deg, #2D1B4D 0%, #4A2B7E 50%, #6A5ACD 100%);
}

.high-contrast {
    --primary-color: #FFFFFF;
    --secondary-color: #FFFF00;
    --accent-color: #FF6B6B;
    --dark-color: #000000;
    --light-color: #000000;
    --text-color: #FFFFFF;
    --box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

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

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    background: var(--gradient-bg);
    background-attachment: fixed;
    overflow-x: hidden;
}

header {
    background-color: #2D1B4D; /* Deeper purple matching your screenshot */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.high-contrast body {
    background-color: var(--dark-color);
    color: var(--primary-color);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
    color: white;
    letter-spacing: 1px;
}

h2 span {
    display: inline-block;
    margin-right: 0.5rem;
}

h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 1.2rem auto 0;
    border-radius: 2px;
}

h2:before {
    content: attr(data-subtitle);
    display: block;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    opacity: 0.9;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: white;
    position: relative;
}

p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

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

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

.high-contrast a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.high-contrast a:hover {
    color: var(--accent-color);
}

section {
    padding: 100px 0;
    position: relative;
    background: linear-gradient(135deg, rgba(45, 27, 77, 0.9) 0%, rgba(74, 43, 126, 0.9) 50%, rgba(106, 90, 205, 0.9) 100%);
    background-attachment: fixed;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 16px 34px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 25px rgba(106, 90, 205, 0.4);
    overflow: hidden;
    letter-spacing: 0.5px;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    z-index: -2;
    border-radius: 52px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cta-button:hover {
    color: white;
    transform: translateY(-7px) scale(1.05);
    box-shadow: 0 20px 35px rgba(106, 90, 205, 0.5);
}

.cta-button:hover::after {
    opacity: 1;
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button:active {
    transform: translateY(-2px) scale(0.98);
}

.high-contrast .cta-button {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    border: 2px solid var(--primary-color);
}

/* Animation for pulse button */
.pulse-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(147, 112, 219, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(147, 112, 219, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(147, 112, 219, 0);
    }
}

/* Accessibility Controls */
.accessibility-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
    background: rgba(45, 27, 77, 0.8);
    padding: 8px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.high-contrast .accessibility-controls {
    background: rgba(0, 0, 0, 0.8);
}

.accessibility-controls button {
    background: var(--dark-color);
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.accessibility-controls button:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
}

.high-contrast .accessibility-controls button {
    background: var(--dark-color);
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
}

.high-contrast .accessibility-controls button:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
}

/* Header and Navigation */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 70px;
    width: auto;
    margin-right: 15px;
}

.brand-name {
    font-family: var(--heading-font);
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo a::before {
    content: '';
    position: absolute;
    width: auto;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    top: 50%;
    left: -10px;
    transform: translateY(-50%);
    filter: blur(8px);
    z-index: -1;
    animation: pulse 3s ease-in-out infinite;
}

.high-contrast .logo a {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    color: white;
    letter-spacing: 0.5px;
    margin: 0 15px;
    font-size: 1.1rem;
}

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

.nav-links a:not(.cta-button):hover::after {
    width: 100%;
}

.nav-links .cta-button {
    background: rgba(147, 112, 219, 0.7);
    border-radius: 30px;
    padding: 12px 25px;
    color: white;
    transition: all 0.3s ease;
    box-shadow: none;
}

.nav-links .cta-button:hover {
    background: rgba(147, 112, 219, 0.9);
    transform: translateY(-3px);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px 0;
    border-radius: 3px;
    transition: var(--transition);
}

.high-contrast .menu-toggle span {
    background-color: var(--secondary-color);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #4A2B7E 0%, #6A5ACD 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5z' fill='%23B19CD9' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.7;
    z-index: 0;
}

.high-contrast .hero {
    background-image: none;
    background-color: var(--dark-color);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align items to the left */
}

.hero-content h1 {
    font-size: 4rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.5rem;
    font-weight: 700;
    -webkit-text-fill-color: white; /* Override previous gradient */
    background: none; /* Remove previous gradient */
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}
.hero-content .cta-button, 
.hero-content a.cta-button {
    align-self: flex-start; /* Align button to the left */
    margin-top: 1.5rem;
    display: inline-block;
    padding: 14px 30px;
    background: rgba(147, 112, 219, 0.7);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-content .cta-button:hover,
.hero-content a.cta-button:hover {
    background: rgba(147, 112, 219, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
/* Hero scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.hero-scroll a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--light-color);
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.hero-scroll a:hover {
    opacity: 1;
    transform: translateY(5px);
}

.hero-scroll a i {
    margin-top: 10px;
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.placeholder-image {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, rgba(74, 43, 126, 0.5) 0%, rgba(106, 90, 205, 0.5) 100%);
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.placeholder-image::after {
    content: '🌿';
    font-size: 8rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.8;
    animation: pulse 3s infinite ease-in-out;
    text-shadow: 0 0 20px rgba(177, 156, 217, 0.7);
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.8;
    filter: blur(8px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.floating-element-1 {
    width: 120px;
    height: 120px;
    background-color: rgba(147, 112, 219, 0.7);
    top: 15%;
    left: 15%;
    animation: float 12s infinite ease-in-out;
}

.floating-element-2 {
    width: 90px;
    height: 90px;
    background-color: rgba(106, 90, 205, 0.7);
    bottom: 20%;
    right: 15%;
    animation: float 10s infinite ease-in-out reverse;
}

.floating-element-3 {
    width: 70px;
    height: 70px;
    background-color: rgba(177, 156, 217, 0.7);
    bottom: 30%;
    left: 10%;
    animation: float 14s infinite ease-in-out;
}

.floating-element-4 {
    width: 50px;
    height: 50px;
    background-color: rgba(45, 27, 77, 0.7);
    top: 25%;
    right: 20%;
    animation: float 8s infinite ease-in-out reverse;
}

@keyframes float {
    0% { transform: translateY(0) translateX(0) rotate(0deg); }
    25% { transform: translateY(-20px) translateX(20px) rotate(5deg); }
    50% { transform: translateY(0) translateX(0) rotate(0deg); }
    75% { transform: translateY(20px) translateX(-20px) rotate(-5deg); }
    100% { transform: translateY(0) translateX(0) rotate(0deg); }
}

/* Problem Statement Section */
.problem {
    background-color: var(--dark-color);
    padding-top: 100px;
    padding-bottom: 100px;
    position: relative;
}

.problem::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--dark-color);
    clip-path: polygon(0 0, 100% 0, 50% 100%, 0 0);
    z-index: 2;
}

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

.problem-card {
    padding: 35px;
    background: rgba(74, 43, 126, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 3px solid transparent;
}

.high-contrast .problem-card {
    background-color: var(--dark-color);
    border: 1px solid var(--secondary-color);
}

.problem-card:hover {
    transform: translateY(-15px);
    border-left: 3px solid var(--secondary-color);
}

.problem-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.high-contrast .problem-card i {
    color: var(--secondary-color);
}

/* Features Section */
.features {
    background-color: var(--dark-color);
    position: relative;
    padding-top: 150px;
    padding-bottom: 150px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: rgba(74, 43, 126, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: all 0.5s ease;
    border-bottom: 4px solid transparent;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(147, 112, 219, 0.2) 0%, rgba(106, 90, 205, 0.2) 100%);
    transform: translateY(100%);
    transition: transform 0.5s ease;
    z-index: -1;
}

.high-contrast .feature-card {
    background-color: var(--dark-color);
    border: 1px solid var(--secondary-color);
}

.feature-card:hover {
    transform: translateY(-15px);
    border-bottom: 4px solid var(--secondary-color);
}

.feature-card:hover::before {
    transform: translateY(0);
}

.feature-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(147, 112, 219, 0.3) 0%, rgba(106, 90, 205, 0.3) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px;
    position: relative;
    transition: all 0.5s ease;
    animation: morphBorder 8s linear infinite;
}

.feature-icon::before {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: rgba(45, 27, 77, 0.8);
    z-index: -1;
    animation: morphBorder 8s linear infinite reverse;
}

@keyframes morphBorder {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

.high-contrast .feature-icon {
    background-color: var(--dark-color);
    border: 1px solid var(--secondary-color);
}

.feature-icon i {
    font-size: 2.2rem;
    color: var(--secondary-color);
    transition: transform 0.5s ease;
}

.feature-card:hover .feature-icon i {
    transform: scale(1.2) rotate(10deg);
}

/* How It Works Section */
.how-it-works {
    background-color: var(--dark-color);
    padding: 120px 0;
    position: relative;
}

.steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 70px;
    left: 35px;
    height: calc(100% - 50px);
    width: 2px;
    background-color: var(--secondary-color);
}

.high-contrast .step:not(:last-child)::after {
    background-color: var(--secondary-color);
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 30px;
    z-index: 1;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.step-number::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.step-content {
    padding-top: 10px;
}

/* App Showcase Section */
.app-showcase {
    background-color: #4e2a84; /* Purple background that matches the screenshot */
    color: white;
    padding: 80px 0;
}

.app-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.app-content {
    padding-right: 30px;
}

.app-content h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: white;
}

.app-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.app-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.app-feature {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-feature i {
    font-size: 1.8rem;
    color: #a3c4f3; /* Light blue accent color */
}

.app-feature h4 {
    font-size: 1.3rem;
    margin: 0;
    color: white;
}

.app-feature p {
    margin: 0;
    font-size: 1rem;
}

/* App Screenshots Styling */
.app-screens {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 600px;
}

.phone {
    position: absolute;
    width: 280px;
    border-radius: 36px;
    background-color: #000;
    padding: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.phone-inner {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background-color: #fff;
    height: 560px;
}

.phone-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
}

/* Phone positioning */
.phone-1 {
    transform: translateX(-50%) rotate(-5deg);
    z-index: 3;
}

.phone-2 {
    z-index: 1;
}

.phone-3 {
    transform: translateX(50%) rotate(5deg);
    z-index: 2;
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .app-grid {
        grid-template-columns: 1fr;
    }
    
    .app-content {
        padding-right: 0;
        margin-bottom: 60px;
    }
    
    .app-screens {
        height: 500px;
    }
    
    .phone {
        width: 220px;
    }
    
    .phone-inner {
        height: 440px;
    }
}

@media (max-width: 768px) {
    .app-screens {
        height: 400px;
    }
    
    .phone {
        width: 180px;
    }
    
    .phone-inner {
        height: 360px;
    }
    
    .phone-1 {
        transform: translateX(-40%) rotate(-5deg);
    }
    
    .phone-3 {
        transform: translateX(40%) rotate(5deg);
    }
}

@media (max-width: 576px) {
    .app-screens {
        height: 340px;
    }
    
    .phone {
        width: 140px;
    }
    
    .phone-inner {
        height: 280px;
    }
}
/* Community Section */
.community {
    background-color: var(--dark-color);
    position: relative;
    padding: 120px 0;
}

.community::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5z' fill='%239370DB' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.2;
    z-index: 0;
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.testimonial {
    background: rgba(74, 43, 126, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    padding: 40px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 120px;
    font-family: Georgia, serif;
    color: rgba(147, 112, 219, 0.1);
    line-height: 1;
}

.high-contrast .testimonial {
    background-color: var(--dark-color);
    border: 1px solid var(--secondary-color);
}

.testimonial:hover {
    transform: translateY(-15px) scale(1.03);
    border-left: 3px solid var(--secondary-color);
}

.testimonial-content {
    margin-bottom: 25px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    margin-right: 15px;
    position: relative;
    overflow: hidden;
}

.author-image::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: rgba(74, 43, 126, 0.8);
    border-radius: 50%;
}

.author-name {
    font-weight: 600;
    color: var(--secondary-color);
}

/* Community counters */
.community-counter {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 60px auto 0;
    gap: 20px;
}

.counter-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    background: rgba(74, 43, 126, 0.4);
    padding: 30px;
    border-radius: var(--border-radius);
}

.counter {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.counter-label {
    font-size: 1.1rem;
    color: white;
}

/* Contact Section */
.contact {
    background-color: var(--dark-color);
    padding: 120px 0;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 15% 50%, rgba(147, 112, 219, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 85% 30%, rgba(106, 90, 205, 0.1) 0%, transparent 40%);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(74, 43, 126, 0.4);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--secondary-color);
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(147, 112, 219, 0.3);
    background: rgba(45, 27, 77, 0.5);
    color: white;
    border-radius: var(--border-radius);
    font-family: var(--body-font);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.high-contrast input[type="text"],
.high-contrast input[type="email"],
.high-contrast textarea {
    background-color: var(--dark-color);
    color: var(--primary-color);
    border: 1px solid var(--secondary-color);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(147, 112, 219, 0.3);
    background: rgba(45, 27, 77, 0.8);
}

.high-contrast input[type="text"]:focus,
.high-contrast input[type="email"]:focus,
.high-contrast textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 255, 0, 0.2);
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--light-color);
}

.checkbox input {
    margin-right: 10px;
    accent-color: var(--secondary-color);
    width: 18px;
    height: 18px;
}

/* Footer */
/* Footer Styles */
footer {
    background-color: #2D1B4D;
    color: white;
    padding: 60px 0 20px;
    position: relative;
}

/* Main footer layout */
.footer-main {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

/* Left side branding */
.footer-branding {
    max-width: 350px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-logo-image {
    height: 80px;
    width: auto;
}

.footer-brand-name {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-left: 15px;
}

.footer-tagline {
    font-size: 1.2rem;
    color: var(--light-color);
    line-height: 1.4;
}

/* Right side links container */
.footer-links-container {
    display: flex;
    gap: 80px;
}

/* Section headers */
.footer-nav-section h4,
.footer-social-section h4 {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-size: 1rem;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 8px;
}

.footer-nav-section h4::after,
.footer-social-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
}

/* Navigation links */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    color: white;
    transition: all 0.3s ease;
}

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

/* Social icons */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: white;
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

/* Footer bottom section */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Back to top button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(147, 112, 219, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 99;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background: rgba(147, 112, 219, 0.9);
    transform: translateY(-5px);
}

/* Responsive styles */
@media (max-width: 992px) {
    .footer-main {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-branding {
        max-width: 100%;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-links-container {
        width: 100%;
        justify-content: space-around;
    }
}

@media (max-width: 768px) {
    .footer-links-container {
        flex-direction: column;
        gap: 40px;
        align-items: center;
        text-align: center;
    }
    
    .footer-nav-section h4::after,
    .footer-social-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .problem-grid,
    .features-grid,
    .testimonials {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .app-screens {
        height: 280px;
    }
    
    .phone {
        width: 120px;
        height: 240px;
    }
    
    .phone-2 {
        margin-left: -60px;
    }
    
    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* Additional Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 0;
    }
    
    .logo-image {
        height: 50px;
    }
    
    .brand-name {
        font-size: 2.5rem;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--dark-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.4);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        margin: 15px 0;
        font-size: 1.2rem;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content {
        text-align: center;
        align-items: center;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .steps {
        padding: 0 20px;
    }
    
    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .step:not(:last-child)::after {
        left: 50%;
        top: 90px;
        height: 30px;
        width: 2px;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .problem-card, 
    .feature-card, 
    .testimonial {
        padding: 25px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}
