/* ── Global Reset & Base ─────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

body {
    overflow-x: hidden;
    background-color: #1a1d18;
    background-image: linear-gradient(135deg, #1a1d18 0%, #000000 50%, #2a2e26 100%);
    background-attachment: fixed;
    color: #e6e1d7;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

html {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

.preloader-line {
    transform-origin: left;
    transform: scaleX(0);
}

.work-card-image {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover .work-card-image {
    transform: scale(1.05);
}

/* ── Floating glass bar navigation ──────────────────────────── */
#main-nav {
    transition: top 0.5s ease;
}

#main-nav.is-scrolled {
    top: 10px;
}

.nav-pill {
    background: rgba(249, 249, 247, 0.5);
    border-color: rgba(18, 18, 18, 0.08);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

html.dark .nav-pill {
    background: rgba(18, 18, 18, 0.5);
    border-color: rgba(249, 249, 247, 0.1);
}

#main-nav.is-scrolled .nav-pill {
    background: rgba(249, 249, 247, 0.85);
    border-color: rgba(18, 18, 18, 0.12);
    box-shadow: 0 12px 40px rgba(18, 18, 18, 0.12);
}

html.dark #main-nav.is-scrolled .nav-pill {
    background: rgba(18, 18, 18, 0.85);
    border-color: rgba(249, 249, 247, 0.14);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.nav-name {
    padding-right: 1rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.nav-link {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    padding: 0.5rem 0.875rem;
    border-radius: 10px;
    color: #444748;
    white-space: nowrap;
    transition: color 0.3s ease;
}

html.dark .nav-link {
    color: #858383;
}

.nav-link:hover {
    color: #000000;
}

html.dark .nav-link:hover {
    color: #F9F9F7;
}

.nav-link.is-active {
    color: #F9F9F7;
}

html.dark .nav-link.is-active {
    color: #121212;
}

.nav-icon {
    display: none;
    font-size: 22px;
}

.nav-indicator {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 0;
    width: 0;
    border-radius: 10px;
    background: #121212;
    opacity: 0;
    transition: left 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.3s ease;
}

html.dark .nav-indicator {
    background: #F9F9F7;
}

.nav-resume {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-left: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background: #121212;
    color: #F9F9F7;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.nav-resume:hover {
    opacity: 0.8;
}

html.dark .nav-resume {
    background: #F9F9F7;
    color: #121212;
}

.nav-icon-sm {
    font-size: 16px;
}

@media (max-width: 767px) {
    .nav-name,
    .nav-label,
    .nav-resume-label {
        display: none;
    }
    .nav-icon {
        display: inline-flex;
    }
    .nav-link {
        padding: 0.5rem;
    }
    .nav-resume {
        margin-left: 0;
        padding: 0.5rem;
    }
}

/* ── End floating glass bar navigation ──────────────────────── */
/* ── Dark gradient hero background ──────────────────────────── */
/* Testimonials */
.testimonial-shell {
    position: relative;
    min-height: clamp(640px, 92vh, 880px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.025);
    border-top: 1px solid rgba(249, 249, 247, 0.12);
    border-bottom: 1px solid rgba(249, 249, 247, 0.12);
}

.testimonial-stage {
    position: relative;
    width: 100%;
}

.testimonial-index {
    position: absolute;
    left: clamp(-1.5rem, -4vw, -0.25rem);
    top: 50%;
    transform: translateY(-50%);
    color: rgba(249, 249, 247, 0.035);
    font-size: clamp(11rem, 31vw, 28rem);
    font-weight: 800;
    line-height: 0.8;
    letter-spacing: 0;
    pointer-events: none;
    user-select: none;
    transition: transform 0.45s ease, opacity 0.45s ease, filter 0.45s ease;
}

.testimonial-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    max-width: 1120px;
    margin: 0 auto;
}

.testimonial-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-right: 2rem;
    border-right: 1px solid rgba(249, 249, 247, 0.14);
}

.testimonial-rail-label {
    color: #858383;
    font-size: 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.testimonial-progress {
    position: relative;
    width: 1px;
    height: 8rem;
    margin-top: 2rem;
    background: rgba(249, 249, 247, 0.14);
}

.testimonial-progress-fill {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 33.333%;
    background: #F9F9F7;
    transform-origin: top;
    transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.testimonial-content {
    padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2.5rem, 7vw, 5rem) clamp(2rem, 6vw, 4rem);
}

.testimonial-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(249, 249, 247, 0.16);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    color: #858383;
    font-size: 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.testimonial-badge-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    background: #c8b4a0;
}

