/* ===================================
   GLOBAL OVERFLOW FIX
   =================================== */

html, body {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    position: relative;
}

/* ===================================
   FOOTER SECTION
   =================================== */

.footer-section {
    position: relative;
    padding: 4rem 0 2rem;
    background: linear-gradient(135deg, #E8E6F2 0%, #E3E0F0 50%, #E8E6F2 100%);
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: 350px 1fr 150px;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}

/* Footer Left - Image */
.footer-left {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: -80px;
}

.footer-image {
    width: 100%;
    max-width: 520px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(108, 92, 231, 0.2));
}

.footer-overlay {
    position: absolute;
    bottom: 35%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    z-index: 10;
}

.footer-overlay-logo {
    text-align: center;
}

.footer-overlay-brand {
    font-size: 2rem;
    font-weight: 700;
    color: #00BCD4;
}

.footer-overlay-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon svg {
    width: 16px;
    height: 16px;
}

.social-icon.instagram {
    background: linear-gradient(135deg, #E1306C 0%, #C13584 100%);
    color: white;
}

.social-icon.facebook {
    background: #1877F2;
    color: white;
}

.social-icon.twitter {
    background: #1DA1F2;
    color: white;
}

.social-icon.linkedin {
    background: #0A66C2;
    color: white;
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Footer Links */
.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-column h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2D3436;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-column ul li {
    margin-bottom: 0;
}

.footer-column ul li a {
    font-size: 0.95rem;
    color: #636E72;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-column ul li a:hover {
    color: #6C5CE7;
}

/* Footer Rocket */
.footer-rocket {
    position: relative;
}

.footer-rocket img {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(108, 92, 231, 0.2));
    animation: rocketFloat 3s ease-in-out infinite;
}

@keyframes rocketFloat {
    0%, 100% {
        transform: translateY(0) rotate(-10deg);
    }
    50% {
        transform: translateY(-20px) rotate(-10deg);
    }
}

/* Newsletter */
.footer-newsletter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: 150px;
    margin-top: -120px;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 2rem;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.1);
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    background: white;
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.15);
}

.newsletter-input::placeholder {
    color: #B2BEC3;
}

.newsletter-btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #6C5CE7 0%, #8B7EF0 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.3);
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.4);
}

.newsletter-btn svg {
    width: 18px;
    height: 18px;
}

/* Copyright */
.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid rgba(108, 92, 231, 0.1);
}

.footer-copyright p {
    font-size: 0.95rem;
    color: #636E72;
    margin: 0;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media screen and (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 300px 1fr 120px;
        gap: 2rem;
    }
    
    .footer-character img {
        width: 170px;
    }
    
    .footer-rocket img {
        width: 120px;
    }
}

@media screen and (max-width: 968px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-left {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .footer-image {
        max-width: 300px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-rocket {
        display: none;
    }
    
    .footer-newsletter {
        flex-direction: column;
        max-width: 400px;
    }
}

@media screen and (max-width: 768px) {
    .footer-section {
        padding: 3rem 0 2rem;
    }
    
    .footer-left {
        margin-top: 0;
    }
    
    .footer-image {
        max-width: 350px;
    }
    
    .footer-overlay {
        bottom: 40%;
    }
    
    .footer-overlay-brand {
        font-size: 1.75rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-column h3 {
        font-size: 1.1rem;
    }
    
    .footer-column ul {
        justify-content: center;
    }
    
    .footer-newsletter {
        margin-right: auto;
        margin-top: 2rem;
        max-width: 100%;
        padding: 0 1rem;
    }
}

@media screen and (max-width: 480px) {
    .footer-section {
        padding: 2rem 0 1.5rem;
    }
    
    .footer-left {
        margin-top: 0;
    }
    
    .footer-image {
        max-width: 100%;
        width: 100%;
    }
    
    .footer-overlay {
        bottom: 38%;
    }
    
    .footer-overlay-brand {
        font-size: 1.5rem;
    }
    
    .social-icon {
        width: 32px;
        height: 32px;
    }
    
    .social-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .footer-newsletter {
        margin-top: 1rem;
        padding: 0 0.5rem;
    }
    
    .newsletter-input,
    .newsletter-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .footer-copyright p {
        font-size: 0.8rem;
        padding: 0 1rem;
    }
}


/* ===================================
   SCROLL TO TOP BUTTON
   =================================== */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #6C5CE7 0%, #8B7EF0 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(108, 92, 231, 0.6);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

.scroll-to-top img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .scroll-to-top {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }
    
    .scroll-to-top img {
        width: 35px;
        height: 35px;
    }
}

@media screen and (max-width: 480px) {
    .scroll-to-top {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    
    .scroll-to-top img {
        width: 30px;
        height: 30px;
    }
}
