/**
 * Esplanada Café Europa - Styles
 * Modular CSS for coffee landing page
 */

/* CSS Variables */
:root {
    --coffee-dark: #2F1B14;
    --coffee-medium: #4A2E1F;
    --coffee-light: #8B4513;
    --coffee-cream: #F5E6D3;
    --coffee-gold: #D4AF37;
    --coffee-green: #4A7C59;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-neumorphic: 5px 5px 15px rgba(0, 0, 0, 0.2), -5px -5px 15px rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: var(--coffee-dark);
    background: linear-gradient(135deg, var(--coffee-cream) 0%, #E8D5B7 100%);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
    body {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
}

/* Enhanced touch targets for mobile */
.neo-button,
.faq-question,
.nav-links a,
.mobile-menu-links a {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Mobile menu enhancements */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    padding: 2rem;
    transition: right 0.3s ease;
    z-index: 1001;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Burger menu animation */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 8px;
    -webkit-tap-highlight-color: transparent;
}

.burger-menu:hover .burger-line {
    background: var(--coffee-light);
}

.burger-line {
    width: 25px;
    height: 2px;
    background: var(--coffee-dark);
    transition: all 0.3s ease;
    border-radius: 1px;
}

/* Smooth scrolling with CSS */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Focus styles for accessibility */
.neo-button:focus,
.faq-question:focus,
button:focus {
    outline: 2px solid var(--coffee-gold);
    outline-offset: 2px;
}

/* Improved form inputs for mobile */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    font-family: 'Inter', sans-serif;
    color: var(--coffee-dark);
    font-size: 16px; /* Prevents zoom on iOS */
    -webkit-appearance: none;
    -webkit-border-radius: 10px;
}

@media (max-width: 768px) {
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.8rem;
    }
}

/* Enhanced glass card hover effects */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    padding: 2rem;
    transition: all 0.3s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

@media (hover: hover) {
    .glass-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    }
}

/* Touch-friendly FAQ */
.faq-question {
    width: 100%;
    padding: 1.5rem 0;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--coffee-dark);
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

@media (hover: hover) {
    .faq-question:hover {
        color: var(--coffee-light);
    }
}

/* Viewport height fix for mobile */
.hero {
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(rgba(47, 27, 20, 0.4), rgba(139, 69, 19, 0.3)), url('assets/hero_background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll; /* Better performance on mobile */
    }
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--coffee-dark);
    letter-spacing: -0.02em;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--coffee-dark);
    font-weight: 400;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--coffee-light);
}

/* Language Selector Styles */
.language-selector {
    margin-left: 1rem;
}

.language-select {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--coffee-dark);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%232F1B14' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.language-select:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--coffee-light);
}

