:root {
    --primary-color: #161179;
    --secondary-color: #4299e1;
    --accent-color: #ffd700;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #161179 0%, #4299e1 100%);
    --gradient-secondary: linear-gradient(135deg, #4299e1 0%, #161179 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--light-bg);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/infrastructure.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--light-bg), transparent);
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInDown 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

/* Section Styles */
.section {
    padding: 120px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Department Cards */
.department-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    margin-bottom: 30px;
    position: relative;
}

.department-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.department-card:hover::before {
    transform: scaleX(1);
}

.department-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.department-image {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.department-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

.department-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.department-card:hover .department-image img {
    transform: scale(1.1);
}

.department-content {
    padding: 35px;
    position: relative;
}

.department-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.department-card:hover .department-content h3 {
    color: var(--secondary-color);
}

.department-content p {
    color: #666;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.department-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.feature-tag {
    background: var(--light-bg);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-tag:hover {
    background: var(--gradient-primary);
    color: var(--white);
}

/* Facility Section */
.facility-section {
    padding: 100px 0;
    background-color: var(--white);
}

.facility-row {
    display: flex;
    align-items: center;
    margin-bottom: 100px;
    position: relative;
}

.facility-row:last-child {
    margin-bottom: 0;
}

.facility-row.reverse {
    flex-direction: row-reverse;
}

.facility-content {
    flex: 1;
    padding: 40px;
    position: relative;
    z-index: 2;
}

.facility-image {
    flex: 1;
    height: 500px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
}

.facility-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.facility-image:hover img {
    transform: scale(1.05);
}

.facility-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.facility-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.facility-content h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.facility-content p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.view-gallery {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 30px;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
    font-weight: 500;
}

.view-gallery:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.facility-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1050;
    padding: 50px 20px;
}

.gallery-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-content {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.gallery-main {
    position: relative;
    margin-bottom: 20px;
}

.gallery-main img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
}

.gallery-thumbnail {
    width: 100px;
    height: 70px;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
    opacity: 1;
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--white);
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.gallery-prev {
    left: -50px;
}

.gallery-next {
    right: -50px;
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--white);
    z-index: 1060;
}

.gallery-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Stats Section */
.stats-section {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 80px 0;
}

.stat-card {
    text-align: center;
    padding: 30px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }

    .department-image {
        height: 250px;
    }

    .facility-row {
        flex-direction: column;
        margin-bottom: 60px;
    }

    .facility-row.reverse {
        flex-direction: column;
    }

    .facility-content {
        padding: 30px 20px;
        text-align: center;
    }

    .facility-content h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .facility-image {
        height: 350px;
        margin-bottom: 30px;
    }

    .facility-features {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .department-content h3 {
        font-size: 1.8rem;
    }

    .section {
        padding: 80px 0;
    }

    .gallery-nav {
        width: 30px;
        height: 30px;
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }

    .gallery-thumbnail {
        width: 80px;
        height: 60px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .section {
        padding: 60px 0;
    }

    .department-image {
        height: 200px;
    }

    .facility-content h3 {
        font-size: 2rem;
    }

    .facility-image {
        height: 250px;
    }
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
} 