/* ===============================
   MODERN FOOTER STYLES
   =============================== */

:root {
    --primary-color: #00B4D8;
    --primary-dark: #0077B6;
    --text-color: #1a1a1a;
    --text-light: #666666;
    --text-lighter: #999999;
    --bg-dark: #0f2a3d;
    --bg-darker: #091a28;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --shadow-md: 0 8px 24px rgba(0, 180, 216, 0.12);
    --shadow-lg: 0 12px 40px rgba(0, 180, 216, 0.15);
}

/* ===============================
   FOOTER CONTAINER
   =============================== */

.modern-footer {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    color: var(--white);
    padding-top: 80px;
    position: relative;
    margin-top: 0;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.modern-footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ===============================
   FOOTER GRID LAYOUT
   =============================== */

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-section {
    animation: fadeInUp 0.8s ease 0.1s both;
}

/* ===============================
   FOOTER BRAND SECTION
   =============================== */

.footer-brand {
    grid-column: span 1;
}

.footer-logo {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.footer-logo img {
    max-width: 150px;
    height: auto;
    filter: brightness(1.1);
    transition: transform 0.3s ease;
}

.footer-logo:hover img {
    transform: scale(1.05);
}

.footer-tagline {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.footer-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin: 0;
}

/* ===============================
   FOOTER LINKS SECTIONS
   =============================== */

.footer-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-title::before {
    content: '';
    width: 3px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-links ul,
.footer-services ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-services li {
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.footer-links a,
.footer-services a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.footer-links a::before,
.footer-services a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.footer-links a:hover::before,
.footer-services a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* ===============================
   FOOTER CONTACT SECTION
   =============================== */

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.contact-item i {
    font-size: 16px;
    color: var(--primary-color);
    margin-top: 2px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.contact-item:hover i {
    transform: scale(1.2);
}

.contact-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-item span {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ===============================
   FOOTER SOCIAL & NEWSLETTER
   =============================== */

.footer-social-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
    padding: 40px;
    background: rgba(0, 180, 216, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(0, 180, 216, 0.1);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.social-media {
    display: flex;
    flex-direction: column;
}

.social-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-title::before {
    content: '';
    width: 3px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 2px;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-color);
    border-radius: 12px;
    z-index: -1;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.social-icon:hover::before {
    transform: scale(1);
}

.social-icon.facebook {
    border-color: #1877f2;
    color: #1877f2;
}

.social-icon.facebook:hover {
    color: var(--white);
    border-color: var(--primary-color);
}

.social-icon.twitter {
    border-color: #1da1f2;
    color: #1da1f2;
}

.social-icon.twitter:hover {
    color: var(--white);
    border-color: var(--primary-color);
}

.social-icon.instagram {
    border-color: #e1306c;
    color: #e1306c;
}

.social-icon.instagram:hover {
    color: var(--white);
    border-color: var(--primary-color);
}

.social-icon.linkedin {
    border-color: #0a66c2;
    color: #0a66c2;
}

.social-icon.linkedin:hover {
    color: var(--white);
    border-color: var(--primary-color);
}

.social-icon.youtube {
    border-color: #ff0000;
    color: #ff0000;
}

.social-icon.youtube:hover {
    color: var(--white);
    border-color: var(--primary-color);
}

/* ===============================
   NEWSLETTER SECTION
   =============================== */

.newsletter-section {
    display: flex;
    flex-direction: column;
}

.newsletter-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    background: rgba(0, 180, 216, 0.1);
    padding: 8px;
    border-radius: 10px;
    border: 1px solid rgba(0, 180, 216, 0.2);
    transition: all 0.3s ease;
}

.newsletter-form:focus-within {
    border-color: var(--primary-color);
    background: rgba(0, 180, 216, 0.15);
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--white);
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-btn {
    background: var(--primary-color);
    border: none;
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: var(--primary-dark);
    transform: translateX(3px);
}

/* ===============================
   FOOTER BOTTOM
   =============================== */

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 180, 216, 0.3), transparent);
    margin-bottom: 30px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-legal a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

.divider {
    color: rgba(255, 255, 255, 0.3);
}

/* ===============================
   ANIMATIONS
   =============================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================
   RESPONSIVE DESIGN
   =============================== */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .footer-social-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .modern-footer {
        padding-top: 60px;
        margin-top: 80px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }

    .footer-social-section {
        padding: 30px;
        gap: 30px;
        margin-bottom: 30px;
    }

    .footer-title {
        font-size: 15px;
    }

    .social-links {
        justify-content: flex-start;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        padding-bottom: 20px;
    }

    .footer-legal {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .modern-footer {
        padding-top: 40px;
        margin-top: 60px;
    }

    .footer-grid {
        gap: 30px;
    }

    .footer-logo img {
        max-width: 120px;
    }

    .footer-title {
        font-size: 14px;
    }

    .footer-social-section {
        padding: 20px;
        gap: 25px;
    }

    .social-icon {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .social-links {
        gap: 12px;
    }

    .newsletter-form {
        padding: 6px;
    }

    .newsletter-form input {
        font-size: 13px;
        padding: 8px 10px;
    }

    .newsletter-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .footer-bottom-content {
        gap: 15px;
    }

    .copyright,
    .footer-legal a {
        font-size: 12px;
    }

    .footer-section {
        animation-delay: 0.05s;
    }
}
