/* Universal responsive image style */
img {
    max-width: 100%;
    height: auto;
    display: block;
}
/* Responsive about image */
.about-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.about-illustration {
    width: 100%;
    max-width: 320px;
}
.book-stack {
    width: 100%;
    min-height: 160px;
}
/* Responsive logo in header and footer */
.nav-brand img,
.footer-brand img {
    height: 32px;
    width: auto;
    max-width: 100%;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
}
/* Responsive QR code image */
.qr-placeholder img {
    width: 100%;
    max-width: 120px;
    height: auto;
    display: block;
    margin: 0 auto;
}
/* --- Prevent Hero Image from Being Cut Off at Top on Bounce --- */
.hero-image-float-wrapper {
    padding-top: 16px;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
@media (max-width: 900px) {
    .hero-image-float-wrapper {
        padding-top: 12px;
    }
}
@media (max-width: 600px) {
    .about-illustration {
        max-width: 220px;
    }
    .book-stack {
        min-height: 100px;
    }
    .footer-brand img {
        height: 28px;
        margin-right: 6px;
    }
    .qr-placeholder img {
        max-width: 80px;
    }
    .hero-image-float-wrapper {
        padding-top: 8px;
    }
}
/* --- Responsive Hero Image Fix for All Devices --- */
@media (max-width: 900px) {
    .hero-image-float-wrapper {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        aspect-ratio: 9/16;
        height: auto;
        display: block;
        position: relative;
        overflow: hidden;
    }
    .hero-float-img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
        border-radius: 18px;
        box-shadow: 0 4px 24px rgba(0,0,0,0.10);
        background: #fff;
        position: absolute;
        left: 0;
        top: 0;
        opacity: 0;
        z-index: 1;
        transition: opacity 0.7s, transform 0.7s;
    }
    .hero-float-img.hero-float-img-active {
        opacity: 1;
        z-index: 2;
    }
}
@media (max-width: 600px) {
    .hero-image-float-wrapper {
        max-width: 320px;
    }
}
/* --- Improved Responsive Hero Image Fix for Mobile (no overlay) --- */
@media (max-width: 600px) {
    .hero-image-float-wrapper {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        aspect-ratio: 9/16;
        height: auto;
        display: block;
        position: relative;
        overflow: hidden;
    }
    .hero-float-img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
        border-radius: 18px;
        box-shadow: 0 4px 24px rgba(0,0,0,0.10);
        background: #fff;
        position: absolute;
        left: 0;
        top: 0;
        opacity: 0;
        z-index: 1;
        transition: opacity 0.7s, transform 0.7s;
    }
    .hero-float-img.hero-float-img-active {
        opacity: 1;
        z-index: 2;
    }
}
/* --- Responsive Hero Image Fix for Mobile --- */
@media (max-width: 600px) {
    .hero-image-float-wrapper {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }
    .hero-float-img {
        width: 100%;
        max-width: 320px;
        height: auto;
        object-fit: contain;
        border-radius: 18px;
        box-shadow: 0 4px 24px rgba(0,0,0,0.10);
        background: #fff;
        position: absolute;
        left: 0;
        top: 0;
        transition: opacity 0.7s, transform 0.7s;
    }
    .hero-float-img.hero-float-img-active {
        opacity: 1;
        z-index: 2;
    }
    .hero-float-img:not(.hero-float-img-active) {
        opacity: 0;
        z-index: 1;
    }
}
/* Hero image slider animation */
.hero-image-float-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
}
/* Hero slider base state */
.hero-float-img {
    width: 320px;
    max-width: 90vw;
    border-radius: 2rem;
    box-shadow: 0 8px 32px rgba(139,92,246,0.18);
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    opacity: 0;
    z-index: 1;
    animation: none;
    transition: opacity 0.7s, transform 0.7s;
}
/* Slide in from right */
.hero-float-img-active {
    opacity: 1;
    z-index: 2;
    transform: translateX(0) scale(1);
    animation: floatY 3.5s ease-in-out infinite;
}
/* Slide out to left */
.hero-float-img-exit {
    opacity: 0;
    z-index: 1;
    transform: translateX(-80px) scale(0.98);
    animation: none;
}
/* Slide in from right (start) */
.hero-float-img-next {
    opacity: 0;
    z-index: 1;
    transform: translateX(80px) scale(0.98);
    animation: none;
}
@keyframes floatY {
    0% { transform: translateY(0); }
    50% { transform: translateY(-24px); }
    100% { transform: translateY(0); }
}
/* Floating animation for hero image */
.hero-image-float-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.hero-float-img {
    width: 320px;
    max-width: 90vw;
    border-radius: 2rem;
    box-shadow: 0 8px 32px rgba(139,92,246,0.18);
    animation: floatY 3.5s ease-in-out infinite;
}
@keyframes floatY {
    0% { transform: translateY(0); }
    50% { transform: translateY(-24px); }
    100% { transform: translateY(0); }
}
/* Contact section button style for phone and WhatsApp */
.contact-btn.btn-theme {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    color: #fff !important;
    font-weight: 600;
    border: none;
    box-shadow: 0 2px 8px rgba(139,92,246,0.08);
    transition: background 0.3s, box-shadow 0.3s;
    text-decoration: none !important;
    margin-top: 8px;
    margin-bottom: 4px;
    cursor: pointer;
}
.contact-btn.btn-theme:hover {
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    box-shadow: 0 4px 16px rgba(139,92,246,0.15);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    /* Default Purple Theme */
    --primary-color: #8b5cf6;
    --secondary-color: #06b6d4;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --light-bg: #f8fafc;
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.15);
    
    /* Responsive font sizes */
    --fs-xs: clamp(0.75rem, 2vw, 0.875rem);
    --fs-sm: clamp(0.875rem, 2.5vw, 1rem);
    --fs-base: clamp(1rem, 3vw, 1.125rem);
    --fs-lg: clamp(1.125rem, 3.5vw, 1.25rem);
    --fs-xl: clamp(1.25rem, 4vw, 1.5rem);
    --fs-2xl: clamp(1.5rem, 5vw, 2rem);
    --fs-3xl: clamp(2rem, 6vw, 2.5rem);
    --fs-4xl: clamp(2.5rem, 8vw, 3.5rem);
    
    /* Responsive spacing */
    --space-xs: clamp(0.5rem, 2vw, 0.75rem);
    --space-sm: clamp(0.75rem, 3vw, 1rem);
    --space-md: clamp(1rem, 4vw, 1.5rem);
    --space-lg: clamp(1.5rem, 5vw, 2rem);
    --space-xl: clamp(2rem, 6vw, 3rem);
    --space-2xl: clamp(3rem, 8vw, 4rem);
    --space-3xl: clamp(4rem, 10vw, 6rem);
}
/* Green Theme */
body[data-theme="green"] {
    --primary-color: #10b981;
    --secondary-color: #06b6d4;
    --accent-color: #84cc16;
    --gradient-primary: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --gradient-secondary: linear-gradient(135deg, #84cc16 0%, #22c55e 100%);
}
/* Orange Theme */
body[data-theme="orange"] {
    --primary-color: #f59e0b;
    --secondary-color: #ef4444;
    --accent-color: #fb923c;
    --gradient-primary: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-secondary: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
}
/* Pink Theme */
body[data-theme="pink"] {
    --primary-color: #ec4899;
    --secondary-color: #8b5cf6;
    --accent-color: #f472b6;
    --gradient-primary: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
}
/* Blue Theme */
body[data-theme="blue"] {
    --primary-color: #3b82f6;
    --secondary-color: #06b6d4;
    --accent-color: #0ea5e9;
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --gradient-secondary: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
}
/* Dark Theme */
body[data-theme="dark"] {
    --primary-color: #8b5cf6;
    --secondary-color: #06b6d4;
    --accent-color: #f59e0b;
    --text-dark: #f9fafb;
    --text-light: #d1d5db;
    --white: #1f2937;
    --light-bg: #111827;
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}
/* Theme Selector Styles */
.theme-selector {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1001;
    /* Make child .theme-options position relative to this */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.theme-toggle {
    position: relative;
    z-index: 2;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-heavy);
}
.theme-options {
    position: absolute;
    right: 0;
    top: 60px;
    z-index: 3;
    background: var(--white);
    border-radius: 15px;
    padding: var(--space-md);
    box-shadow: var(--shadow-heavy);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.3s ease;
}
.theme-options.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}
.theme-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: var(--space-xs);
}
.theme-option:hover {
    background: var(--light-bg);
}
.theme-option.active {
    background: var(--light-bg);
    border: 2px solid var(--primary-color);
}
.theme-color {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.1);
}
.theme-option span {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-dark);
}
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    font-size: var(--fs-base);
    transition: all 0.3s ease;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    width: 100%;
}
/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}
/* Dark theme header */
body[data-theme="dark"] .header {
    background: rgba(31, 41, 55, 0.95);
}
.navbar {
    padding: var(--space-sm) 0;
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-brand {
    display: flex;
    align-items: center;
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--primary-color);
}
.nav-brand i {
    margin-right: var(--space-xs);
    font-size: var(--fs-2xl);
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}
.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: var(--fs-base);
    transition: color 0.3s ease;
    position: relative;
}
.nav-menu a:hover {
    color: var(--primary-color);
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}
.nav-menu a:hover::after {
    width: 100%;
}
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 3px;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: 0.3s;
    border-radius: 2px;
}
/* Hero Section */
.hero {
    padding: calc(80px + var(--space-2xl)) 0 var(--space-3xl);
    background: linear-gradient(135deg, var(--light-bg) 0%, rgba(139, 92, 246, 0.1) 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
/* Dark theme hero background */
body[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #111827 0%, rgba(139, 92, 246, 0.2) 100%);
}
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}
.hero-text h1 {
    font-size: var(--fs-4xl);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}
.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-text p {
    font-size: var(--fs-lg);
    color: var(--text-light);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}
.hero-buttons {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--gradient-primary);
    color: var(--white);
    padding: var(--space-md) var(--space-lg);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--fs-base);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
    white-space: nowrap;
}
.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}
.btn-download i {
    font-size: var(--fs-lg);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--fs-base);
    transition: all 0.3s ease;
    white-space: nowrap;
}
.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}
.hero-stats {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}
.stat {
    text-align: center;
    min-width: 80px;
}
.stat-number {
    display: block;
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--primary-color);
}
.stat-label {
    color: var(--text-light);
    font-size: var(--fs-sm);
}
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}
.phone-mockup {
    position: relative;
}
.phone-frame {
    width: clamp(250px, 30vw, 300px);
    height: clamp(500px, 60vw, 600px);
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border-radius: 40px;
    padding: 20px;
    box-shadow: var(--shadow-heavy);
}
.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
}
.app-interface {
    padding: var(--space-md);
}
.app-header {
    text-align: center;
    margin-bottom: var(--space-md);
}
.app-header h3 {
    color: var(--primary-color);
    font-size: var(--fs-lg);
}
.book-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.book-item {
    height: clamp(80px, 12vw, 120px);
    border-radius: 10px;
    opacity: 0.8;
}
/* Dynamic book colors based on theme */
.book-item.book-1 { background: var(--gradient-primary); }
.book-item.book-2 { background: var(--gradient-secondary); }
.book-item.book-3 { background: linear-gradient(135deg, var(--accent-color), var(--primary-color)); }
.book-item.book-4 { background: linear-gradient(135deg, var(--success-color), var(--secondary-color)); }
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}
.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}
.shape-1 {
    width: clamp(100px, 15vw, 200px);
    height: clamp(100px, 15vw, 200px);
    background: var(--primary-color);
    top: 10%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}
