/* Modern Clean Styles - Inspired by Pixapage */
:root {
    /* Color Variables - Purple/Pink Theme */
    --primary-color: #8B5CF6; /* Purple */
    --primary-darker: #6D28D9;
    --primary-lighter: #A78BFA;
    --secondary-color: #F472B6; /* Pink */
    --accent-color: #0EA5E9; /* Blue */
    --text-dark: #1f2937;
    --text-light: #f9fafb;
    --text-muted: #9ca3af;
    --bg-white: #ffffff;
    --bg-light: #f7f7ff; /* Light purple tint */
    --bg-dark: #0f172a;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --transition: all 0.3s ease;
    
    /* Layout Consistency Variables */
    --container-max-width: 56rem; /* 896px - matches max-w-4xl */
    --container-padding: 1rem;
    --section-spacing: 1.5rem;
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-darker);
}

section {
    padding: 5rem 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

/* Header & Navigation */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0; /* Increased padding for better height */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0; /* Additional padding for navbar */
}

.brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.brand i {
    margin-right: 0.75rem;
    color: var(--primary-color);
}

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

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 0.75rem 0; /* Increased padding for better click area */
}

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

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

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

.try-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.875rem 1.75rem; /* Increased padding for better button size */
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.try-btn:hover {
    background-color: var(--primary-darker);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero-section {
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, #f8f0ff 0%, #f0e7ff 100%);
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.05em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn-primary, .btn-secondary {
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-darker);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background-color: rgba(59, 130, 246, 0.05);
    transform: translateY(-2px);
}

.hero-visual {
    margin-top: 2rem;
}

.waveform-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 100px;
}

.waveform-bar {
    width: 5px;
    background-color: var(--primary-color);
    border-radius: 5px;
    animation: waveform 1.5s ease-in-out infinite;
}

.waveform-bar:nth-child(1) {
    height: 40px;
    animation-delay: 0s;
}

.waveform-bar:nth-child(2) {
    height: 60px;
    animation-delay: 0.2s;
}

.waveform-bar:nth-child(3) {
    height: 80px;
    animation-delay: 0.4s;
}

.waveform-bar:nth-child(4) {
    height: 60px;
    animation-delay: 0.6s;
}

.waveform-bar:nth-child(5) {
    height: 40px;
    animation-delay: 0.8s;
}

@keyframes waveform {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(0.5);
    }
}

/* Converter Section */
.converter-section {
    background-color: var(--bg-white);
}

.converter-card {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.text-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    resize: vertical;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-light);
}

.text-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.character-counter {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.controls-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.control-group {
    display: flex;
    flex-direction: column;
}

.control-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.select-control {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-light);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    transition: var(--transition);
    width: 100%;
}

.select-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-btn-primary, .action-btn-secondary {
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.action-btn-primary:hover {
    background-color: var(--primary-darker);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.action-btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    margin-right: 0.5rem;
}

.action-btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.action-btn-secondary.active {
    transform: scale(0.98);
}

/* Loading indicator */
.loading-indicator {
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spinner {
    margin-bottom: 1rem;
}

.spinner > div {
    width: 18px;
    height: 18px;
    background-color: var(--primary-color);
    border-radius: 100%;
    display: inline-block;
    animation: bounce 1.4s infinite ease-in-out both;
    margin: 0 5px;
}

.spinner .bounce1 {
    animation-delay: -0.32s;
}

.spinner .bounce2 {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% { 
        transform: scale(0);
    } 40% { 
        transform: scale(1.0);
    }
}

.loading-indicator p {
    color: var(--text-dark);
    font-weight: 500;
}

/* Status alert */
.status-alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.status-alert.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #34d399;
}

.status-alert.error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #f87171;
}

.status-alert.error.captcha-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 2px solid #ef4444;
    border-left: 4px solid #dc2626;
    font-weight: 600;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #047857;
    border-left: 4px solid #10b981;
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: #b45309;
    border-left: 4px solid #f59e0b;
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
    border-left: 4px solid #3b82f6;
}

/* Features Section */
.features-section {
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-muted);
    margin: 0;
}

/* Voices Section */
.voices-section {
    background-color: white;
}

