body {
    font-family: 'Inter', sans-serif;
    background-color: #000000;
    color: #f5f5f5;
    overflow-x: hidden;
}

.header-blur {
    background-color: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#fluid-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.content-wrapper {
    position: relative;
    z-index: 1;
}

.card-bg {
    background-color: rgba(17, 17, 17, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-primary {
    background: linear-gradient(to right, #3b82f6, #6366f1);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.project-card {
    flex: 0 0 auto;
    width: 280px;
    height: 180px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: scale(1.05);
}

.project-scroll-wrapper {
    position: relative;
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    visibility: hidden;
}

.project-scroll-wrapper:hover .scroll-arrow {
    opacity: 1;
    visibility: visible;
}

.scroll-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.scroll-arrow.left {
    left: -20px;
}

.scroll-arrow.right {
    right: -20px;
}

.scroll-arrow.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}

.no-select {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10+ and Edge */
  user-select: none; /* Standard syntax */
}

.horizontal-scroll {
  cursor: grab; /* Shows a "grab" hand cursor by default */
}

.horizontal-scroll.active {
  cursor: grabbing; /* Shows a "grabbing" hand cursor when dragging */
}

.grabbing {
    cursor: grabbing;
    cursor: -webkit-grabbing;
    scroll-behavior: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-section {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

section[id] {
    scroll-margin-top: 90px;
}

.input-group {
    position: relative;
    width: 100%;
}

.form-input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    padding: 1.25rem 1.5rem 0.75rem;
    font-size: 1rem;
    color: #f5f5f5;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: rgba(165, 180, 252, 0.7);
}

.form-input-label {
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 1rem;
    color: #d1d5db;
    pointer-events: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    max-width: calc(100% - 3rem);
}

.form-input:focus+.form-input-label,
.form-input:not(:placeholder-shown)+.form-input-label {
    top: 0.5rem;
    font-size: 0.75rem;
    color: #a5b4fc;
}

textarea.form-input {
    border-radius: 24px;
    height: auto;
    padding-top: 1.25rem;
    padding-bottom: 0.75rem;
}

.image-picker {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.image-picker:hover {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
}

.image-picker-icon {
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.image-picker:hover .image-picker-icon {
    color: #3b82f6;
    transform: scale(1.1);
}

.image-picker-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
    transition: color 0.3s ease;
}

.image-picker:hover .image-picker-text {
    color: #3b82f6;
}

.image-picker-preview {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-picker.has-image .image-picker-icon,
.image-picker.has-image .image-picker-text {
    opacity: 0;
}

.image-picker.has-image .image-picker-preview {
    opacity: 1;
}

.image-picker input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

#topic-scroller-container {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes scroll-right {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

.topic-scroller-row {
    display: flex;
    width: fit-content;
    flex-wrap: nowrap;
    animation-name: scroll-left;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.topic-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    margin: 0.5rem;
    padding: 0.5rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.topic-pill:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.topic-pill[data-popularity-size="1"] {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.topic-pill[data-popularity-size="2"] {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
}

.topic-pill[data-popularity-size="3"] {
    padding: 0.75rem 1.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.1);
}

#error-toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ef4444;
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: bottom 0.5s ease-in-out;
}

details>summary {
    list-style: none;
    cursor: pointer;
}

details>summary::-webkit-details-marker {
    display: none;
}

details summary .summary-arrow {
    transition: transform 0.3s ease;
}

details[open] summary .summary-arrow {
    transform: rotate(90deg);
}

.art-item-card {
    flex: 0 0 auto;
    transition: transform 0.3s ease;
}

.art-item-card:hover {
    transform: scale(1.05);
}