/* ---------- Base & Reset ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #0c1620;
    color: #D8E4F2;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---------- Glass Card (Frosted Effect) ---------- */
.glass-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(66, 123, 184, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.animation-delay-200  { animation-delay: 0.2s; }
.animation-delay-400  { animation-delay: 0.4s; }
.animation-delay-600  { animation-delay: 0.6s; }
.animation-delay-800  { animation-delay: 0.8s; }
.animation-delay-1000 { animation-delay: 1.0s; }

/* ---------- Scroll Reveal ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0c1620;
}

::-webkit-scrollbar-thumb {
    background: rgba(66, 123, 184, 0.4);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(66, 123, 184, 0.6);
}

/* ---------- Selection ---------- */
::selection {
    background: rgba(66, 123, 184, 0.4);
    color: #FFFFFF;
}

/* ---------- Focus ---------- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #427BB8;
    outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .glass-card {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 12px;
    }
}

/* ---------- Pulse ---------- */
@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse {
    animation: pulse-soft 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
