/* Core Design Variables */
:root {
    --color-bg: #0a0a0a;
    --color-surface: #1c1c1c;
    --color-surface-hover: #2a2a2a;
    --color-primary: #eca72c;
    --color-primary-glow: rgba(236, 167, 44, 0.4);
    --color-text-main: #e5e5e5;
    --color-text-muted: #a3a3a3;
    --color-highlight: #ffbe5f;
    --font-main: 'Figtree', sans-serif;
    --glass-bg: rgba(28, 28, 28, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --radius-card: 1rem;
    --radius-btn: 9999px;
}

/* Base Setup */
body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
    margin: 0;
}

/* Background Animation (Liquid Ether) */
/* Wavy Background */
#wavy-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--color-bg);
    /* Fallback */
}

#wavy-bg .wave {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
    transition: 0.5s;
}

#wavy-bg .wave span {
    content: "";
    position: absolute;
    width: 325vh;
    height: 325vh;
    top: 0;
    left: 50%;
    transform: translate(-50%, -75%);
    background: var(--color-bg);
}

#wavy-bg .wave span:nth-child(1) {
    border-radius: 45%;
    background: var(--color-bg);
    animation: animate 15s linear infinite;
    opacity: 1;
}

#wavy-bg .wave span:nth-child(2) {
    border-radius: 40%;
    background: var(--color-bg);
    animation: animate 25s linear infinite;
    opacity: 0.5;
}

#wavy-bg .wave span:nth-child(3) {
    border-radius: 42.5%;
    background: var(--color-bg);
    animation: animate 35s linear infinite;
    opacity: 0.5;
}

@keyframes animate {
    0% {
        transform: translate(-50%, -75%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -75%) rotate(360deg);
    }
}

/* Scroll Progress */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-highlight), var(--color-primary));
    width: 0%;
    z-index: 100;
    box-shadow: 0 0 10px var(--color-primary);
}

/* Components */
/* Blob Button Styles */
.blob-btn {
    z-index: 1;
    position: relative;
    padding: 20px 46px;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    color: var(--color-primary);
    font-size: 16px;
    font-weight: bold;
    background-color: transparent;
    outline: none;
    border: none;
    transition: color 0.5s;
    cursor: pointer;
    border-radius: 30px !important;
    display: inline-block !important;
    /* Force inline-block for anchors */
    text-decoration: none;
    line-height: normal;
}

.blob-btn:before {
    content: "";
    z-index: 1;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-primary);
    border-radius: 30px;
}

.blob-btn:after {
    content: "";
    z-index: -2;
    position: absolute;
    left: 3px;
    top: 3px;
    width: 100%;
    height: 100%;
    transition: all 0.3s 0.2s;
    border-radius: 30px;
}

.blob-btn:hover {
    color: #000;
    border-radius: 30px;
}

.blob-btn:hover:after {
    transition: all 0.3s;
    left: 0;
    top: 0;
    border-radius: 30px;
}

.blob-btn__inner {
    z-index: -1;
    overflow: hidden;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    background: transparent;
}

.blob-btn__blobs {
    position: relative;
    display: block;
    height: 100%;
    filter: url('#goo');
}

.blob-btn__blob {
    position: absolute;
    top: 2px;
    width: 50%;
    height: 100%;
    background: var(--color-primary);
    border-radius: 100%;
    transform: translate3d(0, 150%, 0) scale(1.7);
    transition: transform 0.45s;
}

@supports (filter: url('#goo')) {
    .blob-btn__blob {
        transform: translate3d(0, 150%, 0) scale(1.4);
    }
}

.blob-btn__blob:nth-child(1) {
    left: 0%;
    transition-delay: 0s;
}

.blob-btn__blob:nth-child(2) {
    left: 30%;
    transition-delay: 0.08s;
}

.blob-btn__blob:nth-child(3) {
    left: 60%;
    transition-delay: 0.16s;
}

.blob-btn__blob:nth-child(4) {
    left: 90%;
    transition-delay: 0.24s;
}

.blob-btn:hover .blob-btn__blob {
    transform: translateZ(0) scale(1.7);
}

@supports (filter: url('#goo')) {
    .blob-btn:hover .blob-btn__blob {
        transform: translateZ(0) scale(1.4);
    }
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(236, 167, 44, 0.1);
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.card:hover::after {
    transform: translateX(100%);
}

/* Typography & Utilities */
.text-primary {
    color: var(--color-primary);
}

.text-highlight {
    color: var(--color-highlight);
}

.text-muted {
    color: var(--color-text-muted);
}

.font-bold {
    font-weight: 700;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.grid-cols-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media(max-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

/* Utilities */
.hidden {
    display: none !important;
}

.completion-badge {
    z-index: 20;
    pointer-events: none;
}
