/* Modern Header & Footer Styles */
:root {
    --primary-color: #4a6cf7;
    --secondary-color: #ff6b6b;
    --accent-color: #ffa502;
    --dark-color: #2d3748;
    --light-color: #f8f9fa;
    --success-color: #2ecc71;
    --gradient-1: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    --gradient-2: linear-gradient(135deg, #ff6b6b 0%, #ff9f43 100%);
    --gradient-3: linear-gradient(135deg, #13547a 0%, #80d0c7 100%);
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ===== HEADER STYLES ===== */
.modern-header {
    width: 100%;
    position: relative;
    z-index: 1000;
    font-family: 'Poppins', sans-serif;
}

/* Top Bar */
.top-bar {
    background: var(--gradient-1);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.support-email a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.support-email a:hover {
    color: var(--accent-color);
}

.offer-section {
    position: relative;
    overflow: hidden;
}

.animated-offer {
    display: inline-block;
    animation: slideText 15s linear infinite;
    white-space: nowrap;
    padding-right: 50px;
}

@keyframes slideText {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Mid Bar */
.mid-bar {
    background-color: white;
    padding: 15px 0;
    box-shadow: var(--box-shadow);
}

.mid-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    flex: 0 0 20%;
}

.logo {
    text-decoration: none;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.logo-text::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: -5px;
    left: 0;
    background: var(--gradient-2);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s;
}

.logo:hover .logo-text::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.search-container {
    flex: 0 0 60%;
    position: relative;
}

.search-form {
    display: flex;
    position: relative;
}

#search-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e1e1e1;
    border-radius: 30px;
    font-size: 16px;
    transition: var(--transition);
    outline: none;
}

#search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.2);
}

.search-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--gradient-1);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

/* Nav Bar */
.nav-bar {
    background: var(--dark-color);
    padding: 0;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 15px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin-bottom: 5px;
    border-radius: 3px;
    transition: var(--transition);
}

.main-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu li {
    position: relative;
}

.main-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    font-weight: 500;
    transition: var(--transition);
}

.main-menu a:hover,
.main-menu a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

.has-dropdown > a::after {
    content: '▼';
    font-size: 10px;
    margin-left: 5px;
    vertical-align: middle;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--box-shadow);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    display: block;
    padding: 10px 0;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
    width: 100%;
}

.dropdown-menu a {
    color: var(--dark-color);
    padding: 10px 20px;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

/* ===== FOOTER STYLES ===== */
.modern-footer {
    background: var(--dark-color);
    color: white;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(74, 108, 247, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.footer-content {
    position: relative;
    z-index: 1;
    padding: 60px 0 30px;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-widget {
    flex: 1 1 250px;
}

.footer-widget h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-2);
    border-radius: 3px;
}

.footer-widget p {
    color: #b3b3b3;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--gradient-2);
    transform: translateY(-3px);
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #b3b3b3;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-form input::placeholder {
    color: #b3b3b3;
}

.btn-subscribe {
    background: var(--gradient-2);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    position: relative;
    z-index: 1;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright p {
    margin: 0;
    font-size: 14px;
}

.credits p {
    margin: 0;
    font-size: 14px;
}

.heart-icon {
    display: inline-block;
    color: var(--secondary-color);
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    40% {
        transform: scale(1);
    }
    60% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .mid-bar-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .logo-container,
    .search-container {
        flex: 0 0 100%;
        text-align: center;
    }
    
    .footer-widget {
        flex: 1 1 200px;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .main-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--dark-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .main-menu.active {
        max-height: 500px;
    }
    
    .main-menu ul {
        flex-direction: column;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
    }
    
    .has-dropdown.active .dropdown-menu {
        max-height: 500px;
    }
    
    .has-dropdown > a::after {
        content: '+';
    }
    
    .has-dropdown.active > a::after {
        content: '-';
    }
    
    .dropdown-menu a {
        padding-left: 40px;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .footer-widgets {
        flex-direction: column;
    }
    
    .footer-widget {
        flex: 0 0 100%;
    }
}
