/* Footer Component Styles */
.footer {
    background: linear-gradient(135deg, var(--dark-gray) 0%, #0f0f0f 100%);
    color: var(--white);
    padding: 4rem 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--dark-red) 0%, var(--cream) 50%, var(--dark-red) 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}

.footer-brand {
    max-width: 350px;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-brand .logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.footer-brand .logo:hover img {
    transform: scale(1.1);
}

.footer-brand .logo span {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.footer-brand p {
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(237, 235, 221, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.footer-social a::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.5s ease;
}

.footer-social a:hover::before {
    left: 100%;
}

.footer-social a:hover {
    background: var(--dark-red);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(99, 0, 0, 0.4);
    border-color: var(--dark-red);
}

.footer-social a i {
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.footer-social a:hover i {
    transform: scale(1.2);
}

.footer-section h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--cream);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--dark-red) 0%, var(--cream) 100%);
    border-radius: 2px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.4rem 0;
    border-radius: 4px;
    font-size: 0.95rem;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--dark-red);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.footer-links a:hover {
    color: var(--cream);
    padding-left: 15px;
    transform: translateX(5px);
}

.footer-links a:hover::before {
    width: 10px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-item i {
    color: var(--dark-red);
    margin-top: 0.2rem;
    font-size: 1.1rem;
    min-width: 18px;
    transition: all 0.3s ease;
}

.contact-item:hover i {
    color: var(--cream);
    transform: scale(1.2);
}

.contact-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: var(--cream);
    text-decoration: underline;
}

.contact-item span {
    color: rgba(255, 255, 255, 0.8);
}

/* Footer Bottom Section */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(237, 235, 221, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-bottom-content p {
    margin: 0;
    opacity: 0.6;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

/* Footer Credit Section */
.footer-credit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--light-gray);
}

.credit-designed,
.credit-by {
    color: var(--light-gray);
}

.credit-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--cream);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.credit-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    text-decoration: none;
}

.credit-logo {
    height: 16px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.credit-link:hover .credit-logo {
    filter: brightness(0) invert(1) drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));
}

.credit-text {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .footer-credit {
        font-size: 0.8rem;
        justify-content: center;
        margin-top: 1rem;
    }
    
    .credit-logo {
        height: 14px;
    }
    
    .credit-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .footer-credit {
        flex-direction: column;
        gap: 0.3rem;
        text-align: center;
    }
    
    .credit-link {
        justify-content: center;
    }
}

/* Fix white right panel - ensure full width */
body, html {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.footer {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand {
        margin-bottom: 2rem;
    }
    
    .footer-section h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-links a {
        padding: 0.5rem 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .footer-links a:hover {
        background: rgba(255, 255, 255, 0.1);
        padding-left: 1rem;
        transform: none;
    }
    
    .footer-links a::before {
        display: none;
    }
    
    .footer-contact {
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-social {
        gap: 0.8rem;
    }
    
    .footer-social a {
        width: 40px;
        height: 40px;
    }
    
    .footer-social a i {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2.5rem 0 0;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-brand .logo {
        margin-bottom: 1rem;
    }
    
    .footer-brand .logo img {
        height: 35px;
    }
    
    .footer-brand .logo span {
        font-size: 1.2rem;
    }
    
    .footer-brand p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .footer-links a,
    .contact-item {
        font-size: 0.9rem;
    }
    
    .footer-social a {
        width: 35px;
        height: 35px;
    }
    
    .footer-social a i {
        font-size: 1rem;
    }
    
    .footer-bottom {
        padding: 1.5rem 0;
    }
    
    .footer-bottom-content {
        font-size: 0.85rem;
    }
}

@media (max-width: 375px) {
    .footer-content {
        gap: 1.2rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-links a,
    .contact-item {
        font-size: 0.85rem;
    }
    
    .footer-social {
        gap: 0.6rem;
    }
    
    .footer-social a {
        width: 32px;
        height: 32px;
    }
    
    .footer-social a i {
        font-size: 0.9rem;
    }
}

/* Scroll to top button (optional) */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--dark-red);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(99, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--dark-gray);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(99, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}
