/* --- Global Variables and Base Styles --- */
:root {
    --primary-color: #FF6700; /* Vibrant Saffron */
    --secondary-color: #046A38; /* Deep Green */
    --dark-color: #2c3e50; /* Dark Blue-Gray for Text */
    --light-color: #ffffff;
    --bg-light-gray: #f9f7f4; /* Warm Light Gray Background */
    --font-main: 'Poppins', sans-serif;
    --font-heading: 'Teko', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #777;
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn-primary:hover {
    background-color: #e65c00;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: var(--light-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}


/* --- Header --- */
header {
    background: var(--light-color);
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 50px;
    margin-right: 15px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .main-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--dark-color);
    line-height: 1;
}

.logo-text .sub-name {
    font-size: 0.8rem;
    color: #888;
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li a {
    padding: 10px 15px;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 3px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

header nav ul li a:hover::after {
    transform: scaleX(1);
}

/* --- Hero Section --- */
.hero {
    height: 80vh;
    background: url('https://i.imgur.com/rN5rJqg.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--light-color);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3)); */
	background: 
    linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3)),
    url('https://vishalprashant.in/assets/bg.jpg') center/cover no-repeat;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

/* --- About Section --- */
.about-section {
    padding: 6rem 0;
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-image img {
    width: 100%;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-text p {
    margin-bottom: 2rem;
}

.bio-details .detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.bio-details i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 15px;
    width: 25px;
    text-align: center;
}

/* --- Mission Section with Bihar Art Touch --- */
.mission-section {
    padding: 6rem 0;
    background-color: var(--bg-light-gray);
    position: relative;
    /* This SVG is a simple Madhubani-style pattern */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e0e0e0' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mission-card {
    background: var(--light-color);
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-bottom: 4px solid var(--secondary-color);
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.1);
}

.mission-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.mission-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* --- Mentors Section --- */
.mentors-section {
    padding: 6rem 0;
}

.mentor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.mentor-card {
    text-align: center;
}

.mentor-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-light-gray);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.mentor-card:hover img {
    transform: scale(1.1);
}

.mentor-card h4 {
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.mentor-card p {
    font-size: 0.9rem;
    color: #777;
}

/* --- Gallery Section --- */
/* .gallery-section {
    padding: 6rem 0;
    background: var(--bg-light-gray);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 1rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.9);
}
.gallery-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 2; }
.gallery-item:nth-child(2) { grid-column: 3 / 4; grid-row: 1 / 3; }
.gallery-item:nth-child(3) { grid-column: 1 / 2; grid-row: 2 / 3; }
.gallery-item:nth-child(4) { grid-column: 2 / 3; grid-row: 2 / 3; }
.gallery-item:nth-child(5) { grid-column: 4 / 5; grid-row: 1 / 3; } */


/* --- Call to Action Section --- */
/* .cta-section {
    padding: 5rem 0;
    background-color: var(--secondary-color);
    background-image: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--light-color);
}

.cta-section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
} */


/* --- Professional Gallery Section --- */
.gallery-section {
    padding: 6rem 0;
    background: var(--bg-light-gray);
}

.gallery-grid {
    display: grid;
    /*Creates a responsive grid that shows 2 columns on medium screens and 3 on large screens*/
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: 300px; /* Gives all items a consistent height */
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth zoom effect */
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(255, 103, 0, 0.9), rgba(0, 0, 0, 0.1)); /* Saffron gradient overlay */
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: flex-end; /* Aligns caption to the bottom */
    padding: 1.5rem;
}

.gallery-item-caption {
    color: var(--light-color);
    transform: translateY(20px); /* Starts caption slightly lower */
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    transition-delay: 0.2s; /* Caption appears after overlay */
}

.gallery-item-caption h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 0;
    line-height: 1.2;
}

.gallery-item-caption p {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
}

/* --- Hover Effects --- */
.gallery-item:hover img {
    transform: scale(1.1); /* Zoom in image on hover */
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1; /* Show the overlay */
}

.gallery-item:hover .gallery-item-caption {
    transform: translateY(0); /* Animate caption upwards */
    opacity: 1; /* Fade in caption */
}

/* Responsive adjustments for the gallery grid */
@media (max-width: 400px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
}

/* --- Footer Section --- */
footer {
    background-color: var(--dark-color);
    color: #aeb6c1;
    padding-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
}

.footer-col h4 {
    font-family: var(--font-heading);
    color: var(--light-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-col p {
    margin-bottom: 1.5rem;
}

.social-icons a {
    color: #aeb6c1;
    font-size: 1.2rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li a {
    text-decoration: none;
    color: #aeb6c1;
    margin-bottom: 0.8rem;
    display: inline-block;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--light-color);
}

.footer-form input, .footer-form textarea {
    width: 100%;
    padding: 12px;
    background: #3a5068;
    border: none;
    border-radius: 5px;
    margin-bottom: 1rem;
    color: var(--light-color);
}

.footer-form ::placeholder {
    color: #aeb6c1;
}

.footer-bottom {
    border-top: 1px solid #3a5068;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Responsive Styles --- */
@media (max-width: 992px) {
    .section-title { font-size: 2.5rem; }
    .hero h1 { font-size: 3rem; }
    .about-flex { flex-direction: column; text-align: center; }
    .about-image { margin-bottom: 2rem; }
    .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .gallery-item:nth-child(n) { grid-column: auto; grid-row: auto; }
}

@media (max-width: 768px) {
    header .container { flex-direction: column; }
    header nav { margin-top: 1rem; }
    .hero { height: 60vh; }
    .hero h1 { font-size: 2.5rem; }
    .mission-grid { grid-template-columns: 1fr; }
    .mentor-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-icons { margin-bottom: 2rem; }
}