
/* ================= FOOTER ================= */
.footer {
    position: relative;
    color: white;
    overflow: hidden;
}

/* animated background */
.footer-bg {
    position: absolute;
    inset: 0;

    background: linear-gradient(-45deg, #0f172a, #2f5970, #0c6475, #0f172a);
    background-size: 400% 400%;
    animation: gradientMove 10s ease infinite;

    z-index: -1;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ================= GRID ================= */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 60px 0;
}

/* ================= BOX ================= */
.footer-box h3 {
    margin-bottom: 15px;
    color: #fff;
    font-size: 18px;
}

.footer-box p {
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.6;
}

/* ================= LINKS ================= */
.footer-box a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    margin-bottom: 8px;
    transition: 0.3s;
}

.footer-box a:hover {
    color: #00b4d8;
    transform: translateX(6px);
}

/* ================= SOCIAL ================= */
.social {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.3);

    color: white;
    font-size: 18px;
    transition: 0.3s;
}

.social a:hover {
    background: #0c6070;
    box-shadow: 0 0 15px #00b4d8;
    transform: translateY(-3px);
}

/* ================= NEWSLETTER ================= */
.newsletter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter input {
    padding: 10px;
    border-radius: 6px;
    border: none;
    outline: none;
}

.newsletter button {
    padding: 10px;
    border: none;
    background: #00b4d8;
    color: white;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.3s;
}

.newsletter button:hover {
    box-shadow: 0 0 15px #00b4d8;
    transform: translateY(-2px);
}

/* ================= BOTTOM ================= */
.footer-bottom {
    text-align: center;
    padding: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 13px;
    color: #cbd5e1;
}

/* ================= MESSAGE BOX FIX ================= */
#msgBox {
    position: fixed;
    top: 20px;
    right: 20px;

    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;

    display: none;
    z-index: 9999;
}

.success { background: green; }
.error { background: red; }

/* ================= RESPONSIVE ================= */

/* TABLET */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE */

@media (max-width: 768px) {
    .footer-box:nth-child(2) {
        display: none; /* links hissəsini gizlət */
    }
}