.language-select:focus {
    outline: none;
    border-color: var(--coffee-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.language-select option {
    background: var(--coffee-cream);
    color: var(--coffee-dark);
    padding: 0.5rem;
}

/* Mobile Menu Styles */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.burger-line {
    width: 25px;
    height: 2px;
    background: var(--coffee-dark);
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    padding: 2rem;
    transition: right 0.3s ease;
    z-index: 1001;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-close {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.mobile-menu-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-menu-links a {
    text-decoration: none;
    color: var(--coffee-dark);
    font-size: 1.1rem;
    font-weight: 400;
}

/* Mobile language selector */
.mobile-menu-links .language-selector {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.mobile-menu-links .language-select {
    width: 100%;
    margin-top: 0.5rem;
    font-size: 1rem;
    padding: 0.8rem 1rem;
    padding-right: 2.5rem;
}

/* Component Styles */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    padding: 2rem;
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.neo-button {
    background: var(--coffee-cream);
    border: none;
    border-radius: 15px;
    padding: 1rem 2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--coffee-dark);
    cursor: pointer;
    box-shadow: var(--shadow-neumorphic);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.neo-button:hover {
    box-shadow: 
        3px 3px 10px rgba(0, 0, 0, 0.3),
        -3px -3px 10px rgba(255, 255, 255, 0.2),
        0 0 20px var(--coffee-gold);
    transform: translateY(-2px);
}

.neo-button.primary {
    background: linear-gradient(135deg, var(--coffee-gold), #F4D03F);
    color: var(--coffee-dark);
    font-weight: 600;
}

/* Animation Styles */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    filter: blur(10px);
    transition: all 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(rgba(47, 27, 20, 0.4), rgba(139, 69, 19, 0.3)), url('assets/hero_background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 230, 211, 0.2) 0%, rgba(232, 213, 183, 0.3) 50%, rgba(212, 195, 163, 0.2) 100%);
    opacity: 0.8;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 500px;
    height: 500px;
    margin: 0 auto 1px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-logo img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--coffee-dark);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Story Section */
.story {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.story-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
    align-items: center;
}

.story-step:nth-child(even) {
    direction: rtl;
}

.story-step:nth-child(even) > * {
    direction: ltr;
}

.story-content h3 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--coffee-dark);
    letter-spacing: -0.02em;
}

.story-content p {
    opacity: 0.8;
    font-size: 1.1rem;
}

.story-image {
    width: 100%;
    height: 300px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    position: relative;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.story-image i {
    font-size: 3rem;
    color: var(--coffee-light);
    position: absolute;
    z-index: 2;
}

/* How It Works Section */
.how-it-works {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.how-it-works-card {
    text-align: center;
}

.how-it-works-icon {
    width: 80px;
    height: 80px;
    background: var(--coffee-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.how-it-works-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 69, 19, 0.2);
    z-index: 1;
}

.how-it-works-icon i {
    position: relative;
    z-index: 2;
}

.how-it-works-icon.conectar {
    background-image: url('assets/card_conectar.gif');
}

.how-it-works-icon.robots {
    background-image: url('assets/card_robots.gif');
}

.how-it-works-icon.recibir {
    background-image: url('assets/card_recibir.gif');
}

.how-it-works-icon.trazabilidad {
    background-image: url('assets/card_trazabilidad.gif');
}

.how-it-works-card h3 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.how-it-works-card p {
    opacity: 0.8;
}

/* Mission Section */
.mission {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, var(--coffee-dark) 0%, var(--coffee-medium) 100%);
    color: var(--coffee-cream);
    text-align: center;
}

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

.mission h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.mission p {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.8;
}

/* Market Price Section */
.market-price {
    padding: 8rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.market-price-card {
    max-width: 600px;
    margin: 3rem auto 0;
    padding: 3rem;
}

.price-header {
    margin-bottom: 2rem;
}

.current-price {
    font-size: 3rem;
    font-weight: 600;
    color: var(--coffee-gold);
    margin-bottom: 0.5rem;
}

.price-change {
    font-size: 1.1rem;
    font-weight: 500;
}

.price-change.positive {
    color: var(--coffee-green);
}

.price-change.negative {
    color: #C0392B;
}

.chart-container {
    position: relative;
    height: 300px;
    margin-top: 2rem;
}

/* FAQ Section */
.faq {
    padding: 8rem 2rem;
    background: rgba(74, 126, 89, 0.05);
}

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

.faq-item {
    border-bottom: 1px solid var(--glass-border);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 0;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--coffee-dark);
    font-family: 'Inter', sans-serif;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    opacity: 0.8;
    padding: 0 0 1.5rem 0;
}

.faq-answer.open {
    max-height: 200px;
}

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

.faq-icon.open {
    transform: rotate(180deg);
}

/* Contact Section */
.contact {
    padding: 8rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-form {
    max-width: 500px;
    margin: 3rem auto 0;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 400;
    color: var(--coffee-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    font-family: 'Inter', sans-serif;
    color: var(--coffee-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--coffee-light);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
    color: var(--coffee-dark);
    letter-spacing: -0.02em;
    text-align: center;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

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

/* Responsive Design */

/* Extra Large Screens (1400px+) */
@media (min-width: 1400px) {
    .nav-container,
    .story,
    .how-it-works,
    .contact {
        max-width: 1400px;
    }
    
    .hero h1 {
        font-size: 4.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Large Screens (1024px - 1399px) */
@media (max-width: 1399px) {
    .hero-logo {
        width: 450px;
        height: 450px;
    }
    
    .story-step {
        gap: 3rem;
    }
}

/* Medium Screens (768px - 1023px) */
@media (max-width: 1023px) {
    .navbar {
        padding: 1rem 1.5rem;
    }
    
    .language-selector {
        margin-left: 0.5rem;
    }
    
    .language-select {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
        padding-right: 2rem;
    }
    
    .hero-logo {
        width: 350px;
        height: 350px;
    }
    
    .story,
    .how-it-works,
    .market-price,
    .contact {
        padding: 6rem 1.5rem;
    }
    
    .story-step {
        gap: 2.5rem;
    }
    
    .how-it-works-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2.5rem;
    }
    
    .mission {
        padding: 6rem 1.5rem;
    }
    
    .faq {
        padding: 6rem 1.5rem;
    }
}

/* Small-Medium Screens (768px) */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .burger-menu {
        display: flex;
    }
    
    .navbar {
        padding: 1rem;
    }
    
    .nav-logo {
        font-size: 1.1rem;
    }

    .hero {
        padding: 2rem 1rem;
        min-height: 90vh;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-logo {
        width: 280px;
        height: 280px;
        margin-bottom: 1rem;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 2.8rem);
        margin-bottom: 1rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    .story,
    .how-it-works,
    .market-price,
    .contact {
        padding: 4rem 1rem;
    }
    
    .mission,
    .faq {
        padding: 4rem 1rem;
    }

    .story-step {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        margin-bottom: 4rem;
    }

    .story-step:nth-child(even) {
        direction: ltr;
    }
    
    .story-content h3 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .story-content p {
        font-size: 1rem;
    }
    
    .story-image {
        height: 250px;
    }

    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
        margin-bottom: 2rem;
    }

    .how-it-works-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .how-it-works-card {
        padding: 1.5rem;
    }
    
    .how-it-works-card h3 {
        font-size: 1.3rem;
    }
    
    .how-it-works-card p {
        font-size: 0.95rem;
    }

    .mission h2 {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
        margin-bottom: 1.5rem;
    }
    
    .mission p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .market-price-card {
        margin: 2rem auto 0;
        padding: 2rem 1.5rem;
    }

    .current-price {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
    
    .price-change {
        font-size: 1rem;
    }
    
    .chart-container {
        height: 250px;
    }

    .faq-question {
        padding: 1rem 0;
        font-size: 1rem;
    }
    
    .faq-answer {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .contact-form {
        margin: 2rem auto 0;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 1rem;
    }

    .neo-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .glass-card {
        padding: 1.5rem;
    }
}

/* Small Screens (480px) */
@media (max-width: 480px) {
    .hero {
        padding: 1rem 0.5rem;
        min-height: 85vh;
    }
    
    .hero-content {
        padding: 0.5rem;
    }
    
    .hero-logo {
        width: 220px;
        height: 220px;
    }

    .hero h1 {
        font-size: clamp(1.6rem, 9vw, 2.2rem);
        line-height: 1.1;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .navbar {
        padding: 0.8rem;
    }
    
    .nav-logo {
        font-size: 1rem;
    }

    .story,
    .how-it-works,
    .market-price,
    .contact,
    .mission,
    .faq {
        padding: 3rem 0.8rem;
    }

    .section-title {
        font-size: clamp(1.5rem, 7vw, 1.9rem);
        margin-bottom: 1.5rem;
    }
    
    .story-content h3 {
        font-size: 1.3rem;
    }
    
    .story-content p {
        font-size: 0.9rem;
    }
    
    .story-image {
        height: 200px;
    }

    .how-it-works-card {
        padding: 1.2rem;
    }
    
    .how-it-works-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .how-it-works-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .how-it-works-card p {
        font-size: 0.85rem;
    }

    .mission h2 {
        font-size: clamp(1.5rem, 7vw, 1.9rem);
    }
    
    .mission p {
        font-size: 0.9rem;
    }

    .market-price-card {
        padding: 1.5rem 1rem;
    }
    
    .current-price {
        font-size: clamp(1.8rem, 9vw, 2.2rem);
    }
    
    .chart-container {
        height: 200px;
    }

    .faq-question {
        font-size: 0.95rem;
        padding: 0.8rem 0;
    }
    
    .faq-answer {
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 0.95rem;
    }
    
    .form-group textarea {
        min-height: 100px;
    }

    .neo-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .glass-card {
        padding: 1.2rem;
        border-radius: 15px;
    }

    .mobile-menu {
        width: 90%;
        padding: 1.5rem;
    }
    
    .mobile-menu-links a {
        font-size: 1rem;
    }
}

/* Extra Small Screens (360px and below) */
@media (max-width: 360px) {
    .hero-logo {
        width: 180px;
        height: 180px;
    }
    
    .hero h1 {
        font-size: clamp(1.4rem, 10vw, 1.8rem);
    }
    
    .section-title {
        font-size: clamp(1.3rem, 8vw, 1.6rem);
    }
    
    .story,
    .how-it-works,
    .market-price,
    .contact,
    .mission,
    .faq {
        padding: 2.5rem 0.5rem;
    }
    
    .how-it-works-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .current-price {
        font-size: clamp(1.5rem, 10vw, 1.8rem);
    }
    
    .chart-container {
        height: 180px;
    }
}

/* Landscape Orientation for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 1rem;
    }
    
    .hero-logo {
        width: 150px;
        height: 150px;
        margin-bottom: 0.5rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .hero p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .story,
    .how-it-works,
    .market-price,
    .contact,
    .mission,
    .faq {
        padding: 3rem 1rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-logo img,
    .story-image img,
    .how-it-works-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .mobile-menu,
    .burger-menu,
    .chart-container,
    .contact-form {
        display: none;
    }
    
    .hero,
    .story,
    .how-it-works,
    .mission,
    .faq {
        break-inside: avoid;
        padding: 1rem;
    }
    
    .glass-card {
        border: 1px solid #ccc;
        box-shadow: none;
        background: white;
    }
}