   * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
            background: linear-gradient(135deg, #0f0f23, #1a1a2e, #16213e);
            color: #ffffff;
            min-height: 100vh;
            overflow-x: hidden;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem;
            position: relative;
        }

        .hero {
            text-align: center;
            margin-bottom: 3rem;
            position: relative;
        }

        .hero h1 {
            font-size: clamp(2rem, 5vw, 3rem);
            font-weight: 700;
            margin-bottom: 1rem;
        }

        @keyframes gradientShift {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        .subtitle {
            font-size: 1.2rem;
            opacity: 0.8;
            margin-bottom: 2rem;
        }

        .main-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .card {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 2rem;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
            transition: left 0.5s;
        }

        .card:hover::before {
            left: 100%;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
        }

        .input-group {
            margin-bottom: 1.5rem;
        }

        .input-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            color: #00d4ff;
        }

        .input-field {
            width: 100%;
            padding: 1rem;
            background: black;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            color: white;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .input-field:focus {
            outline: none;
            border-color: #00d4ff;
            box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
        }

        .slider-container {
            margin-bottom: 1rem;
        }

        .slider {
            -webkit-appearance: none;
            width: 100%;
            height: 6px;
            border-radius: 3px;
            background: rgba(255, 255, 255, 0.2);
            outline: none;
            transition: all 0.3s ease;
        }

        .slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: linear-gradient(45deg, #00d4ff, #4ecdc4);
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
        }

        .slider::-moz-range-thumb {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: linear-gradient(45deg, #00d4ff, #4ecdc4);
            cursor: pointer;
            border: none;
            box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
        }

        .btn {
            background: linear-gradient(45deg, #00d4ff, #4ecdc4);
            border: none;
            padding: 1rem 2rem;
            border-radius: 12px;
            color: white;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            margin: 0.5rem;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .btn:hover::before {
            width: 300px;
            height: 300px;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 15px 30px rgba(0, 212, 255, 0.4);
        }

        .btn:active {
            transform: translateY(0);
        }

        .btn-danger {
            background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
        }

        .btn-danger:hover {
            box-shadow: 0 15px 30px rgba(255, 107, 107, 0.4);
        }

        .visualization {
            height: 200px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 12px;
            margin: 1rem 0;
            position: relative;
            overflow: hidden;
        }

        .waveform {
            width: 100%;
            height: 100%;
        }

        .morse-display {
            background: rgba(0, 0, 0, 0.5);
            padding: 1rem;
            border-radius: 12px;
            font-family: 'Monaco', 'Courier New', monospace;
            font-size: 1.2rem;
            letter-spacing: 2px;
            text-align: center;
            margin: 1rem 0;
            min-height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px dashed rgba(255, 255, 255, 0.3);
        }

        .controls-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .value-display {
            font-size: 0.9rem;
            color: #00d4ff;
            text-align: right;
            margin-top: 0.5rem;
        }

        .floating-particles {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            overflow: hidden;
        }

        .particle {
            position: absolute;
            background: rgba(0, 212, 255, 0.6);
            border-radius: 50%;
            animation: float 6s infinite linear;
        }

        @keyframes float {
            0% {
                transform: translateY(100vh) rotate(0deg);
                opacity: 0;
            }
            10% {
                opacity: 1;
            }
            90% {
                opacity: 1;
            }
            100% {
                transform: translateY(-100px) rotate(360deg);
                opacity: 0;
            }
        }

        .progress-bar {
            width: 100%;
            height: 4px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 2px;
            overflow: hidden;
            margin: 1rem 0;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #00d4ff, #4ecdc4);
            width: 0%;
            transition: width 0.3s ease;
        }

        @media (max-width: 768px) {
            .main-grid {
                grid-template-columns: 1fr;
            }
            
            .controls-grid {
                grid-template-columns: 1fr;
            }
            
            .container {
                padding: 1rem;
            }
        }

        .recording-indicator {
            display: none;
            align-items: center;
            gap: 0.5rem;
            color: #ff6b6b;
            font-weight: 600;
        }

        .recording-dot {
            width: 8px;
            height: 8px;
            background: #ff6b6b;
            border-radius: 50%;
            animation: pulse 1s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.3; }
        }
  /* Header Styles */
.site-header {
    background-color: white;
    color: white;
    box-shadow: var(--shadow);
  
    top: 0;
    z-index: 100;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.25rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.logo i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0;
}

.nav-menu {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.nav-link {
    color: black;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.3125rem 0.625rem;
    border-radius: 0.25rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

.nav-link:hover {
    background-color: #a7a5a5;
    color: white;
    
}

.nav-link.active {
    background-color:#a7a5a5;
    color: white;
}
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 0.625rem;
        padding: 0.625rem 1.25rem;
    }
    
    .nav-menu {
        width: 100%;
        justify-content: center;
        padding-top: 0.625rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 0.35rem 0.5rem;
    }
    
    .lined-paper {
        min-height: 400px;
    }
    
    .text-input-area {
        height: 400px;
    }
}
 /* Perfect Footer Styles */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #e0e6ed;
    padding: 2rem 0 0;
    margin-top: 2rem;
    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.3), transparent);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-section:first-child {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    width: 48px;
    height: 48px;
  
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
  
}

.footer-logo-icon svg {
    width: 24px;
    height: 24px;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.footer-tagline {
    color: #b8c5d6;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.footer-links a {
    color: #b8c5d6;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-radius: 6px;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: white;
    transform: translateX(8px);
    background: rgba(255, 255, 255, 0.05);
    padding-left: 0.75rem;
}

.footer-links a i {
    width: 16px;
    color: #667eea;
    transition: all 0.3s ease;
}

.footer-links a:hover i {
    color: #764ba2;
    transform: scale(1.1);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    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: all 0.3s ease;
    color: #b8c5d6;
    text-decoration: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: translateY(-3px) scale(1.05);
    color: white;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    border-color: transparent;
}

.social-link i {
    font-size: 1.1rem;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem 0;
    text-align: center;
    color: #8a9bb0;
    font-size: 0.9rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-bottom p:last-child {
    margin-bottom: 0;
}

.footer-bottom .fas.fa-heart {
    color: #ff6b6b;
    animation: heartbeat 2s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-section:first-child {
        grid-column: 1 / -1;
        max-width: none;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-menu {
        width: 100%;
        justify-content: center;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .results {
        grid-template-columns: 1fr;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 15px;
    }
    
    .footer {
        padding: 3rem 0 0;
        margin-top: 3rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .footer-section:first-child {
        grid-column: auto;
        text-align: left;
    }
    
    .social-links {
        justify-content: flex-start;
    }
    
    .footer-bottom {
        padding: 1.5rem 0;
    }
}
