/* NAVBAR - FIXED */
.navbar {
    background: linear-gradient(135deg, #4cc9f0 0%, #4361ee 50%, #3a0ca3 100%);
    padding: 15px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(76, 201, 240, 0.3);
    animation: navSlideDown 0.8s ease-out;
}

@keyframes navSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideInLeft 0.8s ease-out;
}

.logo-box {
    background: white;
    padding: 8px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(76, 201, 240, 0.4);
    transition: all 0.4s ease;
    animation: logoPulse 2s ease-in-out infinite;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes logoPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(76, 201, 240, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 6px 30px rgba(67, 97, 238, 0.6);
    }
}

.logo-box:hover {
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 8px 35px rgba(76, 201, 240, 0.7);
}

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

.brand-title {
    color: #fff;
}

.brand-title h1 {
    font-size: 32px;
    margin-bottom: 3px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    font-weight: 700;
    letter-spacing: 1px;
}

.brand-title p {
    font-size: 14px;
    opacity: 0.95;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
    animation: slideInRight 0.8s ease-out;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    font-weight: 600;
    position: relative;
    padding-bottom: 4px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.nav-links a::after {
    content: "";
    height: 3px;
    width: 0;
    background: white;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: 0.3s;
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #e6f7ff;
    transform: translateY(-3px) scale(1.05);
}

/* ACTIVE LINK STYLES - FOR ALL PAGES */
.nav-links a.active {
    color: #e6f7ff;
    transform: translateY(-2px);
}

.nav-links a.active::after {
    width: 100%;
    background: #e6f7ff;
    height: 4px;
    box-shadow: 0 2px 8px rgba(230, 247, 255, 0.5);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: all 0.3s ease;
    z-index: 1001;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Mobile Menu Styles */
@media (max-width: 900px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #4cc9f0 0%, #4361ee 100%);
        padding: 30px 20px;
        gap: 25px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        border-top: 2px solid rgba(255, 255, 255, 0.2);
        animation: mobileMenuSlideDown 0.3s ease-out;
    }
    
    @keyframes mobileMenuSlideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        text-align: center;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .nav-links a {
        font-size: 18px;
        padding: 12px 0;
        display: block;
        width: 100%;
    }
    
    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        transform: none;
    }
    
    .nav-links a::after {
        display: none;
    }

    /* ACTIVE STYLES FOR MOBILE */
    .nav-links a.active {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        color: #e6f7ff;
        transform: none;
        box-shadow: 0 4px 12px rgba(230, 247, 255, 0.3);
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .brand-title h1 {
        font-size: 28px;
    }
    
    .brand-title p {
        font-size: 12px;
    }
    
    .logo-box {
        width: 55px;
        height: 55px;
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 12px 15px;
    }
    
    .logo-section {
        gap: 12px;
    }
    
    .brand-title h1 {
        font-size: 24px;
    }
    
    .brand-title p {
        font-size: 11px;
    }
    
    .logo-box {
        width: 50px;
        height: 50px;
    }
    
    .mobile-menu-btn {
        font-size: 24px;
        padding: 6px;
    }
    
    .nav-links {
        padding: 25px 15px;
        gap: 20px;
    }
    
    .nav-links a {
        font-size: 16px;
        padding: 10px 0;
    }
}

@media (max-width: 400px) {
    .brand-title h1 {
        font-size: 20px;
    }
    
    .brand-title p {
        display: none;
    }
    
    .logo-box {
        width: 45px;
        height: 45px;
    }
}

/* Navbar Animations */
@keyframes slideInLeft {
    from { 
        opacity: 0; 
        transform: translateX(-60px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes slideInRight {
    from { 
        opacity: 0; 
        transform: translateX(60px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

/* FOOTER - FIXED */
.footer {
    background: linear-gradient(135deg, #4cc9f0 0%, #4361ee 50%, #3a0ca3 100%);
    padding: 50px 20px;
    color: white;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.footer-brand {
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out;
}

.footer-brand h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #e6f7ff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: 700;
    letter-spacing: 1px;
}

.footer-brand p {
    font-size: 17px;
    color: #b3e0ff;
    margin-bottom: 12px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.footer-tagline {
    font-size: 15px;
    color: #d9f2ff;
    font-style: italic;
    margin-bottom: 35px;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.social-icons {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.social-icons .si {
    display: inline-grid;
    place-items: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.social-icons .si i {
    font-size: 22px;
    color: white;
}

.social-icons .si:hover {
    transform: translateY(-10px) scale(1.2) rotate(360deg);
    box-shadow: 0 12px 35px rgba(76, 201, 240, 0.6);
}

.social-icons .si.facebook:hover { 
    background: #1877f2;
    box-shadow: 0 12px 35px rgba(24, 119, 242, 0.7);
}
.social-icons .si.twitter:hover { 
    background: #1da1f2;
    box-shadow: 0 12px 35px rgba(29, 161, 242, 0.7);
}
.social-icons .si.instagram:hover { 
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
    box-shadow: 0 12px 35px rgba(214, 36, 159, 0.7);
}
.social-icons .si.youtube:hover { 
    background: #ff0000;
    box-shadow: 0 12px 35px rgba(255, 0, 0, 0.7);
}

.footer-bottom {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid rgba(230, 247, 255, 0.3);
    font-size: 14px;
    color: #b3e0ff;
    font-weight: 300;
    letter-spacing: 0.3px;
}

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

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

/* Mobile Active State Styles */
@media (max-width: 900px) {
    .nav-links a.active {
        background: rgba(255, 255, 255, 0.2) !important;
        border-radius: 8px !important;
        color: #e6f7ff !important;
        transform: none !important;
        box-shadow: 0 4px 12px rgba(230, 247, 255, 0.3) !important;
        padding: 12px 20px !important;
        margin: 5px 0 !important;
    }
    
    .nav-links a.active::after {
        display: none !important;
    }
    
    /* Smooth transitions for mobile */
    .nav-links {
        transition: all 0.3s ease-in-out !important;
    }
    
    /* Mobile menu button animation */
    .mobile-menu-btn {
        transition: all 0.3s ease !important;
    }
}

/* Desktop Active State */
.nav-links a.active {
    color: #e6f7ff !important;
    transform: translateY(-2px) !important;
}

.nav-links a.active::after {
    width: 100% !important;
    background: #e6f7ff !important;
    height: 4px !important;
    box-shadow: 0 2px 8px rgba(230, 247, 255, 0.5) !important;
}