/* ============================================
   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 Top Section - Grid Layout
   ============================================ */
.footer-top {
    padding: 40px 0;
    background: #f7f7f9;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

/* Footer About Column */
.footer-about {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.footer-logo img {
    height: 50px;
    width: auto;
    border-radius: 8px;
}

.footer-logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
}

.footer-description {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.8;
    margin: 0;
    font-weight: 500;
}

/* Footer Columns */
.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    font-size: 0.95rem;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    font-size: 0.8rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.footer-links a:hover i {
    transform: translateX(-3px);
}

/* Footer Contact List */
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #555;
}

.footer-contact li i {
    color: var(--primary-color);
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}

.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;
    font-size: 0.9rem;
}

.footer-social a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

/* ============================================
   Footer Main Content (Alternative Layout)
   ============================================ */
.footer-main {
    padding: 40px 0;
}

.footer-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
}

/* Footer Brand - العمود الأول (40%) */
.footer-brand {
    flex: 0 0 30%;
    max-width: 40%;
}

.footer-brand .footer-description {
    margin-top: 15px;
}

.footer-logo-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.footer-logo-subtitle {
    font-size: 0.8rem;
    color: #888;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Footer Nav - العمود الثاني (25%) - صف واحد مع خطوط فاصلة */
.footer-nav {
    flex: 0 0 45%;
    max-width: 45%;
}

.footer-nav-list,
.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px 0;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-nav li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav a,
.footer-nav li a {
    font-size: 1.0rem;
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 5px 12px;
    border-left: 1px solid #ddd;
}

.footer-nav li:last-child a {
    border-left: none;
}

.footer-nav a:hover,
.footer-nav li a:hover {
    color: var(--primary-color);
}

/* Social + Contact Container - العمود الثالث (25%) */
.footer-social-contact {
    flex: 0 0 20%;
    max-width: 25%;
    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.9rem;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.footer-contact-btn i {
    font-size: 0.85rem;
}

.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;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-copyright {
    font-size: 0.9rem;
    color: #555;
    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 ul,
.footer-bottom-links .footer-bottom-nav {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-bottom-links li {
    list-style: none;
}

.footer-bottom-links a {
    font-size: 0.9rem;
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* Designer Credit */
.footer-designer {
    font-size: 0.85rem;
    color: #555;
    margin: 0;
}

.footer-designer span {
    color: var(--primary-color);
    font-weight: 600;
}

/* ============================================
   Responsive Styles - Tablets
   ============================================ */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-about {
        grid-column: span 2;
        text-align: center;
        align-items: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-content {
        flex-wrap: wrap;
        gap: 25px;
    }

    .footer-brand {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .footer-nav {
        flex: 0 0 45%;
        max-width: 45%;
        align-items: center;
    }

    .footer-social-contact {
        flex: 0 0 45%;
        max-width: 45%;
        align-items: center;
    }
}

/* ============================================
   Responsive Styles - Mobile
   ============================================ */
@media (max-width: 768px) {
    .footer-top {
        padding: 30px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .footer-about {
        grid-column: span 1;
        align-items: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-description {
        max-width: 100%;
        text-align: center;
    }

    .footer-column {
        align-items: center;
    }

    .footer-column h4 {
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-links a {
        justify-content: center;
    }

    .footer-links a:hover {
        padding-right: 0;
    }

    .footer-contact li {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-main {
        padding: 30px 0;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
    }

    .footer-brand {
        flex: 0 0 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-nav {
        flex: 0 0 100%;
        max-width: 100%;
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px 15px;
        padding: 15px 0;
        border-top: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;
    }

    .footer-social-contact {
        flex: 0 0 100%;
        max-width: 100%;
        align-items: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}

/* ============================================
   Responsive Styles - Small Mobile
   ============================================ */
@media (max-width: 480px) {
    .footer-top {
        padding: 25px 0;
    }

    .footer-grid {
        gap: 20px;
    }

    .footer-social-contact {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-logo {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .footer-logo img {
        height: 45px;
    }

    .footer-logo-text {
        font-size: 1.1rem;
    }

    .footer-description {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .footer-column h4 {
        font-size: 1.05rem;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .footer-links {
        gap: 8px;
    }

    .footer-links a {
        font-size: 0.9rem;
    }

    .footer-contact li {
        font-size: 0.9rem;
        flex-wrap: wrap;
        gap: 5px;
    }

    .footer-social a {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .footer-nav {
        gap: 10px;
        padding: 10px 0;
    }

    .footer-nav a {
        font-size: 0.85rem;
        padding: 4px 8px;
        border-left: none;
    }

    .footer-bottom {
        padding: 12px 0;
        margin-bottom: 25px;
    }

    .footer-bottom-content {
        gap: 10px;
    }

    .footer-copyright {
        font-size: 0.95rem;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .footer-bottom-links a {
        font-size: 1.0rem;
    }
}

/* ============================================
   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;
    }
}