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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #f8f9fa;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: white;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #3873b1 0%, #2c5aa0 100%);
    color: white;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    overflow: hidden;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.language-selector label {
    font-weight: 500;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Obidos Technologies Branding */
.obidos-branding {
    display: flex;
    align-items: center;
    margin: 0 20px;
}

.obidos-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.obidos-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.obidos-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 50%;
}

.obidos-text {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.language-selector select {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    min-width: 140px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.language-selector select:focus {
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #3873b1 0%, #2c5aa0 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    position: relative;
}

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

.hero-logo-image {
    max-width: 120px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.hero-logo-image:hover {
    transform: scale(1.05);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text .highlight {
    color: #ffd700;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-controls {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

.hero-language-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 300px;
}

.hero-language-selector label {
    font-weight: 600;
    color: white;
    font-size: 1rem;
    text-align: center;
}

.hero-language-selector select {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%233873b1" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6,9 12,15 18,9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px;
}

.hero-language-selector select:focus {
    outline: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary {
    background: #2c3e50;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    background: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 15px 30px;
    border: 2px solid white;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary:hover {
    background: white;
    color: #3873b1;
    transform: translateY(-2px);
}

.hero-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #2c3e50;
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #34495e;
    border-radius: 20px;
    padding: 20px;
    color: white;
    font-size: 0.9rem;
}

.phone-screen h3 {
    color: #ffd700;
    margin-bottom: 20px;
    text-align: center;
}

.phrase-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}

/* Hide desktop-only items on mobile */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
}

.phrase-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.phrase-text {
    flex: 1;
}

.phrase-en {
    font-weight: 600;
    margin-bottom: 2px;
}

.phrase-trans {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Disclaimer Section */
.disclaimer {
    background: #f8f9fa;
    padding: 40px 20px;
    border-bottom: 1px solid #e9ecef;
}

.disclaimer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.disclaimer-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    padding: 25px 30px;
    max-width: 800px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.disclaimer-box h3 {
    color: #856404;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.disclaimer-box h3::before {
    content: "⚠️";
    font-size: 1.2rem;
}

.disclaimer-box p {
    color: #856404;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

/* Navigation Styles */
.navigation {
    background: white;
    padding: 40px 20px;
    border-bottom: 1px solid #e9ecef;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
}

.nav-title {
    text-align: center;
    margin-bottom: 40px;
}

.nav-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.nav-title p {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.selector-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.category-selector,
.subcategory-selector {
    text-align: left;
}

.category-selector label,
.subcategory-selector label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1rem;
}

.category-selector select,
.subcategory-selector select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background-color: white;
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%233873b1" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6,9 12,15 18,9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px;
}

.category-selector select:focus,
.subcategory-selector select:focus {
    outline: none;
    border-color: #3873b1;
    box-shadow: 0 0 0 3px rgba(56, 115, 177, 0.1);
    transform: translateY(-1px);
}

.subcategory-selector select:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Phrase Display Styles */
.phrase-display {
    flex: 1;
    background: white;
    padding: 40px 20px;
}

.phrase-content {
    max-width: 1200px;
    margin: 0 auto;
}

.phrase-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.phrase-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: white;
}

.phrase-table th {
    background: linear-gradient(135deg, #3873b1 0%, #2c5aa0 100%);
    color: white;
    padding: 20px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.phrase-table th:first-child {
    border-top-left-radius: 12px;
}

.phrase-table th:last-child {
    border-top-right-radius: 12px;
}

.phrase-table td {
    padding: 20px 15px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
    font-size: 0.95rem;
}

.phrase-table tbody tr {
    transition: all 0.2s ease;
}

.phrase-table tbody tr:hover {
    background-color: #f8f9ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(56, 115, 177, 0.1);
}

.phrase-table tbody tr:last-child td {
    border-bottom: none;
}

.no-phrases {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 80px 20px !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-size: 1.1rem;
}

.phrase-en {
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.phrase-translation {
    font-size: 1rem;
    color: #495057;
    font-weight: 700;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.phrase-phonetic {
    color: #6c757d;
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-weight: 700;
}

.audio-button {
    background: linear-gradient(135deg, #3873b1 0%, #2c5aa0 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    box-shadow: 0 4px 12px rgba(56, 115, 177, 0.3);
}

.audio-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(56, 115, 177, 0.4);
}

.audio-button:active {
    transform: translateY(0) scale(0.95);
}

.audio-button:disabled {
    background: #dee2e6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.audio-button .play-icon {
    font-size: 1rem;
    margin-left: 1px;
}

/* Hide mobile audio button on desktop */
.mobile-audio-button {
    display: none;
}

/* Footer Styles */
/* Company Information Section */
.company-info-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 20px;
    margin: 40px 0;
}

.company-info-content {
    max-width: 1200px;
    margin: 0 auto;
}

.company-info-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    text-align: center;
    flex-direction: column;
}

.company-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.company-header-text h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.company-header-text p {
    color: #6c757d;
    font-size: 1.1rem;
    font-weight: 500;
}

.company-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.company-info-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.company-info-item h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.company-info-item p {
    color: #6c757d;
    line-height: 1.7;
    font-size: 0.95rem;
}

.company-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.company-cta .btn-primary,
.company-cta .btn-secondary {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.company-cta .btn-primary {
    background: linear-gradient(135deg, #3873b1 0%, #2c5aa0 100%);
    color: white;
    border: none;
}

.company-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 115, 177, 0.4);
}

.company-cta .btn-secondary {
    background: transparent;
    color: #3873b1;
    border: 2px solid #3873b1;
}

.company-cta .btn-secondary:hover {
    background: #3873b1;
    color: white;
    transform: translateY(-2px);
}

.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 20px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-branding {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-obidos-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.footer-company-info h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.footer-company-info p {
    color: #bdc3c7;
    font-size: 0.9rem;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.footer-link:hover {
    background: rgba(52, 152, 219, 0.2);
    color: #5dade2;
    transform: translateY(-1px);
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 30px 0;
}

.footer-main-content {
    text-align: center;
}

.footer-main-content p {
    margin: 8px 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-main-content a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-main-content a:hover {
    color: #5dade2;
    text-decoration: underline;
}

/* Mobile-First Enhancements */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .obidos-branding {
        margin: 0;
        order: 2;
    }
    
    .obidos-text {
        font-size: 0.8rem;
    }
    
    .obidos-logo {
        width: 28px;
        height: 28px;
    }
    
    .company-info-header {
        flex-direction: column;
        text-align: center;
    }
    
    .company-logo {
        width: 60px;
        height: 60px;
    }
    
    .company-header-text h2 {
        font-size: 1.8rem;
    }
    
    .company-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .company-info-item {
        padding: 20px;
    }
    
    .company-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-branding {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-link {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    .header {
        padding: 0;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 25px 20px;
    }
    
    .logo {
        font-size: 1.6rem;
        justify-content: center;
    }
    
    .logo-icon {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }
    
    .logo-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .language-selector {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        max-width: 280px;
    }
    
    .language-selector select {
        width: 100%;
        padding: 15px 20px;
        font-size: 1rem;
        border-radius: 12px;
    }
    
    .hero {
        padding: 50px 20px;
    }
    
    .hero-logo {
        margin-bottom: 15px;
    }
    
    .hero-logo-image {
        max-width: 100px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
        line-height: 1.1;
        margin-bottom: 25px;
    }
    
    .hero-text p {
        font-size: 1.2rem;
        margin-bottom: 35px;
        line-height: 1.5;
    }
    
    .hero-controls {
        gap: 20px;
    }
    
    .hero-language-selector {
        max-width: 280px;
    }
    
    .hero-language-selector select {
        padding: 16px 20px;
        font-size: 1.1rem;
        border-radius: 15px;
    }
    
    .hero-buttons {
        justify-content: center;
        gap: 15px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 18px 35px;
        font-size: 1.1rem;
        border-radius: 12px;
        min-width: 160px;
        justify-content: center;
    }
    
    .disclaimer {
        padding: 30px 15px;
    }
    
    .disclaimer-box {
        padding: 20px 25px;
        max-width: 100%;
    }
    
    .disclaimer-box h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .disclaimer-box p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .phone-mockup {
        width: 280px;
        height: 560px;
        margin: 0 auto;
        border-radius: 35px;
        padding: 25px;
        box-shadow: 0 25px 80px rgba(0,0,0,0.4);
    }
    
    .phone-screen {
        border-radius: 25px;
        padding: 25px;
        font-size: 1rem;
    }
    
    .phone-screen h3 {
        font-size: 1.4rem;
        margin-bottom: 25px;
        text-align: center;
        color: #ffd700;
    }
    
    .phrase-item {
        margin-bottom: 20px;
        padding: 15px;
        border-radius: 12px;
        background: rgba(255,255,255,0.2);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255,255,255,0.3);
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
    
    .phrase-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        flex-shrink: 0;
    }
    
    .phrase-text {
        flex: 1;
        min-width: 0;
        padding-left: 12px;
    }
    
    .phrase-en {
        font-weight: 800;
        margin-bottom: 6px;
        font-size: 1rem;
        color: #ffffff;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .phrase-trans {
        font-size: 0.9rem;
        color: #f8f9fa;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    }
    
    .selector-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 400px;
    }
    
    .nav-title h2 {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }
    
    .nav-title p {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .category-selector select,
    .subcategory-selector select {
        padding: 18px 20px;
        font-size: 1.1rem;
        border-radius: 15px;
        border: 2px solid #e9ecef;
    }
    
    .phrase-display {
        padding: 30px 15px;
    }
    
    .phrase-table-container {
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    }
    
    /* Hide audio column on mobile */
    .phrase-table th:nth-child(4),
    .phrase-table td:nth-child(4) {
        display: none;
    }
    
    .phrase-table th {
        padding: 18px 12px;
        font-size: 0.85rem;
        font-weight: 700;
    }
    
    .phrase-table td {
        padding: 18px 12px;
        font-size: 0.9rem;
    }
    
    .phrase-en {
        font-weight: 700;
        font-size: 0.95rem;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
        color: #1a1a1a;
    }
    
    .phrase-translation {
        font-size: 0.95rem;
        font-weight: 700;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .phrase-phonetic {
        font-size: 0.85rem;
        line-height: 1.3;
        color: #6c757d;
        word-wrap: break-word;
        overflow-wrap: break-word;
        font-weight: 700;
        position: relative;
    }
    
    /* Mobile play button below phonetics */
    .mobile-audio-button {
        display: inline-block;
        background: linear-gradient(135deg, #3873b1 0%, #2c5aa0 100%);
        color: white;
        border: none;
        padding: 8px 12px;
        border-radius: 20px;
        cursor: pointer;
        font-size: 0.8rem;
        transition: all 0.3s ease;
        margin-top: 8px;
        box-shadow: 0 3px 10px rgba(56, 115, 177, 0.3);
        font-weight: 600;
        min-height: 32px;
        min-width: 60px;
        text-align: center;
        line-height: 1.2;
    }
    
    .mobile-audio-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(56, 115, 177, 0.4);
    }
    
    .mobile-audio-button:active {
        transform: scale(0.95);
        background: linear-gradient(135deg, #2c5aa0 0%, #1e3a6f 100%);
    }
    
    .mobile-audio-button .play-icon {
        margin-right: 4px;
        font-size: 0.9rem;
    }
    
    /* Hide desktop audio button on mobile */
    .audio-button {
        display: none;
    }
    
    .no-phrases {
        padding: 60px 20px !important;
        font-size: 1.1rem;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 15px;
    }
    
    .hero-logo {
        margin-bottom: 12px;
    }
    
    .hero-logo-image {
        max-width: 80px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-text p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .hero-controls {
        gap: 18px;
    }
    
    .hero-language-selector {
        max-width: 260px;
    }
    
    .hero-language-selector select {
        padding: 18px 20px;
        font-size: 1.1rem;
        border-radius: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        padding: 20px 30px;
        font-size: 1.1rem;
        border-radius: 15px;
        justify-content: center;
        min-height: 56px;
    }
    
    .disclaimer {
        padding: 25px 12px;
    }
    
    .disclaimer-box {
        padding: 18px 20px;
    }
    
    .disclaimer-box h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .disclaimer-box p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .phone-mockup {
        width: 260px;
        height: 520px;
        border-radius: 30px;
        padding: 20px;
    }
    
    .phone-screen {
        border-radius: 20px;
        padding: 20px;
    }
    
    .phone-screen h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .phrase-item {
        margin-bottom: 15px;
        padding: 12px;
        border-radius: 10px;
        background: rgba(255,255,255,0.25);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255,255,255,0.3);
        box-shadow: 0 3px 12px rgba(0,0,0,0.2);
    }
    
    .phrase-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        flex-shrink: 0;
    }
    
    .phrase-text {
        padding-left: 10px;
        min-width: 0;
    }
    
    .phrase-en {
        font-size: 0.95rem;
        font-weight: 800;
        color: #ffffff;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
    }
    
    .phrase-trans {
        font-size: 0.85rem;
        color: #f8f9fa;
        text-shadow: 0 1px 2px rgba(0,0,0,0.2);
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
    }
    
    .nav-title h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .nav-title p {
        font-size: 1rem;
    }
    
    .category-selector select,
    .subcategory-selector select {
        padding: 20px 18px;
        font-size: 1.1rem;
        border-radius: 18px;
        min-height: 60px;
    }
    
    .phrase-table th {
        padding: 15px 8px;
        font-size: 0.8rem;
    }
    
    .phrase-table td {
        padding: 15px 8px;
        font-size: 0.85rem;
    }
    
    .phrase-en {
        font-size: 0.9rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        font-weight: 700;
        color: #1a1a1a;
    }
    
    .phrase-translation {
        font-size: 0.9rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        font-weight: 700;
    }
    
    .phrase-phonetic {
        font-size: 0.8rem;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        font-weight: 700;
    }
    
    .audio-button {
        display: none;
    }
    
    .mobile-audio-button {
        font-size: 0.75rem;
        padding: 6px 10px;
        margin-top: 6px;
        border-radius: 18px;
    }
    
    .mobile-audio-button:active {
        transform: scale(0.9);
    }
    
    .no-phrases {
        padding: 50px 15px !important;
        font-size: 1rem;
    }
    
    /* Enhanced touch feedback */
    .btn-primary:active,
    .btn-secondary:active {
        transform: scale(0.98);
    }
    
    .category-selector select:active,
    .subcategory-selector select:active {
        transform: scale(0.98);
    }
    
    .phrase-table tbody tr:active {
        background-color: #f0f4ff;
        transform: scale(0.99);
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3873b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for better accessibility */
button:focus,
select:focus {
    outline: 2px solid #3873b1;
    outline-offset: 2px;
}

/* Enhanced Mobile Touch Interactions */
@media (hover: none) and (pointer: coarse) {
    .audio-button:hover {
        transform: none;
        box-shadow: 0 6px 20px rgba(56, 115, 177, 0.4);
    }
    
    .phrase-table tbody tr:hover {
        transform: none;
        box-shadow: none;
    }
    
    .category-selector select:focus,
    .subcategory-selector select:focus {
        transform: none;
    }
    
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
    
    /* Enhanced touch feedback for mobile */
    .audio-button:active {
        transform: scale(0.9);
        box-shadow: 0 2px 8px rgba(56, 115, 177, 0.3);
    }
    
    .btn-primary:active,
    .btn-secondary:active {
        transform: scale(0.95);
    }
    
    .category-selector select:active,
    .subcategory-selector select:active {
        transform: scale(0.98);
        border-color: #3873b1;
    }
    
    .phrase-table tbody tr:active {
        background-color: #f0f4ff;
        transform: scale(0.99);
    }
    
    .phrase-item:active {
        transform: scale(0.98);
        background: rgba(255,255,255,0.25);
    }
}

/* Smooth scrolling for mobile */
@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
    }
    
    .hero-buttons a[href="#phrases"] {
        scroll-margin-top: 20px;
    }
    
    .hero-buttons a[href="#features"] {
        scroll-margin-top: 20px;
    }
}

/* Mobile-specific animations */
@keyframes mobileSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.phrase-table tbody tr {
    animation: mobileSlideUp 0.3s ease-out;
}

.phrase-item {
    animation: mobileFadeIn 0.4s ease-out;
}

/* Mobile gesture hints */
@media (max-width: 768px) {
    .phrase-table-container::after {
        content: "← Swipe to see more →";
        display: block;
        text-align: center;
        padding: 10px;
        color: #6c757d;
        font-size: 0.8rem;
        background: #f8f9fa;
        border-top: 1px solid #e9ecef;
    }
}

/* FAQ Section Styles */
.faq-section {
    background: white;
    padding: 60px 20px;
    border-top: 1px solid #e9ecef;
}

.faq-content {
    max-width: 1200px;
    margin: 0 auto;
}

.faq-title {
    text-align: center;
    margin-bottom: 50px;
}

.faq-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #3873b1, #2c5aa0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-title p {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.faq-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.faq-item h3 {
    color: #3873b1;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.faq-item p {
    color: #495057;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* SEO Content Section Styles */
.seo-content-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 20px;
    border-top: 1px solid #dee2e6;
}

/* Updates Notice Styles */
.updates-notice {
    background: linear-gradient(135deg, #3873b1, #2c5aa0);
    border-radius: 15px;
    padding: 25px 30px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(56, 115, 177, 0.3);
    position: relative;
    overflow: hidden;
}

.updates-notice::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.updates-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-icon {
    font-size: 1.2rem;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.badge-text {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.updates-description {
    color: white;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.seo-content {
    max-width: 1200px;
    margin: 0 auto;
}

.seo-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 40px;
    text-align: center;
    background: linear-gradient(135deg, #3873b1, #2c5aa0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.seo-item {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #3873b1;
}

.seo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.seo-item h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.seo-item p {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Mobile Responsive for FAQ and SEO Sections */
@media (max-width: 768px) {
    .faq-section,
    .seo-content-section {
        padding: 40px 15px;
    }
    
    .faq-title h2,
    .seo-content h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .faq-title p {
        font-size: 1rem;
    }
    
    .faq-grid,
    .seo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .faq-item,
    .seo-item {
        padding: 20px;
    }
    
    .faq-item h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .faq-item p {
        font-size: 0.95rem;
    }
    
    .seo-item h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .seo-item p {
        font-size: 0.9rem;
    }
    
    /* Updates Notice Mobile Styles */
    .updates-notice {
        padding: 20px 25px;
        margin-bottom: 30px;
    }
    
    .updates-badge {
        padding: 8px 16px;
        margin-bottom: 12px;
    }
    
    .badge-text {
        font-size: 0.9rem;
    }
    
    .updates-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .faq-title h2,
    .seo-content h2 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .faq-item,
    .seo-item {
        padding: 18px;
    }
    
    .faq-item h3 {
        font-size: 1.1rem;
    }
    
    .faq-item p {
        font-size: 0.9rem;
    }
    
    .seo-item h3 {
        font-size: 1rem;
    }
    
    .seo-item p {
        font-size: 0.85rem;
    }
    
    /* Updates Notice Small Mobile Styles */
    .updates-notice {
        padding: 18px 20px;
        margin-bottom: 25px;
    }
    
    .updates-badge {
        padding: 6px 12px;
        margin-bottom: 10px;
    }
    
    .badge-text {
        font-size: 0.8rem;
    }
    
    .updates-description {
        font-size: 0.95rem;
    }
}

/* Numbers Section Styles */
.numbers-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #dee2e6;
}

.numbers-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.numbers-title {
    text-align: center;
    margin-bottom: 50px;
}

.numbers-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #3873b1, #2c5aa0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.numbers-title p {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

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

.numbers-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.numbers-table-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.numbers-table-container h3 {
    background: linear-gradient(135deg, #3873b1, #2c5aa0);
    color: white;
    margin: 0;
    padding: 15px 20px;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.numbers-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.numbers-table thead th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    padding: 12px 8px;
    text-align: center;
    border-bottom: 2px solid #dee2e6;
    font-size: 0.85rem;
}

.numbers-table tbody td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #f1f3f4;
    font-weight: 500;
}

.numbers-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.numbers-table tbody tr:hover {
    background-color: #e3f2fd;
    transition: background-color 0.2s ease;
}

.numbers-table tbody td:first-child {
    font-weight: 700;
    color: #3873b1;
    background-color: #f0f4ff;
}

.numbers-table tbody td:nth-child(2) {
    font-weight: 600;
    color: #2c3e50;
}

.numbers-table tbody td:nth-child(3) {
    font-style: italic;
    color: #6c757d;
    font-size: 0.85rem;
}

/* Mobile Responsive for Numbers Section */
@media (max-width: 768px) {
    .numbers-section {
        padding: 40px 0;
    }
    
    .numbers-content {
        padding: 0 15px;
    }
    
    .numbers-title h2 {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .numbers-title p {
        font-size: 1rem;
    }
    
    .numbers-tables {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .numbers-table-container h3 {
        font-size: 1.1rem;
        padding: 12px 15px;
    }
    
    .numbers-table {
        font-size: 0.8rem;
    }
    
    .numbers-table thead th {
        padding: 10px 6px;
        font-size: 0.8rem;
    }
    
    .numbers-table tbody td {
        padding: 8px 6px;
    }
}

@media (max-width: 480px) {
    .numbers-title h2 {
        font-size: 1.8rem;
    }
    
    .numbers-table-container h3 {
        font-size: 1rem;
        padding: 10px 12px;
    }
    
    .numbers-table {
        font-size: 0.75rem;
    }
    
    .numbers-table thead th {
        padding: 8px 4px;
        font-size: 0.75rem;
    }
    
    .numbers-table tbody td {
        padding: 6px 4px;
    }
}