/* =========================================
   FOOTER
   ========================================= */
.hover-footer {
    background: rgba(15, 15, 17, 0.2);
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: var(--space-md) var(--section-padding-x);
    border: 1px solid var(--color-border-light);
}

.footer-bg-gradient {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(125% 125% at 50% 10%, rgba(15, 15, 17, 0.6) 50%, rgba(255, 0, 0, 0.1) 100%);
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 20;
    padding: var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding-bottom: var(--space-xl);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1.5fr;
    }
}

/* --- Motion CV Button --- */
.motion-cv-btn {
    position: relative;
    height: 48px;
    min-width: 220px;
    padding: 0 32px 0 64px;
    border-radius: 9999px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-top: var(--space-md);
}

.motion-cv-btn .motion-circle {
    position: absolute;
    left: 4px;
    top: 4px;
    margin: 0;
    height: 40px;
    width: 40px;
    border-radius: 9999px;
    background: var(--color-accent);
    transition: width 0.5s ease;
    z-index: 0;
}

.motion-cv-btn:hover .motion-circle {
    width: calc(100% - 8px);
}

.motion-cv-btn .motion-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    color: var(--color-bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.motion-cv-btn:hover .motion-icon {
    transform: translateY(-50%) translateX(6px);
}

.motion-cv-btn .motion-text {
    position: relative;
    z-index: 1;
    color: var(--color-text-primary);
    transition: color 0.4s ease;
    white-space: nowrap;
    font-size: var(--text-sm);
    font-family: var(--font-primary);
    font-weight: 500;
}

.motion-cv-btn:hover .motion-text {
    color: var(--color-bg-primary);
}

/* --- Footer Brand & Links --- */
.footer-brand h3 {
    font-size: var(--text-2xl);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-brand span {
    color: var(--color-accent);
    font-family: serif;
}

.footer-links h4 {
    color: #fff;
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a,
.footer-links li,
.footer-links span {
    color: var(--color-text-secondary);
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.footer-icon {
    color: var(--color-accent);
    width: 18px;
    height: 18px;
}

/* --- Footer Bottom --- */
.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    border-top: 1px solid var(--color-border-light);
    padding-top: var(--space-lg);
    align-items: center;
    position: relative;
    z-index: 20;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-socials {
    display: flex;
    gap: var(--space-md);
}

.footer-socials a {
    color: var(--color-text-secondary);
    transition: color 0.3s;
}

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

/* --- Footer Hover SVG Text --- */
.footer-hover-text-container {
    display: none;
    height: clamp(200px, 30vw, 400px);
    margin-top: -100px;
    margin-bottom: -50px;
    position: relative;
    z-index: 10;
}

@media (min-width: 1024px) {
    .footer-hover-text-container {
        display: block;
    }
}

.hover-footer-svg {
    width: 100%;
    height: 100%;
    cursor: pointer;
    user-select: none;
    font-family: 'Inter', Helvetica, sans-serif;
}

.text-base-stroke {
    stroke: rgba(255, 255, 255, 0.1);
    fill: transparent;
    transition: opacity 0.3s;
    opacity: 0;
    font-size: 78px;
    font-weight: 900;
}

.hover-footer-svg.hovered .text-base-stroke {
    opacity: 0.8;
}

.text-anim-stroke {
    stroke: rgba(255, 0, 0, 0.4);
    fill: transparent;
    font-size: 78px;
    font-weight: 900;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: dashAnim 4s ease-in-out infinite alternate;
}

.text-revealed {
    font-size: 78px;
    font-weight: 900;
    fill: transparent;
    stroke: url(#textGradient);
    mask: url(#textMask);
    transition: opacity 0.3s;
}