.testimonial-quote {
    min-height: 190px;
    margin: 2rem 0 3rem;
    color: #F9F9F7;
    font-size: clamp(2.25rem, 6vw, 4.75rem);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: 0;
    max-width: 860px;
}

.testimonial-word {
    display: inline-block;
    margin-right: 0.28em;
    opacity: 0;
    transform: translateY(20px) rotateX(80deg);
    transform-origin: bottom;
    filter: blur(8px);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.55s ease;
}

.testimonial-shell.is-visible .testimonial-word {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
    filter: blur(0);
}

.testimonial-meta-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
}

.testimonial-author-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author-line {
    width: 2rem;
    height: 1px;
    background: #F9F9F7;
    transform-origin: left;
    transition: transform 0.5s ease;
}

.testimonial-author {
    color: #F9F9F7;
    font-weight: 600;
}

.testimonial-role {
    margin-top: 0.25rem;
    color: #858383;
    font-size: 0.95rem;
}

.testimonial-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    overflow: hidden;
    border: 1px solid rgba(249, 249, 247, 0.18);
    border-radius: 999px;
    color: #F9F9F7;
    transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.testimonial-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #F9F9F7;
    transform: translateX(var(--slide-from, -100%));
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.testimonial-button.next::before {
    --slide-from: 100%;
}

.testimonial-button:hover {
    color: #121212;
    border-color: #F9F9F7;
    transform: translateY(-2px);
}

.testimonial-button:hover::before {
    transform: translateX(0);
}

.testimonial-button .material-symbols-outlined {
    position: relative;
    z-index: 1;
    font-size: 20px;
}

.testimonial-ticker {
    position: absolute;
    left: 0;
    right: 0;
    bottom: clamp(1rem, 4vw, 2.5rem);
    overflow: hidden;
    color: rgba(249, 249, 247, 0.07);
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
}

.testimonial-ticker-track {
    display: inline-flex;
    animation: testimonial-ticker 24s linear infinite;
}

.testimonial-ticker-track span {
    padding-right: 4rem;
}

@keyframes testimonial-ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 767px) {
    .testimonial-shell {
        min-height: auto;
        padding-top: 6rem;
        padding-bottom: 7rem;
    }
    .testimonial-layout {
        grid-template-columns: 1fr;
    }
    .testimonial-rail {
        align-items: flex-start;
        border-right: 0;
        border-bottom: 1px solid rgba(249, 249, 247, 0.14);
        padding: 0 0 1.5rem;
        margin-bottom: 1.5rem;
    }
    .testimonial-rail-label {
        writing-mode: horizontal-tb;
    }
    .testimonial-progress {
        width: 100%;
        height: 1px;
        margin-top: 1rem;
    }
    .testimonial-progress-fill {
        width: 33.333%;
        height: 100%;
        transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .testimonial-content {
        padding: 0;
    }
    .testimonial-index {
        top: 7rem;
        left: auto;
        right: 0;
        transform: none;
        font-size: clamp(8rem, 38vw, 12rem);
    }
    .testimonial-quote {
        min-height: 260px;
        margin-bottom: 2rem;
    }
    .testimonial-meta-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-word {
    display: inline-block;
    opacity: 0;
    will-change: transform, filter, opacity;
}

.hero-word:hover {
    text-shadow: 0 0 20px rgba(200, 180, 160, 0.5);
}

.hero-cta {
    background: #e6e1d7;
    color: #1a1d18;
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-cta:hover {
    background: #f8f7f5;
    transform: translateY(-2px);
}

.floating-element {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(200, 180, 160, 0.35);
    opacity: 0.2;
    animation: float 7s ease-in-out infinite;
    animation-play-state: paused;
}

.grid-line {
    stroke: rgba(200, 180, 160, 0.35);
    stroke-width: 0.5;
    stroke-dasharray: 1000;
    opacity: 0;
    animation: grid-draw 3s ease forwards;
}

.detail-dot {
    fill: rgba(200, 180, 160, 0.5);
    opacity: 0.1;
    animation: pulse-glow 3s ease-in-out infinite;
}

.corner-element {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 0 solid rgba(200, 180, 160, 0.25);
    opacity: 0;
    animation: word-appear 1s ease-out forwards;
}

#mouse-gradient {
    position: fixed;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    filter: blur(48px);
    pointer-events: none;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.5s ease;
    background: radial-gradient(circle, rgba(107, 85, 69, 0.18) 0%, transparent 100%);
}

@keyframes word-appear {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
        filter: blur(10px);
    }
    50% {
        opacity: 0.8;
        transform: translateY(10px) scale(0.95);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes grid-draw {
    0% {
        stroke-dashoffset: 1000;
        opacity: 0;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 0.15;
    }
}

@keyframes pulse-glow {
    0%,
    100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.1);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0.2;
    }
    25% {
        transform: translateY(-10px) translateX(5px);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-5px) translateX(-3px);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-15px) translateX(7px);
        opacity: 0.8;
    }
}

