:root {
    --bg-color: #0b0f19;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --accent-color: #58a6ff;
    --accent-glow: rgba(88, 166, 255, 0.4);
    --card-bg: rgba(22, 27, 34, 0.5);
    --card-border: rgba(48, 54, 61, 0.6);
    --tag-bg: rgba(33, 38, 45, 0.7);
    --tag-hover: rgba(88, 166, 255, 0.15);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --blur-amt: 16px;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* Background animated shapes for glassmorphism effect */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: drift 25s infinite alternate ease-in-out;
}

.shape-1 {
    top: -10%;
    left: 10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.35) 0%, rgba(25, 25, 112, 0.05) 70%);
}

.shape-2 {
    bottom: -10%;
    right: 5%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(0, 191, 255, 0.25) 0%, rgba(0, 0, 128, 0.05) 70%);
    animation-delay: -5s;
}

.shape-3 {
    top: 35%;
    left: -15%;
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, rgba(255, 42, 109, 0.15) 0%, rgba(139, 0, 139, 0.05) 70%);
    animation-delay: -12s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(60px, -60px) scale(1.15);
    }
}

.blur-effect {
    background: var(--card-bg);
    backdrop-filter: blur(var(--blur-amt));
    -webkit-backdrop-filter: blur(var(--blur-amt));
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.app-container {
    width: 100%;
    max-width: 960px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Header */
.header {
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 0.8rem;
}

.logo i {
    font-size: 2.8rem;
    background: linear-gradient(135deg, #58a6ff 0%, #a371f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 12px var(--accent-glow));
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, #58a6ff 0%, #a371f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.results-section .initial-state p {
    color: var(--text-secondary);
}

/* Header Actions */
.header-actions {
    margin-top: 1.5rem;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(88, 166, 255, 0.1);
    color: var(--accent-color);
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(88, 166, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: rgba(88, 166, 255, 0.2);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

/* Footer / Promo Banner */
footer {
    text-align: center;
    color: var(--text-secondary);
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
    margin-top: 2rem;
}

.promo-banner {
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.05) 0%, rgba(139, 148, 158, 0.05) 100%);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.promo-banner:hover {
    border-color: rgba(88, 166, 255, 0.4);
    box-shadow: 0 4px 20px rgba(88, 166, 255, 0.1);
}

.promo-banner p {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.promo-banner .hire-me-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.btn-promo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--text-primary);
    color: var(--bg-color);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
}

.btn-promo:hover {
    transform: translateY(-2px);
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 300;
}

/* Controls section */
.controls-section {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.search-container {
    position: relative;
    width: 100%;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.search-container:focus-within {
    transform: scale(1.02);
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.search-container:focus-within .search-icon {
    color: var(--accent-color);
}

#searchInput {
    width: 100%;
    padding: 1.4rem 1.4rem 1.4rem 3.5rem;
    background: rgba(13, 17, 23, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 1.15rem;
    font-family: var(--font-body);
    transition: all var(--transition-speed) ease;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

#searchInput::placeholder {
    color: rgba(139, 148, 158, 0.6);
}

#searchInput:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(88, 166, 255, 0.15), inset 0 2px 5px rgba(0, 0, 0, 0.2);
    background: rgba(13, 17, 23, 0.9);
}

.filter-container h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-container h3::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--accent-color);
}

.industry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    padding: 0.6rem 1.2rem;
    background: var(--tag-bg);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
    backdrop-filter: blur(4px);
}

.tag:hover {
    color: var(--text-primary);
    background: var(--tag-hover);
    border-color: rgba(88, 166, 255, 0.4);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.tag.active {
    background: linear-gradient(135deg, #1f6feb 0%, #0d419d 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 16px var(--accent-glow);
    font-weight: 600;
    transform: translateY(-2px);
}

/* Results section */
.results-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    gap: 1.5rem;
    min-height: 300px;
}

.initial-state,
.no-results {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    text-align: center;
    color: var(--text-secondary);
    background: var(--card-bg);
    backdrop-filter: blur(var(--blur-amt));
    -webkit-backdrop-filter: blur(var(--blur-amt));
    border: 1px dashed rgba(88, 166, 255, 0.3);
    border-radius: 20px;
    animation: fadeIn 0.6s ease-out;
}

.initial-state p,
.no-results p {
    font-size: 1.1rem;
    max-width: 400px;
}

.initial-state i,
.no-results i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #58a6ff 0%, #a371f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
}

.term-card {
    background: var(--card-bg);
    backdrop-filter: blur(var(--blur-amt));
    -webkit-backdrop-filter: blur(var(--blur-amt));
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, border-color var(--transition-speed) ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 24px rgba(0, 0, 0, 0.2);
}

.term-card:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 12px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(88, 166, 255, 0.4);
}

.term-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1.2rem;
}

.term-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.term-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.term-type {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    color: var(--accent-color);
}

.definitions-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.definition-item {
    background: rgba(13, 17, 23, 0.4);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    border-left: 4px solid var(--accent-color);
    transition: background 0.2s ease;
}

.definition-item:hover {
    background: rgba(13, 17, 23, 0.6);
}

.def-industry {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.def-industry i {
    font-size: 1rem;
    color: rgba(88, 166, 255, 0.8);
}

.def-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Animations base classes */
.slide-down {
    animation: slideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

/* Keyframes */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 1rem;
    padding: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .app-container {
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }

    .header {
        padding: 1.5rem 1rem;
    }

    .logo h1 {
        font-size: 2.2rem;
    }

    .term-title {
        font-size: 1.8rem;
    }

    .controls-section {
        padding: 1.2rem;
    }

    .term-card {
        padding: 1.2rem;
    }
}