/* Custom CSS for Bootstrap Enhancement */

/* Custom Font */
@font-face {
    font-family: 'Avenir Next Medium';
    src: url('../fonts/avenir-next-medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

/* Trada Brand Font */
.trada-brand {
    font-family: 'Avenir Next Medium', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 500 !important;
    font-style: normal !important;
    letter-spacing: -0.02em;
}

.login-logo-text {
    color: #00367c !important; /* Blue color for 'trada' */
    font-family: 'Avenir Next Medium', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 600 !important;
    font-size: 1.3em !important;
}

.id-suffix {
    color: #e20a13 !important; /* Red color for '.id' */
    font-family: 'Avenir Next Medium', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.8em !important;
}

/* Navbar Styles */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(13, 110, 253, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #ffc107 !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ffc107;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* Banner Header */
.banner-header {
    background: linear-gradient(rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8)), url('../images/121239299_m_normal.webp');
    background-size: cover;
    background-position: center;
    position: relative;
}

.banner-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

/* Department Cards */
.dept-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
}

.dept-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    background: linear-gradient(145deg, #ffffff, #f1f3f4);
}

.dept-card:nth-child(1):hover {
    box-shadow: 0 15px 35px rgba(13, 110, 253, 0.15);
}

.dept-card:nth-child(2):hover {
    box-shadow: 0 15px 35px rgba(25, 135, 84, 0.15);
}

.dept-card:nth-child(3):hover {
    box-shadow: 0 15px 35px rgba(253, 126, 20, 0.15);
}

.dept-card:nth-child(4):hover {
    box-shadow: 0 15px 35px rgba(111, 66, 193, 0.15);
}

.dept-card .dept-icon i {
    transition: all 0.3s ease;
}

.dept-card:nth-child(1) .dept-icon i {
    color: #0d6efd !important;
}

.dept-card:nth-child(2) .dept-icon i {
    color: #198754 !important;
}

.dept-card:nth-child(3) .dept-icon i {
    color: #fd7e14 !important;
}

.dept-card:nth-child(4) .dept-icon i {
    color: #6f42c1 !important;
}

.dept-card .btn {
    transition: all 0.3s ease;
}

.dept-card:hover .btn {
    transform: scale(1.05);
}

/* Contact CTA Section */
#contact {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%) !important;
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.3;
}

#contact .container {
    position: relative;
    z-index: 2;
}

/* Footer Styles */
.footer-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    padding: 60px 0 20px;
    position: relative;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ffc107, transparent);
}

.footer-brand h5 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-text {
    color: #b8c5d6;
    line-height: 1.6;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 50%;
    color: #ffc107;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    background: #ffc107;
    color: #1a1a2e;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

.footer-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #ffc107;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b8c5d6;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #ffc107;
    padding-left: 8px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #b8c5d6;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.contact-item i {
    color: #ffc107;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.contact-item:hover {
    color: #ffffff;
    padding-left: 5px;
}

.operating-hours {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hours-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #b8c5d6;
    font-size: 0.95rem;
}

.hours-item i {
    color: #ffc107;
    font-size: 1.1rem;
    margin-top: 2px;
    width: 20px;
    text-align: center;
}

.hours-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hours-item strong {
    color: #ffffff;
    font-weight: 600;
}

.status-badge {
    margin-top: 10px;
}

.status-badge .badge {
    font-size: 0.85rem;
    padding: 8px 12px;
    animation: pulse 2s infinite;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: #8a9bb3;
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.footer-bottom-links a {
    color: #8a9bb3;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #ffc107;
}

@media (max-width: 768px) {
    .footer-section {
        padding: 40px 0 20px;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 15px;
    }
    
    .social-links {
        justify-content: center;
    }
}

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.dept-card {
    animation: fadeInUp 0.6s ease forwards;
}

.dept-card:nth-child(1) { animation-delay: 0.1s; }
.dept-card:nth-child(2) { animation-delay: 0.2s; }
.dept-card:nth-child(3) { animation-delay: 0.3s; }
.dept-card:nth-child(4) { animation-delay: 0.4s; }

/* Ripple Effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: width 0.6s, height 0.6s;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* Widget Override */
#voice-call-widget {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 9999 !important;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Card Hover Effects */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .banner-header .row {
        text-align: center;
    }
    
    .banner-header .col-md-4 {
        margin-top: 1rem;
    }