@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, hsl(240, 40%, 8%), hsl(260, 50%, 14%), hsl(280, 40%, 10%));
    min-height: 100vh;
    color: #2c3e50;
}

/* NAVBAR */
.navbar {
    width: 100%;
    background: linear-gradient(135deg, hsl(240, 40%, 8%), hsl(260, 50%, 14%), hsl(280, 40%, 10%));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 60px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: hidden;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent),
        radial-gradient(1px 1px at 15% 60%, white, transparent),
        radial-gradient(2px 2px at 70% 40%, white, transparent),
        radial-gradient(1px 1px at 40% 20%, white, transparent),
        radial-gradient(1px 1px at 85% 85%, white, transparent),
        radial-gradient(1px 1px at 25% 15%, white, transparent),
        radial-gradient(2px 2px at 45% 90%, white, transparent),
        radial-gradient(1px 1px at 95% 45%, white, transparent),
        radial-gradient(1px 1px at 10% 40%, white, transparent),
        radial-gradient(2px 2px at 55% 25%, white, transparent),
        radial-gradient(1px 1px at 75% 75%, white, transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.navbar > * {
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
}

.logo-text {
    color: white;
}

.logo-vaarta {
    background: linear-gradient(135deg, hsl(270, 70%, 55%), hsl(310, 70%, 50%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* NAV LINKS */
.nav-links {
    display: flex;
    gap: 12px;
    margin-left: auto;
}

.nav-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: transparent;
}

.nav-links a.active {
    background: #374151;
    color: white;
}

.nav-links a:hover {
    background: #374151;
    color: white;
}

/* PAGE CONTENT */
.page-content {
    padding: 0;
    max-width: 100%;
    margin: 0;
}

/* HEADINGS */
h1 {
    font-size: 42px;
    margin-bottom: 16px;
    color: #2c3e50;
    font-weight: 700;
    letter-spacing: -1px;
}

h2 {
    margin-top: 32px;
    margin-bottom: 16px;
    color: #34495e;
    font-size: 28px;
    font-weight: 600;
}

h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
}

/* PARAGRAPHS */
p {
    line-height: 1.6;
    color: #5a6c7d;
    font-size: 16px;
}

/* LISTS */
ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

ul li {
    padding: 12px 0;
    font-size: 18px;
}

ul li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

ul li a::before {
    content: '→';
    font-size: 20px;
    transition: transform 0.3s ease;
}

ul li a:hover::before {
    transform: translateX(4px);
}

/* LINKS */
a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

a:hover {
    color: #764ba2;
    text-decoration: none;
}

/* BUTTONS */
button {
    padding: 14px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(0);
}

/* CONFIDENCE BAR */
.confidence-container {
    width: 100%;
    height: 12px;
    background: #e8ecf1;
    border-radius: 8px;
    overflow: hidden;
    margin: 8px 0;
}

#confidenceBar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

#confidenceValue {
    font-size: 14px;
    font-weight: 600;
    color: #10b981;
    margin-top: 4px;
}

/* VIDEO */
video {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ISL MAIN LAYOUT */
.isl-container {
    display: flex;
    gap: 30px;
    align-items: stretch;
    margin-top: 20px;
    height: calc(100vh - 140px);
}

/* CAMERA PANEL */
.camera-section {
    flex: 1.2;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

.camera-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

.camera-section video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* PREDICTION PANEL */
.prediction-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    padding-right: 8px;
}

.prediction-section::-webkit-scrollbar {
    width: 6px;
}

.prediction-section::-webkit-scrollbar-track {
    background: transparent;
}

.prediction-section::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

/* CARDS */
.card {
    background: white;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

#predictionText {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    margin-top: 8px;
    letter-spacing: -0.5px;
}

#glossText {
    font-size: 18px;
    color: #2c3e50;
    margin-top: 8px;
    line-height: 1.6;
    font-weight: 500;
}

#sentence {
    font-size: 18px;
    color: #2c3e50;
    margin-top: 8px;
    line-height: 1.6;
    font-weight: 500;
}

