/* ========================================
   HPC - Human Placement Concept
   Brand Colors:
   - Primary Brown: #8B5A2B (RGB 139, 90, 43)
   - Dark Brown: #6B4423
   - Light Brown: #A67B5B
   - Cream: #F5EFE6
   - Off-White: #FAF7F2
   - Text Dark: #2C2419
   - Text Muted: #7A6A5A
   - Light Muted: #9A8B7A
   - Border: #EDE4D8
   ======================================== */

/* ========================================
   Global Reset
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #ffffff;
    color: #2C2419;
    padding-top: 0 !important;
}

main {
    padding-top: 76px;
}

/* ========================================
   Site Header & Navbar
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    pointer-events: none;
}

.navbar-top {
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    padding: 1rem 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: auto;
    border-bottom: 1px solid transparent;
}

.navbar-top.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(139, 90, 43, 0.08);
    border-bottom: 1px solid rgba(139, 90, 43, 0.1);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Nav Links Lists */
.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    align-items: center;
}

.nav-left {
    justify-content: flex-end;
    flex: 1;
}

.nav-right {
    justify-content: flex-start;
    flex: 1;
}

.logo-spacer {
    width: 140px;
    height: 1px;
    flex-shrink: 0;
}

/* ========================================
   Custom Nav Links - DARK by default (light hero)
   ======================================== */
.nav-link-custom {
    color: #2C2419;
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    position: relative;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-link-custom:hover,
.nav-link-custom.active {
    color: #8B5A2B;
}

/* Scrolled state keeps same colors */
.navbar-top.scrolled .nav-link-custom {
    color: #2C2419;
}

.navbar-top.scrolled .nav-link-custom:hover,
.navbar-top.scrolled .nav-link-custom.active {
    color: #8B5A2B;
}

/* Underline Animation */
.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: 0.3rem;
    left: 50%;
    width: 0;
    height: 2px;
    background: #8B5A2B;
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
    width: 40%;
}

/* ========================================
   Floating Centered Logo
   ======================================== */
.floating-logo {
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: auto;
    z-index: 10;
    width: 130px;
    height: 130px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 50%;
    padding: 12px;
    box-shadow: 0 10px 40px rgba(139, 90, 43, 0.15), 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 3px solid rgba(139, 90, 43, 0.15);
}

.floating-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.4s ease;
}

.floating-logo:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 15px 50px rgba(139, 90, 43, 0.25), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.floating-logo.scrolled {
    width: 70px;
    height: 70px;
    top: 0.6rem;
    padding: 6px;
    border-width: 2px;
    box-shadow: 0 6px 20px rgba(139, 90, 43, 0.15), 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* ========================================
   Mobile Toggler & Brand
   ======================================== */
.navbar-toggler-custom {
    background: rgba(139, 90, 43, 0.08);
    border: 1px solid rgba(139, 90, 43, 0.15);
    color: #8B5A2B;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.navbar-toggler-custom:hover {
    background: rgba(139, 90, 43, 0.15);
    color: #6B4423;
}

.navbar-top.scrolled .navbar-toggler-custom {
    background: rgba(139, 90, 43, 0.08);
    border-color: rgba(139, 90, 43, 0.15);
    color: #8B5A2B;
}

.mobile-brand {
    text-decoration: none;
    color: #2C2419;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    padding-right: 0.5rem;
}

.mobile-brand:hover {
    color: #8B5A2B;
}

.navbar-top.scrolled .mobile-brand {
    color: #2C2419;
}

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-menu {
    pointer-events: auto;
}

.mobile-menu-inner {
    background: #ffffff;
    margin: 0.5rem 1rem;
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 20px 60px rgba(139, 90, 43, 0.15);
    border: 1px solid rgba(139, 90, 43, 0.08);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    color: #2C2419;
    text-decoration: none;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(139, 90, 43, 0.05);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link i {
    color: #8B5A2B;
    font-size: 1.1rem;
    width: 22px;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(139, 90, 43, 0.06);
    color: #8B5A2B;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FAF7F2 0%, #ffffff 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-visual {
    position: relative;
    min-height: 400px;
}

.main-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139,90,43,0.08), rgba(139,90,43,0.02));
    border: 2px dashed rgba(139,90,43,0.2);
}

