/* Custom Styles */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --text-color: #333;
    --light-bg: #f8f9fa;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: bold;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.carousel-item {
    height: 100vh;
    min-height: 600px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    filter: brightness(0.7);
}

.carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: bold;
    animation: fadeInUp 1s ease;
}

.carousel-caption p {
    font-size: 1.5rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.carousel-caption .btn {
    animation: fadeInUp 1s ease 0.4s both;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.card-img-top {
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

/* Leadership Cards */
.leadership-card {
    position: relative;
    overflow: hidden;
}

.leadership-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.leadership-card:hover::before {
    opacity: 0.8;
}

.leadership-card .card-body {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.leadership-card:hover .card-body {
    color: white;
}

.leadership-card:hover .text-primary {
    color: white !important;
}

/* Statistics Section */
.statistics {
    position: relative;
    overflow: hidden;
}

.statistics::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.9;
}

.counter-box {
    position: relative;
    z-index: 1;
    padding: 30px;
}

.counter {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Facility Cards */
.facility-card {
    text-align: center;
    padding: 30px;
}

.facility-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.facility-card:hover i {
    transform: scale(1.2);
}

/* Gallery */
.gallery-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.gallery-item::before {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 2rem;
    z-index: 2;
    transition: transform 0.3s ease;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline .row {
    position: relative;
    margin-bottom: 30px;
}

.timeline .card {
    margin-left: 20px;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 0;
    }
    
    .timeline .row {
        margin-left: 30px;
    }
}

/* Contact Form */
.contact-info i {
    width: 30px;
    color: var(--primary-color);
}

.form-control {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 12px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    transform: translateY(-2px);
}

/* Scroll to Top */
#scrollToTop {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 999;
    transition: all 0.3s ease;
}

#scrollToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a1a1a, #2c3e50);
    color: white;
}

footer a:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
    transition: all 0.3s ease;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .counter {
        font-size: 2rem;
    }
    
    .navbar-brand span {
        display: none;
    }
}

/* Loading Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}