/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #f5f5f5;
    --dark-color: #333;
    --text-color: #4a4a4a;
    --border-color: #ddd;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f8f9fa;
    color: var(--text-color);
    line-height: 1.6;
}

section {
    padding: 80px 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.underline {
    height: 3px;
    width: 70px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: #2980b9;
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: var(--shadow);
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 50px;
    margin-right: 10px;
    border-radius: 50%; /* Makes the image circular */
    object-fit: cover;  /* Ensures the image fills the circle properly */
}


.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0;
}

.nav-links ul {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 10px;
}

.nav-links a {
    color: var(--secondary-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

#menu-btn, #close-menu {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/api/placeholder/1800/900');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    margin-top: 0;
    color: white;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
}

.hero-content span {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    /* box-shadow: var(--shadow); */
    margin-top: 3rem;
}

/* About Section */
.about {
    background-color: white;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-image {
    display: flex;
    flex: 1;
     justify-content: center;
    align-items: center;    
}

.about-image img {
    height: 60%;
    width: 60%;
    border-radius: 10px;
    box-shadow: var(--shadow);
   
    /* margin-right: 2 rem; */
}

.about-text {
    flex: 1;
    padding-right: 15px;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.stats-container {
    display: flex;
    flex-wrap: wrap;
    margin-top: 30px;
    gap: 15px;
}

.stat-box {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-box i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-box h4 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

/* Hierarchy Section */
.hierarchy {
    background-color: #f8f9fa;
}

.hierarchy-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.hierarchy-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
    flex: 1;
    min-width: 250px;
    max-width: calc(25% - 25px);
    transition: var(--transition);
}

.hierarchy-card:hover {
    transform: translateY(-10px);
}

.hierarchy-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.hierarchy-icon i {
    font-size: 30px;
    color: white;
}

.hierarchy-card h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.hierarchy-card p {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.hierarchy-card ul {
    text-align: left;
    padding-left: 20px;
}

.hierarchy-card ul li {
    margin-bottom: 5px;
}

/* Members Section */
.members {
    background-color: white;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.member-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.member-card:hover {
    transform: translateY(-10px);
}

.member-img {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.member-card:hover .member-img img {
    transform: scale(1.1);
}

.member-card h3 {
    margin-top: 15px;
    padding: 0 20px;
    font-size: 1.2rem;
}

.member-card p {
    padding: 0 20px;
    margin-bottom: 10px;
}

.position {
    color: var(--primary-color);
    font-weight: 500;
}

.year {
    color: #777;
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px 0;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    background-color: #f5f5f5;
    color: var(--dark-color);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Achievements Section */
.achievements {
    background-color: #f8f9fa;
    position: relative;
}

.achievements-container {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 10px 5px;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
}

.achievements-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.achievement-card {
    flex: 0 0 300px;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.achievement-card:hover {
    transform: translateY(-10px);
}

.achievement-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.achievement-icon i {
    font-size: 25px;
    color: white;
}

.achievement-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.slider-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.slider-controls button:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Alumni Section */
.alumni {
    background-color: white;
}

.alumni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.alumni-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    padding-bottom: 20px;
    transition: var(--transition);
}

.alumni-card:hover {
    transform: translateY(-10px);
}

.alumni-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.alumni-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.alumni-card:hover .alumni-img img {
    transform: scale(1.1);
}

.alumni-card h3 {
    margin-top: 15px;
    padding: 0 20px;
    font-size: 1.2rem;
}

.alumni-card p {
    padding: 0 20px;
    margin-bottom: 5px;
}

.company {
    color: var(--primary-color);
    font-weight: 500;
}

.batch {
    color: #777;
    font-size: 0.9rem;
}

.quote {
    font-style: italic;
    font-size: 0.9rem;
    margin: 10px 0;
}

.view-more-btn {
    text-align: center;
    margin-top: 40px;
}

/* Events Section */
.events {
    background-color: #f8f9fa;
}

.events-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.event-card {
    display: flex;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-date {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 100px;
    padding: 20px;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.event-date .day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    font-size: 1rem;
    text-transform: uppercase;
}

.event-details {
    padding: 20px;
    flex: 1;
}

.event-details h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.event-time, .event-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #777;
}

.event-desc {
    margin: 10px 0;
}

.event-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    transition: var(--transition);
}

.event-link:hover {
    gap: 10px;
}

/* Contact Section */
.contact {
    background-color: white;
}

.contact-container {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 20px;
    color: var(--primary-color);
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    color: var(--dark-color);
    border-radius: 50%;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

.contact-form {
    flex: 1;
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Newsletter Section */
.newsletter {
    background-color: var(--primary-color);
    color: white;
    padding: 50px 0;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    color: white;
    margin-bottom: 10px;
}

.newsletter p {
    margin-bottom: 20px;
}

#newsletterForm {
    display: flex;
    justify-content: center;
    gap: 10px;
}

#newsletterForm input {
    padding: 12px 15px;
    border: none;
    border-radius: 30px;
    flex: 1;
    font-size: 16px;
}

#newsletterForm input:focus {
    outline: none;
}

#newsletterForm button {
    padding: 12px 25px;
    background-color: white;
    color: var(--primary-color);
    font-weight: 600;
}

#newsletterForm button:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 50px;
    margin-right: 10px;
    border-radius: 50%;    
    object-fit: cover; 
}

.footer-logo h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0;
}

.footer-links, .footer-resources {
    min-width: 200px;
}

.footer-links h3, .footer-resources h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after, .footer-resources h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul, .footer-resources ul {
    list-style: none;
}

.footer-links ul li, .footer-resources ul li {
    margin-bottom: 10px;
}

.footer-links ul li a, .footer-resources ul li a {
    color: #bbb;
    transition: var(--transition);
}

.footer-links ul li a:hover, .footer-resources ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #bbb;
    font-size: 0.9rem;
}

.footer-bottom i {
    color: var(--accent-color);
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Media Queries */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .about-content, .contact-container {
        flex-direction: column;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    .hierarchy-card {
        max-width: calc(50% - 25px);
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 5% 50px;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: white;
        padding: 50px 0;
        transition: var(--transition);
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links ul {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    #menu-btn, #close-menu {
        display: block;
    }
    
    #close-menu {
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    .hierarchy-card {
        max-width: 100%;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .event-date {
        flex-direction: row;
        gap: 10px;
        justify-content: center;
        padding: 10px;
    }
    
    .event-date .day, .event-date .month {
        font-size: 1.2rem;
    }
    
    #newsletterForm {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .section-title h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .members-grid, .alumni-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-box {
        min-width: calc(50% - 15px);
    }
}