/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #015551;
    --secondary-blue: #013a36;
    --accent-gold: #d4af37;
    --light-gold: #f4e4a6;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #343a40;
    --text-color: #333333;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.logo-container:hover {
    transform: translateY(-2px);
}

.logo img {
  height: 60px;   /* adjust size if needed */
  width: auto;
  object-fit: contain;
}

.logo:hover {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 5px 15px rgba(1, 85, 81, 0.3);
}

.college-name h1 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 5px;
    transition: var(--transition);
}

.college-name:hover h1 {
    color: var(--secondary-blue);
}

.tagline {
    font-size: 0.9rem;
    color: var(--accent-gold);
    font-weight: 600;
    letter-spacing: 1px;
}

nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-menu a:hover {
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.nav-menu a.active {
    color: var(--accent-gold);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}
.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(1, 85, 81, 0.9) 0%, rgba(1, 58, 54, 0.9) 100%),
                linear-gradient(45deg, #1a5276, #2980b9, #3498db, #2c3e50);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content h1 span {
    color: var(--accent-gold);
    display: block;
    font-size: 3rem;
    margin-top: 10px;
}

.hero-underline {
    width: 150px;
    height: 4px;
    background-color: var(--accent-gold);
    margin: 30px auto;
    border-radius: 2px;
    transform-origin: center;
    animation: expandWidth 1s ease-out 0.5s forwards;
    width: 0;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 300;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
}

/* Intro Section */
.intro-section {
    padding: 80px 0;
    background-color: var(--white);
}

.intro-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.intro-content h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 25px;
}

.intro-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.intro-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 5px solid var(--accent-gold);
    text-align: center;
}

.intro-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.intro-card i {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
    transition: var(--transition);
}

.intro-card:hover i {
    transform: scale(1.2) rotate(10deg);
}

.intro-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.intro-card p {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Chapel Schedule Section */
.schedule-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    animation: fadeInUp 0.8s ease-out;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.underline {
    width: 100px;
    height: 4px;
    background-color: var(--accent-gold);
    margin: 0 auto 50px;
    border-radius: 2px;
    animation: expandWidth 1s ease-out 0.5s forwards;
    width: 0;
}

.schedule-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.schedule-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.schedule-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.schedule-card.active {
    border: 2px solid var(--accent-gold);
}

.schedule-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    transition: var(--transition);
}

.schedule-card:hover .image-placeholder {
    transform: scale(1.1);
}

.monday-image {
    background: linear-gradient(45deg, #1a5276, #3498db);
}

.wednesday-image {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
}

.friday-image {
    background: linear-gradient(45deg, #8e44ad, #9b59b6);
}

.schedule-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent-gold);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 2;
}

.schedule-content {
    padding: 30px;
}

.schedule-day {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.schedule-time {
    color: var(--accent-gold);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.schedule-time i {
    font-size: 1rem;
}

.schedule-title {
    font-size: 1.3rem;
    color: var(--dark-gray);
    margin-bottom: 15px;
    font-weight: 600;
}

.schedule-description {
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.schedule-speaker {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 10px;
    margin-top: 20px;
}

.speaker-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    transition: var(--transition);
}

.speaker-info h4 {
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.speaker-info p {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* Chapel Images Gallery */
.gallery-section {
    padding: 80px 0;
    background-color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.worship-image {
    background: linear-gradient(45deg, #e67e22, #f39c12);
}

.teaching-image {
    background: linear-gradient(45deg, #2980b9, #3498db);
}

.prayer-image {
    background: linear-gradient(45deg, #16a085, #1abc9c);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Special Services */
.special-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.special-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.special-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.special-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.special-header {
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    text-align: center;
}

.special-header i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--light-gold);
    transition: var(--transition);
}

.special-card:hover .special-header i {
    transform: scale(1.2) rotate(10deg);
}

.special-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.special-content {
    padding: 30px;
}

.special-content p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--dark-gray);
}

.special-details {
    margin-top: 20px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 10px;
    border-left: 4px solid var(--accent-gold);
}

.special-details h4 {
    color: var(--primary-blue);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.special-details h4 i {
    color: var(--accent-gold);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 15px 40px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: var(--light-gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.footer-logo .logo {
    width: 50px;
    height: 50px;
    font-size: 20px;
}

.footer-college-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.footer-tagline {
    color: var(--light-gold);
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--light-gold);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
}

.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--light-gold);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--accent-gold);
    transform: translateY(-3px) rotate(10deg);
}

.footer-location {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
    margin-bottom: 15px;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 100px;
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100%); }
}

/* Modal for Gallery Images */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: white;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.modal-close:hover {
    background: var(--accent-gold);
    transform: rotate(90deg);
}

#modalImage {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease-out;
}

.notification.success {
    background: #27ae60;
    color: white;
}

.notification.error {
    background: #e74c3c;
    color: white;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content h1 span {
        font-size: 2.2rem;
    }
    
    .intro-grid, .special-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-container {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .logo-container {
        justify-content: center;
    }
    
    .nav-menu {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px 30px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content h1 span {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .college-name h1 {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .intro-card, .schedule-content, .special-content {
        padding: 20px;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 25px;
        font-size: 1rem;
    }
}