/*
 * =========================================================
 * JULIAN SOL GLOBAL DESIGN SYSTEM - 2026 EDITION
 * Matte Glassmorphism / Immersive Cards / Bento Grid
 * =========================================================
 */

:root {
    /* Sophisticated Matte Off-White Background */
    --bg-color: #ededef;

    /* Ultra-high-end subtle glass effect */
    --card-bg: rgba(252, 252, 252, 0.65);
    --card-border: rgba(255, 255, 255, 0.7);
    --card-border-subtle: rgba(255, 255, 255, 0.4);

    /* Gentle, diffuse, clean shadows. No heavy/dirty black. */
    --shadow-ambient: 0 8px 32px -8px rgba(0, 0, 0, 0.02), 0 0 1px 0 rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 16px 48px -12px rgba(0, 0, 0, 0.04), 0 0 1px 0 rgba(0, 0, 0, 0.03);
    --shadow-heavy: 0 24px 64px -16px rgba(0, 0, 0, 0.08), 0 0 1px 0 rgba(0, 0, 0, 0.04);
    --inner-glow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.3);

    /* Text Contrasts mapping WCAG AA */
    --text-primary: rgba(0, 0, 0, 0.88);
    --text-secondary: rgba(0, 0, 0, 0.52);
    --text-tertiary: rgba(0, 0, 0, 0.32);
    --accent-color: #000000;

    --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

    /* Rhythmic Spacing (12px ~ 48px) */
    --gap-xs: 12px;
    --gap-sm: 16px;
    --gap-md: 24px;
    --gap-lg: 32px;
    --gap-xl: 48px;

    /* Radii mapping */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-pill: 9999px;

    /* Physics-based Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    --transition-fast: 0.2s var(--ease-out-expo);
    --transition-normal: 0.3s var(--ease-out-expo);
    --transition-spring: 0.6s var(--ease-spring);
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-color);
    /* Soft top-ambient light and matte noise */
    background-image:
        radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.045'/%3E%3C/svg%3E");
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

::selection {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

/* ================== NAVIGATION (Glassmorphism Dock) ================== */
.navbar {
    position: fixed;
    top: var(--gap-lg);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(48px) saturate(180%);
    -webkit-backdrop-filter: blur(48px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-pill);
    padding: 8px 8px;
    z-index: 1000;
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.05), var(--inner-glow);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: transform var(--transition-spring);
    isolation: isolate;
}

.nav-menu {
    display: flex;
    gap: 4px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    transition: all var(--transition-fast);
    cursor: pointer;
    position: relative;
    letter-spacing: -0.01em;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.025);
}

.nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.06), 0 0 1px rgba(0, 0, 0, 0.04);
}

.nav-link:active {
    transform: scale(0.95);
}

.nav-divider {
    display: none;
}

@media (max-width: 768px) {
    .navbar {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        height: 56px;
        z-index: 999;
        padding: 0 16px;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 2px 14px -10px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .nav-menu {
        width: 100%;
        height: 100%;
        gap: 0;
    }

    .nav-link {
        flex: 1;
        min-height: 44px;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 8px;
        font-size: 14px;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        white-space: nowrap;
    }

    .nav-link:hover {
        background: transparent;
    }

    .nav-link::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 7px;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        border-radius: 999px;
        background: var(--text-primary);
        transition: width var(--transition-fast);
    }

    .nav-link.active {
        background: transparent;
        box-shadow: none;
        color: var(--text-primary);
        font-weight: 600;
    }

    .nav-link.active::after {
        width: 28px;
    }

    .nav-link:active {
        transform: none;
    }

    .main-content {
        margin-top: 24px;
    }
}

/* ================== LAYOUT & BENTO GRID ================== */
.main-content {
    max-width: 1080px;
    margin: 160px auto 100px auto;
    padding: 0 var(--gap-md);
    width: 100%;
    flex: 1;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gap-md);
}

.bento-col-12 {
    grid-column: span 12;
}

.bento-col-8 {
    grid-column: span 12;
}

.bento-col-6 {
    grid-column: span 12;
}

.bento-col-4 {
    grid-column: span 12;
}

@media (min-width: 768px) {
    .bento-col-m-8 {
        grid-column: span 8;
    }

    .bento-col-m-6 {
        grid-column: span 6;
    }

    .bento-col-m-4 {
        grid-column: span 4;
    }

    .main-content {
        padding: 0 var(--gap-lg);
    }

    .bento-grid {
        gap: var(--gap-lg);
    }
}

/* ================== IMMERSIVE CARDS ================== */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border-subtle);
    box-shadow: var(--shadow-ambient), var(--inner-glow);
    padding: var(--gap-xl);
    transition: transform var(--transition-spring), box-shadow var(--transition-normal), background var(--transition-normal);
    backdrop-filter: blur(48px) saturate(120%);
    -webkit-backdrop-filter: blur(48px) saturate(120%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Glow highlight at the top edge for realism */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0) 100%);
    opacity: 0.9;
    z-index: 1;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover), inset 0 1px 1px rgba(255, 255, 255, 0.95), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.85);
}

.card:hover .hover-lift {
    transform: translateY(-2px);
}