.shape-2 {
    width: clamp(80px, 12vw, 150px);
    height: clamp(80px, 12vw, 150px);
    background: var(--secondary-color);
    top: 60%;
    right: 10%;
    animation: float 8s ease-in-out infinite reverse;
}
.shape-3 {
    width: clamp(60px, 8vw, 100px);
    height: clamp(60px, 8vw, 100px);
    background: var(--accent-color);
    bottom: 20%;
    left: 20%;
    animation: float 5s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}
/* Sections */
.features, .about, .contact {
    padding: var(--space-3xl) 0;
}
.download {
    padding: var(--space-3xl) 0;
}
.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}
.section-header h2 {
    font-size: var(--fs-3xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
}
.section-header p {
    font-size: var(--fs-lg);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}
/* Features Section */
.features {
    background: var(--white);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}
.feature-card {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}
body[data-theme="dark"] .feature-card {
    border-color: #374151;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}
.feature-icon {
    width: clamp(60px, 8vw, 80px);
    height: clamp(60px, 8vw, 80px);
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    font-size: var(--fs-2xl);
    color: var(--white);
}
.feature-card h3 {
    font-size: var(--fs-xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}
.feature-card p {
    color: var(--text-light);
    font-size: var(--fs-base);
    line-height: 1.6;
}
/* About Section */
.about {
    background: var(--light-bg);
}
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}
.about-text h2 {
    font-size: var(--fs-3xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
}
.about-text p {
    font-size: var(--fs-lg);
    color: var(--text-light);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}
.about-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}
.about-feature {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}
.about-feature i {
    color: var(--success-color);
    font-size: var(--fs-lg);
}
.about-feature span {
    font-size: var(--fs-base);
    font-weight: 500;
}
.about-illustration {
    display: flex;
    justify-content: center;
}
.book-stack {
    position: relative;
}
.book {
    width: clamp(80px, 12vw, 120px);
    height: clamp(100px, 15vw, 160px);
    border-radius: 8px;
    position: absolute;
    box-shadow: var(--shadow-medium);
}
.book.book-1 {
    background: var(--gradient-primary);
    transform: rotate(-5deg);
}
.book.book-2 {
    background: var(--gradient-secondary);
    transform: rotate(5deg) translateX(20px);
}
.book.book-3 {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    transform: rotate(-2deg) translateX(40px) translateY(-10px);
}
/* Download Section */
.download {
    background: var(--gradient-primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}
.download-text h2 {
    font-size: var(--fs-3xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
}
.download-text p {
    font-size: var(--fs-lg);
    opacity: 0.9;
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}
.download-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.download-btn {
    display: inline-flex;
    align-items: center;
    background: var(--white);
    color: var(--text-dark);
    padding: var(--space-md) var(--space-lg);
    border-radius: 15px;
    text-decoration: none;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    max-width: 280px;
}
.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}
.btn-content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}
.btn-content i {
    font-size: var(--fs-2xl);
    color: var(--primary-color);
}
.btn-text {
    display: flex;
    flex-direction: column;
}
.btn-text .small {
    font-size: var(--fs-xs);
    color: var(--text-light);
}
.btn-text .large {
    font-size: var(--fs-lg);
    font-weight: 600;
}
.qr-code {
    margin-top: var(--space-md);
}
.qr-placeholder {
    width: clamp(100px, 15vw, 120px);
    height: clamp(100px, 15vw, 120px);
    /* background: rgba(255, 255, 255, 0.1); */
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* border: 2px dashed rgba(255, 255, 255, 0.3); */
}
.qr-placeholder i {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-xs);
}
.qr-placeholder span {
    font-size: var(--fs-xs);
    opacity: 0.8;
    text-align: center;
}
.floating-elements {
    position: relative;
    height: 400px;
}
.floating-book {
    position: absolute;
    font-size: clamp(2rem, 4vw, 3rem);
    animation: float 6s ease-in-out infinite;
}
.fb-1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}
.fb-2 {
    top: 30%;
    right: 10%;
    animation-delay: 1s;
}
.fb-3 {
    bottom: 30%;
    left: 10%;
    animation-delay: 2s;
}
.fb-4 {
    bottom: 10%;
    right: 30%;
    animation-delay: 3s;
}
/* Contact Section */
.contact {
    background: var(--white);
}
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}
.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--fs-lg);
    flex-shrink: 0;
}
.contact-item h4 {
    font-size: var(--fs-lg);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}