/* BUTTON ROW */
.button-row {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.button-row button {
    flex: 1;
    font-size: 15px;
}

.button-row button:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.button-row button:nth-child(2) {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.button-row button:nth-child(3) {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .navbar {
        padding: 18px 40px;
    }
    
    .page-content {
        padding: 30px 40px;
    }
}

@media (max-width: 900px) {
    .isl-container {
        flex-direction: column;
        height: auto;
    }

    .camera-section {
        height: 400px;
    }

    .camera-section video {
        height: 100%;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 14px;
        padding: 6px 12px;
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 16px 20px;
        flex-direction: column;
        gap: 16px;
    }

    .logo {
        font-size: 24px;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .page-content {
        padding: 20px;
    }

    h1 {
        font-size: 32px;
    }

    .button-row {
        flex-direction: column;
    }
}


/* HOME PAGE STYLES */
.hero-section {
    text-align: center;
    padding: 60px 0 40px 0;
}

.hero-subtitle {
    font-size: 20px;
    color: #64748b;
    margin-top: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.feature-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #2c3e50;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.feature-link {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.feature-link:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.info-section {
    background: white;
    padding: 40px;
    border-radius: 16px;
    margin-top: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #667eea;
}

.info-section h2 {
    margin-top: 0;
    color: #667eea;
}

.info-section p {
    font-size: 18px;
    line-height: 1.8;
}


/* LEARNING & STT PAGE STYLES */
.learning-content {
    max-width: 1000px;
    margin: 0 auto;
}

.info-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    border-left: 4px solid #667eea;
}

.info-card h2 {
    margin-top: 0;
    color: #667eea;
    font-size: 28px;
}

.info-card p {
    font-size: 18px;
    line-height: 1.8;
    color: #64748b;
}

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

.learning-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
    text-align: center;
}

.learning-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 20px auto;
}

.learning-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #2c3e50;
}

.learning-card p {
    color: #64748b;
    line-height: 1.6;
}

.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px 40px;
    border-radius: 16px;
    text-align: center;
    color: white;
    margin-top: 40px;
}

.cta-section h2 {
    color: white;
    margin-top: 0;
    font-size: 32px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: white;
    color: #667eea;
    border-radius: 10px;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
    color: #764ba2;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 40px 0;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.15);
}

.feature-bullet {
    font-size: 32px;
    color: #10b981;
    font-weight: 700;
    flex-shrink: 0;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #2c3e50;
}

.feature-item p {
    color: #64748b;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .learning-grid {
        grid-template-columns: 1fr;
    }

    .cta-section {
        padding: 40px 30px;
    }

    .cta-section h2 {
        font-size: 26px;
    }
}


/* ISL DEMO PAGE HEADER */
.demo-header {
    text-align: center;
    margin-bottom: 30px;
}

.demo-subtitle {
    font-size: 18px;
    color: #64748b;
    margin-top: 12px;
}


/* NEW HOME PAGE STYLES */

/* Hero Section */
.hero-section-main {
    background: linear-gradient(135deg, hsl(240, 40%, 8%), hsl(260, 50%, 14%), hsl(280, 40%, 10%));
    padding: 100px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-section-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent);
    opacity: 0.4;
    pointer-events: none;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 20px;
    color: #a855f7;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.hero-title {
    font-size: 72px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(135deg, hsl(270, 70%, 55%), hsl(310, 70%, 50%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 36px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 40px;
}

.cta-button-primary {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, hsl(270, 70%, 55%), hsl(310, 70%, 50%));
    color: white;
    border-radius: 12px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.cta-button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(168, 85, 247, 0.6);
}

.cta-button-secondary {
    display: inline-block;
    padding: 16px 40px;
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Section Styles */
.section-light {
    background: #f8f9fa;
    padding: 80px 40px;
    width: 100%;
}

.section-dark {
    background: linear-gradient(135deg, hsl(240, 40%, 8%), hsl(260, 50%, 14%), hsl(280, 40%, 10%));
    padding: 80px 40px;
    color: white;
    width: 100%;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-label {
    display: inline-block;
    color: #a855f7;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.section-dark .section-title {
    color: white;
}

.section-description {
    font-size: 18px;
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-dark .section-description {
    color: rgba(255, 255, 255, 0.7);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.15);
}

.stat-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 48px;
    height: 48px;
    stroke: #a855f7;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, hsl(270, 70%, 55%), hsl(310, 70%, 50%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.stat-text {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
}

/* Process Flow */
.process-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 50px;
}

.process-step {
    text-align: center;
}

.process-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, hsl(270, 70%, 55%), hsl(310, 70%, 50%));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 12px auto;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.process-label {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.process-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
}

.process-arrow svg {
    width: 24px;
    height: 24px;
}

/* Features Grid New */
.features-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card-new {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: left;
}

.feature-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.15);
}

.feature-icon-new {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, hsl(270, 70%, 55%), hsl(310, 70%, 50%));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.feature-card-new h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.feature-card-new p {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
}

/* Demo Preview */
.demo-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.demo-camera {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 80px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

.camera-icon svg {
    width: 64px;
    height: 64px;
}

.demo-camera p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
}

.demo-output {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.demo-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: left;
}

