/* Modern Variables & Reset */
:root {
    --primary: #FFD700;
    --dark: #0B0F19;
    --surface: #111827;
    --text: #F3F4F6;
    --text-muted: #9CA3AF;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark);
    color: var(--text);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Utilities */
.glass {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.text-gradient {
    background: linear-gradient(135deg, #FFD700 0%, #F59E0B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-white {
    background: linear-gradient(135deg, #FFFFFF 0%, #9CA3AF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(255, 215, 0, 0.15);
}

/* Infinite Scroll Marquee */
.marquee-container {
    overflow: hidden;
    position: relative;
}

.marquee-content {
    display: flex;
    gap: 4rem;
    animation: marquee 25s linear infinite;
    width: max-content;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Form Styles */
.form-floating {
    position: relative;
}

.form-floating input, .form-floating textarea {
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
}

.form-floating label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 1rem 0.75rem;
    pointer-events: none;
    transition: all 0.2s ease-out;
    transform-origin: 0 0;
}

.form-floating input:focus ~ label,
.form-floating input:not(:placeholder-shown) ~ label,
.form-floating textarea:focus ~ label,
.form-floating textarea:not(:placeholder-shown) ~ label {
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    color: var(--primary);
}

/* Hero Background Animation */
.hero-bg-animate {
    animation: scaleBg 20s infinite alternate;
}

@keyframes scaleBg {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* Project Filtering */
.filter-btn.active {
    background-color: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
}

.project-item {
    transition: all 0.4s ease-out;
}

.project-item.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.9);
}

.project-item.visible {
    display: block;
    opacity: 1;
    transform: scale(1);
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
