/* ========================================
   FOOTER STYLES - Modern & Animated
   ======================================== */

.footer {
    position: relative;
    background: linear-gradient(180deg, var(--primary-bg) 0%, #0d1117 100%);
    /*margin-top: 6rem;*/
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    overflow: hidden;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* ========================================
   FOOTER TOP - Grid Layout
   ======================================== */

.footer-top {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   FOOTER BRAND COLUMN
   ======================================== */

.footer-brand {
    animation-delay: 0.1s;
}

.footer-logo {
    margin-bottom: 1.5rem;
    animation: logoFadeIn 1s ease-out;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.footer-logo-img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.05);
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 350px;
}

/* ========================================
   SOCIAL ICONS
   ======================================== */

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    border-radius: 50%;
}

.social-icon:hover::before {
    width: 100px;
    height: 100px;
}

.social-icon:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 255, 136, 0.1));
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

.social-icon svg {
    position: relative;
    z-index: 1;
}

/* ========================================
   FOOTER COLUMNS
   ======================================== */

.footer-column {
    animation: fadeInUp 0.8s ease-out backwards;
}

.footer-column:nth-child(2) { animation-delay: 0.2s; }
.footer-column:nth-child(3) { animation-delay: 0.3s; }
.footer-column:nth-child(4) { animation-delay: 0.4s; }
.footer-column:nth-child(5) { animation-delay: 0.5s; }

.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 0.3s ease;
}

.footer-column:hover .footer-heading::after {
    width: 50px;
}

/* ========================================
   FOOTER LINKS
   ======================================== */

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links li {
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.footer-links li:hover {
    transform: translateX(5px);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

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

.footer-links a:hover::before {
    width: 100%;
}

/* ========================================
   NEWSLETTER FORM
   ======================================== */

.footer-newsletter {
    max-width: 280px;
}

.newsletter-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.4rem;
    transition: all 0.3s ease;
}

.newsletter-form:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
    background: var(--secondary-bg);
}

.newsletter-input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
    outline: none;
}

.newsletter-input::placeholder {
    color: var(--text-muted);
}

.newsletter-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    cursor: pointer;
    color: var(--primary-bg);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.newsletter-btn:active {
    transform: translateY(0) scale(0.98);
}

/* ========================================
   FOOTER BOTTOM
   ======================================== */

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    margin-top: 2rem;
    animation: fadeIn 1s ease-out 0.6s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

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

.footer-bottom-links .separator {
    color: var(--border-color);
    font-size: 0.8rem;
}

/* ========================================
   COFFEE BUTTON
   ======================================== */

.coffee-btn-footer {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #ffdd00 0%, #ff9900 100%);
    color: #1a1f26;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.2);
    border: 2px solid rgba(255, 221, 0, 0.3);
}

.coffee-btn-footer:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 153, 0, 0.4);
    background: linear-gradient(135deg, #ffed4e 0%, #ffaa33 100%);
    color: #1a1f26;
}

.coffee-btn-footer:active {
    transform: translateY(-1px) scale(1.02);
}

.coffee-icon {
    font-size: 1.2rem;
    animation: coffeeFloat 2s ease-in-out infinite;
}

@keyframes coffeeFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.coffee-text {
    font-weight: 600;
}

/* ========================================
   DECORATIVE ELEMENTS
   ======================================== */

.footer-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.footer-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: glowPulse 8s ease-in-out infinite;
}

.footer-glow-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-primary), transparent);
    top: -200px;
    left: 10%;
    animation-delay: 0s;
}

.footer-glow-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--accent-secondary), transparent);
    bottom: -150px;
    right: 15%;
    animation-delay: 4s;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.15;
        transform: scale(1);
    }
    50% {
        opacity: 0.25;
        transform: scale(1.1);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .footer-top {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 2.5rem;
    }
    
    .footer-newsletter {
        grid-column: 1 / -1;
        max-width: 100%;
        margin-top: 1rem;
    }
}

@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
    
    .footer-newsletter {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
        margin-top: 4rem;
    }
    
    .footer-container {
        padding: 0 1.5rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-brand,
    .footer-newsletter {
        max-width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
    
    .footer-bottom-content {
        width: 100%;
    }
    
    .coffee-btn-footer {
        width: 100%;
        justify-content: center;
    }
    
    .footer-glow-1,
    .footer-glow-2 {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .footer-social {
        flex-wrap: wrap;
    }
    
    .social-icon {
        width: 38px;
        height: 38px;
    }
    
    .footer-heading {
        font-size: 0.9rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .newsletter-btn {
        width: 100%;
        padding: 0.8rem;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Remove focus outline on click */
.footer *:focus,
.footer a:focus,
.footer button:focus,
.newsletter-btn:focus,
.newsletter-input:focus {
    outline: none !important;
}

/* Focus states for accessibility (keyboard navigation only) */
.footer *:focus-visible,
.footer a:focus-visible,
.footer button:focus-visible,
.newsletter-btn:focus-visible,
.newsletter-input:focus-visible {
    outline: 2px solid var(--accent-primary) !important;
    outline-offset: 2px !important;
}
