html {
    scroll-behavior: smooth;
}

/* Hero Section */
.hero {
    position: relative;
    background: url('../images/white bg.jpeg') no-repeat center center/cover;
    color: black;
    text-align: center;
    padding: 150px 20px;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    animation: fadeInDown 1s ease-out;
}

.hero p {
    font-size: 1.3rem;
    margin-top: 15px;
    animation: fadeInUp 1.2s ease-out;
}

/* Section background styles */
.section-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px 20px;
}

.section-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.section-bg>* {
    position: relative;
    z-index: 1;
}

/* Section images */
.about-bg {
    background-image: url('../images/about us.jpg');
}

.leadership-bg {
    background-image: url('../images/leadership.jpg');
}

.journey-bg {
    background-image: url('../images/journey.jpg');
}

.vision-bg {
    background-image: url('../images/futureplan.jpg');
}

.commitment-bg {
    background-image: url('../images/trust.jpg');
}

.contact-bg {
    background-image: url('../images/contact.jpg');
}

/* Animation */
section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Leadership Cards */
.leader-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 100%;
    /* Keeps both cards equal height */
}

.leader-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Leadership Images */
.leader-card img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 3px solid #007bff;
    display: block;
    margin: 0 auto;
}

/* Specific adjustment for Kaustubh More's image */
.leader-card img[alt="Kaustubh More"] {
    object-position: center 10%;
    /* Moves his photo slightly lower */
}

/* Contact Links */
/* Contact Section Icons */
.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.contact-info a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    color: white;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.contact-info a:hover {
    transform: translateY(-3px);
}

/* Colored icons with circle background */
#contact {
    text-align: center;
    background-color: #666;
    padding: 40px 20px;
    color: white;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.contact-info a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: white;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.3s ease;
}

.contact-info a:hover {
    transform: translateY(-2px);
    color: #ffd700;
    /* gold text on hover */
}

.contact-info img.icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
    background-color: rgba(255, 255, 255, 0.1);
    /* semi-transparent background */
    border: 2px solid white;
    padding: 6px;
    transition: all 0.3s ease;
}

.contact-info a:hover img.icon {
    background-color: #ffd700;
    /* gold background on hover */
    border-color: #ffd700;
    transform: scale(1.1);
}

.address-section {
    margin: 20px auto;
    max-width: 800px;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
}

.address-section strong {
    color: #333;
}

.map-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
}

/* Keyframes */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}