/*==========================
    Header Elegant Section
============================*/

/* Main Header */
.main-header-elegant {
    position: relative;
    width: 100%;
    z-index: 1000;
}

/* Header Decoration Elements */
.header-decoration-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.header-particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(222, 90, 86, 0.1), transparent);
    animation: particle-float 15s ease-in-out infinite;
}

.particle-1 {
    width: 150px;
    height: 150px;
    top: -50px;
    right: 10%;
    animation-delay: 0s;
}

.particle-2 {
    width: 100px;
    height: 100px;
    top: 20px;
    left: 15%;
    animation-delay: 5s;
}

.particle-3 {
    width: 80px;
    height: 80px;
    top: 10px;
    right: 30%;
    animation-delay: 10s;
}

@keyframes particle-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(20px, -20px) scale(1.2);
        opacity: 0.8;
    }
}

/* Header Sticky */
.header-sticky-elegant {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.header-sticky-elegant.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 1);
}

/* Navbar Elegant */
.navbar-elegant {
    padding: 0;
    min-height: 80px;
    position: relative;
}

.header-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 0;
}

/* Logo Wrapper */
.logo-wrapper-elegant {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.navbar-brand-elegant {
    display: inline-block;
    position: relative;
}

.logo-container {
    position: relative;
    display: inline-block;
    padding: 8px;
}

.site-logo {
    /* height: 50px; */
    width: 90px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.navbar-brand-elegant:hover .site-logo {
    transform: scale(1.05);
}

.logo-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.navbar-brand-elegant:hover .logo-shine {
    left: 200%;
}

/* Main Menu Elegant */
.main-menu-elegant {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-menu-wrapper-elegant {
    display: flex;
    align-items: center;
}

.nav-menu-wrapper-elegant ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.nav-menu-wrapper-elegant ul li {
    position: relative;
}

.nav-menu-wrapper-elegant ul li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #1a1a2e;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-menu-wrapper-elegant ul li a::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #de5a56, transparent);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu-wrapper-elegant ul li a:hover::before,
.nav-menu-wrapper-elegant ul li a.active::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-menu-wrapper-elegant ul li a:hover {
    color: #de5a56;
    background: rgba(222, 90, 86, 0.05);
}

.nav-menu-wrapper-elegant ul li a.active {
    color: #de5a56;
    background: rgba(222, 90, 86, 0.08);
}

/* Dropdown Menu */
.nav-menu-wrapper-elegant ul li .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(222, 90, 86, 0.1);
}

.nav-menu-wrapper-elegant ul li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu-wrapper-elegant ul li .dropdown-menu li {
    width: 100%;
}

.nav-menu-wrapper-elegant ul li .dropdown-menu li a {
    width: 100%;
    padding: 10px 15px;
    border-radius: 6px;
}

/* Header Actions */
.header-actions-elegant {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

/* CTA Button Elegant */
.btn-elegant-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #de5a56, #c94843);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(222, 90, 86, 0.3);
    border: none;
    cursor: pointer;
}

.btn-elegant-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-elegant-primary:hover::before {
    left: 100%;
}

.btn-elegant-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(222, 90, 86, 0.4);
    color: #ffffff;
}

.btn-elegant-primary:active {
    transform: translateY(0);
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.btn-elegant-primary:hover .btn-icon {
    transform: translateX(-3px);
}

.btn-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    pointer-events: none;
}

.btn-elegant-primary:active .btn-ripple {
    width: 300px;
    height: 300px;
}

/* Mobile Menu Toggle */
.navbar-toggle-elegant {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    height: 30px;
    justify-content: center;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.toggle-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #de5a56, #c94843);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-toggle-elegant:hover .toggle-line {
    background: linear-gradient(90deg, #c94843, #de5a56);
}

.navbar-toggle-elegant.active .toggle-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar-toggle-elegant.active .toggle-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.navbar-toggle-elegant.active .toggle-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Responsive Menu */
.responsive-menu-elegant {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 998;
}

.responsive-menu-elegant.active {
    opacity: 1;
    visibility: visible;
}

.responsive-menu-elegant ul {
    list-style: none;
    padding: 30px 20px;
    margin: 0;
}

.responsive-menu-elegant ul li {
    margin-bottom: 5px;
}

.responsive-menu-elegant ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    color: #1a1a2e;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(222, 90, 86, 0.02);
}

.responsive-menu-elegant ul li a:hover,
.responsive-menu-elegant ul li a.active {
    background: rgba(222, 90, 86, 0.1);
    color: #de5a56;
    transform: translateX(-5px);
}

.responsive-menu-elegant ul li a i {
    transition: transform 0.3s ease;
}

.responsive-menu-elegant ul li a:hover i {
    transform: translateX(-5px);
}

/* Responsive Design */
@media (max-width: 991px) {
    .main-menu-elegant {
        display: none;
    }

    .navbar-toggle-elegant {
        display: flex;
    }

    .responsive-menu-elegant {
        display: block;
    }

    .navbar-elegant {
        min-height: 70px;
    }

    .site-logo {
        height: 45px;
    }

    .btn-elegant-primary {
        padding: 10px 20px;
        font-size: 14px;
    }

    .header-actions-elegant {
        gap: 15px;
    }
}

@media (max-width: 767px) {
    .navbar-elegant {
        min-height: 60px;
    }

    .site-logo {
        height: 40px;
    }

    .btn-elegant-primary {
        padding: 8px 16px;
        font-size: 13px;
        gap: 6px;
    }

    .btn-icon {
        font-size: 12px;
    }

    .header-actions-elegant {
        gap: 10px;
    }

    .navbar-toggle-elegant {
        width: 25px;
        height: 25px;
        gap: 4px;
    }

    .toggle-line {
        height: 2px;
    }

    .header-particle {
        opacity: 0.3;
    }
}

@media (max-width: 575px) {
    .header-content-wrapper {
        padding: 10px 0;
    }

    .site-logo {
        height: 35px;
    }

    .btn-text {
        display: none;
    }

    .btn-elegant-primary {
        padding: 10px;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        justify-content: center;
    }

    .btn-icon {
        margin: 0;
    }
}

/* RTL Support */
[dir="rtl"] .nav-menu-wrapper-elegant ul {
    flex-direction: row-reverse;
}

[dir="rtl"] .btn-elegant-primary:hover .btn-icon {
    transform: translateX(3px);
}

[dir="rtl"] .responsive-menu-elegant ul li a:hover {
    transform: translateX(5px);
}

[dir="rtl"] .responsive-menu-elegant ul li a:hover i {
    transform: translateX(5px);
}

[dir="rtl"] .btn-elegant-primary::before {
    left: auto;
    right: -100%;
}

[dir="rtl"] .btn-elegant-primary:hover::before {
    right: 100%;
    left: auto;
}

/* Scroll Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-sticky-elegant.animate-in {
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .header-sticky-elegant {
        background: rgba(26, 26, 46, 0.98);
    }

    .header-sticky-elegant.scrolled {
        background: rgba(26, 26, 46, 1);
    }

    .nav-menu-wrapper-elegant ul li a {
        color: #cd4c47;
    }

    .nav-menu-wrapper-elegant ul li a:hover {
        color: #de5a56;
        background: rgba(222, 90, 86, 0.1);
    }

    .nav-menu-wrapper-elegant ul li .dropdown-menu {
        background: #1a1a2e;
        border-color: rgba(222, 90, 86, 0.2);
    }

    .responsive-menu-elegant {
        background: rgba(26, 26, 46, 0.98);
    }

    .responsive-menu-elegant ul li a {
        color: #ffffff;
        background: rgba(222, 90, 86, 0.05);
    }

    .responsive-menu-elegant ul li a:hover,
    .responsive-menu-elegant ul li a.active {
        background: rgba(222, 90, 86, 0.15);
        color: #de5a56;
    }
}

/* Print Styles */
@media print {
    .header-decoration-elements,
    .btn-elegant-primary,
    .navbar-toggle-elegant,
    .responsive-menu-elegant {
        display: none;
    }

    .header-sticky-elegant {
        position: static;
        box-shadow: none;
        background: white;
    }
}

/* Accessibility */
.btn-elegant-primary:focus,
.nav-menu-wrapper-elegant ul li a:focus,
.navbar-toggle-elegant:focus {
    outline: 2px solid #de5a56;
    outline-offset: 2px;
}

/* Loading State */
.header-sticky-elegant.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Smooth Transitions */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
