/* === Global === */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0b1326;
    color: #dae2fd;
}

/* === Shared Utilities === */
.glass-panel {
    background: rgba(45, 52, 73, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.ambient-shadow {
    box-shadow: 0 0 40px -4px rgba(138, 235, 255, 0.08);
}

.ghost-border {
    outline: 1px solid rgba(60, 73, 76, 0.15);
}

/* === index.html styles === */
.liquid-gradient-text {
    background: linear-gradient(45deg, #8aebff, #e4d6ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.liquid-gradient-bg {
    background: linear-gradient(45deg, #8aebff, #22d3ee);
}

/* === about.html styles === */
.text-gradient {
    background: linear-gradient(45deg, #8aebff, #e4d6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* === contact.html styles === */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* === stack.html styles === */
.gradient-text {
    background: linear-gradient(45deg, #8aebff, #e4d6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glow-hover:hover {
    box-shadow: 0 0 20px 0px rgba(138, 235, 255, 0.2);
    outline-color: rgba(138, 235, 255, 0.3);
}

/* === Section scroll offset for fixed nav === */
section[id] {
    scroll-margin-top: 80px;
}

/* ===========================
   TYPING ANIMATION
=========================== */
.typing-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2rem;
}

.typing-text {
    font-size: 1.05rem;
    font-weight: 500;
    color: #8aebff;
    letter-spacing: 0.01em;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: #8aebff;
    border-radius: 1px;
    animation: blink 0.75s step-end infinite;
    vertical-align: middle;
    flex-shrink: 0;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ===========================
   SCROLL REVEAL ANIMATIONS
=========================== */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.reveal--left {
    transform: translateX(-32px);
}

.reveal.reveal--right {
    transform: translateX(32px);
}

.reveal.reveal--scale {
    transform: scale(0.94) translateY(16px);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* stagger children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.13s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.21s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.29s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.37s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.45s; opacity: 1; transform: none; }

/* ===========================
   BIO SECTION
=========================== */
.bio-card {
    background: linear-gradient(135deg, rgba(138, 235, 255, 0.04) 0%, rgba(228, 214, 255, 0.04) 100%);
    border: 1px solid rgba(138, 235, 255, 0.1);
    border-radius: 1.25rem;
    padding: 2rem 2.25rem;
    position: relative;
    overflow: hidden;
}

.bio-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, #8aebff, #e4d6ff);
    border-radius: 4px 0 0 4px;
}

.bio-card blockquote {
    font-size: 1rem;
    line-height: 1.8;
    color: #bbc9cd;
    font-style: italic;
    padding-left: 0.5rem;
}

.bio-card .bio-highlight {
    color: #8aebff;
    font-style: normal;
    font-weight: 600;
}

/* ===========================
   SERVICES SECTION
=========================== */
#services {
    scroll-margin-top: 80px;
}

.service-card {
    background: rgba(11, 19, 38, 0.6);
    border: 1px solid rgba(60, 73, 76, 0.2);
    border-radius: 1.5rem;
    padding: 2.25rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease,
                background 0.35s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    background: radial-gradient(circle at 80% 20%, rgba(138, 235, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(138, 235, 255, 0.25);
    box-shadow: 0 20px 48px -8px rgba(138, 235, 255, 0.12);
    background: rgba(19, 27, 46, 0.8);
}

.service-card:hover::after {
    opacity: 1;
}

.service-card .service-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.08);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #dae2fd;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.service-card p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #7a8fa3;
    position: relative;
    z-index: 1;
}

.service-card .service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
    position: relative;
    z-index: 1;
}

.service-card .service-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.65rem;
    border-radius: 99px;
    background: rgba(138, 235, 255, 0.06);
    border: 1px solid rgba(138, 235, 255, 0.12);
    color: #8aebff;
    text-transform: uppercase;
}

.service-card .service-tag.purple {
    background: rgba(228, 214, 255, 0.06);
    border-color: rgba(228, 214, 255, 0.12);
    color: #e4d6ff;
}

.service-card .service-tag.muted {
    background: rgba(187, 201, 205, 0.06);
    border-color: rgba(187, 201, 205, 0.1);
    color: #bbc9cd;
}

/* Featured service card (larger) */
.service-card.service-featured {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .service-card.service-featured {
        grid-column: span 1;
    }
}
