/* Base Styles */
:root {
    --primary-color: #4b6cb7;
    --secondary-color: #182848;
    --accent-color: #3a86ff;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-heading);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.navbar ul {
    display: flex;
    list-style: none;
}

.navbar ul li {
    margin-left: 30px;
}

.navbar ul li a {
    color: #ffffff;
    font-weight: 600;
}

.navbar ul li a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 120vh;
    min-height: 700px;
    background: linear-gradient(rgba(75, 108, 183, 0.8), rgba(24, 40, 72, 0.9)), url('../images/hero-bg.webp');
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 2rem;
}

/* Problem Section */
.problem-section {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.problem-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.problem-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.problem-card .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.problem-card h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Solution Section */
.solution-section {
    padding: 100px 0;
}

.solution-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
}

.solution-text {
    flex: 1;
}

.solution-text h3 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.solution-text ul {
    list-style: none;
    margin: 2rem 0;
}

.solution-text ul li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 30px;
}

.solution-text ul li i {
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--primary-color);
}

.solution-image {
    flex: 1;
}

.solution-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Technology Section */
.tech-section {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.tech-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
}

.tab-btn {
    padding: 12px 24px;
    background-color: transparent;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark-color);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tab-content.active {
    display: block;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.tech-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    transition: var(--transition);
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tech-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.tech-card h4 i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.model-arch {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.model-step {
    flex: 1;
    min-width: 250px;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
}

.model-step h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.training-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
}

.feature h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Results Section */
.results-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.results-section h2 {
    color: white;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.result-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.result-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.2);
}

.result-value {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.result-label {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.result-comparison {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.contact-container {
    display: flex;
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    flex: 1;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.contact-info p i {
    margin-right: 10px;
    color: var(--primary-color);
}

.resources {
    margin-top: 2rem;
}

.resource-link {
    display: block;
    margin-bottom: 1rem;
    color: var(--dark-color);
    transition: var(--transition);
}

.resource-link:hover {
    color: var(--primary-color);
}

.resource-link i {
    margin-right: 10px;
}

.contact-form {
    flex: 1;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-main);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(75, 108, 183, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 0 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    flex: 1;
    min-width: 300px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-logo h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links ul li a:hover {
    color: white;
}

.footer-social {
    flex: 1;
    min-width: 200px;
}

.footer-social h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.8;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.8);
}

.legal-links a:hover {
    color: white;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .solution-content {
        flex-direction: column;
    }
    
    .contact-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }
    
    .navbar.active {
        left: 0;
    }
    
    .navbar ul {
        flex-direction: column;
        padding: 30px;
    }
    
    .navbar ul li {
        margin: 15px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero {
        min-height: 600px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .problem-grid {
        grid-template-columns: 1fr;
    }
}
.custom-size {
    width: 1000px;
    height: 300px;
}
.nav{
    display: block;
    padding: 30px;
    background-color: #182848;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
/* Voice Recording Styles */
.voice-recording {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
    text-align: center;
  }
  
  .analysis-result {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  .result-metrics {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
  }
  
  .result-metrics p {
    margin: 10px;
    font-weight: 600;
  }
  
  #recordButton.recording {
    background-color: #dc3545;
    animation: pulse 1.5s infinite;
  }
  
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
  }
  /* Keystroke Test Styles */
.keystroke-test {
    background: #f5f7fa;
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
  }
  
  .prompt-text {
    font-size: 1.2rem;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--primary-color);
  }
  
  .virtual-keyboard {
    margin: 20px auto;
    max-width: 800px;
  }
  
  .keyboard-row {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
  }
  
  .keyboard-key {
    width: 40px;
    height: 50px;
    margin: 0 3px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: all 0.1s;
  }
  
  .keyboard-key.space {
    width: 300px;
  }
  
  .keyboard-key.active {
    background: var(--primary-color);
    color: white;
    transform: scale(0.95);
  }
  
  .keyboard-key.incorrect {
    background: #ff6b6b;
    color: white;
  }
  
  .analysis-dashboard {
    margin-top: 30px;
    background: white;
    padding: 20px;
    border-radius: 8px;
  }
  
  .metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 20px 0;
  }
  
  .metric {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
  }
  
  .metric-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
  }
  
  .metric-label {
    font-size: 0.9rem;
    color: #666;
  }
  
  .heatmap-container {
    height: 60px;
    margin-top: 20px;
    background: linear-gradient(90deg, #f8f9fa, var(--primary-color));
    border-radius: 5px;
    position: relative;
  }
  
  .heatmap-bar {
    position: absolute;
    bottom: 0;
    height: 100%;
    background-color: rgba(220, 53, 69, 0.7);
    transition: width 0.5s;
  }
  /* Updated Styles */
.input-container {
    margin: 20px 0;
  }
  
  #keyInput {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.1rem;
    min-height: 100px;
    transition: border 0.3s;
  }
  
  #keyInput:focus {
    border-color: var(--primary-color);
    outline: none;
  }
  
  .typing-speed {
    text-align: center;
    font-size: 1.3rem;
    margin: 20px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
  }
  
  #speed-value {
    font-weight: bold;
    color: var(--primary-color);
  }
  
  .virtual-keyboard {
    margin: 20px auto;
    max-width: 800px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
  }
  /* Updated Styles */
.input-container {
    margin: 20px 0;
  }
  
  #keyInput {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.1rem;
    min-height: 100px;
    transition: border 0.3s;
  }
  
  #keyInput:focus {
    border-color: var(--primary-color);
    outline: none;
  }
  
  .typing-speed {
    text-align: center;
    font-size: 1.3rem;
    margin: 20px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
  }
  
  #speed-value {
    font-weight: bold;
    color: var(--primary-color);
  }
  
  .virtual-keyboard {
    margin: 20px auto;
    max-width: 800px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
  }
  
  .virtual-keyboard.visible {
    opacity: 1;
    transform: translateY(0);
    display: block;
  }
  .virtual-keyboard.visible {
    opacity: 1;
    transform: translateY(0);
    display: block;
  }
  /* Add these new styles */
.speed-metrics {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
  }
  
  kbd {
    background-color: #eee;
    border-radius: 3px;
    border: 1px solid #b4b4b4;
    box-shadow: 0 1px 1px rgba(0,0,0,0.2);
    color: #333;
    display: inline-block;
    font-size: 0.85em;
    font-weight: 700;
    line-height: 1;
    padding: 2px 4px;
    white-space: nowrap;
  }
  
  #keyInput::placeholder {
    color: #999;
    font-style: italic;
  }
  
  .completion-message {
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
  }
  
  .completion-message.success {
    background-color: rgba(40, 167, 69, 0.2);
    color: #28a745;
  }
  
  .completion-message.error {
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
  }