/* This stylesheet is meant for custom styles, on top of the Bone Template */

/* --- Premium Hero Section --- */
.premium-hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url('../images/TRUST_USE_BACKGROUND_Wondershare_Wondershare.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 58, 138, 0.6) 100%);
    backdrop-filter: blur(2px);
    z-index: 1;
}

.hero-content-container {
    position: relative;
    z-index: 2;
    margin-top: -50px;
}

.hero-text-animate {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-title {
    color: #ffffff;
    font-size: 4rem;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    margin-bottom: 25px;
    letter-spacing: -1px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.hero-subtitle {
    color: #e2e8f0;
    font-size: 1.3rem;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* --- Premium Search Bar --- */
.search-bar-animate {
    margin-top: 50px;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.premium-search {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 60px;
    overflow: hidden;
    max-width: 650px;
    width: 100%;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-search:hover, .premium-search:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.3), 0 0 30px rgba(56, 189, 248, 0.4);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.premium-search-input {
    border: none;
    padding: 22px 35px;
    font-size: 1.2rem;
    width: 100%;
    outline: none;
    background: transparent;
    color: #ffffff;
    font-weight: 500;
}

.premium-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.premium-search-icon {
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    color: #fff;
    padding: 0 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    border-radius: 0 60px 60px 0;
}

.premium-search-icon:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);
    box-shadow: -5px 0 20px rgba(37, 99, 235, 0.4);
}

/* --- Animated Hamburger Menu --- */
.menu {
    position: relative;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    z-index: 100;
    transition: all 0.3s ease;
}

.menu .bar {
    width: 30px;
    height: 3px;
    background-color: #333; /* Default dark color for header */
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Adjust bar color on dark background if header affixes */
header.affix .menu .bar {
    background-color: #333;
}

/* Animation to 'X' state when body has .active-menu */
body.active-menu .menu .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: #fff; /* White when menu is open */
}

body.active-menu .menu .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

body.active-menu .menu .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: #fff; /* White when menu is open */
}

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    .premium-search {
        max-width: 90%;
    }
    .premium-search-input {
        padding: 18px 25px;
        font-size: 1rem;
    }
    .premium-search-icon {
        padding: 0 30px;
    }
}
