.footer {
    position: relative;
    overflow: hidden;
    padding: 90px 5% 25px;
    background:
        radial-gradient(circle at 20% 20%, rgba(201, 162, 74, 0.07), transparent 30%),
        linear-gradient(135deg, #0d0f10, #171a1c 50%, #090a0b);
    border-top: 1px solid rgba(201, 162, 74, 0.25);
}

body.theme-beauty .footer {
    background:
        radial-gradient(circle at 20% 20%, rgba(216, 142, 163, 0.08), transparent 30%),
        linear-gradient(135deg, #120d10, #1a1417 50%, #0c0a0b);
    border-top-color: rgba(216, 142, 163, 0.3);
}

.footer::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    width: 180px; height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-light), var(--accent), transparent);
    box-shadow: 0 0 20px rgba(201, 162, 74, 0.4);
}

.footer-container {
    position: relative;
    z-index: 2;
    width: min(1200px, 100%);
    margin: auto;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
    gap: 60px;
}

.footer-brand { max-width: 340px; }

.footer-logo {
    display: inline-flex;
    width: 82px; height: 82px;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 50%;
    border: 1px solid rgba(201, 162, 74, 0.7);
    background: rgba(8, 10, 12, 0.75);
    box-shadow: 0 0 20px rgba(201, 162, 74, 0.15), inset 0 0 20px rgba(201, 162, 74, 0.08);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.footer-logo:hover {
    transform: scale(1.06);
    box-shadow: 0 0 30px rgba(201, 162, 74, 0.3), inset 0 0 25px rgba(201, 162, 74, 0.12);
}

.footer-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.footer-brand > p {
    margin: 0;
    color: rgba(245, 242, 234, 0.62);
    font-size: 13px;
    line-height: 1.8;
}

.footer-socials { display: flex; gap: 10px; margin-top: 25px; }

.footer-socials a {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #080a0c;
    border: 1px solid rgba(201, 162, 74, 0.4);
    color: var(--accent);
    font-size: 16px;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.footer-socials a:hover {
    transform: translateY(-4px);
    background: var(--accent);
    color: var(--black);
    box-shadow: 0 8px 20px rgba(201, 162, 74, 0.25);
}

.footer-links, .footer-contact { display: flex; flex-direction: column; }

.footer h3 {
    margin: 0 0 22px;
    color: var(--accent-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    font-family: var(--sans);
}

.footer-links a {
    width: fit-content;
    margin-bottom: 12px;
    color: rgba(245, 242, 234, 0.62);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links a:hover { color: var(--accent-light); transform: translateX(5px); }

.footer-contact a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(245, 242, 234, 0.62);
    font-size: 13px;
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover { color: var(--accent-light); }

.footer-contact i { width: 18px; margin-top: 3px; flex-shrink: 0; color: var(--accent); font-size: 14px; }

.footer-bottom {
    position: relative;
    z-index: 2;
    width: min(1200px, 100%);
    margin: 70px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(201, 162, 74, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-bottom p { margin: 0; color: rgba(245, 242, 234, 0.4); font-size: 11px; letter-spacing: 0.5px; }

.footer-tech-icon {
    width: 42px; height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    text-decoration: none;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-tech-icon:hover {
    transform: translateY(-4px) scale(1.08);
    filter: drop-shadow(2px 0 0 #25f4ee) drop-shadow(-2px 0 0 #fe2c55);
}

@media (max-width: 950px) {
    .footer-container { grid-template-columns: 1fr 1fr; gap: 50px 40px; }
    .footer-brand { max-width: 100%; }
}

@media (max-width: 600px) {
    .footer { padding: 75px 7% 25px; }
    .footer-container { grid-template-columns: 1fr; gap: 40px; }
    .footer-brand { max-width: 100%; }
    .footer-logo { width: 75px; height: 75px; }
    .footer-bottom { margin-top: 50px; flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* =========================================================
   FLOATING SOCIAL ICONS
   ---------------------------------------------------------
   Moved here from contact.css so they're available on every
   page (footer.css is loaded sitewide), not just Contact.
========================================================= */

.social-floating {
    position: fixed;
    right: 22px;
    bottom: 25px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-floating .social {
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #080a0c;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    /* gentle independent drift so the stack doesn't feel static */
    animation: socialFloat 3.2s ease-in-out infinite;
}

/* stagger each icon so they float out of sync with each other */
.social-floating .social:nth-child(1) { animation-delay: 0s; }
.social-floating .social:nth-child(2) { animation-delay: 0.5s; }
.social-floating .social:nth-child(3) { animation-delay: 1s; }
.social-floating .social:nth-child(4) { animation-delay: 1.5s; }

.social-floating .social:nth-child(1) { border: 1px solid #e1306c; }
.social-floating .social:nth-child(1) i { color: #e1306c; }
.social-floating .social:nth-child(2) { border: 1px solid #1877f2; }
.social-floating .social:nth-child(2) i { color: #1877f2; }
.social-floating .social:nth-child(3) { border: 1px solid #25d366; }
.social-floating .social:nth-child(3) i { color: #25d366; }

/* Pause the drift on hover so the click target holds still,
   then lift + scale as before */
.social-floating .social:hover {
    animation-play-state: paused;
    transform: translateY(-5px) scale(1.08);
}

@keyframes socialFloat {
    0%   { transform: translate(0, 0) rotate(0deg); }
    25%  { transform: translate(-3px, -6px) rotate(-3deg); }
    50%  { transform: translate(2px, -10px) rotate(2deg); }
    75%  { transform: translate(3px, -4px) rotate(3deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
    .social-floating .social { animation: none; }
}

.social-tiktok {
    color: #ffffff !important;
    background: #080a0c !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.social-tiktok i {
    color: #ffffff !important;
    text-shadow: 2px 2px 0 #25f4ee, -2px -2px 0 #fe2c55;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.social-tiktok:hover {
    border-color: #ffffff !important;
    transform: translateX(-5px) scale(1.08);
    box-shadow: 0 0 15px rgba(37, 244, 238, 0.25), 0 0 25px rgba(254, 44, 85, 0.2);
}

.social-tiktok:hover i {
    transform: rotate(-8deg);
    text-shadow: 3px 3px 0 #25f4ee, -3px -3px 0 #fe2c55;
}

@media (max-width: 500px) {
    .social-floating { right: 15px; bottom: 15px; }
    .social-floating .social { width: 44px; height: 44px; font-size: 18px; }
}
