/* Custom Styles for Disnaker Tolikara */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --dark-color: #212529;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Navbar Styles */
.navbar {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: bold;
    transition: transform 0.3s ease;
}

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

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

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

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

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    background-image:
        linear-gradient(rgba(13, 109, 253, 0.117), rgba(10, 88, 202, 0.9)),
        url('../images/logo.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.9) 0%, rgba(10, 88, 202, 0.8) 100%);
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-section p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1.2s ease;
}

.hero-section .btn {
    animation: fadeInUp 1.4s ease;
}

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

.min-vh-75 {
    min-height: 75vh;
}

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

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

.card img {
    transition: transform 0.5s ease;
}

.card:hover img {
    transform: scale(1.1);
}

/* Service Card Styles */
.service-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: rotate(360deg);
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

.service-icon i {
    font-size: 2.5rem;
    transition: color 0.3s ease;
}

.service-card:hover .service-icon i {
    color: white !important;
}

/* Statistics Counter */
.stat-item {
    padding: 20px;
}

.stat-item i {
    opacity: 0.8;
}

.stat-item h2 {
    font-size: 3rem;
    margin: 15px 0 5px 0;
}

/* Button Styles */
.btn {
    transition: all 0.3s ease;
    font-weight: 500;
    border-radius: 8px;
    padding: 10px 24px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-warning:hover {
    background-color: #ffb700;
    border-color: #ffb700;
}

/* Footer Styles */
footer {
    border-top: 4px solid var(--primary-color);
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--warning-color) !important;
    transform: translateX(5px);
}

.social-links a {
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.2);
    color: var(--warning-color) !important;
}

/* Scroll to Top Button */
#scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#scrollToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

#scrollToTop i {
    font-size: 1.5rem;
}

/* Badge Styles */
.badge {
    padding: 8px 15px;
    font-weight: 500;
    font-size: 0.85rem;
}

/* Animation Delays */
[data-aos] {
    pointer-events: auto;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .stat-item h2 {
        font-size: 2rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon i {
        font-size: 2rem;
    }

    #scrollToTop {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 500px;
    }

    .hero-section .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .d-flex.gap-3 {
        flex-direction: column !important;
        gap: 0 !important;
    }
}

/* Breadcrumb */
.breadcrumb-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    padding: 60px 0;
    color: white;
}

.breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0a58ca;
}

/* Form Styles */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Table Styles */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
}

/* Image Styles */
img {
    max-width: 100%;
    height: auto;
}

/* Section Spacing */
section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
}
