/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --primary-color: #55a250;
    --primary-dark: #4a8f45;
    --secondary-color: #3E3EC1;
    --text-primary: #2E3A34;
    --text-secondary: #5E6C64;
    --bg-primary: #F7F6F2;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #FAFAFA;
    --border-color: #D2D2D7;
    --success-color: #55a250;
    --warning-color: #D4A04C;
    --error-color: #C13E3E;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --max-width: 1200px;
    --border-radius: 12px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
}

body {
    font-family: "Roboto", 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    position: relative;
    margin: 0;
    padding: 0;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    width: 100%;
    box-sizing: border-box;
}

/* Navigation */
.navbar {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(247, 246, 242, 0.9);
    animation: fadeIn 0.6s ease-out;
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow-x: visible;
}

.nav-brand {
    flex-shrink: 0;
    min-width: 0;
}

.nav-brand h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-brand a {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    justify-content: center;
}

.nav-brand img {
    height: 40px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.nav-brand h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
    padding: 0.5rem;
    display: block;
}

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

/* Hamburger Menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 5px;
    z-index: 1001;
    position: relative;
    flex-shrink: 0;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.hero-content {
    flex: 1 1 auto;
    min-width: 300px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-app-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    line-height: 1.2;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-sm);
}

.app-badge {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
    display: block;
}

.app-badge:hover {
    transform: scale(1.1);
}

.app-badge:active {
    transform: scale(0.95);
}

.hero-note {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: var(--spacing-sm);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Sections */
section {
    padding: var(--spacing-xl) 0;
    overflow: visible;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature-card {
    background-color: var(--bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon img {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon img {
    transform: scale(1.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-icon img {
    width: 150px;
    height: auto;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    background-color: var(--bg-primary);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.step {
    text-align: center;
    padding: var(--spacing-md);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto var(--spacing-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover .step-number {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-md);
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Pricing Section */
.pricing {
    background-color: var(--bg-secondary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background-color: var(--bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.price-alt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin: var(--spacing-md) 0;
    padding: 0;
}

.pricing-features li {
    padding: var(--spacing-xs) 0;
    color: var(--text-secondary);
}

.pricing-card .btn {
    margin-top: var(--spacing-md);
    width: 100%;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
}

/* Footer */
.footer {
    background-color: var(--text-primary);
    color: white;
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

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

.footer-section h4 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

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

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

/* Legal Pages Styles */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-sm);
}

.legal-page h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.legal-page h2 {
    font-size: 1.75rem;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.legal-page h3 {
    font-size: 1.25rem;
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.legal-page p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-page ul, .legal-page ol {
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-md);
    color: var(--text-secondary);
}

.legal-page li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.6;
}

.legal-page .last-updated {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: var(--spacing-md);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation Mobile */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
        background-color: var(--bg-primary);
        flex-direction: column;
        gap: 0;
        padding: 5rem 2rem 2rem;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        box-sizing: border-box;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu a {
        padding: 1rem 0;
        font-size: 1.1rem;
        color: var(--text-primary);
    }
    
    .navbar {
        padding: var(--spacing-xs) 0;
    }
    
    .nav-brand h1 {
        font-size: 1.25rem;
    }
    
    /* Hero Section Mobile */
    .hero {
        padding: var(--spacing-lg) 0;
    }
    
    .hero-app-name {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-xs);
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 var(--spacing-xs);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
        padding: 0 var(--spacing-sm);
    }
    
    .app-badge {
        height: 45px;
        width: auto;
    }
    
    /* Sections Mobile */
    section {
        padding: var(--spacing-lg) 0;
    }
    
    .section-title {
        font-size: 1.75rem;
        padding: 0 var(--spacing-xs);
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 var(--spacing-xs);
    }
    
    /* Features Grid Mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
        padding: 0 var(--spacing-xs);
    }
    
    .feature-card {
        padding: var(--spacing-sm);
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.25rem;
    }
    
    /* Steps Mobile */
    .steps {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        padding: 0 var(--spacing-xs);
    }
    
    .step {
        padding: var(--spacing-sm);
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .step h3 {
        font-size: 1.1rem;
    }
    
    /* Pricing Mobile */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        padding: 0 var(--spacing-xs);
        max-width: 100%;
    }
    
    .pricing-card {
        padding: var(--spacing-md);
    }
    
    .pricing-card.featured {
        transform: scale(1);
        border-width: 2px;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }
    
    .price {
        font-size: 2rem;
    }
    
    /* CTA Mobile */
    .cta {
        padding: var(--spacing-lg) 0;
    }
    
    .cta h2 {
        font-size: 1.75rem;
        padding: 0 var(--spacing-xs);
    }
    
    .cta p {
        font-size: 1rem;
        padding: 0 var(--spacing-xs);
    }
    
    /* Footer Mobile */
    .footer {
        padding: var(--spacing-md) 0 var(--spacing-sm);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        padding: 0 var(--spacing-xs);
    }
    
    /* Legal Pages Mobile */
    .legal-page {
        padding: var(--spacing-md) var(--spacing-xs);
    }
    
    .legal-page h1 {
        font-size: 1.75rem;
    }
    
    .legal-page h2 {
        font-size: 1.5rem;
    }
    
    .legal-page h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-app-name {
        font-size: 1.25rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .app-badge {
        height: 45px;
    }
    
    .container {
        padding: 0 var(--spacing-xs);
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .step h3 {
        font-size: 1rem;
    }
    
    .pricing-card h3 {
        font-size: 1.25rem;
    }
    
    .price {
        font-size: 1.75rem;
    }
    
    .cta h2 {
        font-size: 1.5rem;
    }
    
    .cta p {
        font-size: 0.95rem;
    }
    
    .nav-menu {
        width: 100%;
        max-width: 100vw;
        right: -100%;
        overflow-x: hidden;
    }
    
    .nav-menu.active {
        right: 0;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-menu a,
    .nav-toggle {
        min-height: 44px;
        min-width: 44px;
    }
    
    .feature-card,
    .pricing-card {
        cursor: pointer;
    }
    
    .feature-card:active,
    .pricing-card:active {
        transform: scale(0.98);
    }
}

/* Hero wrapper adjustments */
@media (min-width: 1024px) {
    .hero-wrapper {
        justify-content: space-between;
    }
}

/* Store button styling - plain image links */
.store-button {
    display: inline-block;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
    transition: none;
}

.store-button:hover,
.store-button:active,
.store-button:focus {
    text-decoration: none;
    background: none;
    border: none;
    box-shadow: none;
    transform: none;
    outline: none;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero animations */
.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-image {
    animation: slideInRight 1s ease-out 0.2s both;
    position: absolute;
    bottom: 0;
    width: 400px;
    right: 0px;
}

@media (max-width: 768px) {
    .hero-image {
        animation: slideInBottom 1s ease-out 0.2s both;
        width: 300px;
        position: relative;
    }
}


/* Feature cards stagger animation */
.feature-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

/* Step animations */
.step {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }
.step:nth-child(4) { animation-delay: 0.4s; }

/* Pricing cards animation */
.pricing-card {
    opacity: 0;
    animation: scaleIn 0.6s ease-out forwards;
}

.pricing-card:nth-child(1) { animation-delay: 0.1s; }
.pricing-card:nth-child(2) { animation-delay: 0.3s; }

/* Section titles */
.section-title {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.section-subtitle {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

/* CTA section */
.cta h2,
.cta p {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.cta h2 {
    animation-delay: 0.2s;
}

.cta p {
    animation-delay: 0.4s;
}

.hero-buttons {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

/* Smooth scroll reveal for sections (excluding hero) */
section:not(.hero) {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    min-height: 0;
    overflow: visible;
}

section:not(.hero).visible {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

/* Hero section always visible */
section.hero {
    opacity: 1;
    position: relative;
    overflow: hidden;
}

/* Hero content should be above stars */
.hero .container {
    position: relative;
    z-index: 1;
}

/* Hero title */
.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    margin-top: 2rem;
    margin-bottom: 2rem;
}


.hero-title-line1 {
    display: block;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-size: 2.5rem;
}

.hero-title-line2 {
    display: block;
    min-height: 1.5em;
    position: relative;
    text-align: center;
    font-size: 2.5rem;
}

/* Typewriter effect */
.typewriter-text {
    display: inline-block;
    min-width: 200px;
    text-align: center;
    border-right: 2px solid currentColor;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 50% { 
        border-right-color: currentColor;
    }
    51%, 100% { 
        border-right-color: transparent;
    }
}

/* Mobile adjustments for typewriter - smaller font size */
@media (max-width: 768px) {
    .typewriter-text {
        font-size: 2em;
        min-width: 150px;
        white-space: nowrap;
        min-height: 1em;
    }
    
    .hero-title-line2 {
        min-height: 1em;
    }
}

@media (max-width: 480px) {
    .hero-title-line1 {
        font-size: 1em;
    }

    .typewriter-text {
        font-size: 1em;
        min-width: 120px;
    }
}

/* Hero images visible on larger screens */
@media (min-width: 768px) {
    .hero-image-left,
    .hero-image-right {
        display: block !important;
    }
}

/* Testimonials Section with Swiper */
.testimonials {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-secondary);
}

.testimonials-swiper {
    max-width: 650px;
    margin: var(--spacing-lg) auto 0;
    padding-bottom: 50px;
}

.testimonial-card {
    background-color: var(--bg-primary);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    max-width: 600px;
    margin: 0 100px;
}

.testimonial-stars {
    color: #FFD700;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 4px;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-author strong {
    color: var(--text-primary);
    font-size: 1rem;
}

.testimonial-author span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Swiper navigation arrows */
.testimonials-swiper .swiper-button-prev,
.testimonials-swiper .swiper-button-next {
    color: var(--primary-color);
    background: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.testimonials-swiper .swiper-button-prev:after,
.testimonials-swiper .swiper-button-next:after {
    font-size: 18px;
    font-weight: bold;
}

.testimonials-swiper .swiper-button-prev:hover,
.testimonials-swiper .swiper-button-next:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

/* Swiper pagination dots */
.testimonials-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--border-color);
    opacity: 1;
}

.testimonials-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Testimonials Responsive */
@media (max-width: 768px) {
    .testimonials-swiper {
        max-width: 100%;
        padding: 0 10px 50px;
    }
    
    .testimonial-card {
        padding: var(--spacing-md);
        margin: 0 40px;
    }
    
    .testimonial-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .testimonials-swiper .swiper-button-prev,
    .testimonials-swiper .swiper-button-next {
        width: 40px;
        height: 40px;
    }
    
    .testimonials-swiper .swiper-button-prev:after,
    .testimonials-swiper .swiper-button-next:after {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        padding: var(--spacing-sm);
        margin: 0 35px;
    }
    
    .testimonial-stars {
        font-size: 1.2rem;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: var(--spacing-sm);
    }
    
    .testimonial-author strong {
        font-size: 0.9rem;
    }
    
    .testimonial-author span {
        font-size: 0.8rem;
    }
    
    .testimonials-swiper .swiper-button-prev,
    .testimonials-swiper .swiper-button-next {
        width: 36px;
        height: 36px;
    }
    
    .testimonials-swiper .swiper-button-prev:after,
    .testimonials-swiper .swiper-button-next:after {
        font-size: 12px;
    }
    
    .testimonials-swiper .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }
}

