@font-face {
    font-family: 'Space Grotesk';
    src: url('../fonts/font.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
} 

body {
    background-color: #000000;
    color: #ffffff;
    overflow-x: hidden;
    margin: 0;
}

/* --- Global Backgrounds --- */
.site-bg {
    background: radial-gradient(circle at 50% -20%, #1e1b4b 0%, #000 70%);
    position: fixed;
    inset: 0;
    z-index: -1;
}
.site-grid {
    background-image: linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    position: fixed;
    inset: 0;
    z-index: -1;
    mask-image: radial-gradient(ellipse at center, black, transparent 80%);
}

/* --- Advanced Glassmorphism --- */
.glass-panel {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* Subtle Tint Variations */
.glass-tint-indigo {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.05) 0%, rgba(20, 20, 25, 0.4) 100%);
}

.glass-tint-purple {
    background: linear-gradient(145deg, rgba(168, 85, 247, 0.05) 0%, rgba(20, 20, 25, 0.4) 100%);
}

.glass-tint-emerald {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.05) 0%, rgba(20, 20, 25, 0.4) 100%);
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    z-index: 1;
}

/* Input specific enhancements */
.input-glow:focus {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.glass-nav {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Canvas Positioning Removed */

/* Animations */
@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes grow-h {
    from { height: 0; }
}

@keyframes bounce-subtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-bounce-subtle {
    animation: bounce-subtle 3s ease-in-out infinite;
}

/* Utility */
.text-glow {
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

h1, h2, h3, h4, .font-display {
    font-family: 'Space Grotesk', sans-serif;
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: absolute;
    right: 20px;
    top: 10px;
    pointer-events: none;
    font-family: 'Space Grotesk', sans-serif;
}

/* Tech Stack Icons */
.tech-icon {
    width: 80px;
    height: 80px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.tech-icon:hover {
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.icon-white {
    filter: brightness(0) invert(1) !important;
}

.icon-indigo { filter: invert(45%) sepia(93%) saturate(1418%) hue-rotate(213deg) brightness(96%) contrast(93%); }

/* Unified square icon box for option cards and trust badges */
.icon-box {
    width: 44px;
    height: 44px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

/* Result screen trust cards */
.result-trust-card {
    border-color: rgba(255, 255, 255, 0.06) !important;
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.result-trust-card:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.35) !important;
    background: rgba(99, 102, 241, 0.05);
}
.icon-purple { filter: invert(47%) sepia(88%) saturate(3025%) hue-rotate(245deg) brightness(98%) contrast(97%); }
.icon-emerald { filter: invert(56%) sepia(85%) saturate(415%) hue-rotate(111deg) brightness(93%) contrast(92%); }
.icon-yellow { filter: invert(86%) sepia(61%) saturate(2320%) hue-rotate(352deg) brightness(101%) contrast(104%); }
.icon-pink { filter: invert(48%) sepia(93%) saturate(2465%) hue-rotate(313deg) brightness(101%) contrast(101%); }
.icon-orange { filter: invert(61%) sepia(74%) saturate(2713%) hue-rotate(351deg) brightness(101%) contrast(101%); }
.icon-teal { filter: invert(48%) sepia(74%) saturate(1637%) hue-rotate(139deg) brightness(94%) contrast(101%); }
.icon-red { filter: invert(36%) sepia(92%) saturate(4522%) hue-rotate(346deg) brightness(97%) contrast(103%); }
.icon-cyan { filter: invert(58%) sepia(93%) saturate(1514%) hue-rotate(149deg) brightness(101%) contrast(101%); }

.pill-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
    white-space: nowrap;
}

.group:hover .group-hover\:icon-white {
    filter: brightness(0) invert(1);
}

/* Accordion handling */
details > summary {
    list-style: none;
}

details > summary::-webkit-details-marker {
    display: none;
}

/* Gradient Button Animation */
.btn-glow {
    background-size: 200% auto;
    animation: glow 3s linear infinite;
}

.btn-indigo-glow {
    background: #4f46e5;
    transition: all 0.3s ease;
}

.btn-indigo-glow:hover {
    background: #6366f1;
}

@keyframes glow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Custom Checkbox */
.custom-checkbox {
    position: relative;
    padding-left: 32px;
    cursor: pointer;
    display: inline-block;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.custom-checkbox:hover input ~ .checkmark {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(99, 102, 241, 0.5);
}

.custom-checkbox input:checked ~ .checkmark {
    background: #4f46e5;
    border-color: #4f46e5;
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.4);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Custom Select Dropdown */
.custom-select-container.active .dropdown-options {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.custom-select-container.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-options.glass-panel {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

canvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0; /* Hide initially to prevent FOUC (Flash of Unstyled Content) */
    transition: opacity 1.5s ease-in-out; /* Smooth fade-in */
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

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

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

#step-container {
    opacity: 0;
}

#step-container.animate-fade-in {
    opacity: 1;
}