.voices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Voice Cards Container for Selection */
.voice-cards-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
    padding: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fafafa;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.voice-cards-container::-webkit-scrollbar {
    width: 8px;
}

.voice-cards-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.voice-cards-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.voice-cards-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.voice-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.language-header {
    position: sticky;
    top: 0;
    background: #f8fafc;
    border-radius: 6px;
    padding: 0.5rem;
    margin: 0.25rem 0;
    border-left: 3px solid #3b82f6;
    z-index: 10;
}

.language-header h3 {
    margin: 0;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.875rem;
}

.voice-selection-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border: 1.5px solid #e2e8f0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.voice-selection-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.voice-selection-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.voice-selection-card:hover::before {
    opacity: 1;
}

.voice-selection-card.selected {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

.voice-selection-card.selected::before {
    opacity: 1;
}

.voice-selection-card .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin: 0 auto 0.5rem;
    overflow: hidden;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.voice-selection-card:hover .avatar {
    transform: scale(1.1);
}

.voice-selection-card .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.voice-selection-card h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0.25rem 0;
    color: #1e293b;
    line-height: 1.2;
}

.voice-selection-card p {
    font-size: 0.6875rem;
    color: #64748b;
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.voice-traits {
    font-size: 0.625rem;
    color: #7c3aed;
    margin-top: 0.25rem;
    font-style: italic;
    font-weight: 500;
}

.voice-personalities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.voice-personalities .personality-tag {
    font-size: 0.625rem;
    color: #374151;
    padding: 0.125rem 0.375rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.2s ease;
}

.voice-selection-card:hover .personality-tag {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Gender-based color coding */
.voice-selection-card[data-gender="Female"] .avatar {
    border-color: #ec4899;
}

.voice-selection-card[data-gender="Male"] .avatar {
    border-color: #3b82f6;
}

.voice-selection-card[data-gender="Female"] .personality-tag {
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.2);
    color: #be185d;
}

.voice-selection-card[data-gender="Male"] .personality-tag {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: #1d4ed8;
}

/* Special styling for children's voices */
.voice-selection-card[data-name*="Child"] .avatar,
.voice-selection-card[data-name*="Kids"] .avatar {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
}

.voice-selection-card[data-name*="Child"] .personality-tag,
.voice-selection-card[data-name*="Kids"] .personality-tag {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
    color: #7c3aed;
}

.voice-selection-card[data-name*="Child"]::before,
.voice-selection-card[data-name*="Kids"]::before {
    background: linear-gradient(90deg, #8b5cf6, #ec4899, #f59e0b);
}

/* Multilingual voice styling */
.voice-selection-card[data-name*="Multilingual"] {
    background: linear-gradient(135deg, #fefce8 0%, #ecfdf5 100%);
}

.voice-selection-card[data-name*="Multilingual"] .personality-tag {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
    color: #15803d;
}

.voice-selection-card[data-name*="Multilingual"]::before {
    background: linear-gradient(90deg, #22c55e, #3b82f6, #8b5cf6);
}

/* Loading animation for cards */
.voice-selection-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.voice-selection-card.loading .avatar {
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* Smooth entrance animation */
.voice-selection-card {
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hide-on-cards {
    display: none;
}

/* Audio Player Styles */
.audio-player {
    margin-bottom: var(--section-spacing);
}

.audio-player .bg-gray-50 {
    background-color: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-md);
    padding: 1rem;
    transition: var(--transition);
}

.audio-player .bg-gray-50:hover {
    border-color: #d1d5db;
    box-shadow: var(--shadow-sm);
}

#audio-play-pause {
    width: 3rem;
    height: 3rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

#audio-play-pause:hover {
    background-color: #0284c7;
    transform: scale(1.05);
}

#progress-bar {
    height: 0.5rem;
    background-color: #d1d5db;
    border-radius: 9999px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

#progress-fill {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 9999px;
    transition: width 0.1s ease;
}

#volume-slider {
    width: 5rem;
    height: 0.5rem;
    background-color: #d1d5db;
    border-radius: 9999px;
    outline: none;
    cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 1rem;
    height: 1rem;
    background-color: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
}

#volume-slider::-moz-range-thumb {
    width: 1rem;
    height: 1rem;
    background-color: var(--accent-color);
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

.audio-player .text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.audio-player .text-gray-600 {
    color: #4b5563;
}

.audio-player .text-gray-700 {
    color: #374151;
}

.audio-player .font-medium {
    font-weight: 500;
}

.action-btns-right {
    display: flex;
    gap: 0.5rem;
}

.voice-card {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--border-color);
}

.voice-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-lighter);
}

