/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #1a365d;
    --secondary: #2d6a4f;
    --accent: #d4af37;
    --light: #f8f9fa;
    --dark: #212529;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --glass-bg: rgba(255, 255, 255, 0.95);
}

/* Body with College Background */
body {
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    background-image: url('communityclg.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
}

/* Dark overlay for better readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: rgba(26, 54, 93, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 3px solid var(--accent);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* College Logo and Name */
.college-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-img {
  height: 70px;      /* adjust size */
  width: auto;
  display: block;
}


.college-logo:before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    z-index: 1;
}

.college-logo span {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    z-index: 2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.college-text h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.college-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 15px;
    border-radius: 25px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

nav a:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.7s;
}

nav a:hover:before {
    left: 100%;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-size: 2.5rem;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), white);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Hero Section */
.hero {
    padding: 100px 0 80px;
    position: relative;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

/* Leaders Container */
.leaders-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 60px;
}

/* Leader Cards */
.leader-card {
    width: 320px;
    background: var(--glass-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.leader-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.leader-img-container {
    height: 400px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(45deg, rgba(240, 242, 245, 0.8), rgba(233, 236, 239, 0.8));
}

.leader-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: grayscale(10%);
}

.leader-card:hover .leader-img {
    transform: scale(1.15);
    filter: grayscale(0%);
}

/* Special Frame Effects for Leaders */
.head-leader .leader-img-container {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 95%);
}

.chapel-leader .leader-img-container {
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 85%);
}

/* Head Leader Special Effect */
.head-leader .leader-img-container:after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent), #ffd700);
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
    border: 4px solid white;
}

.head-leader:hover .leader-img-container:after {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* Chapel Leader Special Effect */
.chapel-leader .leader-img-container:before {
    content: '';
    position: absolute;
    bottom: -25px;
    left: -25px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary), #40916c);
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 8px 20px rgba(45, 106, 79, 0.3);
    border: 4px solid white;
}

.chapel-leader:hover .leader-img-container:before {
    animation: spin 3s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Leader Info */
.leader-info {
    padding: 25px;
    text-align: center;
    background: var(--glass-bg);
}

.leader-name {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.leader-role {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 18px;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.leader-role:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: var(--accent);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.leader-degree {
    font-size: 15px;
    color: #666;
    font-style: italic;
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    padding: 10px 15px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 10px;
    border-left: 3px solid var(--secondary);
}

/* Activities Section */
.activities-section {
    padding: 100px 0;
    position: relative;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

/* Activity Cards */
.activity-card {
    background: var(--glass-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    position: relative;
}

.activity-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 2;
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.activity-img-container {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.activity-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.activity-card:hover .activity-img {
    transform: scale(1.1);
}

.activity-content {
    padding: 25px;
}

.activity-title {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.activity-title i {
    color: var(--secondary);
    font-size: 24px;
}

.activity-desc {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.7;
}

.activity-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.activity-tag:hover {
    transform: scale(1.05);
}

/* Special Days Section */
.special-days {
    padding: 100px 0;
    position: relative;
}

.special-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

/* Special Cards */
.special-card {
    background: var(--glass-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.special-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.special-img-container {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.special-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.special-card:hover .special-img {
    transform: scale(1.1);
}

.special-content {
    padding: 25px;
}

.special-title {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.special-title i {
    color: var(--accent);
    font-size: 24px;
}

.special-desc {
    color: #555;
    line-height: 1.7;
}

/* Footer */
footer {
    background: rgba(26, 54, 93, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 60px 0 30px;
    border-top: 3px solid var(--accent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--accent);
    position: relative;
    padding-bottom: 10px;
}

.footer-title:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background: var(--accent);
    bottom: 0;
    left: 0;
}

.footer-center .footer-title:after {
    left: 50%;
    transform: translateX(-50%);
}

.footer-right .footer-title:after {
    left: auto;
    right: 0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-links span {
    color: rgba(255, 255, 255, 0.85);
}

.footer-links i {
    width: 20px;
    text-align: center;
}

/* Footer Logo */
.footer-logo-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo-img {
  height: 70px;   /* adjust size */
  width: auto;
  display: block;
  margin-bottom: 10px;
}


.college-name-footer {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.footer-motto {
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    font-size: 14px;
}

/* Copyright */
.copyright {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.footer-note {
    margin-top: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 1100px) {
    .leaders-container {
        gap: 40px;
    }
    
    .leader-card {
        width: 280px;
    }
}

@media (max-width: 900px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        gap: 15px;
    }
    
    .leaders-container {
        flex-direction: column;
        align-items: center;
    }
    
    .leader-card {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .college-text h1 {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .activities-grid, .special-grid {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-title:after {
        left: 50% !important;
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    .college-logo {
        width: 60px;
        height: 60px;
    }
    
    .college-logo span {
        font-size: 22px;
    }
    
    .college-text h1 {
        font-size: 22px;
    }
    
    .leader-card {
        width: 100%;
    }
    
    .activity-card, .special-card {
        width: 100%;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}