/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0a0a1a;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    padding-bottom: 70px; /* Space for footer */
}

/* Background Gradient Effect */
.bg-gradient {
    position: fixed; /* Changed from absolute to fixed */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
}

.gradient-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: flow 15s infinite alternate ease-in-out;
}

.shape-1 {
    background: linear-gradient(45deg, #5a3685, #d83b7d);
    width: 70vw;
    height: 70vw;
    top: -20%;
    right: -20%;
    opacity: 0.6;
    animation-delay: 0s;
}

.shape-2 {
    background: linear-gradient(45deg, #3c1053, #ad2677);
    width: 60vw;
    height: 60vw;
    bottom: -30%;
    left: -10%;
    opacity: 0.5;
    animation-delay: -7s;
}

.shape-3 {
    background: linear-gradient(45deg, #7b4397, #dc2430);
    width: 50vw;
    height: 50vw;
    top: 40%;
    right: -10%;
    opacity: 0.4;
    animation-delay: -3s;
}

@keyframes flow {
    0% {
        transform: translateY(0) translateX(0) scale(1);
    }
    50% {
        transform: translateY(-5%) translateX(3%) scale(1.05);
    }
    100% {
        transform: translateY(5%) translateX(-3%) scale(0.95);
    }
}

/* Header and Navigation */
header {
    width: 100%;
    padding: 1.5rem 2rem;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    max-width: 100%;
    object-fit: contain;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-left: 0.5rem;
    color: white;
}

/* Main Navigation */
.main-navigation {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    background: rgba(20, 20, 40, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

.nav-tabs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-tab {
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-tab::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(45deg, #8a56ac, #d83b7d);
    transition: width 0.3s ease;
}

.nav-tab:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-tab:hover::before {
    width: 100%;
}

.nav-tab.active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

.nav-tab.active::before {
    width: 100%;
}

/* Container Styles */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Main Content */
main {
    padding-bottom: 6rem;
}

/* Original Audio Tool Styles - Modified to match the color scheme */
.card {
    background-color: rgba(20, 20, 40, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: linear-gradient(45deg, #8a56ac, #d83b7d);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(137, 86, 172, 0.3);
}

.intro {
    margin-bottom: 40px;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    background: linear-gradient(to right, #ffffff, #d1a5ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.intro p {
    margin-bottom: 25px;
    font-size: 16px;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.upload-area {
    border: 2px dashed #8a56ac;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.upload-area:hover {
    background-color: rgba(138, 86, 172, 0.1);
}

/* Maintaining specific tool styling while adapting to new color scheme */
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-size: 16px;
    color: white;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #8a56ac;
}

.option-btn {
    background: linear-gradient(45deg, #8a56ac, #d83b7d);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(138, 86, 172, 0.3);
    margin: 5px;
}

.option-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(137, 86, 172, 0.3);
}

/* Footer */
footer {
    padding: 1rem;
    background: rgba(10, 10, 30, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 100;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content, .footer-contact {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: white;
}

/* Keeping the original tool-specific styles */
#file-input {
    display: none;
}

.file-info {
    display: none;
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(138, 86, 172, 0.1);
    border-radius: 5px;
}

.progress-container {
    margin-top: 20px;
    display: none;
}

.progress-bar {
    height: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress {
    height: 100%;
    background: linear-gradient(45deg, #8a56ac, #d83b7d);
    width: 0%;
    transition: width 0.3s;
}

.results {
    display: none;
    margin-top: 30px;
    margin-bottom: 80px; /* Add more space at the bottom to prevent footer overlap */
}

.results h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.summary-section, .action-points-section {
    margin-bottom: 25px;
    padding: 20px;
    background-color: rgba(138, 86, 172, 0.1);
    border-radius: 5px;
}

.action-buttons {
    margin-bottom: 30px; /* Ensure buttons aren't covered by footer */
}

/* Animation for recording pulse */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Design Improvements */
@media (max-width: 768px) {
    body {
        padding-bottom: 100px; /* Extra space for footer on mobile */
    }
    
    .nav-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.5rem;
        scrollbar-width: none; /* Firefox */
    }

    .nav-tabs::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }

    .nav-tab {
        padding: 0.7rem 1rem;
    }
    
    h1 {
        font-size: 2.2rem;
    }

    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .upload-area {
        padding: 20px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .option-btn {
        padding: 10px 16px;
        font-size: 14px;
        margin: 8px 0;
        width: 100%;
        display: block;
    }
    
    .options-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        padding: 0.7rem 1.5rem;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .action-buttons {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    body {
        padding-bottom: 120px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    header {
        padding: 1rem;
    }

    .logo-text {
        font-size: 1.4rem;
    }

    .main-navigation {
        padding: 0.8rem 1rem;
    }

    .nav-tab {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }

    h1 {
        font-size: 1.8rem;
    }
    
    .card {
        padding: 20px;
    }
    
    footer {
        padding: 0.8rem;
    }
    
    .footer-content, .footer-contact {
        font-size: 0.8rem;
    }
}