/* Click physical feedback */
.interactive.card:active,
.btn:active,
.card:active {
    transform: translateY(1px) scale(0.985);
    box-shadow: var(--shadow-ambient), var(--inner-glow);
}

/* Dark Accent Card */
.card-dark {
    background: #111111;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* super subtle */
    box-shadow: var(--shadow-heavy);
}

.card-dark::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0) 100%);
}

.card-dark .hero-subtitle,
.card-dark p,
.card-dark .section-title,
.card-dark .list-content {
    color: rgba(255, 255, 255, 0.55);
}

.card-dark .hero-title,
.card-dark strong {
    color: rgba(255, 255, 255, 0.95);
}

.card-dark .list-bullet {
    background: #ffffff;
    opacity: 0.2;
}

.card-dark:hover {
    background: #000000;
    box-shadow: var(--shadow-heavy);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.12);
}

/* ================== TYPOGRAPHY ================== */
h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.035em;
}

p {
    margin: 0;
}

.hero-title {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: var(--gap-sm);
    letter-spacing: -0.05em;
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 64px;
    }
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: var(--gap-lg);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-tertiary);
    opacity: 0.4;
}

.text-group {
    margin-bottom: var(--gap-md);
}

.text-group:last-child {
    margin-bottom: 0;
}

.text-group p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    line-height: 1.6;
}

.text-group p:last-child {
    margin-bottom: 0;
}

/* ================== LISTS & COMPONENTS ================== */
.list-container {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
}

.list-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.list-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.list-bullet {
    width: 6px;
    height: 6px;
    background: var(--text-primary);
    border-radius: 50%;
    margin-top: 10px;
    opacity: 0.15;
    flex-shrink: 0;
}

.list-content {
    color: var(--text-secondary);
    font-size: 15px;
    letter-spacing: -0.01em;
    line-height: 1.5;
}

.list-content strong {
    color: var(--text-primary);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.motto-text {
    font-size: 26px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    opacity: 0.85;
    font-style: italic;
    font-family: ui-serif, Georgia, serif;
}

.emoji-icon {
    font-style: normal;
    display: inline-block;
    opacity: 0.8;
}

/* Interactive Tags */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-xs);
    margin-top: var(--gap-sm);
}

.skill-tag {
    display: inline-block;
    padding: 10px 18px;
    background: rgba(0, 0, 0, 0.025);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
    cursor: default;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.skill-tag:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    border-color: transparent;
}

/* Profile / Avatar */
.avatar-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.02);
    margin-bottom: var(--gap-md);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05), 0 12px 32px -8px rgba(0, 0, 0, 0.08);
    border: 3px solid rgba(255, 255, 255, 0.8);
    transition: transform var(--transition-spring), box-shadow var(--transition-normal);
}

.avatar-container:hover {
    transform: scale(1.02);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05), 0 20px 48px -12px rgba(0, 0, 0, 0.12);
}

.avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================== FORMS & BUTTONS ================== */
.input-group {
    margin-bottom: var(--gap-md);
}

.input-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.input-field {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 15px;
    color: var(--text-primary);
    transition: var(--transition-fast);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
}

.input-field:active {
    transform: scale(0.99);
}

.input-field:focus {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(0, 0, 0, 0.04);
    outline: none;
}

.input-field::placeholder {
    color: var(--text-tertiary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    background: var(--accent-color);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition-spring);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.btn:hover {
    background: #111111;
    transform: translateY(-2px);
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

/* ================== S-LAYOUT SECTION ================== */
.s-layout-container {
    display: flex;
    flex-direction: column;
    gap: 64px;
    margin-bottom: var(--gap-xl);
    width: 100%;
}

.s-module {
    display: flex;
    width: 100%;
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    border: 1px solid var(--card-border-subtle);
    box-shadow: var(--shadow-ambient), var(--inner-glow);
    transition: transform var(--transition-spring), box-shadow var(--transition-normal), background var(--transition-normal);
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
    backdrop-filter: blur(48px) saturate(120%);
    -webkit-backdrop-filter: blur(48px) saturate(120%);
    position: relative;
}

/* Glow highlight at the top edge */
.s-module::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0) 100%);
    opacity: 0.9;
    z-index: 1;
}

.s-module:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover), inset 0 1px 1px rgba(255, 255, 255, 0.95), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.85);
}

.s-module:active {
    transform: translateY(1px) scale(0.985);
    box-shadow: var(--shadow-ambient), var(--inner-glow);
}

.s-module.in-view .s-text-box,
.s-module.in-view .s-image-box {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

.s-text-left {
    flex-direction: row;
}

.s-img-left {
    flex-direction: row;
}

.s-text-box {
    width: 50%;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.s-text-left .s-text-box {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s var(--ease-out-expo);
}

.s-text-left .s-image-box {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s var(--ease-out-expo);
}

.s-img-left .s-image-box {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s var(--ease-out-expo);
}

.s-img-left .s-text-box {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s var(--ease-out-expo);
}

.s-image-box {
    width: 50%;
    height: 360px;
    /* Foundation 360px height */
    background: #f5f5f5;
    /* Fallback light grey matching minimalist style */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-normal);
    overflow: hidden;
    /* Prevent overflow under all circumstances */
    border-radius: 4px;
    /* Optional subtle inner rounding if disconnected from parent edges */
}

/* Image containment rules to ensure no overflow and no cropping */
.box-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Core constraint: scale to fit without clipping or distortion */
    display: block;
    /* Eliminate inline baseline gaps */
    position: relative;
    z-index: 0;
    /* Sit beneath overlays */
    border-radius: 3px;
}

