/* ============================================
   Footer - Clean Simple Design
   ============================================ */

/* Main Footer */
.footer {
    background: #f7f7f9;
    color: #333;
    padding: 0;
    font-family: var(--font-family);
    border-top: 3px solid var(--primary-color);
}

/* ============================================
   Footer Main Content
   ============================================ */
.footer-main {
    padding: 40px 0;
}

.footer-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

/* Footer Brand */
.footer-brand {
    flex: 0 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 55px;
    width: auto;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.footer-logo-subtitle {
    font-size: 0.7rem;
    color: #888;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.footer-description {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.7;
    max-width: 350px;
}

/* Footer Links - Single Row with Separators */
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px 0;
    padding: 15px 0;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    margin: 15px 0;
}

.footer-nav a {
    font-size: 0.8rem;
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 5px 12px;
    border-left: 1px solid #ddd;
}

.footer-nav a:last-child {
    border-left: none;
}

.footer-nav a:hover {
    color: var(--primary-color);
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 8px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #666;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Social + Contact Container */
.footer-social-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

/* Contact Button - Simple */
.footer-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #ccc;
    color: #555;
    text-decoration: none;
    font-size: 0.8rem;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.footer-contact-btn i {
    font-size: 0.75rem;
}

.footer-contact-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ============================================
   Footer Bottom - Copyright
   ============================================ */
.footer-bottom {
    padding: 15px 0;
    background: #eeeef1;
    border-top: 1px solid #e0e0e0;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copyright {
    font-size: 0.8rem;
    color: #777;
    margin: 0;
}

.footer-copyright a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.footer-copyright a:hover {
    text-decoration: underline;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    font-size: 0.75rem;
    color: #777;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* Designer Credit */
.footer-designer {
    font-size: 0.75rem;
    color: #888;
    margin: 0;
}

.footer-designer span {
    color: var(--primary-color);
    font-weight: 600;
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 992px) {
    .footer-content {
        flex-wrap: wrap;
    }

    .footer-brand {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }

    .footer-nav {
        flex-wrap: wrap;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 30px 0;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-description {
        max-width: 100%;
    }

    .footer-nav {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-logo img {
        height: 45px;
    }

    .footer-logo-title {
        font-size: 1.1rem;
    }

    .footer-nav {
        gap: 15px;
    }

    .footer-nav a {
        font-size: 0.8rem;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

/* ============================================
   Scroll to Top Button
   ============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(-135deg, var(--primary-color) 0%, #4a7fb8 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(49, 101, 149, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    overflow: hidden;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: linear-gradient(-135deg, #4a7fb8 0%, var(--primary-color) 100%);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(49, 101, 149, 0.5);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

.scroll-to-top i {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.scroll-to-top:hover i {
    transform: translateY(-2px);
}

/* Progress Ring */
.scroll-progress {
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    transform: rotate(0deg);
    transition: transform 0.1s linear;
}

/* Ripple effect on click */
.scroll-to-top::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.4s ease;
}

.scroll-to-top:active::before {
    transform: scale(1);
}

/* Responsive */
@media (max-width: 768px) {
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 70px;
        left: 20px;
        font-size: 1rem;
    }
}