/* NOTE: This file is intentionally "no-build": it contains only the project's
   custom CSS. Tailwind utilities + base styles are loaded via CDN in layouts. */

/* KindCopy — logo-led teal: deeper surfaces + readable accents (see layout for --kc-accent) */
:root {
    --kc-brand-ink: #0f2424;
    --kc-brand-sky: #7ed2d2;
    --kc-brand-wash: #c5d9d9;
    /* Elevated cards read lighter than page */
    --kc-surface-0: #fafcfc;
    --kc-surface-1: #e2ebeb;
    --kc-surface-2: color-mix(in srgb, var(--kc-brand-wash) 42%, var(--kc-surface-1));
    --kc-surface-3: color-mix(in srgb, var(--kc-brand-wash) 58%, #b8c9c9);
}

.kc-page-bg {
    background-color: var(--kc-surface-1);
}

.kc-surface-0 {
    background-color: var(--kc-surface-0);
}

.kc-surface-1 {
    background-color: var(--kc-surface-1);
}

.kc-surface-2 {
    background-color: var(--kc-surface-2);
}

.kc-surface-3 {
    background-color: var(--kc-surface-3);
}

/* Legacy alias */
.kc-bg-wash {
    background-color: var(--kc-surface-2);
}

/* Editorial display — pairs with logo serif direction */
.kc-heading {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.kc-hero-title {
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.02;
}

/* Small caps / labels — premium rhythm */
.kc-eyebrow {
    font-family: Montserrat, system-ui, sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--kc-accent) 75%, #27272a);
}

.kc-eyebrow-light {
    color: color-mix(in srgb, var(--kc-brand-sky) 72%, white);
}

/* Section vertical rhythm */
.kc-section-y {
    padding-top: clamp(4.5rem, 10vw, 7.5rem);
    padding-bottom: clamp(4.5rem, 10vw, 7.5rem);
}

/* Elevated surfaces (forms, featured cards) */
.kc-elevate {
    box-shadow:
        0 1px 0 color-mix(in srgb, var(--kc-accent) 6%, transparent),
        0 24px 48px -12px rgba(15, 23, 42, 0.07);
}

/* Hero mesh — Startit-style motion */
@keyframes kc-gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes kc-float-soft {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(2%, -3%) scale(1.03);
    }
    66% {
        transform: translate(-2%, 2%) scale(0.98);
    }
}

@keyframes kc-shine {
    0% {
        transform: translateX(-100%) skewX(-12deg);
    }
    100% {
        transform: translateX(200%) skewX(-12deg);
    }
}

.kc-hero-mesh {
    background: linear-gradient(
        125deg,
        #0a0a0a 0%,
        #1c1917 25%,
        #0c0a09 50%,
        #431407 75%,
        #0a0a0a 100%
    );
    background-size: 300% 300%;
    animation: kc-gradient-shift 18s ease infinite;
}

/* Full-bleed hero background slider */
.kc-hero-slider-track {
    background: #09090b;
}

.kc-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 0;
    transition: opacity 1.15s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.kc-hero-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.kc-hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

@keyframes kc-ken-burns {
    0% {
        transform: scale(1.06);
    }
    100% {
        transform: scale(1.12);
    }
}

.kc-hero-slide.is-active .kc-hero-ken {
    animation: kc-ken-burns 14s ease-out forwards;
}

.kc-hero-dot {
    height: 0.5rem;
    width: 0.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    transition:
        width 0.35s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

.kc-hero-dot:hover {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.22);
}

.kc-hero-dot.is-current {
    width: 1.75rem;
    border-color: color-mix(in srgb, var(--kc-accent) 40%, white);
    background: var(--kc-accent);
}

.kc-orb {
    animation: kc-float-soft 14s ease-in-out infinite;
}

.kc-orb-delay {
    animation-delay: -5s;
}

.kc-shine-btn {
    position: relative;
    overflow: hidden;
}

.kc-shine-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: translateX(-100%) skewX(-12deg);
    animation: kc-shine 4s ease-in-out infinite;
}