.s-title {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.s-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.s-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 15px;
    letter-spacing: -0.01em;
}

.s-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: var(--text-primary);
    border-radius: 50%;
    opacity: 0.2;
}

.s-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.s-image-text {
    color: var(--text-tertiary);
    font-size: 14px;
    font-weight: 500;
    z-index: 10;
    transition: opacity var(--transition-fast);
}

.s-hover-text {
    position: absolute;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    z-index: 11;
}

.s-module:hover .s-image-box {
    background: rgba(0, 0, 0, 0.04);
}

.s-module:hover .s-image-overlay {
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0) 70%);
}

.s-module:hover .s-image-text {
    opacity: 0;
}

.s-module:hover .s-hover-text {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) and (min-width: 768px) {
    .s-text-box {
        width: 60%;
        padding: 32px 40px;
    }

    .s-image-box {
        width: 40%;
        height: 300px;
    }
}

@media (max-width: 767px) {
    .s-module.s-text-left {
        flex-direction: column-reverse;
    }

    .s-module.s-img-left {
        flex-direction: column;
    }

    .s-text-left .s-text-box,
    .s-text-left .s-image-box,
    .s-img-left .s-text-box,
    .s-img-left .s-image-box {
        transform: translateY(20px);
    }

    .s-text-box {
        width: 100%;
        padding: 32px;
    }

    .s-image-box {
        width: 100%;
        height: 180px;
        /* Small screen adaptation height */
    }
}

/* ================== FEATURED WORK CARDS ================== */
.fw-grid {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: var(--gap-lg);
    row-gap: var(--gap-lg);
    width: 100%;
}

.fw-card {
    background: #111111;
    color: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* super subtle */
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    text-decoration: none;
    transition: transform var(--transition-spring), box-shadow var(--transition-normal), border-color var(--transition-normal);
    position: relative;
}

.fw-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0) 100%);
    opacity: 0.8;
    z-index: 1;
}

.fw-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.4);
    background: #000000;
    border-color: rgba(255, 255, 255, 0.12);
}

.fw-card:active {
    transform: translateY(1px) scale(0.985);
    box-shadow: var(--shadow-heavy);
}

.fw-image-box {
    width: 40%;
    min-height: 240px;
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-normal);
    flex-shrink: 0;
}

.fw-card:hover .fw-image-box {
    background: rgba(255, 255, 255, 0.06);
}

.fw-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.fw-card:hover .fw-image-overlay {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
}

.fw-image-text {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    font-weight: 500;
    z-index: 10;
    transition: var(--transition-fast);
}

.fw-content {
    width: 60%;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
}

.fw-subtitle {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
}

.fw-title {
    font-size: 28px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--gap-lg);
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.fw-features {
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
    margin-bottom: var(--gap-lg);
}

.fw-feature-item {
    display: flex;
    flex-direction: column;
}

.fw-feature-title {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.fw-feature-desc {
    color: rgba(255, 255, 255, 0.55);
    font-size: 15px;
    line-height: 1.6;
}

.fw-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: var(--gap-md) 0;
    border: none;
}

.fw-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-xs);
}

.fw-tag {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.fw-card:hover .fw-tag {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.15);
}

.fw-hover-action {
    position: absolute;
    bottom: 36px;
    right: 32px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 15px;
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition-normal);
}

.fw-card:hover .fw-hover-action {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 1024px) and (min-width: 768px) {
    .fw-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .fw-grid {
        grid-template-columns: 1fr;
    }

    .fw-card {
        flex-direction: column;
    }

    .fw-image-box {
        width: 100%;
        height: 200px;
        min-height: auto;
    }

    .fw-content {
        width: 100%;
        padding: 32px 28px;
    }

    .fw-hover-action {
        bottom: 32px;
        right: 28px;
    }
}

/* ================== UTILITIES & ANIMATIONS ================== */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer {
    margin-top: auto;
    padding: var(--gap-xl);
    text-align: center;
    color: var(--text-tertiary);
    font-size: 13px;
    font-weight: 500;
}

/* Subtle entrance animations */
@keyframes fadeY {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeY 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.bento-grid> :nth-child(1) {
    animation-delay: 0.05s;
}

.bento-grid> :nth-child(2) {
    animation-delay: 0.1s;
}

.bento-grid> :nth-child(3) {
    animation-delay: 0.15s;
}

.bento-grid> :nth-child(4) {
    animation-delay: 0.2s;
}

.bento-grid> :nth-child(5) {
    animation-delay: 0.25s;
}

.bento-grid> :nth-child(6) {
    animation-delay: 0.3s;
}

.bento-grid> :nth-child(7) {
    animation-delay: 0.3s;
}
