/* CSS Variables */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #ff6b6b;
    --accent-secondary: #4ecdc4;
    --grey-900: #1a1a1a;
    --grey-800: #2d2d2d;
    --grey-700: #404040;
    --grey-600: #525252;
    --grey-500: #737373;
    --grey-400: #a3a3a3;
    --grey-300: #d4d4d4;
    --grey-200: #e5e5e5;
    --grey-100: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #edecec;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    
}

/* Header Styles - Full Width */
.site-header {
    width: 100%;
    background: linear-gradient(135deg, var(--white) 0%, #f8fafc 100%);
    
    
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--grey-200);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    min-height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
}

.nav-link {
    position: relative;
    color: var(--grey-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--accent-color);
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link.active {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    color: var(--white);
    
}

.nav-link.active::before {
    display: none;
}

/* Main Content Container */
.container {
    flex: 1;
    max-width: 1200px;
    margin: 2rem auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px; 
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Hero Section */
.hero {
       background: #cbc7c7;
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

/* Content Sections */
.content {
    padding: var(--space-2xl);
}

.section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    font-weight: 600;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(45deg, var(--accent-color), var(--accent-secondary));
    border-radius: 2px;
}

.morse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.morse-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.morse-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition: left 0.5s;
}

.morse-card:hover::before {
    left: 100%;
}

.morse-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-secondary);
}

.morse-card.active {
    background: linear-gradient(45deg, var(--accent-color), var(--accent-secondary));
    color: white;
    transform: scale(1.05);
}

.morse-card.playing {
    animation: soundBeat 0.2s ease-in-out;
}

@keyframes soundBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.character {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.morse-card.active .character {
    color: white;
}

.morse-code {
    font-size: 1.8rem;
    font-family: 'Courier New', monospace;
    color: #666;
    letter-spacing: 3px;
}

.morse-card.active .morse-code {
    color: white;
}

/* Interactive Section */
.interactive-section {
        background: #999996;
    border-radius: 20px;
    padding: 2rem;
    margin: 3rem 0;
    color: white;
}

.translator {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: stretch;
}

.input-group {
    flex: 1;
    min-width: 280px;
}

.input-group label {
    display: block;
    margin-bottom: var(--space-md);
    font-weight: 600;
    font-size: 1.1rem;
}

.input-group textarea {
    width: 100%;
    height: 120px;
    padding: 1rem;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    resize: vertical;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-family: inherit;
    transition: var(--transition);
}

.input-group textarea:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.translate-btn {
    background: white;
    color: #f5576c;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    align-self: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.translate-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.play-morse-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: var(--space-md) 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.play-morse-btn:hover {
    background: white;
    color: #f5576c;
    transform: scale(1.05);
}

.play-morse-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.legend {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.legend-item {
    display: inline-block;
    margin: var(--space-md) 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.dot, .dash {
    display: inline-block;
    margin: 0 var(--space-sm);
    font-weight: bold;
}

.dot {
    color: #ffeb3b;
}

.dash {
    color: #ff9800;
}

.sound-controls {
    text-align: center;
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: rgba(255, 255, 255, 0.2);
    padding: var(--space-md) 1.5rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.volume-slider {
    appearance: none;
    width: 100px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.sound-indicator {
    position: fixed;
    top: 100px;
    right: 2rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 1000;
    font-weight: 600;
    color: #333;
    backdrop-filter: blur(10px);
}

.sound-indicator.active {
    display: block;
    animation: soundPulse 0.5s ease-in-out;
}

@keyframes soundPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Footer Styles - Full Width */
.footer {
    width: 100%;
    background: linear-gradient(135deg, var(--grey-900) 0%, var(--grey-800) 100%);
    color: var(--grey-300);
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-2xl) 2rem var(--space-xl);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-2xl);
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.footer-logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.footer-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    color: var(--grey-400);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: white;
    position: relative;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    border-radius: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-md);
}

.footer-links a {
    color: var(--grey-400);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
    border-radius: var(--radius-sm);
}

.footer-links a:hover {
    color: white;
    transform: translateX(8px);
    padding-left: var(--space-sm);
}

.footer-links a i {
    width: 16px;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    flex-wrap: wrap;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--grey-300);
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    transform: translateY(-4px);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.4);
    padding: var(--space-lg) 2rem;
    text-align: center;
    color: var(--grey-400);
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: var(--space-sm);
    color: var(--grey-300);
}

.footer-bottom p:last-child {
    margin-bottom: 0;
}

.footer-bottom i.fas.fa-heart {
    color: var(--accent-color);
    animation: heartbeat 2s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Font Awesome Icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

/* Responsive Design */
@media (max-width: 102px) {
    .header-container,
    .footer-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .container {
        margin: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        min-height: auto;
    }
    
    .nav-menu {
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .morse-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .translator {
        flex-direction: column;
    }
    
    .content {
        padding: 1.5rem;
    }
    
    .sound-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .volume-control {
        margin: 0.5rem 0;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        padding: var(--space-xl) 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0.75rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .container {
        margin: 1rem;
        border-radius: 15px;
    }
    
    .hero {
        padding: 2.5rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .content {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .morse-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .morse-card {
        padding: 1.5rem;
    }
    
    .interactive-section {
        padding: 1.5rem;
    }
    
    .sound-indicator {
        right: 1rem;
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .footer,
    .interactive-section,
    .sound-indicator {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .container {
        box-shadow: none;
        background: white;
    }
}
.faqs {
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 20px;
  padding: 20px;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  border-radius: 8px;

}

.faqs h2 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 30px;
  font-size: 2rem;
  border-bottom: 3px solid #3498db;
  padding-bottom: 10px;
}

.faqs h3 {
  color: #34495e;
  margin-top: 25px;
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  border-left: 4px solid #3498db;
  padding-left: 15px;
  background-color: #ecf0f1;
  padding: 10px 15px;
  border-radius: 4px;
}

.faqs p {
  margin-bottom: 20px;
  text-align: justify;
  padding-left: 10px;
  color: #555;
}

/* Morse code text styling */
.faqs p code,
.faqs p strong {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-weight: bold;
}

/* Style for quoted morse code patterns */
.faqs p:contains('"') {
  position: relative;
}

/* Responsive design */
@media (max-width: 768px) {
  .faqs {
    margin: 10px;
    padding: 15px;
  }
  
  .faqs h2 {
    font-size: 1.5rem;
  }
  
  .faqs h3 {
    font-size: 1.1rem;
  }
}