/* Main Website Styles */

:root {
    --bg-primary: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%);
    --bg-header: rgba(255, 255, 255, 0.8);
    --bg-card: #ffffff;
    --text-primary: #333;
    --text-secondary: #666;
    --text-nav: #666;
    --text-nav-hover: #333;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --dropdown-bg: rgba(255, 255, 255, 0.9);
    --phone-bg: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    --hero-text: #fff;
    --hero-text-shadow: rgba(0,0,0,0.3);
}

[data-theme="dark"] {
    --bg-primary: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #404040 100%);
    --bg-header: rgba(30, 30, 30, 0.9);
    --bg-card: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-nav: rgba(255, 255, 255, 0.8);
    --text-nav-hover: #ffffff;
    --border-color: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --dropdown-bg: rgba(30, 30, 30, 0.95);
    --phone-bg: linear-gradient(135deg, #3a3a3a 0%, #2d2d2d 100%);
    --hero-text: #fff;
    --hero-text-shadow: rgba(0,0,0,0.5);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    transition: all 0.3s ease;
}

/* Header Styles */
header {
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px var(--shadow-color);
}

/* Smooth scroll behavior for the whole page */
html {
    scroll-behavior: smooth;
}

/* Offset for anchor links to compensate for fixed header */
#about,
#features,
#showcase,
#download {
    scroll-margin-top: 100px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

.logo-icon {
    width: 32px;
    height: 32px;
    margin-right: 0.5rem;
}

.logo::before {
    content: "";
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-nav);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.6rem 1rem;
    border-radius: 25px;
}

.nav-links a:hover {
    color: var(--text-nav-hover);
    background: rgba(255, 107, 157, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.2);
    transform: translateY(-2px);
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
    color: var(--text-nav);
}

.theme-toggle:hover {
    background: rgba(255, 107, 157, 0.1);
    color: var(--text-nav-hover);
    transform: translateY(-2px);
}

.theme-toggle-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--text-nav);
    position: relative;
    overflow: hidden;
}

.theme-toggle-slider::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: var(--text-nav);
    transition: all 0.3s ease;
}

[data-theme="dark"] .theme-toggle-slider::before {
    left: 50%;
}

.theme-toggle:hover .theme-toggle-slider {
    border-color: var(--text-nav-hover);
}

.theme-toggle:hover .theme-toggle-slider::before {
    background: var(--text-nav-hover);
}