.floating-card {
    position: absolute;
    background: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(139,90,43,0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 6s ease-in-out infinite;
    z-index: 2;
    border: 1px solid rgba(139,90,43,0.1);
}

.floating-card:first-child {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    right: -20px;
    top: 30%;
    animation-delay: 1s;
}

.floating-card:nth-child(3) {
    left: 20%;
    bottom: 10%;
    animation-delay: 2s;
}

.floating-card i {
    font-size: 2rem;
    color: #8B5A2B;
}

.floating-card strong {
    color: #2C2419;
}

.floating-card p {
    color: #7A6A5A;
    margin: 0;
    font-size: 0.9rem;
}

.circle-dot {
    position: absolute;
    border-radius: 50%;
    background: rgba(139,90,43,0.15);
    animation: pulse 4s ease-in-out infinite;
}

.dot1 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 0;
}

.dot2 {
    width: 50px;
    height: 50px;
    top: 20%;
    right: 20%;
    animation-delay: 1s;
}

.dot3 {
    width: 40px;
    height: 40px;
    bottom: 20%;
    left: 10%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.6; }
}

/* ========================================
   Badges
   ======================================== */
.badge-hero,
.badge-section {
    background: rgba(139, 90, 43, 0.1);
    color: #8B5A2B;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
    border: 1px solid rgba(139, 90, 43, 0.15);
}

/* ========================================
   Buttons
   ======================================== */
.btn-primary {
    background: #8B5A2B;
    border: none;
    color: #ffffff;
    font-weight: 600;
}

.btn-primary:hover {
    background: #6B4423;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 90, 43, 0.3);
}

.btn-outline-secondary {
    border: 2px solid #D4C4B0;
    color: #7A6A5A;
    font-weight: 600;
    background: transparent;
}

.btn-outline-secondary:hover {
    border-color: #8B5A2B;
    background: #8B5A2B;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-cta-gold {
    background: #8B5A2B;
    color: #ffffff;
    border: none;
    font-weight: 600;
}

.btn-cta-gold:hover {
    background: #6B4423;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 90, 43, 0.4);
}

/* ========================================
   Cards & Components
   ======================================== */
.preview-card {
    background: #FAF7F2;
    padding: 1.8rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #EDE4D8;
    height: 100%;
}

.preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139,90,43,0.08);
    border-color: #8B5A2B;
}

.preview-card i {
    color: #8B5A2B;
}

.preview-card h6 {
    color: #2C2419;
}

.preview-card p {
    color: #9A8B7A;
}

.service-card-preview {
    background: #ffffff;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #EDE4D8;
    height: 100%;
}

.service-card-preview:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(139,90,43,0.08);
    border-color: #8B5A2B;
}