.voice-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

.voice-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.voice-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.voice-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.voice-btn {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: transparent;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.voice-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* API Section */
.api-section {
    background-color: var(--bg-light);
}

.api-card {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.api-content {
    padding: 3rem;
}

.api-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.api-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.api-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.api-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.api-feature i {
    color: var(--secondary-color);
    font-size: 1.25rem;
}

.api-feature span {
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand i {
    font-size: 2rem;
    color: var(--primary-lighter);
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin: 0;
}

.footer-brand p {
    color: var(--text-muted);
    margin: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-group h4 {
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
}

.footer-group a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.footer-group a:hover {
    color: var(--primary-lighter);
}

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

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Pulse animation for text input */
.pulse {
    animation: pulse-animation 0.5s ease;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* Responsive styles */
@media (max-width: 992px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 6rem 0 4rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-brand {
        text-align: center;
        align-items: center;
    }
    
    .api-content {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .controls-row {
        grid-template-columns: 1fr;
    }
    
    .actions-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .actions-row > div {
        display: flex;
        width: 100%;
        gap: 0.5rem;
    }
    
    .action-btn-secondary, .action-btn-primary {
        flex: 1;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .voice-cards-container {
        max-height: 350px;
    }
    
    .voice-cards-row {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.5rem;
        padding: 0.375rem;
    }
    
    .voice-selection-card {
        padding: 0.5rem;
    }
    
    .voice-selection-card .avatar {
        width: 32px;
        height: 32px;
    }
    
    .voice-selection-card h4 {
        font-size: 0.8125rem;
    }
    
    .voice-selection-card p {
        font-size: 0.625rem;
    }
    
    .voice-personalities .personality-tag {
        font-size: 0.5625rem;
        padding: 0.1rem 0.3rem;
    }
    
    .language-header h3 {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .voice-cards-container {
        max-height: 300px;
        padding: 0.375rem;
    }
    
    .voice-cards-row {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.375rem;
        padding: 0.25rem;
    }
    
    .voice-selection-card {
        padding: 0.375rem;
    }
    
    .voice-selection-card .avatar {
        width: 28px;
        height: 28px;
        margin-bottom: 0.375rem;
    }
    
    .voice-selection-card h4 {
        font-size: 0.75rem;
        margin: 0.125rem 0;
    }
    
    .voice-selection-card p {
        font-size: 0.5625rem;
        margin-bottom: 0.375rem;
    }
    
    .language-header {
        padding: 0.375rem;
    }
    
    .language-header h3 {
        font-size: 0.75rem;
    }
}

/* Custom styles for the TTS application */

/* Voice card styles */
.voice-card {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    width: 280px;
}

.voice-card:hover {
    border-color: #60a5fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.voice-card.selected {
    border-color: #2563eb;
    background-color: #eff6ff;
}

/* Hide scrollbar but allow scrolling */
.hide-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.voice-preview-card {
    animation: float 4s ease-in-out infinite;
}

.voice-preview-card:nth-child(2) {
    animation-delay: 0.5s;
}

.voice-preview-card:nth-child(3) {
    animation-delay: 1s;
}

.voice-preview-card:nth-child(4) {
    animation-delay: 1.5s;
}

/* Custom language mapping styles */
.language-flag {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: 0.5rem;
    border-radius: 50%;
    vertical-align: middle;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .voice-card {
        width: 200px;
        min-width: 200px;
        padding: 0.75rem;
    }
    
    /* Audio Player Mobile Responsiveness */
    .audio-player .bg-gray-50 {
        padding: 0.75rem;
    }
    
    #audio-play-pause {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    #audio-play-pause i {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .audio-player .flex.items-center.space-x-4 {
        gap: 0.75rem;
    }
    
    #volume-slider {
        width: 3rem;
    }
    
    .audio-player .text-sm {
        font-size: 0.75rem;
    }
}

/* Loading animation */
.loading-spinner .spinner-ring {
    border: 4px solid #e5e7eb;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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