.nav-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.desktop-only {
    display: flex;
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 107, 157, 0.1);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--text-nav);
    margin: 2px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

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

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

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
    z-index: 999;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.mobile-nav.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-content {
    padding: 1.5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li {
    margin: 0;
}

.mobile-nav-links a {
    display: block;
    padding: 1rem 0;
    color: var(--text-nav);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.mobile-nav-links a:hover {
    color: #ff6b9d;
    padding-left: 1rem;
}

.mobile-nav-links li:last-child a {
    border-bottom: none;
}

.mobile-get-app {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.mobile-app-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 1rem 2rem;
    margin: 0;
}

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-login {
    background: var(--bg-card);
    color: #ff6b9d;
    border: 2px solid #ff6b9d;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-login:hover {
    background: #ff6b9d;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
}

/* TestFlight button - no hover color change */
.btn-testflight:hover {
    background: var(--bg-card) !important;
    color: #ff6b9d !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
}

.btn-login img,
.btn-signup img {
    transition: all 0.3s ease;
}

.btn-signup {
    background: #ff6b9d;
    color: #ffffff;
    border: 2px solid #ff6b9d;
}

.btn-signup:hover {
    background: #ff5895;
    border-color: #ff5895;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

.btn-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 4rem 5%;
    text-align: center;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #000000;
    animation: fadeInUp 1s ease-out;
    font-weight: 700;
    text-shadow: none;
}

[data-theme="dark"] .hero h1 {
    color: #ffffff;
}

.hero-tagline {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-weight: 500;
    animation: fadeInUp 1s ease-out 0.2s both;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .hero-tagline {
    color: var(--text-secondary);
}

.hero h1 span {
    background: linear-gradient(135deg, #ff6b9d 0%, #ffd93d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Phone Mockup Container */
.phone-showcase {
    position: relative;
    margin: 3rem 0;
    height: 500px;
    width: 100%;
    max-width: 900px;
    animation: fadeIn 1.5s ease-out 0.5s both;
}

.phone-mockup {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 560px;
    background: var(--phone-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--phone-bg);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.1);
}

.app-header {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    color: #fff;
    padding: 25px 20px;
    text-align: center;
    position: relative;
}

.app-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 100%);
}

.app-header h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.app-header p {
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

.app-content {
    padding: 30px 20px;
    color: #333;
    text-align: center;
    background: var(--phone-bg);
}

/* Book Cards */
.book-cards {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.book-card {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(10px);
    border: 2px solid var(--border-color);
}

.book-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.book-card:nth-child(1) {
    left: 8%;
    top: 15%;
    background: linear-gradient(135deg, #ff6b9d 0%, #f093fb 100%);
}

.book-card:nth-child(2) {
    right: 8%;
    top: 10%;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.book-card:nth-child(3) {
    left: 3%;
    bottom: 30%;
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.book-card:nth-child(4) {
    right: 3%;
    bottom: 25%;
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.book-card:nth-child(5) {
    left: 20%;
    top: 5%;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.book-card:nth-child(6) {
    right: 20%;
    bottom: 15%;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

/* Description Section */
.description {
    max-width: 700px;
    margin: 2rem auto;
    text-align: center;
    animation: fadeInUp 1s ease-out 0.8s both;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 3rem 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.description h2 {
    background: linear-gradient(135deg, #ff6b9d 0%, #ffd93d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.description p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.download-btn {
    display: inline-block;
    margin-top: 2rem;
    transition: all 0.3s ease;
    border: none;
    background: none;
    padding: 0;
    text-decoration: none;
}

.download-btn img {
    height: 60px;
    width: auto;
    border-radius: 12px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.download-btn:hover img {
    transform: translateY(-3px);
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.2));
}

.download-btn::before {
    content: "";
}

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

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

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

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hide {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: var(--dropdown-bg);
    backdrop-filter: blur(20px);
    min-width: 220px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    z-index: 1001;
    top: 100%;
    left: 0;
    margin-top: 10px;
    padding: 0.8rem 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown-content a {
    color: var(--text-secondary);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-radius: 10px;
    margin: 0 0.5rem;
}

.dropdown-content a:hover {
    background: rgba(255, 107, 157, 0.1);
    color: var(--text-primary);
    transform: translateX(5px);
}

.dropdown:hover .dropdown-content,
.dropdown-content:hover {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Add invisible bridge to prevent dropdown from closing */
.dropdown::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.5rem;
    background: transparent;
    z-index: 1000;
}

.dropdown > a::after {
    content: " ▼";
    font-size: 0.7rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.dropdown:hover > a::after {
    transform: rotate(180deg);
}

/* Animated Nutria Logo Element */
.nutria-logo-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem auto;
    animation: float 6s ease-in-out infinite;
}

.nutria-logo-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        hsl(313, 86%, 72%), 
        hsl(270, 80%, 60%), 
        hsl(180, 84%, 74%),
        hsl(223, 80%, 60%), 
        hsl(60, 80%, 60%), 
        hsl(120, 80%, 60%), 
        hsl(300, 80%, 60%), 
        hsl(300, 61%, 68%),
        hsl(350, 88%, 48%)
    );
    background-size: 400% 400%;
    border-radius: 20px;
    padding: 3px;
    animation: gradientShift 4s ease infinite;
    filter: drop-shadow(0 0 20px rgba(255, 107, 157, 0.4)) 
            drop-shadow(0 0 40px rgba(255, 107, 157, 0.2));
}

.nutria-logo-inner {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nutria-logo-svg {
    width: 60px;
    height: 60px;
    position: relative;
    z-index: 1;
}

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

/* Footer Styles */
footer {
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    padding: 2rem 5%;
    text-align: center;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.footer-content a {
    color: #ff6b9d;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-content a:hover {
    color: #ff5895;
    text-decoration: underline;
}

.footer-content p a {
    color: #ff6b9d;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-content p a:hover {
    color: #ff5895;
    text-decoration: underline;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.social-icon:hover {
    background: #e9ecef;
    border-color: #e9ecef;
    color: #495057;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.legal-links {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.legal-links a:hover {
    color: #ff6b9d;
    text-decoration: underline;
}

/* New Sections Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ff6b9d 0%, #ffd93d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-section {
    background: var(--bg-primary);
    padding: 5rem 0;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

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

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.about-feature {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.about-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 107, 157, 0.15);
    border-color: rgba(255, 107, 157, 0.3);
}

.about-feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.about-feature h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    font-weight: 600;
}

.about-feature p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.95rem;
    margin: 0;
}

/* Features Section */
.features-section {
    background: var(--bg-primary);
    padding: 3rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    box-shadow: 0 5px 15px var(--shadow-color);
    position: relative;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 107, 157, 0.15);
    border-color: rgba(255, 107, 157, 0.3);
}

.feature-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff0062 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.feature-icon svg {
    width: 20px;
    height: 20px;
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.4;
    font-size: 0.85rem;
}

/* PLUS tag for premium features */
.plus-tag {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #3c3c3c 0%, #000000 100%);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
    z-index: 10;
    transform: rotate(8deg);
    animation: plusGlow 2s ease-in-out infinite;
}

@keyframes plusGlow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
    }
    50% {
        box-shadow: 0 6px 20px rgba(255, 107, 157, 0.6);
    }
}

.feature-card.has-plus {
    border-color: rgba(255, 107, 157, 0.3);
}

.feature-card.has-plus:hover {
    border-color: rgba(255, 107, 157, 0.5);
    box-shadow: 0 10px 25px rgba(255, 107, 157, 0.2);
}

/* App Preview Section */
.app-preview-section {
    background: var(--bg-primary);
    position: relative;
}

.app-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.preview-phones {
    position: relative;
    height: 500px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-phone {
    position: absolute;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s ease;
}

.preview-phone.active {
    opacity: 1;
    transform: scale(1);
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: var(--phone-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.preview-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.preview-btn {
    padding: 0.8rem 2rem;
    border: 2px solid #ff6b9d;
    background: var(--bg-card);
    color: #ff6b9d;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preview-btn.active,
.preview-btn:hover {
    background: #ff6b9d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
}

.content-item {
    background: rgba(255, 107, 157, 0.1);
    padding: 0.8rem 1rem;
    margin: 0.5rem 0;
    border-radius: 10px;
    color: var(--text-primary);
    font-weight: 500;
}

.progress-bar {
    background: rgba(255, 107, 157, 0.2);
    height: 8px;
    border-radius: 4px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(135deg, #ff6b9d 0%, #ffd93d 100%);
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.mentor-card {
    background: rgba(255, 107, 157, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
}

.mentor-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ffd93d 100%);
    border-radius: 50%;
    margin: 0 auto 1rem;
}

/* Testimonials Section */
.testimonials-section {
    background: var(--bg-primary);
}

.testimonials-container {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.testimonial-card {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-content {
    margin-bottom: 2rem;
}

.stars {
    color: #ffd93d;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-style: italic;
}

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

.author-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ffd93d 100%);
    border-radius: 50%;
    flex-shrink: 0;
}

.author-info h4 {
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

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

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #ff6b9d;
    transform: scale(1.2);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #f495b5 0%, #ff6b9d 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.cta-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

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

/* App Screenshots Marquee Carousel */
.app-marquee-section {
    background: var(--bg-primary);
    padding: 2rem 0;
    overflow: hidden;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    animation: marquee 15s linear infinite;
}

.marquee-item {
    flex: 0 0 auto;
    width: 300px;
    margin-right: 2rem;
}

.app-screenshot {
    background: var(--bg-card);
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    border: 3px solid #333;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    position: relative;
}

.screenshot-frame {
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    height: 400px;
    position: relative;
}

[data-theme="dark"] .screenshot-frame {
    background: linear-gradient(135deg, #2d2d2d 0%, #404040 100%);
}

.screenshot-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.screenshot-header {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.screenshot-header h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.battery {
    width: 20px;
    height: 10px;
    background: #4CAF50;
    border-radius: 2px;
}

.screenshot-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.course-card {
    background: linear-gradient(135deg, #ff6b9d 0%, #f093fb 100%);
    color: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    font-weight: 600;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.progress-ring {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 8px solid var(--border-color);
    background: var(--bg-card);
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.ring-fill {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #ff6b9d 0%, #f093fb 85%, var(--border-color) 85%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.chart-container {
    display: flex;
    justify-content: space-between;
    align-items: end;
    width: 100%;
    height: 100px;
    gap: 0.5rem;
}

.chart-bar {
    width: 100%;
    background: linear-gradient(135deg, #ff6b9d 0%, #f093fb 100%);
    border-radius: 4px;
    min-height: 20px;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.3);
}

.chat-bubble {
    background: linear-gradient(135deg, #f0f0f0 0%, #ffffff 100%);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 200px;
    text-align: center;
}

[data-theme="dark"] .chat-bubble {
    background: linear-gradient(135deg, #404040 0%, #2d2d2d 100%);
}

.mentor-profile {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

.mentor-avatar-small {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6b9d 0%, #f093fb 100%);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(255, 107, 157, 0.3);
}

.achievement-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 100%;
}

.badge-icon {
    font-size: 1.8rem;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Winston-style Marquee Implementation */
.rfm-marquee-container {
    --pause-on-hover: running;
    --pause-on-click: running;
    --width: 100%;
    --transform: none;
    position: relative;
    width: var(--width);
    transform: var(--transform);
    overflow: hidden;
    padding: 2rem 0;
    background: transparent !important;
}

.rfm-marquee-container * {
    background: transparent !important;
}

.rfm-overlay {
    --gradient-color: rgba(255, 255, 255, 1);
    --gradient-width: 150px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 10;
    background: linear-gradient(
        to right,
        var(--gradient-color) 0%,
        rgba(255, 255, 255, 0.8) 10%,
        transparent 25%,
        transparent 75%,
        rgba(255, 255, 255, 0.8) 90%,
        var(--gradient-color) 100%
    );
}

[data-theme="dark"] .rfm-overlay {
    --gradient-color: rgba(26, 26, 26, 1);
    background: linear-gradient(
        to right,
        var(--gradient-color) 0%,
        rgba(26, 26, 26, 0.8) 10%,
        transparent 25%,
        transparent 75%,
        rgba(26, 26, 26, 0.8) 90%,
        var(--gradient-color) 100%
    );
}

.rfm-marquee {
    --play: running;
    --direction: normal;
    --duration: 60s;
    --delay: 0s;
    --iteration-count: infinite;
    --min-width: 100%;
    display: flex;
    width: max-content;
    min-width: var(--min-width);
    animation: rfm-marquee var(--duration) linear var(--delay) var(--iteration-count) var(--direction);
    animation-play-state: var(--play);
}

.rfm-marquee:hover {
    animation-play-state: var(--pause-on-hover);
}

.rfm-initial-child-container {
    display: flex;
    min-width: auto;
}

.rfm-child {
    --transform: none;
    transform: var(--transform);
    margin-right: 2rem;
    flex-shrink: 0;
    background: transparent !important;
}

.rfm-child img {
    height: 480px;
    width: auto;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.rfm-child:hover img {
    transform: scale(1.05);
}

.styles_niceImg__tUm21 {
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

@keyframes rfm-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Tablet responsive design */
@media (max-width: 1024px) {
    .about-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .about-feature {
        padding: 1.8rem 1.2rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 1.2rem;
    }

    .feature-card {
        padding: 1.3rem 1rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }

    .language-toggle {
        margin-left: 10px;
    }

    .btn-login {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .btn-login img {
        width: 14px;
        height: 14px;
        margin-right: 4px;
    }

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

    .hero-tagline {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .phone-showcase {
        height: 400px;
    }

    .phone-mockup {
        width: 240px;
        height: 480px;
    }

    .book-card {
        width: 70px;
        height: 70px;
    }

    .description {
        padding: 2rem 1.5rem;
        margin: 2rem 1rem;
    }

    footer {
        padding: 1.5rem 1rem;
        margin-top: 2rem;
    }

    .footer-content {
        font-size: 0.8rem;
    }

    .legal-links {
        position: static;
        transform: none;
        margin-top: 1rem;
        justify-content: center;
        gap: 1rem;
    }

    .legal-links a {
        font-size: 0.8rem;
    }

    /* New sections responsive styles */
    section {
        padding: 3rem 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

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

    .about-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .about-feature {
        padding: 1.5rem 1rem;
    }

    .about-feature-icon {
        width: 32px;
        height: 32px;
    }

    .about-text p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 1rem;
    }

    .feature-card {
        padding: 1.2rem 0.8rem;
    }

    .feature-card h3 {
        font-size: 0.9rem;
    }

    .feature-card p {
        font-size: 0.8rem;
    }

    .phone-frame {
        width: 240px;
        height: 480px;
    }

    .preview-controls {
        flex-direction: column;
        gap: 0.5rem;
    }

    .preview-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .testimonials-container {
        height: auto;
        min-height: 350px;
    }

    .testimonial-card {
        padding: 2rem 1.5rem;
        position: relative;
        transform: none;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .cta-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    /* Responsive marquee */
    .rfm-child {
        margin-right: 1rem;
    }
    
    .rfm-child img {
        height: 360px;
    }
    
    .rfm-overlay {
        --gradient-width: 50px;
    }
}

/* Language Toggle Styles */
.language-toggle {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-right: 1rem;
    position: relative;
    z-index: 1;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 40px;
    position: relative;
    z-index: 10;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn::before {
    content: "";
    width: 16px;
    height: 16px;
    background-size: cover;
    background-position: center;
    border-radius: 2px;
}

.lang-btn[data-lang="en-us"]::before {
    background-image: url('../assets/icons/ic_flagUS.png');
}

.lang-btn[data-lang="pt-br"]::before {
    background-image: url('../assets/icons/ic_flagBR.png');
}

.lang-btn:hover {
    background: rgba(255, 107, 157, 0.1);
    color: var(--text-primary);
}

.lang-btn.active {
    background: #ff6b9d;
    color: white;
}

/* Language-specific typography adjustments */
[lang="pt-br"] {
    /* Portuguese text tends to be longer, adjust if needed */
}

[lang="en-us"] {
    /* English-specific adjustments if needed */
}

/* Responsive language toggle */
@media (max-width: 768px) {
    .language-toggle {
        margin-right: 0.5rem;
    }
    
    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        min-width: 35px;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0.8rem 1rem;
    }
    
    .language-toggle {
        margin-right: 0.25rem;
    }
    
    .lang-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
        min-width: 30px;
    }
    
    .mobile-nav-content {
        padding: 1rem;
    }
    
    .mobile-nav-links a {
        font-size: 1rem;
        padding: 0.8rem 0;
    }
    
    .mobile-app-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .mobile-app-btn img {
        width: 14px;
        height: 14px;
    }
}

/* Loading animation for language switching */
.language-switching {
    pointer-events: none;
    opacity: 0.7;
}

.language-switching .lang-btn {
    animation: languageLoading 1s ease-in-out infinite;
}

@keyframes languageLoading {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Accessibility improvements for language toggle */
.lang-btn:focus {
    outline: 2px solid #ff6b9d;
    outline-offset: 2px;
}

.lang-btn:focus:not(:focus-visible) {
    outline: none;
}

/* Dark theme adjustments for language toggle */
[data-theme="dark"] .lang-btn {
    color: var(--text-nav);
}

[data-theme="dark"] .lang-btn:hover {
    background: rgba(255, 107, 157, 0.2);
    color: var(--text-nav-hover);
}

[data-theme="dark"] .lang-btn.active {
    background: #ff6b9d;
    color: white;
}

/* Text direction support (for future RTL languages) */
[dir="rtl"] .language-toggle {
    margin-left: 1rem;
    margin-right: 0;
}

/* Animation for content changes during language switch */
.content-transition {
    transition: opacity 0.2s ease-in-out;
}

.content-transition.changing {
    opacity: 0.5;
}

/* Ensure proper spacing for longer text in different languages */
.nav-links a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

@media (min-width: 1024px) {
    .nav-links a {
        max-width: none;
    }
}

/* Language suggestion notification styles */
.language-suggestion {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.language-suggestion .suggestion-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.language-suggestion .suggestion-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.language-suggestion .suggestion-btn {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-suggestion .suggestion-btn.accept {
    background: #ff6b9d;
    color: white;
}

.language-suggestion .suggestion-btn.accept:hover {
    background: #ff5895;
    transform: translateY(-1px);
}

.language-suggestion .suggestion-btn.dismiss {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.language-suggestion .suggestion-btn.dismiss:hover {
    background: var(--text-secondary);
    color: var(--bg-card);
}

/* Responsive adjustments for language suggestion */
@media (max-width: 768px) {
    .language-suggestion {
        right: 10px !important;
        max-width: calc(100vw - 20px) !important;
        font-size: 0.85rem !important;
    }
    
    .language-suggestion .suggestion-content {
        gap: 0.5rem;
    }
    
    .language-suggestion .suggestion-actions {
        flex-direction: column;
    }
    
    .language-suggestion .suggestion-btn {
        width: 100%;
        text-align: center;
    }
}
