﻿/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Body */
body {
    background: #121212;
    color: white;
    line-height: 1.6;

}

/* Header */
.header {
    /*    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: #181818;
    position: sticky;
    top: 0;
    z-index: 10;*/
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.05em;
}

.nav a {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s, font-weight 0.3s;
}

    .nav a:hover {
        color: white;
        font-weight: 600;
    }

.menu-toggle {
    font-size: 1.6rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: none;
}


@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.08);
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding-top: 5rem;
        transition: transform 0.4s ease-in-out;
        z-index: 999;
    }

        .nav.active {
            transform: translateX(-100%);
        }

        .nav a {
            font-weight: 600;
        }
}


/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
}

.hero-content {
    position: relative;
    max-width: 600px;
    z-index: 1;
}

    .hero-content h1 {
        font-size: 48px;
        margin-bottom: 20px;
        color: #00c37e;
    }

    .hero-content p {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .hero-content button {
        background: transparent;
        border: 2px solid #00c37e;
        color: #00c37e;
        padding: 12px 30px;
        border-radius: 30px;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.3s;
    }

        .hero-content button:hover {
            background: #00c37e;
            color: #121212;
        }

.services {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
    margin:20px;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px;
    width: 100%;
    max-width: 1200px;
}

.glass-card {
    position: relative;
    border-radius: 20px;
    isolation: isolate;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0px 6px 24px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

    .glass-card::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 0;
        border-radius: 20px;
        box-shadow: inset 0 0 20px -5px rgba(255, 255, 255, 0.5);
        background: rgba(255, 255, 255, 0.05);
    }

.service-content {
    position: relative;
    width: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    text-align: center;
}

    .service-content h3 {
        color: #fff;
        font-size: 20px;
        font-weight: 600;
        margin: 0;
    }

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}


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

    .glass-card {
        height: 220px;
    }

    .service-content h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .glass-card {
        height: 180px;
    }

    .service-content {
        padding: 10px;
    }

        .service-content h3 {
            font-size: 14px;
        }
}


/* Footer */
.footer {
    background: #0f0f0f;
    padding: 30px 20px;
    text-align: center;
    color: #ccc;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto 15px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: #00c37e;
    margin-bottom: 10px;
}

.social-icons a {
    display: inline-block;
    margin: 0 10px;
}

.social-icons img {
    width: 30px;
    filter: invert(1);
    transition: filter 0.3s;
}

.social-icons a:hover img {
    filter: invert(0.3) sepia(1) saturate(5) hue-rotate(120deg);
}

.copy {
    font-size: 14px;
    color: #666;
}

/* About page content */
.about-content {
    max-width: 700px;
    color: white;
    text-align: center;
}

    .about-content h1 {
        font-size: 48px;
        margin-bottom: 20px;
        color: #00c37e;
    }

    .about-content p {
        font-size: 20px;
        line-height: 1.8;
        margin-bottom: 20px;
        color: #ddd;
    }
/* Contact page content */
.contact-content {
    max-width: 500px;
    margin: 0 auto;
    color: white;
    text-align: center;
}

    .contact-content h1 {
        font-size: 48px;
        margin-bottom: 20px;
        color: #00c37e;
    }

    .contact-content p {
        font-size: 18px;
        margin-bottom: 30px;
        color: #ddd;
    }


.contact-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}


.contact-content input[type="text"],
.contact-content input[type="email"],
.contact-content textarea {
    background: #222;
    border: 2px solid #444;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 16px;
    color: #eee;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-weight: 500;
    box-shadow: inset 2px 2px 6px rgba(0,0,0,0.8);
}

.contact-content input[type="text"]:focus,
.contact-content input[type="email"]:focus,
.contact-content textarea:focus {
    border-color: #00c37e;
    box-shadow: 0 0 8px #00c37e;
    outline: none;
    background: #1a1a1a;
}


