/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding-top: 3rem; /* To account for fixed top bar */
}

.top-bar {
    background: rgba(15, 15, 35, 0.95);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(120, 119, 198, 0.3);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.top-bar-text {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    display: block;
}

.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #ffffff;
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.theme-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Header styles */
header {
    background: rgba(15, 15, 35, 0.95);
    padding: 2.5rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(120, 119, 198, 0.3);
}

header h1 {
    font-size: 3rem;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 50%, #ffffff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    animation: slideDown 0.8s ease 0.2s both;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(120, 119, 198, 0.5);
}

.subtitle {
    font-size: 1.3rem;
    background: linear-gradient(135deg, #b0b0b0 0%, #ffffff 50%, #b0b0b0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
    animation: slideDown 0.8s ease 0.4s both;
    font-weight: 300;
}

.header-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 1rem auto;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.8s ease 0.6s both;
}

/* Main content */
main {
    padding: 3rem 0;
}

.tools-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 3rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 40px rgba(120, 119, 198, 0.5);
    position: relative;
}

.tools-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    border-radius: 2px;
}

.search-section {
    margin-top: 4rem;
    text-align: center;
}

.search-section h2 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 40px rgba(120, 119, 198, 0.5);
}

.search-section select {
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(120, 119, 198, 0.3);
    background: rgba(26, 26, 46, 0.95);
    color: #ffffff;
    font-size: 1rem;
    margin-right: 1rem;
    width: 300px;
}

.search-section button {
    background: #000027;
    color: #ffffff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.search-section button:hover {
    background: #021430;
    transform: translateY(-1px);
}

#search-results {
    margin-top: 2rem;
}

/* Tools grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tool-card {
    background: rgba(26, 26, 46, 0.95);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(120, 119, 198, 0.2);
    transition: all 0.2s ease;
    animation: slideInUp 0.4s ease forwards;
    position: relative;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(120, 119, 198, 0.3);
}

.tool-card h3 {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #3c85a7 50%, #ffffff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.2rem;
    border-bottom: 2px solid rgba(120, 119, 198, 0.3);
    padding-bottom: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.tool-description {
    color: #c0c0c0;
    margin-bottom: 1.8rem;
    line-height: 1.8;
    font-size: 1.2rem;
    font-weight: 500;
    font-family: 'Arial', sans-serif;
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tool-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.download-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 39, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(120, 119, 198, 0.2);
}

.master-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.version {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Download button */
.download-btn {
    display: inline-block;
    background: #000027;
    color: rgb(255, 255, 255);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.download-btn:hover {
    background: #021430;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}


/* Responsive design */
@media (max-width: 768px) {
    
    header {
        padding: 2rem 0;
    }
    
    header h1 {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .tools-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .tools-section h2::after {
        width: 60px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tool-card {
        padding: 1.5rem;
        border-radius: 10px;
    }
    
    .download-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1.5rem 0;
    }
    
    header h1 {
        font-size: 1.9rem;
        letter-spacing: 0.5px;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    main {
        padding: 2rem 0;
    }
    
    .tools-section h2 {
        font-size: 1.7rem;
    }
    
    .tool-card {
        padding: 1.25rem;
        border-radius: 8px;
    }
    
    .download-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    footer {
        padding: 2rem 0;
    }
}

/* Animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Staggered animation delays for cards */
.tool-card:nth-child(1) { animation-delay: 0.1s; }
.tool-card:nth-child(2) { animation-delay: 0.2s; }
.tool-card:nth-child(3) { animation-delay: 0.3s; }
.tool-card:nth-child(4) { animation-delay: 0.4s; }
.tool-card:nth-child(5) { animation-delay: 0.5s; }
.tool-card:nth-child(6) { animation-delay: 0.6s; }

/* Light theme styles */
.light-theme body {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #333333;
}

.light-theme .top-bar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.light-theme .top-bar-text {
    color: #333333;
}

.light-theme .theme-toggle-btn {
    color: #333333;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid #333333;
}

.light-theme .theme-toggle-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.light-theme header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.light-theme header h1 {
    background: linear-gradient(135deg, #333333 0%, #333333 50%, #333333 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.light-theme .subtitle {
    background: linear-gradient(135deg, #666666 0%, #333333 50%, #666666 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.light-theme .tools-section h2 {
    color: #ffffff;
    text-shadow: none;
}

.light-theme .tools-section h2::after {
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
}

.light-theme .tool-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #333333;
}

.light-theme .tool-card h3 {
    background: linear-gradient(135deg, #333333 0%, #3c85a7 50%, #333333 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.light-theme .tool-description {
    color: #333333;
    font-weight: 600;
}

.light-theme .download-box {
    background: rgba(240, 240, 240, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.light-theme .version {
    color: #333333;
}

.light-theme .download-btn {
    background: #667eea;
    color: #ffffff;
}

.light-theme .download-btn:hover {
    background: #5a6fd8;
}