/* ── End dark gradient hero background ──────────────────────── */

.hero-text-container {
    position: relative;
}

/* Magnetic Text Effect */
.magnetic-text {
    cursor: pointer;
    line-height: 0.9;
    letter-spacing: -0.02em;
    font-weight: 800;
    position: relative;
    display: inline-block;
    text-align: left;
    max-width: 100%;
    word-wrap: break-word;
}

.magnetic-text .char {
    display: inline-block;
    will-change: transform;
    transform-origin: center center;
}

.line-container {
    display: block;
    position: relative;
    text-align: left;
}

.line-2 {
    text-align: left;
}

/* Brief 4: Marquee */
.marquee-wrapper {
    overflow: hidden;
    padding: 1rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: scroll-marquee 30s linear infinite;
    gap: 3rem;
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-item {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #c8b4a0;
    white-space: nowrap;
}

/* Brief 5: Cards & Liquid Glass */
.cards-container {
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.cards-container .red { background-color: #f43f5e; }
.cards-container .blue { background-color: #3b82f6; }
.cards-container .green { background-color: #22c55e; }

.cards-container .card {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    height: 120px;
    width: 250px;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: 400ms;
}

.cards-container .card p.tip { font-size: 1.2em; font-weight: 700; margin-bottom: 4px; }
.cards-container .card p.second-text { font-size: 0.9em; opacity: 0.9; }
.cards-container .card:hover { transform: scale(1.1, 1.1); }
.cards-container:hover > .card:not(:hover) { filter: blur(10px); transform: scale(0.9, 0.9); }

.liquid-glass-bg {
    background: url("https://images.unsplash.com/photo-1432251407527-504a6b4174a2?q=80&w=1480&auto=format&fit=crop") center center;
    animation: moveBackground 60s linear infinite;
}

@keyframes moveBackground {
    from { background-position: 0% 0%; }
    to { background-position: 0% -1000%; }
}

.glass-effect {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow: 0 6px 6px rgba(0,0,0,0.2), 0 0 20px rgba(0,0,0,0.1);
    transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 2.2);
}

.glass-layer-1 {
    position: absolute; inset: 0; z-index: 0;
    backdrop-filter: blur(3px);
    filter: url(#glass-distortion);
}

.glass-layer-2 {
    position: absolute; inset: 0; z-index: 10;
    background: rgba(255, 255, 255, 0.25);
}

.glass-layer-3 {
    position: absolute; inset: 0; z-index: 20;
    box-shadow: inset 2px 2px 1px 0 rgba(255,255,255,0.5), inset -1px -1px 1px 1px rgba(255,255,255,0.5);
    border-radius: 1.5rem;
}

/* Brief 6: FAB */
.fab-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fab-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(249, 249, 247, 0.85);
    backdrop-filter: blur(10px);
    color: #1a1d18;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    border: 1px solid rgba(18, 18, 18, 0.1);
}

.fab-btn:hover {
    transform: scale(1.1);
    background: #F9F9F7;
}

html.dark .fab-btn {
    background: rgba(18, 18, 18, 0.85);
    color: #F9F9F7;
    border: 1px solid rgba(249, 249, 247, 0.14);
}

html.dark .fab-btn:hover {
    background: #121212;
    color: #c8b4a0;
}

.fab-btn svg {
    width: 24px;
    height: 24px;
}

/* ── Global image responsiveness ─────────────────────────────── */
img {
    max-width: 100%;
    height: auto;
    display: block;
}