.contact-content button[type="submit"] {
    background: linear-gradient(135deg, #00c37e, #007a50);
    border: none;
    border-radius: 30px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 14px 0;
    cursor: pointer;
    box-shadow: 0 5px 5px rgba(0, 195, 126, 0.6);
    transition: background 0.4s, box-shadow 0.4s, transform 0.3s;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

    .contact-content button[type="submit"]:hover {
        background: linear-gradient(135deg, #007a50, #00c37e);
        box-shadow: 0 6px 6px rgba(0, 255, 150, 0.9);
        transform: translateY(-3px);
    }



#form-message {
    margin-top: 20px;
    font-size: 16px;
    color: #00c37e;
}

.team-content {
    max-width: 900px;
    margin: 0 auto;
    color: white;
    text-align: center;
}

    .team-content h1 {
        font-size: 48px;
        margin-bottom: 10px;
        color: #00c37e;
    }

    .team-content p {
        font-size: 20px;
        margin-bottom: 40px;
        color: #ccc;
    }

.team-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.team-member {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    width: 200px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

    .team-member:hover {
        transform: translateY(-10px);
        box-shadow: 0 12px 40px rgba(0, 195, 126, 0.8);
    }

    .team-member img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 16px;
        margin-bottom: 15px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    }

    .team-member h3 {
        font-size: 22px;
        margin-bottom: 6px;
        color: #00c37e;
    }

    .team-member p {
        font-size: 16px;
        color: #ddd;
        margin: 0;
    }





:root {
    --primary: #00c37e;
    --secondary: #00ffcc;
    --glass: rgba(255,255,255,0.05);
    --border: rgba(255,255,255,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: #0f2027;
    color: #fff;
    overflow-x: hidden;
}

canvas#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    backdrop-filter: blur(10px);
    background: rgba(0,0,0,0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
}

    .navbar .logo {
        font-size: 1.7rem;
        font-weight: bold;
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .navbar ul {
        list-style: none;
        display: flex;
        gap: 25px;
    }

        .navbar ul li a {
            color: #fff;
            text-decoration: none;
            opacity: 0.8;
            transition: 0.3s;
        }

            .navbar ul li a:hover {
                opacity: 1;
                border-bottom: 2px solid var(--primary);
            }

/* Header */
header {
    text-align: center;
    padding: 80px 20px 40px;
}

    header h1 {
        font-size: 3rem;
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    header p {
        opacity: 0.8;
        margin-top: 10px;
        font-size: 1.1rem;
    }

/* Dictionary Section */
.dictionary {
    max-width: 800px;
    margin: 40px auto;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

    .dictionary h2 {
        text-align: center;
        margin-bottom: 25px;
        color: #fff;
    }

.search-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

    .search-container input,
    .search-container select {
        background: rgba(255,255,255,0.07);
        border: 1px solid var(--border);
        padding: 14px 18px;
        border-radius: 12px;
        color: #fff;
        width: 100%;
        max-width: 250px;
        transition: 0.3s;
        font-size: 1rem;
    }


        .search-container input:focus,
        .search-container select:focus {
            outline: none;
            box-shadow: 0 0 10px var(--primary);
            background: rgba(255,255,255,0.12);
        }

/* Lists */
.suggestions, .translations {
    margin-top: 20px;
    background: rgba(255,255,255,0.04);
    padding: 15px;
    border-radius: 12px;
}

.popular {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
    background: rgba(255,255,255,0.04);
    padding: 15px;
    border-radius: 12px;
}

.suggestion-item, .translation-item {
    padding: 12px 15px;
    margin: 5px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.popular-item {
    padding: 12px 15px;
    margin: 5px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    background: #444;
}

 .suggestion-item:hover, .popular-item:hover 
 {
        background: rgba(255,255,255,0.08);
 }

.translation-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

    .translation-item:last-child {
        border-bottom: none;
    }

.badge {
    background: var(--primary);
    padding: 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: white;
    font-weight: bold;
    width: 80px;
}

.actions {
    display: inline-flex;
    gap: 8px;
    margin-left: 10px;
}

    .actions button {
        background: var(--secondary);
        color: #000;
        border: none;
        padding: 5px 10px;
        border-radius: 8px;
        font-size: 0.8rem;
        cursor: pointer;
        transition: 0.3s;
    }

        .actions button:hover {
            background: var(--primary);
            color: #fff;
        }


:root {
    --primary: #00c37e;
    --secondary: #00ffcc;
    --glass: rgba(255,255,255,0.05);
    --border: rgba(255,255,255,0.12);
    --text: #fff;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #0f2027;
    color: var(--text);
    overflow-x: hidden;
}

canvas#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    backdrop-filter: blur(10px);
    background: rgba(0,0,0,0.4);
}

    .navbar .logo {
        font-size: 1.5rem;
        font-weight: bold;
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .navbar ul {
        list-style: none;
        display: flex;
        gap: 20px;
    }

        .navbar ul li a {
            color: #fff;
            text-decoration: none;
            opacity: 0.8;
            transition: 0.3s;
        }

            .navbar ul li a:hover {
                opacity: 1;
                border-bottom: 2px solid var(--primary);
            }










































 Main 
.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
}

.audio-card {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

    .audio-card h1 {
        font-size: 2rem;
        margin-bottom: 20px;
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

 Visualizer 
.voice-visualizer {
    max-width: 700px;
    height: 250px;
    margin: 40px auto;
    background: linear-gradient(135deg, #121212, #000);
    border-radius: 30px;
    padding: 35px 50px;
    
    color: #eee;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.volume-bars {
    display: flex;
    gap: 6px;
    width: 100%;
    justify-content: center;
    align-items: flex-end;
    height: 160px;
}

    .volume-bars .bar {
        width: 10px;
        background: linear-gradient(180deg, #1ED760, #1DB954);
        border-radius: 6px;
        box-shadow: 0 0 12px #1ED760, 0 0 22px #1DB954;
        transition: height 0.1s ease;
        will-change: height;
        filter: drop-shadow(0 0 8px #1ED760);
    }

.record-time {
    font-weight: 700;
    font-size: 1.6rem;
    text-shadow: 0 0 8px #1DB954;
}

.status-message {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 18px 25px;
    font-weight: 700;
    font-size: 1.3rem;
    text-align: center;
    color: #ddd;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.5);
    transition: background-color 0.3s ease;
    max-width: 100%;
}

    .status-message:hover {
        background-color: rgba(255, 255, 255, 0.28);
    }



.voice-panel {
    max-width: 480px;
    margin: 40px auto;
    background: linear-gradient(135deg, #121212, #000);
    border-radius: 24px;
    padding: 30px 35px;
  
    color: #eee;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    user-select: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-weight: 600;
    font-size: 1rem;
    color: #a0dca0;
}

.custom-select {
    padding: 10px 14px;
    font-size: 1rem;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #eee;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease;
}

    .custom-select:hover,
    .custom-select:focus {
        background: rgba(255, 255, 255, 0.2);
        outline: none;
    }

.custom-input {
    padding: 10px 14px;
    font-size: 1rem;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #eee;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease;
}

    .custom-input::placeholder {
        color: #bbb;
    }

    .custom-input:hover,
    .custom-input:focus {
        background: rgba(255, 255, 255, 0.2);
        outline: none;
    }

.display-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: #a0dca0;
    text-align: center;
    text-shadow: 0 0 6px #1DB954;
    min-height: 40px;
}

.btn-change {
    background: linear-gradient(90deg, #1ED760 0%, #1DB954 100%);
    border: none;
    border-radius: 16px;
    color: #121212;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 14px 0;
    cursor: pointer;
    box-shadow: 0 0 15px #1ED760;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

    .btn-change:hover {
        background: linear-gradient(90deg, #17b44b 0%, #138a38 100%);
        box-shadow: 0 0 20px #138a38;
    }






 Controls 
.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.btn-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-main {
    background: var(--secondary);
    color: #000;
    padding: 10px 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

    .btn-main:hover, .btn-circle:hover {
        opacity: 0.8;
    }

 Settings 
.settings {
    margin-top: 25px;
}

.setting-group {
    margin-bottom: 15px;
}

    .setting-group label {
        display: block;
        margin-bottom: 5px;
    }

.btn-group {
    display: flex;
    gap: 10px;
}

.btn-option {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

    .btn-option.active, .btn-option:hover {
        background: var(--primary);
        color: #000;
    }

select {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
}

 Upload 
.btn-upload {
    margin-top: 20px;
    width: 100%;
    background: transparent;
    border: 2px dashed var(--primary);
    color: #fff;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
}

    .btn-upload:hover {
        background: rgba(255,255,255,0.05);
    }





























.toast-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    z-index: 9999;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeout {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(20px);
    }
}


.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal {
    background: var(--glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    width: 370px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    color: white;
}

    .modal h2 {
        margin-top: 0;
        margin-bottom: 20px;
        color: var(--secondary);
        text-align: center;
    }

    .modal input {
        width: 100%;
        padding: 10px 12px;
        margin-bottom: 15px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
        outline: none;
        font-size: 14px;
    }

        .modal input::placeholder {
            color: #ccc;
        }

    .modal button {
        width: 100%;
        padding: 10px;
        background: var(--primary);
        border: none;
        border-radius: 8px;
        color: white;
        font-weight: bold;
        font-size: 15px;
        cursor: pointer;
        transition: background 0.3s ease;
    }

        .modal button:hover {
            background: var(--secondary);
            color: black;
        }


:root {
    --bg: #0a0a0a; /* dark page background */
    --glass-bg: rgba(0,0,0,0.35); /* black glass effect */
    --text-color: #eee;
    --muted-color: #888;
    --primary-color: cyan;
    --accent-color: rgb(238, 238, 238);
    --radius: 16px;
    --shadow: 0 8px 32px rgba(0,0,0,0.6);
}



.login-card {
    background: var(--glass-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    backdrop-filter: blur(14px);
    margin-bottom: 3rem;
    width:50%;
    margin-left:auto;
    margin-right:auto;
    margin-top:50px;
}

    .login-card h2 {
        font-size: 36px;
        margin-bottom: 20px;
        color: #00c37e;
        font-weight: bold;
    }

    .login-card p {
        font-size: 16px;
        color: #ddd;
        margin-bottom: 20px;
    }

.login-input {
    width: 100%;
    padding: 0.9rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    font-size: 1rem;
    color: var(--text-color);
    transition: 0.3s;
}

    .login-input:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 8px var(--primary-color);
        outline: none;
    }

.login-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #000;
    font-weight: 600;
    padding: 0.9rem 2rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.2s ease;
    margin-top: 1rem;
}

    .login-button:hover {
        transform: translateY(-3px);
    }

.login-footer {
    font-size: 14px;
    color: #aaa;
    margin-top: 15px;
}

    .login-footer a {
        color: #00c37e;
        text-decoration: none;
    }

