/*
Theme Name: Instavise
Theme URI: https://instavise.in/
Author: Pushpendra Singh
Author URI: https://instavise.in/
Description: A custom theme for Instavise AI Study Assistant
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: instavise
Tags: custom, responsive, modern, education, ai
*/

/* ================= CTA Modern ================= */
.cta-modern { background:#fff; padding: 56px 0 64px; }
.cta-modern .container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.cta-surface { background: linear-gradient(135deg, #eef2ff 0%, #ede9fe 100%); border-radius: 16px; padding: 48px 32px; text-align:center; color:#0f172a; box-shadow: 0 14px 28px rgba(17,24,39,.10); }
.cta-surface h2 { font-size: 2.8rem; margin-bottom: 10px; color:#0f172a; }
.cta-surface p { color:#4b5563; margin-bottom: 20px; }
.cta-actions { display:flex; justify-content:center; gap:18px; margin-bottom: 16px; flex-wrap: wrap; }
.cta-btn { display:inline-flex; align-items:center; justify-content:center; padding: 14px 24px; border-radius: 12px; text-decoration:none; font-weight:700; line-height:1; font-size: 1rem; }
/* Chip buttons (white) */
.cta-btn.play { background:#ffffff; color:#0f172a; border: 1px solid #e6e9f5; box-shadow: 0 6px 16px rgba(17,24,39,.12); min-width: 220px; }
.cta-btn.play i { color:#2563eb; margin-right:10px; font-size:1.15rem; }
.cta-btn.play:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(17,24,39,.16); }
.cta-btn.secondary { background:#ffffff; color:#0f172a; border: 1px solid #e6e9f5; box-shadow: 0 6px 16px rgba(17,24,39,.12); min-width: 280px; }
.cta-btn.secondary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(17,24,39,.16); }
.cta-badges { display:flex; justify-content:center; gap:22px; margin-top: 10px; flex-wrap: wrap; }
.cta-badges span { display:inline-flex; align-items:center; gap:8px; opacity: .92; font-weight:600; }
/* ================= App Preview (Redesigned) ================= */
.app-preview-new { background:#fff; padding: 56px 0 40px; }
.app-preview-new .container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.app-intro { text-align:center; margin-bottom: 24px; }
.app-intro h2 { font-size: 2.6rem; color:#0f172a; }
.app-intro p { color:#6b7280; margin-top:6px; }

.app-surface { background: #f6f8ff; border:1px solid #eef2ff; border-radius: 18px; padding: 28px; position: relative; overflow:hidden; }
.app-grid { display:grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 36px; }

.app-copy .app-kicker { display:inline-flex; align-items:center; gap:8px; background:#eef2ff; color:#4f46e5; padding:6px 10px; border-radius:8px; font-weight:700; font-size:.82rem; margin-bottom:10px; }
.app-copy h3 { font-size: 2rem; color:#0f172a; margin: 6px 0 8px; }
.app-copy p { color:#4b5563; margin-bottom: 12px; }

.app-bullets { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:12px; }
.app-bullets li { display:flex; align-items:flex-start; gap:12px; background:#fff; border:1px solid #eef2ff; border-radius:12px; padding:12px; box-shadow: 0 10px 22px rgba(17,24,39,.08); }
.app-bullets .ibx { width:36px; height:36px; border-radius:10px; background:#eef2ff; color:#5b45f9; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.app-bullets strong { display:block; color:#0f172a; }
.app-bullets small { display:block; color:#6b7280; }

.app-phones { position: relative; min-height: 420px; }
.phone { position:absolute; width:44%; aspect-ratio: 9/19; background:#fff; border-radius:26px; border: 1px solid #e5e7eb; box-shadow: 0 18px 36px rgba(17,24,39,.12); overflow:hidden; }
.phone img { width:100%; height:100%; object-fit: cover; display:block; }
.phone.phone-left { left: -2%; top: 12%; transform: rotate(-4deg); z-index: 3; width: 50%; box-shadow: 0 22px 44px rgba(17,24,39,.18); }
.phone.phone-center { left: 28%; top: 6%; transform: rotate(-2deg); z-index: 2; width: 46%; }
.phone.phone-right { right: -2%; top: 10%; transform: rotate(8deg); z-index: 1; border: none; }

@media (max-width: 1024px) {
  .app-grid { grid-template-columns: 1fr; }
  .app-phones { min-height: 360px; margin-top: 8px; }
  .phone.phone-left { left: 2%; top: 12%; }
  .phone.phone-center { left: 24%; }
  .phone.phone-right { right: 2%; }
}

@media (max-width: 768px) {
  .app-intro h2 { font-size: 2.2rem; }
  .app-copy h3 { font-size: 1.6rem; }
  .app-bullets li { padding:10px; }
  .app-phones { min-height: 320px; }
}

/* ================= Footer Modern ================= */
.site-footer.footer-modern { background: #1f2937 !important; color: #e5e7eb; }
.site-footer.footer-modern::before { display: none !important; }
.footer-modern { background: #1f2937 !important; background-image: none !important; color: #e5e7eb; padding: 56px 0 28px; border-top: 1px solid rgba(255,255,255,.06); }
.footer-modern .footer-wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.footer-modern a { color: #e5e7eb; text-decoration: none; transition: color .2s ease; }
.footer-modern a:hover { color: #ffffff; }

.footer-modern .footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-modern .footer-brand .brand-line { display:flex; align-items:center; gap:10px; margin-bottom: 8px; }
.footer-modern .footer-logo { width: 36px; height: 36px; border-radius: 8px; }
.footer-modern .brand-name-text { font-weight: 700; color: #ffffff; font-size: 1.1rem; }
.footer-modern .footer-brand p { color: #cbd5e1; line-height: 1.7; margin: 6px 0 12px; max-width: 420px; }

.footer-modern .social-navigation { display:flex; flex-direction: row; align-items: center; gap:12px; flex-wrap: nowrap; }
.footer-modern .social-icon { width:36px; height:36px; border-radius: 8px; display:flex; align-items:center; justify-content:center; color:#e5e7eb; background: #111827; border:1px solid #334155; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.footer-modern .social-icon:hover { transform: translateY(-2px); background:#0f172a; border-color:#60a5fa; }

.footer-modern .footer-col h4 { color:#ffffff; margin: 6px 0 12px; font-size: 1rem; }
.footer-modern .footer-col ul { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.footer-modern .footer-col ul li { line-height: 1.6; }
.footer-modern .contact-list li { display:flex; align-items:center; gap:10px; }
.footer-modern .contact-list i { color:#cbd5e1; }

.footer-modern .footer-bottom-line { display:flex; align-items:center; justify-content:space-between; gap:16px; padding-top: 22px; color:#cbd5e1; font-size:.95rem; flex-wrap: wrap; }
.footer-modern .footer-bottom-line .made-with { opacity:.9; }
.footer-modern .footer-bottom-line .made-with span { color:#f43f5e; }

@media (max-width: 1024px) {
  .footer-modern .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .footer-modern { padding: 44px 0 22px; }
  .footer-modern .footer-top { grid-template-columns: 1fr; }
  .footer-modern .footer-brand p { max-width: 100%; }
}
/* Icon-based feature media */
.feature-icon-illustration { display:flex; align-items:center; justify-content:center; width:100%; aspect-ratio: 16/9; }
.feature-icon-illustration i { font-size: 4rem; }
.feature-icon-illustration.primary i { color:#6d46f9; }
.feature-icon-illustration.blue i { color:#3b82f6; }
.feature-icon-illustration.green i { color:#22c55e; }
.feature-icon-illustration.purple i { color:#8b5cf6; }

/* ================= Redesigned Features Section ================= */
.features-section { padding: 56px 0 40px; background: #fff; margin-top: 0; }
.features-section { scroll-margin-top: 90px; }
.features-section .container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.features-section .features-intro { text-align: center; max-width: 920px; margin: 0 auto 36px; }
.features-section .features-intro h2 { font-size: 2.6rem; color: #0f172a; margin-bottom: 10px; }
.features-section .features-intro p { color: #6b7280; font-size: 1.05rem; line-height: 1.75; }

.feature-row { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: start; gap: 50px; margin: 56px 0; }
.feature-row .feature-copy { transform: translateY(50%); }
.feature-row.reverse { grid-template-columns: 0.95fr 1.05fr; }
.feature-row .feature-copy, .feature-row .feature-media { align-self: start; }
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-media { order: 1; }

.feature-copy .feature-kicker { display:inline-flex; align-items:center; gap:10px; color:#3b82f6; font-weight:700; font-size:.82rem; letter-spacing:.06em; text-transform:uppercase; margin-bottom:10px; }
.feature-kicker .icon { display:inline-flex; width:34px; height:34px; border-radius:10px; align-items:center; justify-content:center; background:#eef2ff; color:#5b45f9; }
.feature-copy h3 { font-size: 2rem; color:#0f172a; margin: 8px 0 10px; }
.feature-copy p { color:#4b5563; line-height:1.8; }
.feature-link { display:inline-flex; align-items:center; gap:10px; margin-top:16px; color:#5b45f9; font-weight:700; text-decoration:none; }
.feature-link:hover { text-decoration: underline; }

.feature-media { position: relative; overflow: hidden; }
.feature-media .feature-image { display:block; width:100%; height:auto; border-radius: 0; box-shadow: none; object-fit: cover; min-height: 300px; }

@media (max-width: 1024px) {
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-copy { order: 1; }
  .feature-row.reverse .feature-media { order: 2; }
}

@media (max-width: 768px) {
  .features-section { padding: 64px 0 32px; }
  .features-section .features-intro h2 { font-size: 2.2rem; }
  .feature-copy h3 { font-size: 1.6rem; }
  
  /* Fix mobile feature layout collision */
  .feature-row .feature-copy { 
    transform: none; 
    margin-bottom: 30px; 
  }
  .feature-row { 
    gap: 30px; 
    margin: 40px 0; 
  }
  .feature-media .feature-image { 
    min-height: 250px; 
    border-radius: 12px; 
  }
}
.feature-media-card { padding: 26px; }
:root {
    --primary-color: #673ab7; 
    --secondary-color: rgb(109, 70, 249);
    --accent-color: #b39ddb;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --white: #fff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

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

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 15px 0;
}

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

.site-branding {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.site-logo {
    height: 40px;
    width: auto;
    border-radius: 8px;
}

.brand-name {
    height: 30px;
    width: auto;
}

.site-title {
    display: none;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

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

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

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

.download-btn {
    display: inline-flex;
    align-items: center;
    background: var(--white);
    color: var(--text-color);
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
}

.download-btn i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.download-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Hero Section */
.hero {
    padding-top: 180px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-detail-item i {
    font-size: 1.2rem;
    color: #667eea;
    min-width: 20px;
    text-align: center;
}

.feature-detail-item:hover i {
    color: #764ba2;
}

.feature-icon {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 20px;
}

.feature-item:hover .feature-icon {
    color: #764ba2;
}

/* Interactive Background Elements */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: url('../images/hero-pattern.png') center/cover;
    opacity: 0.1;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

/* App Update Popup */
.app-update-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-update-popup.active {
    display: flex;
    opacity: 1;
}

.app-update-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.app-update-popup.active .app-update-content {
    transform: translateY(0);
}

.app-update-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, #673ab7, #9c27b0);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-update-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-popup {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0 8px;
    transition: opacity 0.2s;
}

.close-popup:hover {
    opacity: 0.8;
}

.app-update-body {
    padding: 25px;
}

.app-update-body p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #555;
}

.app-update-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn i {
    margin-right: 8px;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd4 0%, #6a4390 100%);
}

.btn-secondary {
    background: #f0f0f0;
    color: #555;
}

.btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* Show Interest Button */
#showInterestBtn {
    background: #f0f0f0;
    border: none;
    border-radius: 30px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

#showInterestBtn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

#showInterestBtn.liked {
    background: #fff0f0;
    color: #e53e3e;
}

#showInterestBtn.liked:hover {
    background: #ffe0e0;
}

#showInterestBtn i {
    transition: all 0.3s ease;
}

#showInterestBtn.liked i {
    color: #e53e3e;
    transform: scale(1.1);
}

/* Success Message */
.text-center {
    text-align: center;
}

.text-green-500 {
    color: #10b981;
}

.text-red-500 {
    color: #ef4444;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.hover\:bg-purple-700:hover {
    background-color: #6b21a8;
}

.transition-colors {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.element-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    animation-delay: 0s;
}

.element-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.element-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(50px, 50px) rotate(90deg);
    }
    50% {
        transform: translate(0, 100px) rotate(180deg);
    }
    75% {
        transform: translate(-50px, 50px) rotate(270deg);
    }
}

/* Ensure content stays above background */
.hero-content {
    position: relative;
    z-index: 2;
}

/* Add subtle particle effect */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat 20s infinite linear;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-element {
        display: none;
    }
    
    .hero {
        background: linear-gradient(135deg, rgba(149, 128, 255, 0.98), rgba(121, 85, 255, 0.98));
    }

    .download-btn {
        padding: 6px 15px;
        font-size: 0.85rem;
    }
    
    .download-btn i {
        font-size: 1rem;
    }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.feature-tag:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.feature-tag i {
    font-size: 1.2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--light-gray);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--text-color);
}

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

.feature-item {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border-top: 3px solid var(--primary-color);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.features-detail {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.features-detail h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-color);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .features-list {
        grid-template-columns: repeat(2, 1fr); /* Change to 2 columns on smaller screens */
    }
}

@media (max-width: 480px) {
    .features-list {
        grid-template-columns: 1fr; /* Change to 1 column on very small screens */
    }
}

.feature-detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 10px;
    transition: var(--transition);
}

.feature-detail-item:hover {
    transform: translateX(5px);
    background: rgba(149, 128, 255, 0.1);
}

.feature-detail-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Screenshots Section */
.screenshots {
    padding: 100px 0;
    background: var(--white);
}

.screenshots h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--text-color);
}

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

.screenshot-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    max-height: 50vh;
    display: block;
    transition: var(--transition);
}

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

.screenshot-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 15px;
    text-align: center;
    font-weight: 500;
    transform: translateY(100%);
    transition: var(--transition);
}

.screenshot-item:hover .screenshot-caption {
    transform: translateY(0);
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: var(--light-gray);
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--text-color);
}

.testimonial-item {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-content {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-color);
}

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

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.author-info p {
    color: #666;
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 80px 0;
    background: var(--light-gray);
}

.cta-section h2 {
    margin-bottom: 20px;
    color: var(--text-color);
}

.cta-section p {
    margin-bottom: 30px;
    font-size: 1.2rem;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0 30px 0;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footerGrain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23footerGrain)"/></svg>') repeat;
    pointer-events: none;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

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

.footer-section {
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.footer-section:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.footer-section h3 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section h3::before {
    content: '✨';
    font-size: 1.1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0 0 10px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.social-navigation {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-navigation a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.social-navigation a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-navigation a i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin: 0 -20px;
    position: relative;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Footer Mobile Responsive */
@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 20px 0;
        margin-top: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.social-navigation a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-navigation a:hover {
    opacity: 1;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-header .container {
        justify-content: flex-start; /* Align items to the left on mobile */
    }

    .site-branding {
        margin-right: 0;
    }

    .main-navigation {
        width: 100%;
    }

    .nav-menu {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .brand-name {
        height: 25px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-item {
        width: 100%;
        max-width: 300px;
    }

    .features-grid,
    .screenshots-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .download-btn {
        margin-top: 10px;
    }
}

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

.hero h1,
.hero-subtitle,
.hero-cta {
    animation: fadeIn 1s ease-out forwards;
}

.hero-stats {
    animation: fadeIn 1s ease-out 0.5s forwards;
}

/* Play Store Button Styles */
.play-store-button {
    display: inline-flex;
    align-items: center;
    background: var(--white);
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    border:none;
}

.play-store-button i {
    margin-right: 8px;
    font-size: 1.4rem;
    color: var(--primary-color);
    border: none;
}

.play-store-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background: var(--primary-color);
    color: var(--white);
}

.play-store-button:hover i {
    color: var(--white);
}

/* Learning Button Styles */
.learning-button {
    display: inline-flex;
    align-items: center;
    background: var(--white);
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    margin-right: 1rem;
}

.learning-button i {
    margin-right: 8px;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.learning-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background: var(--primary-color);
    color: var(--white);
}

.learning-button:hover i {
    color: var(--white);
}

/* Hero CTA Layout */
.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 30px 0;
    flex-wrap: wrap;
}

.primary-cta {
    order: 1;
}

.secondary-cta {
    order: 2;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

/* Responsive adjustments for CTA buttons */
@media (max-width: 768px) {
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .learning-button,
    .play-store-button {
        width: auto;
        max-width: 280px; /* Reasonable max width */
        min-width: 200px; /* Minimum width for consistency */
        justify-content: center;
        margin: 0 auto; /* Center align */
        align-self: center; /* Center within flex container */
        height: 48px; /* Fixed height for consistency */
        line-height: 1; /* Normalize line height */
        padding: 12px 24px; /* Ensure consistent padding */
    }
    
    .learning-button i,
    .play-store-button i {
        font-size: 1.2rem; /* Slightly smaller icons on mobile */
        line-height: 1;
        vertical-align: middle;
    }
}

/* Footer Download Button Styles */
.footer-download-btn {
    display: inline-flex;
    align-items: center;
    background: var(--white);
    color: var(--primary-color);
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-top: 15px;
    font-size: 1rem;
}

.footer-download-btn i {
    margin-right: 10px;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.footer-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: var(--primary-color);
    color: var(--white);
}

.footer-download-btn:hover i {
    color: var(--white);
}

/* Footer Section Styles */
.footer-section {
    color: var(--white);
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 15px;
    opacity: 0.9;
}

/* Footer Social Links */
.social-navigation {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-navigation a {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    opacity: 0.9;
}

.social-navigation a:hover {
    opacity: 1;
    transform: translateX(5px);
}

.social-navigation i {
    font-size: 1.2rem;
}

/* Screenshot Slider Styles */
.screenshot-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    /* Prevent layout shifts */
    width: 100%;
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 20px;
    /* Prevent flickering */
    will-change: transform;
    transform: translateZ(0);
}

.slide {
    flex: 0 0 calc(33.333% - 14px); /* Show 3 slides with gap */
    position: relative;
    /* Prevent layout issues */
    min-width: 0;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    /* Improve image rendering */
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    /* Prevent text from overflowing */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    gap: 20px;
}

.slider-arrow {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    /* Prevent button from being too small on touch devices */
    min-width: 44px;
    min-height: 44px;
    /* Improve button interaction */
    touch-action: manipulation;
}

.slider-arrow:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.slider-arrow:active {
    transform: scale(0.95);
}

.slider-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: var(--transition);
    /* Better touch target */
    min-width: 12px;
    min-height: 12px;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .slide {
        flex: 0 0 calc(100% - 20px); /* Show 1 slide on mobile */
    }
    
    .slider-track {
        gap: 10px;
    }
    
    .slide-caption {
        font-size: 0.8rem;
        padding: 8px;
        /* Allow text wrapping on smaller screens */
        white-space: normal;
        line-height: 1.3;
    }
    
    .slider-controls {
        gap: 15px;
        margin-top: 15px;
    }
    
    .slider-arrow {
        width: 35px;
        height: 35px;
        min-width: 35px;
        min-height: 35px;
    }
    
    .dot {
        min-width: 10px;
        min-height: 10px;
        width: 8px;
        height: 8px;
    }
    
    /* Improve touch interaction on mobile */
    .slider-container {
        touch-action: pan-y pinch-zoom;
    }
    
    /* Prevent image drag on mobile */
    .slide img {
        pointer-events: none;
        user-select: none;
        -webkit-user-drag: none;
    }
}

@media (max-width: 480px) {
    .screenshot-slider {
        padding: 15px 0;
    }
    
    .slide img {
        border-radius: 15px;
    }
    
    .slide-caption {
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
        font-size: 0.75rem;
        padding: 6px;
    }
    
    .slider-controls {
        margin-top: 12px;
        gap: 10px;
    }
    
    .slider-arrow {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .slide {
        flex: 0 0 calc(100% - 20px); /* Show 1 slide on mobile */
    }
}

/* Header Play Store Button */
.main-navigation .play-store-button {
    padding: 6px 12px;
    font-size: 0.85rem;
    background: var(--white);
    color: var(--primary-color);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.main-navigation .play-store-button i {
    font-size: 1rem;
    color: var(--primary-color);
}

.main-navigation .play-store-button:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.main-navigation .play-store-button:hover i {
    color: var(--white);
}

@media (max-width: 768px) {
    .main-navigation .play-store-button {
        width: auto;
        min-width: 120px;
        justify-content: center;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .main-navigation .play-store-button {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    .main-navigation .play-store-button i {
        font-size: 0.9rem;
    }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        margin-left: auto;
        z-index: 1002;
        position: relative;
    }

    .site-branding {
        flex-grow: 1;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        padding: 20px;
        padding-top: 80px;
        transition: var(--transition);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        display: flex;
        flex-direction: column;
    }
    
    .main-navigation .nav-menu {
        order: 2;
        margin-top: 20px;
    }
    
    .main-navigation .header-auth {
        order: 1;
        padding: 15px 0;
        border-bottom: 1px solid #eee;
        margin-bottom: 15px;
    }

    .main-navigation.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: 20px;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 10px 0;
        font-size: 1.1rem;
    }

    .main-navigation .play-store-button {
        width: 100%;
        justify-content: center;
        margin-top: 20px;
    }

    /* Hamburger Animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

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



.nav-menu li {
    margin: 0 10px;
}

@media (max-width: 768px) {
    .nav-menu li {
        margin: 0;
        width: 100%;
    }
    
    .nav-menu a {
        padding: 12px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu a:last-child {
        border-bottom: none;
    }
}

/* Contact Section Styles */
.contact-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.contact-content {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.contact-info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-item {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    min-width: 250px;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-item h3 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.contact-item p {
    color: var(--text-color);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .contact-content {
        flex-direction: column;
    }
    
    .contact-info {
        gap: 20px;
    }
    
    .contact-item {
        min-width: 100%;
    }
} 

/* Mobile Header Fixes - Add these styles to your existing CSS */

/* Mobile Menu Toggle Button - Updated */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 1px;
}

/* Updated Mobile Header Layout */
@media (max-width: 768px) {
    .site-header .container {
        display: flex;
        align-items: center;
        justify-content: space-between; /* Space between brand and hamburger */
        position: relative;
    }

    .site-branding {
        flex: 1; /* Take available space */
        margin-right: 10px; /* Small gap from hamburger */
    }

    .mobile-menu-toggle {
        display: flex; /* Show hamburger on mobile */
        flex-shrink: 0; /* Prevent shrinking */
        order: 2; /* Ensure it comes after branding */
    }

    /* Hide main navigation initially */
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        padding: 80px 30px 30px;
        transition: var(--transition);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        overflow-y: auto;
    }

    .main-navigation.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-menu li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
        text-align: left;
        width: 100%;
        border-bottom: none;
    }

    /* Hamburger Animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

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

    /* Brand adjustments for mobile */
    .site-logo {
        height: 35px;
    }

    .brand-name {
        height: 22px;
    }

    /* Prevent layout shift */
    .logo {
        gap: 8px;
    }
}

/* Additional mobile fixes for smaller screens */
@media (max-width: 480px) {
    .site-header {
        padding: 12px 0;
    }

    .site-logo {
        height: 30px;
    }

    .brand-name {
        height: 20px;
    }

    .logo {
        gap: 6px;
    }

    .mobile-menu-toggle {
        width: 35px;
        height: 35px;
        padding: 6px;
    }

    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
        margin: 2px 0;
    }

    .main-navigation {
        max-width: 280px;
        padding: 70px 20px 20px;
    }

    .nav-menu a {
        padding: 12px 0;
        font-size: 1rem;
    }
}

/* Old mobile hero styles removed - using unified mobile styles below */

/* Features section mobile fixes */
@media (max-width: 768px) {
    .features {
        padding: 60px 0;
    }

    .features h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-item {
        padding: 25px 20px;
    }

    .features-detail {
        padding: 30px 20px;
        margin-top: 30px;
    }

    .features-detail h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
}

/* Screenshots section mobile fixes */
@media (max-width: 768px) {
    .screenshots {
        padding: 60px 0;
    }

    .screenshots h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .slide {
        flex: 0 0 calc(100% - 20px); /* Show 1 slide on mobile */
    }

    .slider-controls {
        margin-top: 15px;
        gap: 15px;
    }

    .slider-arrow {
        width: 35px;
        height: 35px;
    }
}

/* Footer mobile fixes */
@media (max-width: 768px) {
    .site-footer {
        padding: 60px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-section {
        padding: 15px;
        text-align: center;
    }

    .footer-download-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

/* Add this CSS to your existing style.css file */

/* Social Navigation Mobile Alignment Fix */
@media (max-width: 768px) {
    .footer-section {
        padding: 15px;
        text-align: center;
    }
    
    /* Center align social navigation on mobile */
    .social-navigation {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center; /* This centers the social links */
        justify-content: center;
    }
    
    .social-navigation a {
        color: var(--white);
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center; /* Center content within each link */
        gap: 10px;
        transition: var(--transition);
        opacity: 0.9;
        padding: 8px 16px; /* Add some padding for better touch targets */
        border-radius: 20px; /* Optional: rounded corners */
        min-width: 120px; /* Optional: consistent width for all links */
    }
    
    .social-navigation a:hover {
        opacity: 1;
        transform: translateY(-2px); /* Changed from translateX to translateY for mobile */
        background: rgba(255, 255, 255, 0.1); /* Optional: hover background */
    }
    
    .social-navigation i {
        font-size: 1.2rem; /* Slightly larger icons on mobile */
    }
}

.feature-icon-custom {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    flex-shrink: 0;
}

.feature-detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

/* ==================== AUTHENTICATION STYLES ==================== */

/* Header Authentication Styles */
.header-auth {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

/* Sign In Button */
.signin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(103, 58, 183, 0.15);
    border: 1px solid rgba(103, 58, 183, 0.2);
}

.signin-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(103, 58, 183, 0.25);
}

.signin-btn i {
    font-size: 1rem;
    color: #4285F4;
    transition: var(--transition);
}

.signin-btn:hover i {
    color: var(--white);
}

/* User Menu Styles */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-avatar-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--white);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.user-avatar-wrapper:hover {
    background: var(--light-gray);
    transform: translateY(-1px);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.user-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: 0.8rem;
    color: var(--text-color);
    transition: var(--transition);
}

.user-menu:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    margin-top: 5px;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--light-gray);
    color: var(--primary-color);
}

.dropdown-item.logout:hover {
    background: #fee;
    color: #dc3545;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
}

/* Login Section Styles */
.login-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    background: var(--light-gray);
    padding: 40px 20px;
    margin-top: 80px;
}

.login-container {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(103, 58, 183, 0.08);
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
}

.login-header {
    margin-bottom: 30px;
}

.google-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.login-header h2 {
    margin-bottom: 12px;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
}

.login-header p {
    margin-bottom: 0;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Error Message */
.login-error {
    background: #fee;
    color: #dc3545;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Google Sign-in Button */
.google-signin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    padding: 14px 24px;
    background: var(--white);
    color: #333;
    border: 2px solid #dadce0;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.google-signin-btn:hover {
    background: #f8f9fa;
    border-color: #c1c7d0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.google-signin-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.google-signin-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.google-signin-text {
    flex: 1;
    text-align: center;
}

/* Login Footer */
.login-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.login-footer p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Loading State */
.login-loading {
    text-align: center;
    padding: 40px 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.login-loading h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.login-loading p {
    color: #666;
    font-size: 1rem;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .header-auth {
        margin-left: 10px;
        margin-top: 15px;
        width: 100%;
        justify-content: center;
    }

    .signin-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
        border-radius: 20px;
    }

    .user-menu {
        width: 100%;
    }

    .user-avatar-wrapper {
        justify-content: center;
        padding: 8px 16px;
    }

    .user-name {
        max-width: 100px;
    }

    .user-dropdown {
        left: 0;
        right: 0;
        min-width: auto;
    }

    .login-section {
        min-height: 70vh;
        padding: 20px 15px;
        margin-top: 70px;
    }

    .login-container {
        padding: 30px 20px;
        max-width: 350px;
    }

    .login-header h2 {
        font-size: 1.6rem;
    }

    .login-header p {
        font-size: 1rem;
    }

    .google-signin-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    /* Mobile Navigation Integration */
    .main-navigation.active .header-auth {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 480px) {
    .signin-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .signin-btn span {
        display: none;
    }

    .signin-btn i {
        margin-right: 0;
    }

    .user-avatar {
        width: 28px;
        height: 28px;
    }

    .user-name {
        font-size: 0.85rem;
        max-width: 80px;
    }

    .login-container {
        padding: 25px 16px;
    }

    .login-header h2 {
        font-size: 1.4rem;
    }

    .google-signin-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
        gap: 10px;
    }
}

/* Dashboard Styles (if you want to create a simple dashboard page) */
.dashboard-section {
    padding: 40px 0;
    min-height: 60vh;
    background: var(--light-gray);
    margin-top: 80px;
}

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

.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
}

.dashboard-header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.dashboard-welcome {
    font-size: 1.2rem;
    color: #666;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 10px;
}

.stat-card p {
    color: #666;
    font-size: 1rem;
}

/* Ensure dropdown works on mobile */
@media (max-width: 768px) {
    .user-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 0;
        margin-top: 0;
        transform: translateY(100%);
    }

    .user-menu:hover .user-dropdown {
        transform: translateY(0);
    }

    .dropdown-item {
        padding: 16px 20px;
        font-size: 1rem;
        justify-content: center;
    }
}

/* ==================== New Homepage Redesign ==================== */
/* Section base */
.section {
  padding: 90px 0;
}

/* Demo Video Modal */
.video-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.video-modal.active { display: flex; }
.video-modal-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.6);
}
.video-modal-content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
  width: min(960px, 92vw);
  padding: 0;
  overflow: hidden;
}
.video-modal-close {
  position: absolute; top: 8px; right: 12px;
  background: rgba(0,0,0,.6); color: #fff; border: none;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 22px; line-height: 36px; cursor: pointer;
}
.video-wrapper { position: relative; width: 100%; background: #000; aspect-ratio: 16 / 9; }
.demo-video, .demo-yt { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (max-width: 768px) { .video-modal-content { width: 96vw; } }

.section h2 {
  text-align: center;
  font-size: 2.6rem;
  color: #111827;
  margin-bottom: 12px;
}

.section .section-sub {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 40px;
  color: #6b7280;
  font-size: 1.05rem;
}

/* Modern hero */
.modern-hero {
  background: transparent; /* let hero-surface own the background */
  color: #0f172a;
  padding-top: 0; /* remove top gap under fixed header */
  padding-bottom: 72px;
  text-align: left; /* cleaner left-aligned look */
}

.modern-hero .container { max-width: 1280px; }
.modern-hero .hero-background { display: none; } /* remove noisy pattern */

/* Entire hero boxed surface like reference */
.modern-hero .hero-surface {
  background: #ffffff; /* consistent solid background */
  border-top: none;
  border-bottom: none; /* remove divider */
  border-left: none;
  border-right: none;
  border-radius: 0 0 24px 24px; /* continuous to header */
  box-shadow: none; /* remove shadow to avoid visual break */
  padding: 120px 0 40px; /* slightly tighter bottom spacing */
  width: 100vw; /* full-bleed */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
  overflow: hidden; /* clip decorative glows */
}

/* Remove header shadow on homepage to blend hero and header seamlessly */
body.home .site-header { box-shadow: none; border-bottom: none; }

/* Decorative soft glows to emulate reference background */
.modern-hero .hero-surface::before,
.modern-hero .hero-surface::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

/* Right-upper purple glow */
.modern-hero .hero-surface::after {
  top: 40px;
  right: -220px;
  width: 820px;
  height: 820px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(109,70,249,0.10) 0%, rgba(109,70,249,0.05) 35%, rgba(109,70,249,0) 70%);
  filter: blur(6px);
}

/* Left-lower blue glow */
.modern-hero .hero-surface::before {
  bottom: -180px;
  left: -240px;
  width: 760px;
  height: 760px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(59,130,246,0.08) 0%, rgba(59,130,246,0.04) 40%, rgba(59,130,246,0) 75%);
  filter: blur(8px);
}

/* Remove grain/texture for a clean, consistent background */
.modern-hero .hero-surface { background-image: none; }

/* Constrain inner content of the full-bleed hero surface */
.modern-hero .hero-surface .hero-split {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 56px;
}

@media (max-width: 1024px) {
  .modern-hero .hero-surface { padding: 110px 0 44px; border-radius: 0 0 20px 20px; }
  .modern-hero .hero-surface .hero-split { padding: 0 36px; }
}
@media (max-width: 768px) {
  .modern-hero .hero-surface { padding: 98px 0 28px; border-radius: 0 0 18px 18px; }
  .modern-hero .hero-surface .hero-split { padding: 0 20px; }
}

/* New design: kicker pill above heading */
.modern-hero .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eef2ff;
  color: #4f46e5;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .8rem;
  margin-bottom: 10px;
}
.modern-hero .hero-kicker i { color: #4f46e5; }

/* Heading and accent color */
.modern-hero .hero-copy h1 { font-size: 3.25rem; font-weight: 800; color: #0f172a; text-shadow: none; letter-spacing: -.02em; }
.modern-hero .hero-copy .accent { color: #5b45f9; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* Left copy width for better line length */
.modern-hero .hero-copy { max-width: 720px; }
.modern-hero .hero-subtitle { color: #4b5563; max-width: 640px; margin-top: 14px; line-height: 1.8; font-size: 1.05rem; }

/* Buttons: primary solid, secondary outline */
.modern-hero .hero-actions { margin-top: 24px; display: block; }
.modern-hero .hero-cta { justify-content: flex-start; gap: 16px; display: flex; align-items: center; flex-wrap: wrap; width: 100%; }
.modern-hero .hero-cta::after { content: ""; display: block; width: 100%; }
.modern-hero .learning-button.primary-cta {
  background: #6d46f9; /* solid brand purple */
  color: #fff;
  border: 1px solid #6d46f9;
  border-radius: 12px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(109,70,249,.20);
}
.modern-hero .learning-button.primary-cta:hover { background:#4a33ee; box-shadow: none; transform: none; }
.modern-hero .play-store-button.outline {
  background: #ffffff;
  color: #5b45f9;
  border: 2px solid #c7c4ff;
  border-radius: 12px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  box-shadow: none;
}
.modern-hero .play-store-button.outline:hover { background:#f6f7ff; box-shadow: none; transform: none; }

/* Equal height buttons */
.modern-hero .learning-button.primary-cta,
.modern-hero .play-store-button.outline {
  height: 50px; /* exact consistent height */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
}
.modern-hero .learning-button i,
.modern-hero .play-store-button i { display: inline-block; margin-right: 8px; }

/* Make hero Play Store icon clearly visible */
.modern-hero .play-store-button.outline i {
  color: #5b45f9;
  font-size: 1.1rem;
}

/* Make hero Get Started rocket icon white */
.modern-hero .learning-button.primary-cta i {
  color: #ffffff;
  font-size: 1.1rem;
}

/* Hover states closely matching reference */
.modern-hero .learning-button.primary-cta:hover {
  background: #5b45f9;
  border-color: #5b45f9;
  box-shadow: 0 8px 18px rgba(91,69,249,.22);
}
.modern-hero .play-store-button.outline:hover {
  background: #f4f4ff;
  border-color: #b7b3ff;
}

/* Hero stats simplified like reference */
.modern-hero .hero-mini-stats { gap: 40px; margin-top: 20px; display: flex; align-items: flex-start; justify-content: flex-start; flex-wrap: nowrap; width: 100%; }
.modern-hero .mini-stat {
  background: transparent; border: 0; box-shadow: none; padding: 0; text-align: left; min-width: 120px; display: flex; flex-direction: column; align-items: flex-start;
}
.modern-hero .mini-stat span { font-size: 1.25rem; font-weight: 800; color: #111827; line-height: 1.1; }
.modern-hero .mini-stat small { color: #9aa3b2; display:block; margin-top: 6px; font-size: .82rem; letter-spacing: .02em; text-transform: none; white-space: nowrap; }

/* Right visual stacked cards with soft offset shadow */
.modern-hero .visual-stack { position: relative; width: 100%; max-width: 420px; margin-left: auto; }
.modern-hero .visual-back { display: none; }
.modern-hero .visual-front { position: relative; border-radius: 22px; }

/* Ensure device card looks like a floating screenshot */
.modern-hero .hero-visual .device-card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.modern-hero .hero-visual .badge { display: none; }

/* Cleaner grid ratio and spacing for hero */
.modern-hero .hero-split { grid-template-columns: 1.2fr 0.8fr; gap: 56px; }

/* Responsive tweaks */
@media (max-width: 1024px) {
  .modern-hero .hero-copy h1 { font-size: 2.4rem; }
  .modern-hero .visual-stack { margin: 0 auto; }
}
@media (max-width: 768px) {
  .modern-hero { padding-top: 120px; }
  .modern-hero .hero-copy { max-width: 100%; }
  .modern-hero .hero-copy h1 { font-size: 2.1rem; }
  .modern-hero .hero-split { grid-template-columns: 1fr; gap: 28px; }
  .modern-hero .visual-back { display: none; }
  .modern-hero .hero-mini-stats { display: none; }
}

.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  font-size: 3rem;
  line-height: 1.15;
  color: #0f172a;
}

/* Ensure hero text/buttons sit above any visuals */
.hero-copy { position: relative; z-index: 3; }
.hero-visual { position: relative; z-index: 2; }
.hero-cta .secondary-cta { position: relative; z-index: 4; pointer-events: auto; }

.hero-copy .accent {
  color: #6d46f9;
}

.hero-copy .hero-subtitle {
  color: #475569;
  margin: 18px 0 26px;
}

/* Align CTA buttons and mini-stats on a single row */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-actions .hero-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .hero-mini-stats { display: inline-flex; gap: 12px; }

.hero-mini-stats {
  display: flex;
  gap: 24px;
  margin-top: 14px;
}

.mini-stat {
  background: #ffffff;
  border: 1px solid #eef2ff;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
  border-radius: 14px;
  padding: 10px 14px;
  text-align: center;
}

.mini-stat span {
  display: block;
  font-weight: 700;
  color: #111827;
}

.mini-stat small {
  color: #6b7280;
}

.hero-visual .device-card {
  position: relative;
  background: linear-gradient(180deg, #f3f4ff, #ffffff);
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 0; /* remove inner whitespace */
  box-shadow: 0 20px 40px rgba(80, 72, 229, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* clip image to rounded corners */
  height: auto; /* allow image to define height */
}

.hero-visual .device-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain; /* show full image */
  border-radius: 0; /* outer card has radius */
}

/* Mobile phone styled frame for hero YouTube embed */
.hero-visual .mobile-frame {
  position: relative;
  width: 88%; /* slightly larger phone when card removed */
  aspect-ratio: 9 / 16;
  background: #f8fafc; /* light bg if video blocked */
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #e5e7eb; /* light bezel */
  margin: 6px auto; /* center within box */
}

.hero-visual .mobile-yt {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Ensure local MP4 fallback matches iframe sizing */
.hero-visual .mobile-mp4 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Play overlay for inline phone video */
.mobile-play-overlay {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  box-shadow: 0 8px 18px rgba(17,24,39,.18);
  border: 1px solid rgba(0,0,0,.06);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
  transition: opacity .2s ease;
}
.mobile-play-overlay .play-triangle {
  width: 0; height: 0;
  border-left: 16px solid #6d46f9;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}
.mobile-play-overlay:hover { filter: brightness(.98); }

/* Remove notch for cleaner look */
.hero-visual .mobile-frame::before { display: none; }

/* Hero auto-scrolling carousel */
.hero-carousel { overflow: hidden; width: 100%; }
.hero-carousel-track {
  display: inline-flex;
  align-items: center;
  gap: 0; /* no gap between slides */
  will-change: transform;
  transition: transform 600ms ease; /* slide transition */
}
.hero-carousel-track img {
  flex: 0 0 100%; /* each slide takes full card width */
  width: 100%;
  height: auto; /* let image height flow */
  border-radius: 0;
  box-shadow: 0 8px 18px rgba(17,24,39,0.08);
}

/* Removed marquee keyframes in favor of slide transition via JS */

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-carousel-track { animation: none; }
}

.hero-visual .badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #6d46f9;
  color: #fff;
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(109, 70, 249, 0.35);
}

/* Smart Pedagogy feature cards */
.smart-pedagogy {
  background: #ffffff;
}

/* Responsive tuning for hero alignment and preview height */
@media (max-width: 1024px) {
  .hero-visual .device-card { height: auto; }
}

@media (max-width: 768px) {
  /* Reset hero layout for mobile */
  .hero {
    padding-top: 80px;
    min-height: auto;
    display: block;
    text-align: center;
  }
  
  /* Override modern-hero grid layout for mobile */
  .hero-split,
  .modern-hero .hero-surface .hero-split {
    display: flex;
    flex-direction: column;
    gap: 30px;
    grid-template-columns: none !important;
    padding: 0 20px !important;
  }
  
  /* Content section - comes first */
  .hero-copy,
  .modern-hero .hero-copy {
    order: 1;
    text-align: center;
    max-width: 100%;
    padding: 0;
    margin: 0 auto;
  }
  
  .hero-copy h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 15px;
  }
  
  .hero-copy .hero-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    margin: 15px 0 25px;
    padding: 0 10px;
  }
  
  /* Video section - comes second */
  .hero-visual,
  .modern-hero .hero-visual {
    order: 2;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
  }
  
  .hero-visual .visual-stack,
  .modern-hero .hero-visual .visual-stack {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .hero-visual .device-card,
  .modern-hero .hero-visual .device-card {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    margin: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }
  
  .hero-visual .mobile-frame,
  .modern-hero .hero-visual .mobile-frame {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    border: none;
    margin: 0;
    background: #000;
    overflow: hidden;
  }
  
  .hero-visual .mobile-mp4,
  .hero-visual .mobile-yt,
  .modern-hero .hero-visual .mobile-mp4,
  .modern-hero .hero-visual .mobile-yt {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
  }
  
  .hero-visual .mobile-yt,
  .modern-hero .hero-visual .mobile-yt {
    position: relative;
    display: block;
  }
  
  .hero-visual .badge,
  .modern-hero .hero-visual .badge {
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    padding: 4px 8px;
  }
  
  /* Actions and stats */
  .hero-actions,
  .modern-hero .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
    display: flex !important;
  }
  
  .hero-actions .hero-cta,
  .modern-hero .hero-actions .hero-cta {
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    display: flex !important;
    width: 100% !important;
    margin-bottom: 0 !important;
  }
  
  .hero-actions .hero-mini-stats,
  .modern-hero .hero-actions .hero-mini-stats {
    justify-content: center;
    gap: 20px;
    display: flex !important;
    width: 100% !important;
    margin-top: 0 !important;
  }
  
  .mini-stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 12px;
    min-width: 100px;
  }
  
  .mini-stat span {
    font-size: 1.2rem;
  }
  
  .mini-stat small {
    font-size: 0.8rem;
  }
  
  /* Buttons */
  .learning-button.primary-cta,
  .play-store-button.outline {
    height: 48px;
    padding: 12px 20px;
    font-size: 0.9rem;
    min-width: 140px;
  }
}

/* Modern hero overrides: place stats below buttons on their own row */
.modern-hero .hero-actions { display: block; }
.modern-hero .hero-actions .hero-cta { width: 100%; margin-bottom: 12px; }
.modern-hero .hero-actions .hero-cta::after { content: ""; display: block; width: 100%; }
.modern-hero .hero-actions .hero-mini-stats {
  display: flex !important;
  gap: 40px;
  margin-top: 20px;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
}

.feature-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature-card {
  background: #fff;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 8px 26px rgba(17, 24, 39, 0.06);
  border: 1px solid #eef2ff;
}

.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.feature-card h3 { margin-bottom: 6px; color: #0f172a; }
.feature-card p { color: #6b7280; }

.feature-card.purple { background: linear-gradient(180deg, #f6efff, #ffffff); }
.feature-card.purple .icon { background: linear-gradient(135deg, #8b5cf6, #6d46f9); }
.feature-card.blue { background: linear-gradient(180deg, #eef4ff, #ffffff); }
.feature-card.blue .icon { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
.feature-card.green { background: linear-gradient(180deg, #effdf3, #ffffff); }
.feature-card.green .icon { background: linear-gradient(135deg, #34d399, #22c55e); }
.feature-card.orange { background: linear-gradient(180deg, #fff5eb, #ffffff); }
.feature-card.orange .icon { background: linear-gradient(135deg, #fb923c, #f97316); }

/* How it works */
.how-it-works {
  background: linear-gradient(180deg, #f6f7ff 0%, #f9fbff 100%);
}

.hiw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 26px;
}

.hiw-item {
  text-align: center;
  padding: 24px;
}

.hiw-icon { 
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; margin-bottom: 10px;
}
.hiw-icon.purple { background: linear-gradient(135deg,#8b5cf6,#6d46f9); }
.hiw-icon.blue { background: linear-gradient(135deg,#60a5fa,#3b82f6); }
.hiw-icon.green { background: linear-gradient(135deg,#34d399,#22c55e); }

/* Experience grid */
.comprehensive-experience { background: #ffffff; }
.experience-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
  margin-top: 20px;
}
.xp-card {
  padding: 22px;
  border-radius: 16px;
  border: 1px solid #eef2ff;
  box-shadow: 0 8px 26px rgba(17, 24, 39, 0.06);
}
.xp-card h4 { color:#0f172a; margin-bottom: 6px; }
.xp-card p { color:#6b7280; }
.xp-card.purple { background: linear-gradient(180deg,#f6efff,#ffffff); }
.xp-card.blue { background: linear-gradient(180deg,#eef4ff,#ffffff); }
.xp-card.green { background: linear-gradient(180deg,#effdf3,#ffffff); }
.xp-card.orange { background: linear-gradient(180deg,#fff7ed,#ffffff); }
.xp-card.pink { background: linear-gradient(180deg,#fff0f6,#ffffff); }
.xp-card.teal { background: linear-gradient(180deg,#ecfeff,#ffffff); }

/* App preview */
.section-kicker { text-align:center; color:#6d46f9; font-weight:600; margin-bottom:6px; }
.preview-cards { display:grid; grid-template-columns: repeat(3,1fr); gap:22px; margin-top:22px; }
.preview-card { background:#fff; border:1px solid #eef2ff; border-radius:18px; padding:18px; box-shadow:0 10px 28px rgba(17,24,39,0.06); }
.preview-media { border-radius:14px; overflow:hidden; box-shadow: 0 10px 24px rgba(0,0,0,0.08); }
.preview-media img { width:100%; height:auto; display:block; }
.chip { display:inline-block; padding:6px 10px; border-radius:999px; font-size:.8rem; font-weight:600; margin:12px 0 6px; color:#fff; }
.chip.purple { background:#6d46f9; }
.chip.blue { background:#3b82f6; }
.chip.green { background:#22c55e; }
.bullets { margin:10px 0 0 18px; color:#4b5563; }
.bullets li { margin:4px 0; }

/* Responsive for new homepage */
@media (max-width: 1024px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .feature-card-grid { grid-template-columns: repeat(2,1fr); }
  .experience-grid { grid-template-columns: repeat(2,1fr); }
  .preview-cards { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section h2 { font-size: 2.1rem; }
  .hero-copy h1 { font-size: 2.2rem; }
  .hero-mini-stats { flex-wrap: wrap; }
  .feature-card-grid { grid-template-columns: 1fr; }
  .hiw-grid { grid-template-columns: 1fr; }
  .experience-grid { grid-template-columns: 1fr; }
  .preview-cards { grid-template-columns: 1fr; }
}

/* ==================== SCHOOL LOGIN STYLES ==================== */

.school-signin-section {
    margin-top: 20px;
    text-align: center;
    position: relative;
}

.school-signin-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    position: relative;
}

.school-signin-divider span {
    background: white;
    padding: 0 15px;
    color: #6b7280;
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
}

.school-signin-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #e5e7eb;
    transform: translateY(-50%);
    z-index: 1;
}

.school-signin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    padding: 14px 24px;
    background: var(--white);
    color: #333;
    border: 2px solid #dadce0;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.school-signin-btn:hover {
    background: #f8f9fa;
    border-color: #c1c7d0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.school-signin-btn i {
    font-size: 1.2rem;
    color: #4285F4;
}

/* School Login Modal */
.school-login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.school-login-content {
    background: #ffffff;
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #e2e8f0;
    text-align: center;
    padding: 0;
    position: relative;
}

.school-login-header {
    background: linear-gradient(135deg, #6d46f9 0%, #5b45f9 100%);
    color: white;
    padding: 24px;
    border-radius: 16px 16px 0 0;
    text-align: center;
    position: relative;
}

.school-login-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.school-login-header p {
    margin: 8px 0 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.close-school-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

.close-school-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.school-login-step {
    padding: 32px 24px;
    display: none;
}

.school-login-step.active {
    display: block;
}

.school-login-step h3 {
    color: #0f172a;
    margin-bottom: 8px;
    font-size: 1.5rem;
    font-weight: 700;
}

.school-login-step p {
    color: #6b7280;
    margin-bottom: 24px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.school-login-step form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.school-login-step input,
.school-login-step select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: #0f172a;
}

.school-login-step input:focus,
.school-login-step select:focus {
    outline: none;
    border-color: #6d46f9;
    background: white;
    box-shadow: 0 0 0 3px rgba(109, 70, 249, 0.1);
}

.school-login-step input::placeholder {
    color: #94a3b8;
}

.school-submit-btn {
    background: #6d46f9;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(109, 70, 249, 0.3);
}

.school-submit-btn:hover {
    background: #5b45f9;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(109, 70, 249, 0.4);
}

.school-submit-btn:active {
    transform: translateY(0);
}

.back-to-login-btn {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 16px;
    transition: all 0.2s ease;
}

.back-to-login-btn:hover {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .school-login-content {
        padding: 24px;
        max-width: 95%;
    }

    .school-login-step h3 {
        font-size: 1.4rem;
    }

    .school-login-step input,
    .school-login-step select {
        padding: 10px;
        font-size: 0.95rem;
    }
}

/* School Login Options Buttons */
.school-login-options {
    display: none;
    margin: 20px 0;
    gap: 12px;
    flex-direction: column;
}

.school-option-btn {
    background: #f8f9ff;
    border: 2px solid #e1e5ff;
    color: #4f46e5;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-align: center;
}

.school-option-btn:hover {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.back-to-school-code-btn {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #6b7280;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 15px;
    transition: all 0.2s ease;
}

.back-to-school-code-btn:hover {
    background: #f3f4f6;
    color: #374151;
    border-color: #9ca3af;
}

/* Credentials Display Styling */
.credentials-container {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border: 1px solid #e1e5ff;
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08);
}

.credential-item {
    margin-bottom: 20px;
}

.credential-item:last-child {
    margin-bottom: 0;
}

.credential-item label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.credential-value {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.credential-value:hover {
    border-color: #c7d2fe;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.12);
}

.credential-text {
    flex: 1;
    color: #1f2937;
    word-break: break-all;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.copy-btn {
    background: rgba(79, 70, 229, 0.05);
    border: 1px solid rgba(79, 70, 229, 0.2);
    color: #6d46f9;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 8px;
    margin-left: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: rgba(79, 70, 229, 0.1);
    border-color: #6d46f9;
    color: #5b45f9;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
}

.copy-btn:active {
    transform: translateY(0);
}

.credentials-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: 16px;
    margin: 24px 0;
    color: #92400e;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.credentials-warning i {
    color: #f59e0b;
    font-size: 1.2rem;
    margin-top: 1px;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 50%;
    padding: 4px;
}

.credentials-warning p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 500;
    color: #78350f;
    flex: 1;
}

#credentialsDisplayStep .school-submit-btn {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

#credentialsDisplayStep .school-submit-btn:hover {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Login Page Background Styling */
body.page-template-page-login {
    background: linear-gradient(135deg, #f6f7ff 0%, #f9fbff 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-section {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background: transparent;
}

.login-container {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(103, 58, 183, 0.08);
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Ensure footer doesn't break the background */
.site-footer {
    margin-top: 0;
}