/* =========================================
   Her's by Bakhoobi — Glass Morphism Layer
   "The Modern Depth Update"
   ========================================= */

:root {
    --glass-bg:     rgba(250, 250, 250, 0.55);
    --glass-border: rgba(255, 255, 255, 0.80);
    --blur:         blur(18px);
    --shadow:       0 10px 40px -10px rgba(0, 0, 0, 0.10);
    --radius:       24px;
    --color-accent: #C5A065;
    --color-text-dark: #1d1d1f;
    --color-text-light: #86868b;
}

/* 1. Global smoothing */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. Glass card */
.glass-card {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--blur) saturate(180%) !important;
    -webkit-backdrop-filter: var(--blur) saturate(180%) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.45),
        var(--shadow) !important;
    border-radius: var(--radius) !important;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.glass-card:hover {
    transform: scale(1.015) translateY(-3px);
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.13) !important;
}

/* 3. Navigation — floating platter */
.glass-nav {
    background: rgba(248, 244, 238, 0.80) !important;
    backdrop-filter: blur(40px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(160%) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* 4. Headings refinement */
h1, h2, h3, h4, h5 {
    letter-spacing: -0.015em;
}

.section-title::after {
    height: 2px !important;
    border-radius: 10px;
    opacity: 0.7;
}

/* 5. Buttons — pill */
.btn-custom {
    background: linear-gradient(180deg, #CFA87D 0%, #B08D62 100%) !important;
    box-shadow: 0 4px 14px rgba(197, 160, 101, 0.40);
    border-radius: 100px !important;
    padding: 0.7rem 2rem !important;
    font-weight: 500;
    letter-spacing: 0.04em;
    border: none !important;
    color: #fff !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-custom:hover {
    box-shadow: 0 6px 18px rgba(197, 160, 101, 0.60);
    transform: translateY(-1px);
}

.btn-custom-outline {
    border: 1px solid rgba(197, 160, 101, 0.5) !important;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--color-accent) !important;
    border-radius: 100px !important;
}

/* 6. Inputs — depth fields */
.glass-input {
    background: rgba(255, 255, 255, 0.45) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    color: var(--color-text-dark) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.25s ease;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: var(--color-accent) !important;
    box-shadow: 0 0 0 4px rgba(197, 170, 125, 0.14) !important;
    outline: none;
}

/* 7. Icon boxes — squircle */
.icon-box {
    background: linear-gradient(135deg, #fffcf6 0%, #f5ede0 100%);
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    margin: 0 auto 1.4rem auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    color: var(--color-accent);
    font-size: 1.3rem;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-card:hover .icon-box {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(197, 160, 101, 0.18);
}

/* 8. Dividers */
.glass-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(197,160,101,0.3), transparent);
    margin: 3rem 0;
}

/* 9. Mobile */
@media (max-width: 576px) {
    .top-bar {
        font-size: 0.6rem !important;
        letter-spacing: 0.8px !important;
        padding: 6px 12px !important;
        white-space: normal !important;
        line-height: 1.6 !important;
    }

    .glass-card {
        border-radius: 18px !important;
        padding: 1.1rem 1rem !important;
    }

    .glass-card h5 {
        font-size: 1rem !important;
    }

    .glass-card p {
        font-size: 0.78rem !important;
    }

    .glass-card .icon-box {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.1rem !important;
        margin-bottom: 0.75rem !important;
    }

    .glass-nav {
        background: rgba(248, 244, 238, 0.80) !important;
    }
}