.contact-item p {
    color: var(--text-light);
    font-size: var(--fs-base);
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: var(--fs-base);
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: var(--white);
    color: var(--text-dark);
}
body[data-theme="dark"] .form-group input,
body[data-theme="dark"] .form-group textarea {
    border-color: #374151;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.btn-submit {
    background: var(--gradient-primary);
    color: var(--white);
    padding: var(--space-md) var(--space-lg);
    border: none;
    border-radius: 10px;
    font-size: var(--fs-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}
/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: var(--space-3xl) 0 var(--space-lg);
}
body[data-theme="dark"] .footer {
    background: #0f172a;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}
.footer-brand {
    display: flex;
    align-items: center;
    font-size: var(--fs-xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
}
.footer-brand i {
    margin-right: var(--space-xs);
    color: var(--primary-color);
}
.footer-section p {
    color: #9ca3af;
    margin-bottom: var(--space-md);
    line-height: 1.6;
}
.footer-section h4 {
    font-size: var(--fs-lg);
    font-weight: 600;
    margin-bottom: var(--space-md);
}
.footer-section ul {
    list-style: none;
}
.footer-section ul li {
    margin-bottom: var(--space-xs);
}
.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: var(--fs-base);
}
.footer-section ul li a:hover {
    color: var(--white);
}
.social-links {
    display: flex;
    gap: var(--space-sm);
}
.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}
.social-links a:hover {
    transform: translateY(-2px);
    background: var(--secondary-color);
}
.footer-download-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--primary-color);
    color: var(--white);
    padding: var(--space-sm) var(--space-md);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: var(--fs-base);
}
.footer-download-btn:hover {
    background: var(--secondary-color);
}
.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid #374151;
    color: #9ca3af;
    font-size: var(--fs-sm);
}
/* Responsive Breakpoints */
/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .hero-content,
    .about-content,
    .download-content,
    .contact-content {
        gap: var(--space-xl);
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .theme-selector {
        right: 15px;
    }
}
/* Tablets */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: var(--space-xl);
        transition: left 0.3s ease;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: var(--space-md) 0;
    }
    
    .nav-menu a {
        font-size: var(--fs-lg);
    }
    
    .hero-content,
    .about-content,
    .download-content,
    .contact-content {
        display: flex;
        flex-direction: column-reverse;
        gap: var(--space-xl);
        text-align: center;
    }
    
    .hero {
        min-height: auto;
        padding: calc(70px + var(--space-xl)) 0 var(--space-xl);
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .download-text {
        text-align: center;
    }
    
    .download-visual {
        display: none;
    }
    
    .about-text {
        text-align: center;
    }
    
    .about-features {
        justify-content: center;
        align-items: center;
    }
    
    .theme-selector {
        top: auto;
        bottom: 20px;
        right: 20px;
        transform: none;
    }
    
    .theme-options {
        bottom: 60px;
        right: 0;
        top: auto;
    }
}
/* Mobile phones */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .hero {
        padding: calc(70px + var(--space-lg)) 0 var(--space-lg);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .btn-download,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-md);
    }
    
    .stat {
        flex: 1;
        min-width: 80px;
    }
    
    .phone-frame {
        width: clamp(200px, 50vw, 250px);
        height: clamp(400px, 100vw, 500px);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .feature-card {
        padding: var(--space-md);
    }
    
    .download-buttons {
        align-items: center;
    }
    
    .download-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .contact-content {
        gap: var(--space-lg);
    }
    
    .contact-item {
        text-align: left;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-xl);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .theme-selector {
        bottom: 15px;
        right: 15px;
    }
    
    .theme-toggle {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .theme-options {
        min-width: 180px;
        right: 0;
        bottom: 55px;
    }
}
/* Extra small devices */
@media (max-width: 360px) {
    .hero-buttons {
        gap: var(--space-sm);
    }
    
    .btn-download .btn-text {
        display: none;
    }
    
    .btn-download::after {
        content: 'Download App';
        margin-left: var(--space-xs);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .stat {
        min-width: auto;
    }
    
    .theme-options {
        min-width: 160px;
    }
}
/* High-resolution displays */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-content,
    .about-content,
    .download-content,
    .contact-content {
        gap: var(--space-3xl);
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* Hamburger animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}
/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Horizontal hero image list for mobile */
.hero-image-list {
    display: none;
}

@media (max-width: 600px) {
    .hero-image-float-wrapper {
        display: none;
    }
    .hero-image-list {
        display: flex;
        flex-direction: row;
        gap: 12px;
        overflow-x: auto;
        padding: 8px 0;
        width: 100%;
        justify-content: flex-start;
        align-items: center;
        scrollbar-width: thin;
    }
    .hero-image-list img {
        width: 120px;
        height: 220px;
        object-fit: cover;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(139,92,246,0.10);
        background: #fff;
        flex-shrink: 0;
        display: block;
    }
    .hero-content {
        flex-direction: column;
        display: flex;
        gap: var(--space-xl);
        text-align: center;
    }
}