.service-icon-preview {
    width: 70px;
    height: 70px;
    background: rgba(139,90,43,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.service-icon-preview i {
    font-size: 2rem;
    color: #8B5A2B;
}

.mv-card {
    background: #FAF7F2;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid #EDE4D8;
    transition: all 0.3s ease;
    height: 100%;
}

.mv-card:hover {
    border-color: #8B5A2B;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139,90,43,0.06);
}

.mv-icon {
    width: 60px;
    height: 60px;
    background: rgba(139,90,43,0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mv-icon i {
    font-size: 2rem;
    color: #8B5A2B;
}

.value-item {
    text-align: center;
    padding: 1.5rem 0.5rem;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #EDE4D8;
    transition: all 0.3s ease;
    height: 100%;
}

.value-item:hover {
    transform: translateY(-5px);
    border-color: #8B5A2B;
    box-shadow: 0 8px 25px rgba(139,90,43,0.06);
}

.value-item i {
    color: #8B5A2B;
}

.value-item h6 {
    color: #2C2419;
}

.value-item p {
    color: #9A8B7A;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, #2C2419 0%, #4A3D30 100%);
}

/* ========================================
   Typography Utilities
   ======================================== */
.text-gold {
    color: #8B5A2B;
}

.text-navy {
    color: #2C2419;
}

.text-muted-custom {
    color: #7A6A5A;
}

.text-muted-light {
    color: #9A8B7A;
}

.bg-light-custom {
    background: #FAF7F2;
}

.bg-white-custom {
    background: #ffffff;
}

/* ========================================
   Toast Messages
   ======================================== */
.alert {
    border: none;
    border-radius: 12px !important;
    padding: 1rem 1.5rem;
}

.alert-success {
    background: linear-gradient(135deg, #8B5A2B, #6B4423);
    color: white;
}

.alert-error, .alert-danger {
    background: linear-gradient(135deg, #C0392B, #A93226);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, #D4A574, #A67B5B);
    color: #ffffff;
}

.alert-info {
    background: linear-gradient(135deg, #A67B5B, #8B5A2B);
    color: white;
}

/* ========================================
   Scrollbar
   ======================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #F5EFE6;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8B5A2B, #6B4423);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #6B4423, #4A3D30);
}

/* ========================================
   Responsive - Mobile First
   ======================================== */
@media (max-width: 991px) {
    .navbar-top {
        padding: 0.6rem 0;
    }
    
    .navbar-top.scrolled {
        padding: 0.4rem 0;
    }
    
    .floating-logo {
        width: 80px;
        height: 80px;
        top: 0.4rem;
        padding: 6px;
        border-width: 2px;
    }
    
    .floating-logo.scrolled {
        width: 55px;
        height: 55px;
        top: 0.5rem;
        padding: 4px;
    }
    
    main {
        padding-top: 110px;
    }
}

@media (max-width: 576px) {
    .floating-logo {
        width: 70px;
        height: 70px;
    }
    
    .floating-logo.scrolled {
        width: 50px;
        height: 50px;
    }
    
    .navbar-toggler-custom {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    main {
        padding-top: 100px;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
}

/* ========================================
   Page Header (About, Services, Contact)
   ======================================== */
.page-header {
    padding: 4rem 0 3rem;
    background: linear-gradient(135deg, #FAF7F2 0%, #ffffff 100%);
    border-bottom: 1px solid #EDE4D8;
}

/* ========================================
   About Page Components
   ======================================== */
.quote-block {
    padding: 1.5rem;
    background: #FAF7F2;
    border-radius: 16px;
    border-left: 4px solid #8B5A2B;
}

.sticky-card {
    border-radius: 16px;
    position: sticky;
    top: 120px;
}

.director-avatar {
    width: 60px;
    height: 60px;
    background: rgba(139, 90, 43, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 1rem;
}

.divider-light {
    border-color: #EDE4D8;
    opacity: 1;
}

.info-icon {
    width: 24px;
    flex-shrink: 0;
}

.quote-mini {
    padding: 1rem;
    background: #FAF7F2;
    border-radius: 12px;
}

.brand-promise-section {
    background: linear-gradient(135deg, #FAF7F2, #ffffff);
    border-top: 1px solid #EDE4D8;
    border-bottom: 1px solid #EDE4D8;
}

.brand-point {
    background: #ffffff;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #EDE4D8;
    transition: all 0.3s ease;
    height: 100%;
}

.brand-point:hover {
    border-color: #8B5A2B;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 90, 43, 0.08);
}

.mission-box {
    margin-top: 1rem;
    background: #FAF7F2;
    padding: 1.2rem;
    border-radius: 12px;
}

.mission-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mission-list li {
    padding: 0.3rem 0;
    color: #7A6A5A;
    font-size: 0.9rem;
    padding-left: 1.5rem;
    position: relative;
}

.mission-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #8B5A2B;
    font-weight: bold;
}

.value-card {
    background: #ffffff;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    border: 1px solid #EDE4D8;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 90, 43, 0.08);
    border-color: #8B5A2B;
}

.value-icon {
    width: 60px;
    height: 60px;
    background: rgba(139, 90, 43, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.value-icon i {
    font-size: 1.8rem;
    color: #8B5A2B;
}

.why-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #EDE4D8;
    transition: all 0.3s ease;
    height: 100%;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 90, 43, 0.08);
    border-color: #8B5A2B;
}

.why-icon {
    width: 50px;
    height: 50px;
    background: rgba(139, 90, 43, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.why-icon i {
    font-size: 1.5rem;
    color: #8B5A2B;
}

/* ========================================
   Services Page Components
   ======================================== */
.service-tag {
    background: #ffffff;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    border: 1px solid #EDE4D8;
    font-size: 0.9rem;
    color: #7A6A5A;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    height: 100%;
}

.service-tag:hover {
    border-color: #8B5A2B;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 90, 43, 0.06);
    color: #2C2419;
}

.service-tag-icon {
    margin-right: 8px;
    flex-shrink: 0;
}

.service-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid #EDE4D8;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(139, 90, 43, 0.08);
    border-color: #8B5A2B;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(139, 90, 43, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 1.2rem;
}

.service-icon i {
    font-size: 1.8rem;
    color: #8B5A2B;
}

.service-content {
    flex: 1;
}

.service-sub-items {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.service-sub-items li {
    padding: 0.4rem 0;
    color: #7A6A5A;
    font-size: 0.9rem;
    border-bottom: 1px solid #F5EFE6;
    padding-left: 1.2rem;
    position: relative;
}

.service-sub-items li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #8B5A2B;
    font-weight: bold;
}

.service-sub-items li:last-child {
    border-bottom: none;
}

.process-step {
    background: #ffffff;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    border: 1px solid #EDE4D8;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(139, 90, 43, 0.08);
    border-color: #8B5A2B;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8B5A2B, #A67B5B);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto;
}

/* ========================================
   Contact Page Components
   ======================================== */
.contact-icon {
    width: 45px;
    height: 45px;
    background: rgba(139, 90, 43, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hover-link {
    transition: all 0.3s ease;
}

.hover-link:hover {
    color: #8B5A2B !important;
}

.social-btn {
    width: 50px;
    height: 50px;
    background: rgba(139, 90, 43, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2C2419;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: #8B5A2B;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(139, 90, 43, 0.3);
}

/* ========================================
   Form Controls - Brand Themed
   ======================================== */
.form-control {
    border: 1px solid #EDE4D8;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: #2C2419;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-control:focus {
    border-color: #8B5A2B;
    box-shadow: 0 0 0 3px rgba(139, 90, 43, 0.12);
    background: #ffffff;
    color: #2C2419;
}

.form-control::placeholder {
    color: #9A8B7A;
    opacity: 1;
}

.form-label {
    color: #2C2419;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

/* ========================================
   Buttons - Additional
   ======================================== */
.btn-primary-custom {
    background: #8B5A2B;
    color: #ffffff;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background: #6B4423;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 90, 43, 0.3);
}

/* ========================================
   Error Pages (400, 403, 404, 500)
   ======================================== */
.error-page {
    position: relative;
    min-height: 100vh;
    padding: 6rem 0 3rem;
    background: linear-gradient(135deg, #FAF7F2 0%, #ffffff 100%);
    overflow: hidden;
}

.error-visual {
    position: relative;
    display: inline-block;
    padding: 2rem 3rem;
}

.error-code {
    font-size: clamp(6rem, 20vw, 12rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, #8B5A2B 0%, #A67B5B 50%, #8B5A2B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
    animation: errorFloat 4s ease-in-out infinite;
}

.error-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: errorPulse 5s ease-in-out infinite;
}

.shape-1 {
    width: 120px;
    height: 120px;
    background: #8B5A2B;
    top: -20px;
    left: -40px;
    animation-delay: 0s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    background: #A67B5B;
    bottom: 0;
    right: -30px;
    animation-delay: 1.5s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    background: #8B5A2B;
    top: 30%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes errorFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes errorPulse {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.3); opacity: 0.25; }
}

/* Quick Links on Error Pages */
.quick-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    background: #ffffff;
    border: 1px solid #EDE4D8;
    border-radius: 50px;
    color: #7A6A5A;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.quick-link i {
    color: #8B5A2B;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.quick-link:hover {
    border-color: #8B5A2B;
    color: #8B5A2B;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 90, 43, 0.12);
}

.quick-link:hover i {
    transform: scale(1.1);
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .error-page {
        padding: 5rem 0 2rem;
    }
    
    .error-visual {
        padding: 1rem 1.5rem;
    }
    
    .shape-1 {
        width: 80px;
        height: 80px;
        left: -20px;
    }
    
    .shape-2 {
        width: 60px;
        height: 60px;
        right: -15px;
    }
    
    .shape-3 {
        width: 40px;
        height: 40px;
    }
}