/* Footer */
.footer {
    background: linear-gradient(135deg, #1a365d 0%, #2d5aa0 100%);
    color: white;
    padding: 4.5rem 0 1rem;
    margin-top: 0;
    opacity: 0;
    transition: opacity 0.8s ease-out, padding 0.8s ease-out;
}

.footer.revealed {
    opacity: 1;
    padding: 3rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: white;
    padding-left: 5px;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* Social Links - FIXED */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    align-items: center;
}

.social-links a {
    width: 40px;
    height: 40px;
    min-width: 40px; /* 👈 Tambahin ini */
    min-height: 40px; /* 👈 Tambahin ini */
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    flex-shrink: 0;
    text-decoration: none !important;
    position: relative;
    padding: 0 !important;
    margin: 0 !important; /* 👈 Tambahin ini */
}

.social-links a i {
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: absolute; /* 👈 Ganti ke absolute biar tetep center */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

/* 👇 UNDERLINE EFFECT menggunakan ::after */
.social-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 30px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.social-links a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    padding-left: 0 !important;
    text-decoration: none !important;
}

.social-links a:hover::after {
    transform: translateX(-50%) scaleX(1); 
}

.social-links a:hover i {
    transform: translate(-50%, -50%) scale(1); 
}

/* Brand Colors with matching underline */
.social-links a[href*="instagram"]:hover { 
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
    color: white !important; 
}

.social-links a[href*="instagram"]:hover::after {
    background: linear-gradient(90deg, #fd5949, #d6249f);
}

.social-links a[href*="wa.me"]:hover,
.social-links a[href*="whatsapp"]:hover { 
    background: #25d366 !important;
    color: white !important; 
}

.social-links a[href*="wa.me"]:hover::after,
.social-links a[href*="whatsapp"]:hover::after {
    background: #25d366; /* 👈 WhatsApp green underline */
}

/* Footer Map */
.footer-map {
    margin-top: 1.5rem;
    position: relative;
}

.footer-map iframe {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-map iframe:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Hero Badge (kalo ada) */
.hero-badge {
    margin-top: 78px;
}

/* Float Button - FIXED */
.float-btn {
    position: fixed;
    bottom: 30px;
    right: 10px;
    width: 55px;
    height: 55px;
    background: #1a365d;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.float-btn.show {
    opacity: 1;
    pointer-events: auto;
}

.float-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* Icon Animation */
.icon-arrow,
.icon-wa {
    position: absolute;
    font-size: 24px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-wa {
    opacity: 0;
    transform: scale(0.5) rotate(-45deg);
}

.icon-arrow {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* WhatsApp Mode */
.float-btn.whatsapp {
    background: #25D366;
}

.float-btn.whatsapp .icon-arrow {
    opacity: 0;
    transform: scale(0.5) rotate(45deg);
}

.float-btn.whatsapp .icon-wa {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Arrow Mode */
.float-btn.arrow {
    background: #1a365d;
}

.float-btn.arrow .icon-arrow {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.float-btn.arrow .icon-wa {
    opacity: 0;
    transform: scale(0.5) rotate(-45deg);
}