/* Scroll reveal */
.kc-reveal {
    opacity: 0;
    transform: translateY(2rem);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.kc-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.kc-reveal-delay-1 {
    transition-delay: 0.1s;
}
.kc-reveal-delay-2 {
    transition-delay: 0.2s;
}
.kc-reveal-delay-3 {
    transition-delay: 0.3s;
}
.kc-reveal-delay-4 {
    transition-delay: 0.4s;
}

/* Nav — single accent bar (mockup: clean teal underline) */
.kc-nav-link::after {
    content: '';
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.2rem;
    height: 2px;
    border-radius: 9999px;
    background: var(--kc-accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.kc-nav-link:hover::after,
.kc-nav-link.kc-nav-link-active::after {
    transform: scaleX(1);
}

/* Solid label contrast (anchors inherit color from Tailwind preflight otherwise) */
a.kc-btn-primary,
button.kc-btn-primary {
    background-color: var(--kc-accent-press, var(--kc-accent));
    color: #f8fafc;
    text-decoration: none;
    -webkit-font-smoothing: antialiased;
    min-height: 2.75rem;
    box-shadow:
        0 1px 0 color-mix(in srgb, white 24%, transparent) inset,
        0 14px 32px -6px color-mix(in srgb, var(--kc-accent-press, var(--kc-accent)) 55%, transparent);
    transition:
        filter 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

a.kc-btn-primary:hover,
button.kc-btn-primary:hover {
    filter: brightness(1.06);
    box-shadow:
        0 1px 0 color-mix(in srgb, white 30%, transparent) inset,
        0 18px 40px -8px color-mix(in srgb, var(--kc-accent-press, var(--kc-accent)) 58%, transparent);
}

a.kc-btn-primary:active,
button.kc-btn-primary:active {
    transform: scale(0.98);
}

.kc-text-accent {
    color: var(--kc-accent);
}

.kc-text-sky {
    color: var(--kc-brand-sky);
}

.kc-form-input:focus {
    border-color: color-mix(in srgb, var(--kc-accent) 65%, #a1a1aa);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--kc-accent) 22%, transparent);
}

/* Hero: secondary CTA — glass + turquoise rim (video-safe contrast) */
a.kc-btn-hero-ghost {
    text-decoration: none;
}

.kc-btn-hero-ghost {
    border: 1px solid color-mix(in srgb, var(--kc-brand-sky) 78%, white);
    background: color-mix(in srgb, #0a0a0a 28%, transparent);
    color: #f8fafc;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.kc-btn-hero-ghost:hover {
    border-color: color-mix(in srgb, var(--kc-brand-sky) 92%, white);
    background: color-mix(in srgb, #0a0a0a 38%, transparent);
    color: #fff;
}

/* Header scrolled state */
[data-site-header].is-scrolled {
    box-shadow: 0 8px 32px -8px color-mix(in srgb, var(--kc-accent) 14%, transparent);
    border-color: rgba(228, 231, 230, 0.95);
    background-color: rgba(255, 255, 255, 0.94);
}

/* Portfolio card hover */
.kc-card-lift {
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s ease;
}

.kc-card-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px color-mix(in srgb, var(--kc-accent) 12%, rgba(15, 23, 42, 0.12));
}

/* Skill bar fill (about page) */
@keyframes kc-bar-fill {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.kc-skill-bar-fill {
    transform: scaleX(0);
    transform-origin: left center;
}

.kc-reveal.is-visible .kc-skill-bar-fill {
    animation: kc-bar-fill 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .kc-hero-mesh,
    .kc-orb,
    .kc-orb-delay,
    .kc-shine-btn::after,
    .kc-reveal.is-visible .kc-skill-bar-fill {
        animation: none !important;
    }

    .kc-hero-slide {
        transition: none;
    }

    .kc-hero-slide:not(.is-active) {
        opacity: 0 !important;
    }

    .kc-hero-slide.is-active .kc-hero-ken {
        animation: none !important;
        transform: scale(1.04);
    }

    .kc-skill-bar-fill {
        transform: scaleX(1) !important;
    }

    .kc-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .kc-card-lift:hover {
        transform: none;
    }
}