.demo-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.demo-value {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.demo-value-italic {
    font-size: 18px;
    font-style: italic;
    color: white;
}

.speak-button {
    background: linear-gradient(135deg, hsl(270, 70%, 55%), hsl(310, 70%, 50%));
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.speak-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

/* Impact Grid */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.impact-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.15);
}

.impact-icon {
    width: 60px;
    height: 60px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.impact-icon svg {
    width: 28px;
    height: 28px;
    stroke: #a855f7;
}

.impact-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.impact-card p {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
}

/* Final CTA */
.cta-final {
    padding: 100px 40px;
}

.cta-final-title {
    font-size: 56px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* Footer */
.footer {
    background: #f8f9fa;
    padding: 30px 40px;
    text-align: center;
}

.footer p {
    font-size: 14px;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .cta-final-title {
        font-size: 36px;
    }
    
    .demo-preview {
        grid-template-columns: 1fr;
    }
    
    .process-flow {
        flex-direction: column;
    }
    
    .process-arrow {
        transform: rotate(90deg);
    }
}


/* ISL TO SPEECH PAGE STYLES */
.page-content-isl {
    padding: 20px 40px;
    max-width: 100%;
    margin: 0;
    background: #f5f7fa;
    min-height: calc(100vh - 70px);
}

.isl-header {
    margin-bottom: 20px;
}

.isl-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.isl-subtitle {
    font-size: 14px;
    color: #6b7280;
}

.isl-demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Camera Panel */
.camera-panel {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.panel-header svg {
    stroke: #6b7280;
}

.live-badge {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #a855f7;
    font-weight: 600;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #a855f7;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.camera-container {
    position: relative;
    aspect-ratio: 4/3;
    background: #e5e7eb;
}

.camera-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.camera-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.camera-container video:not([src=""]):not([srcObject]) ~ .camera-placeholder {
    display: flex;
}

.camera-container video[srcObject] ~ .camera-placeholder {
    display: none;
}

.camera-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    pointer-events: none;
}

.camera-placeholder svg {
    stroke: #d1d5db;
    margin-bottom: 16px;
}

.camera-placeholder p {
    font-size: 16px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 4px;
}

.camera-placeholder span {
    font-size: 14px;
    color: #9ca3af;
}

/* Results Panel */
.results-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
}

.results-panel::-webkit-scrollbar {
    width: 6px;
}

.results-panel::-webkit-scrollbar-track {
    background: transparent;
}

.results-panel::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.result-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.card-header svg {
    stroke: #a855f7;
    flex-shrink: 0;
}

.confidence-percent {
    margin-left: auto;
    font-size: 14px;
    font-weight: 700;
    color: #a855f7;
}

.card-content {
    padding: 14px;
}

.prediction-value {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
}

.confidence-container {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

#confidenceBar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #a855f7, #d946ef);
    transition: width 0.3s ease;
}

.gloss-value {
    font-size: 15px;
    color: #374151;
    min-height: 20px;
    background: #f9fafb;
    padding: 10px;
    border-radius: 8px;
}

.sentence-value {
    font-size: 15px;
    color: #374151;
    font-style: italic;
    min-height: 20px;
    background: #f9fafb;
    padding: 10px;
    border-radius: 8px;
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
}

.action-buttons button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-generate {
    background: linear-gradient(135deg, #a855f7, #d946ef);
    color: white;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

.btn-speak {
    background: linear-gradient(135deg, #a855f7, #d946ef);
    color: white;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
}

.btn-speak:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

.btn-clear {
    background: white;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-clear:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* Responsive */
@media (max-width: 1024px) {
    .isl-demo-container {
        grid-template-columns: 1fr;
    }
    
    .camera-container {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 640px) {
    .page-content-isl {
        padding: 20px;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
}


/* SPEECH TO TEXT PAGE STYLES */
.page-content-stt {
    padding: 20px 40px;
    max-width: 100%;
    margin: 0;
    background: #f5f7fa;
    min-height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
}

.stt-header {
    text-align: center;
    margin-bottom: 20px;
}

.stt-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.stt-subtitle {
    font-size: 14px;
    color: #6b7280;
}

.stt-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    flex: 1;
}

/* Microphone Button */
.mic-button {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mic-button svg {
    stroke: #a855f7;
}

.mic-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(168, 85, 247, 0.3);
}

.mic-button.recording {
    background: linear-gradient(135deg, #a855f7, #d946ef);
    animation: pulse-recording 1.5s infinite;
}

.mic-button.recording svg {
    stroke: white;
}

@keyframes pulse-recording {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
    }
    50% {
        box-shadow: 0 4px 40px rgba(168, 85, 247, 0.8);
    }
}

.mic-instruction {
    font-size: 14px;
    color: #6b7280;
    margin-top: -15px;
}

/* Transcript Card */
.transcript-card {
    width: 100%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.transcript-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.transcript-header svg {
    stroke: #6b7280;
}

.transcript-content {
    padding: 24px;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
}

.transcript-content::-webkit-scrollbar {
    width: 6px;
}

.transcript-content::-webkit-scrollbar-track {
    background: transparent;
}

.transcript-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

#transcriptText {
    font-size: 16px;
    color: #1a1a1a;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.transcript-placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* Footer */
.stt-footer {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

.stt-footer p {
    font-size: 13px;
    color: #6b7280;
}

.footer-brand {
    color: #1a1a1a;
    font-weight: 600;
}

.footer-vaarta {
    background: linear-gradient(135deg, hsl(270, 70%, 55%), hsl(310, 70%, 50%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive */
@media (max-width: 640px) {
    .page-content-stt {
        padding: 20px;
    }
    
    .stt-header h1 {
        font-size: 28px;
    }
    
    .mic-button {
        width: 100px;
        height: 100px;
    }
    
    .mic-button svg {
        width: 40px;
        height: 40px;
    }
}


/* ISL LEARNING PAGE STYLES */
.page-content-learning {
    padding: 20px 40px 40px 40px;
    max-width: 100%;
    margin: 0;
    background: #f5f7fa;
    min-height: calc(100vh - 70px);
}

.learning-header {
    text-align: center;
    margin-bottom: 30px;
}

.learning-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.learning-subtitle {
    font-size: 16px;
    color: #6b7280;
}

.learning-intro {
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.intro-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.intro-card svg {
    flex-shrink: 0;
    stroke: #a855f7;
}

.intro-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.intro-card p {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto 30px auto;
    border-bottom: 2px solid #e5e7eb;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6b7280;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.tab-button svg {
    stroke: #6b7280;
}

.tab-button:hover {
    color: #a855f7;
    background: rgba(168, 85, 247, 0.05);
}

.tab-button:hover svg {
    stroke: #a855f7;
}

.tab-button.active {
    color: #a855f7;
    border-bottom-color: #a855f7;
}

.tab-button.active svg {
    stroke: #a855f7;
}

/* Tab Content */
.tab-content {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
}

.tab-content.active {
    display: block;
}

/* Signs Grid */
.signs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.sign-card {
    background: white;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
}

.sign-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.2);
    border-color: #a855f7;
}

.sign-image {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 12px;
    border-radius: 8px;
}

.sign-letter {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #a855f7, #d946ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
}

.sign-word {
    font-size: 56px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
}

.sign-card p {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    margin: 0;
}

.word-card {
    padding: 20px 16px;
}

/* Practice CTA */
.practice-cta {
    background: linear-gradient(135deg, #a855f7, #d946ef);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    max-width: 1200px;
    margin: 40px auto 0 auto;
    color: white;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: white;
    color: #a855f7;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}

.btn-primary svg {
    stroke: #a855f7;
}

.suggested-phrases {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    backdrop-filter: blur(10px);
}

.suggested-phrases h3 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.phrase-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.phrase-tag {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
    .page-content-learning {
        padding: 20px;
    }
    
    .learning-header h1 {
        font-size: 28px;
    }
    
    .tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .tab-button {
        border-bottom: none;
        border-left: 3px solid transparent;
        justify-content: flex-start;
    }
    
    .tab-button.active {
        border-left-color: #a855f7;
        border-bottom-color: transparent;
    }
    
    .signs-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }
    
    .sign-letter {
        font-size: 36px;
    }
    
    .sign-word {
        font-size: 40px;
    }
    
    .practice-cta {
        padding: 30px 20px;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}


/* Practice Button on Cards */
.practice-btn {
    margin-top: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #a855f7, #d946ef);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
}

.sign-card:hover .practice-btn {
    opacity: 1;
}

.practice-btn:hover {
    transform: scale(1.05);
}

/* Practice Modal */
.practice-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.practice-modal-content {
    background: white;
    border-radius: 24px;
    width: 95%;
    max-width: 1100px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Tutorial View */
.tutorial-view {
    padding: 30px;
}

.tutorial-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: start;
}

.tutorial-media {
    background: linear-gradient(135deg, hsl(240, 40%, 8%), hsl(260, 50%, 14%), hsl(280, 40%, 10%));
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tutorial-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
    background: #1a1a2e;
}

.tutorial-placeholder {
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sign-display {
    font-size: 120px;
    font-weight: 800;
    background: linear-gradient(135deg, hsl(270, 70%, 55%), hsl(310, 70%, 50%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.tutorial-label {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.tutorial-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tutorial-text-card {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 16px;
    border-left: 4px solid #a855f7;
}

.tutorial-text-card h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    color: #1a1a1a;
}

.tutorial-text-card p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #4b5563;
}

.btn-start-practice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 32px;
    background: linear-gradient(135deg, #a855f7, #d946ef);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.btn-start-practice:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(168, 85, 247, 0.5);
}

/* Practice View */
.practice-view {
    padding: 0;
}

.practice-modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

.practice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 2px solid #e5e7eb;
}

.practice-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.practice-header span {
    color: #a855f7;
}

.close-modal {
    background: none;
    border: none;
    font-size: 36px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: #f3f4f6;
    color: #1a1a1a;
}

.practice-body {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    padding: 30px;
}

.practice-camera {
    position: relative;
    background: #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.practice-camera video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.practice-camera canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.camera-placeholder-practice {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.camera-placeholder-practice svg {
    stroke: #d1d5db;
    margin-bottom: 16px;
}

.camera-placeholder-practice p {
    font-size: 14px;
    color: #6b7280;
}

.practice-feedback {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feedback-card {
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.feedback-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detected-sign {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #a855f7, #d946ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.practice-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
}

.practice-status.waiting {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.practice-status.waiting svg {
    stroke: #6b7280;
}

.practice-status.correct {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.practice-status.correct svg {
    stroke: #10b981;
}

.practice-status.incorrect {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.practice-status.incorrect svg {
    stroke: #ef4444;
}

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

.confidence-bar-container {
    flex: 1;
    height: 10px;
    background: #e5e7eb;
    border-radius: 5px;
    overflow: hidden;
}

.practice-confidence-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #a855f7, #d946ef);
    transition: width 0.3s ease;
}

.confidence-display span {
    font-size: 16px;
    font-weight: 700;
    color: #a855f7;
    min-width: 45px;
}

.practice-footer {
    padding: 20px 30px;
    border-top: 2px solid #e5e7eb;
    text-align: center;
}

.practice-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 30px;
    border-top: 1px solid #e5e7eb;
}

.btn-back-tutorial {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f3f4f6;
    color: #4b5563;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-back-tutorial:hover {
    background: #e5e7eb;
}

.btn-close-practice {
    padding: 12px 32px;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-practice:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

/* Responsive Practice Modal */
@media (max-width: 768px) {
    .tutorial-layout {
        grid-template-columns: 1fr;
    }
    
    .sign-display {
        font-size: 80px;
    }
    
    .practice-body {
        grid-template-columns: 1fr;
    }
    
    .practice-camera {
        aspect-ratio: 16/9;
    }
    
    .practice-footer {
        flex-direction: column;
    }
    
    .btn-back-tutorial,
    .btn-close-practice {
        width: 100%;
    }
}


/* UPDATED STT STYLES */
.stt-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    width: 100%;
}

.language-selector {
    margin-bottom: 20px;
    text-align: center;
}

.language-selector label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
}

.language-selector select {
    padding: 12px 20px;
    font-size: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: white;
    color: #1a1a1a;
    cursor: pointer;
    min-width: 250px;
    transition: all 0.2s;
}

.language-selector select:hover {
    border-color: #a855f7;
}

.language-selector select:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.recording-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.stt-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.stt-btn.primary {
    background: linear-gradient(135deg, #a855f7, #d946ef);
    color: white;
}

.stt-btn.primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.3);
}

.stt-btn.primary:active:not(:disabled) {
    transform: translateY(0);
}

.stt-btn.primary.recording {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(168, 85, 247, 0);
    }
}

.stt-btn.secondary {
    background: #f3f4f6;
    color: #374151;
}

.stt-btn.secondary:hover:not(:disabled) {
    background: #e5e7eb;
}

.stt-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.status-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(217, 70, 239, 0.08));
    border-radius: 12px;
    margin-bottom: 20px;
}

.status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-icon svg {
    stroke: #a855f7;
}

.status-container.recording .status-icon svg {
    animation: spin 2s linear infinite;
}

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

.status-container p {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.results-section {
    margin-top: 20px;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.results-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.clear-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.result-card {
    background: #f9fafb;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
}

.result-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #a855f7;
    margin-bottom: 10px;
}

.result-label svg {
    stroke: #a855f7;
}

.result-text {
    font-size: 15px;
    color: #1a1a1a;
    line-height: 1.5;
    margin: 0;
    word-wrap: break-word;
}
