@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
}

body {
    background: url("https://i.redd.it/86yagye25g841.png") fixed;
    background-size: cover;
    background-position: center;
    color: white;
    font-family: "Oswald", sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

body::-webkit-scrollbar {
    display: none;
}

/* Header */
.header {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 10vh;
    min-height: 60px;
    display: flex;
    align-items: center;
    flex-direction: row;
    position: sticky;
    gap: 1rem;
    padding: 0 2vw;
    width: 100%;
    z-index: 1000;
    top: 0;
    left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header h1 {
    font-size: calc(1.2rem + 1vw);
    font-weight: 700;
    margin-right: auto;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.header a {
    text-decoration: none;
    position: relative;
}

.header button {
    height: 100%;
    font-size: calc(0.8rem + 0.5vw);
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: transparent;
    padding: 10px 15px;
    font-family: "Oswald", sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

/* Active tab indicator */
.header a:target button,
.header a[href="#account"]:target button {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.header button::before {
    content: "";
    position: absolute;
    bottom: 10%;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease, left 0.3s ease;
}

.header button:hover::before,
.header a:target button::before {
    width: 100%;
    left: 0;
}

/* Tools Container */
.tools-container {
    width: 100vw;
    min-height: 80vh;
    padding: 2vh 2vw;
    position: relative;
}

/* Tab Sections - CSS Only Tabs */
.tool-section {
    display: none;
    animation: fadeIn 0.5s ease;
    padding: 20px;
}

/* Show section when targeted */
.tool-section:target {
    display: block;
}

/* Default section (when no hash) */
.tool-section:first-of-type {
    display: block;
}

/* Hide default when another is targeted */
.tool-section:target ~ .tool-section:first-of-type {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Header */
.section-header {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(45deg, #fff, rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.1rem;
    opacity: 0.8;
    font-weight: 300;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Tool Cards */
.tool-card {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.tool-card:hover::before {
    left: 100%;
}

.tool-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    background-color: rgba(0, 0, 0, 0.5);
}

.tool-card.featured {
    border-color: rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, rgba(0,0,0,0.5), rgba(255,215,0,0.05));
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.tool-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tool-card p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
    font-weight: 300;
}

.tool-arrow {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateX(-10px);
}

.tool-card:hover .tool-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Placeholder Card */
.placeholder-card {
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0.7;
}

/* ============================================
   UNIFIED FORM ELEMENTS (Glassmorphism Style)
   ============================================ */

.form-container {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    margin: 2rem auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    font-weight: 400;
}

/* Text Inputs */
.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 1rem 1.2rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-family: "Oswald", sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    backdrop-filter: blur(5px);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Textarea specific */
.form-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

/* Select specific */
.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.form-select option {
    background-color: #1a1a1a;
    color: white;
    padding: 0.5rem;
}

/* Checkbox and Radio */
.form-checkbox,
.form-radio {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.form-radio {
    border-radius: 50%;
}

.form-checkbox:checked,
.form-radio:checked {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: white;
}

.form-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: black;
    font-size: 14px;
    font-weight: bold;
}

.form-radio:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: black;
    border-radius: 50%;
}

.form-check-label {
    cursor: pointer;
    user-select: none;
    font-weight: 300;
}

/* Buttons */
.form-button {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-family: "Oswald", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.form-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.form-button:hover::before {
    left: 100%;
}

.form-button:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08));
}

.form-button:active {
    transform: translateY(0);
}

.form-button.primary {
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    border-color: rgba(255, 255, 255, 0.3);
}

.form-button.danger {
    background: linear-gradient(135deg, rgba(255,100,100,0.2), rgba(255,100,100,0.05));
    border-color: rgba(255, 100, 100, 0.3);
}

.form-button.success {
    background: linear-gradient(135deg, rgba(100,255,100,0.2), rgba(100,255,100,0.05));
    border-color: rgba(100, 255, 100, 0.3);
}

/* File Input */
.form-file {
    position: relative;
    display: inline-block;
    width: 100%;
}

.form-file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.form-file-label {
    display: block;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 300;
}

.form-file:hover .form-file-label {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Footer */
.footer {
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    padding: 2vh;
    font-size: 1rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-wrap: wrap;
        height: auto;
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .header h1 {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .header button {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .form-container {
        margin: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .section-header {
        padding: 1.5rem 1rem;
    }
    
    .tool-card {
        padding: 1.5rem;
    }
    
    .tool-icon {
        font-size: 2.5rem;
    }
}