/* Import Poppins font if not already loaded */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Root Variables - Consistent with landing page */
:root {
    --primary-color: #3da35d;
    --primary-dark: #2e7d48;
    --secondary-color: #f8f9fa;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --white: #ffffff;
    --border-color: #e9ecef;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #f3eff5;
}

/* Make navbar sticky - Exactly like index.css */
.navbar {
    background-color: #3da35d;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1030; /* Ensure navbar stays on top of other content */
    transition: all 0.3s ease;
}

/* Optional: Add a slight background change when scrolling for better visual feedback */
.navbar.scrolled {
    background-color: rgba(61, 163, 93, 0.95); /* Slightly transparent when scrolled */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Navbar positioning styles */
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand-container {
    flex: 1; /* Takes up space but allows center to be truly centered */
}

.navbar-collapse {
    display: flex;
    justify-content: center;
    flex: 2; /* Takes more space to ensure centering works */
}

.navbar-nav.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.navbar-login-container {
    flex: 1; /* Takes up equal space as brand container */
    display: flex;
    justify-content: flex-end; /* Aligns login to the right */
}

/* Modify the existing mobile media query */
@media (max-width: 991.98px) {
    .navbar .container {
        flex-wrap: wrap;
        position: relative; /* Add this to establish positioning context */
    }
    
    .navbar-brand-container {
        flex: 1; /* Allow brand to take available space */
    }
    
    .navbar-login-container {
        position: absolute; /* Position absolutely */
        top: 10px; /* Adjust as needed */
        right: 70px; /* Space for the toggler button */
        z-index: 1031; /* Higher than default Bootstrap navbar z-index */
    }
    
    .navbar-collapse {
        flex: 0 0 100%; /* Menu takes full width when expanded */
        order: 3; /* Appears at bottom when expanded */
    }
    
    /* Center nav items on mobile too */
    .navbar-nav {
        text-align: center;
    }

    /* Adjust space for navbar-toggler */
    .navbar-toggler {
        margin-right: 0;
    }
    
    /* Make login button smaller on mobile */
    .btn-login {
        font-size: 0.85rem;
        padding: 0.25rem 0.5rem;
    }
}

.navbar-brand {
    font-weight: 600;
    font-size: 0.8rem;
    color: white !important;
    text-decoration: none;
    line-height: 1.2;
}

.navbar-brand:hover {
    color: #e8f5e8 !important;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    transition: all 0.3s;
    margin: 0 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: #e8f5e8 !important;
    transform: translateY(-2px);
}

.btn-login {
    background-color: white;
    color: #3da35d;
    border: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-login:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-about {
    background: linear-gradient(rgba(61, 163, 93, 0.9), rgba(46, 125, 72, 0.9)),
                url('../../images/4-845x650-1370181210.jpg') center/cover no-repeat;
    min-height: 60vh;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.hero-content .lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.project-info {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.project-info .badge {
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
    border-radius: 25px;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Project Overview Section */
.project-overview {
    background-color: var(--secondary-color);
}

.project-description {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
}

.project-description h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.project-detail h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Team Section */
.team-section {
    background: var(--white);
}

.team-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.team-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    padding: 2rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.team-info h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 2rem;
}

.team-info .role {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.team-info .program {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.specialization {
    background-color: var(--secondary-color);
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.contributions {
    text-align: left;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.contributions h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.contributions ul {
    list-style: none;
    padding: 0;
}

.contributions li {
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.2rem;
}

.contributions li::before {
    content: '▶';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

.social-links {
    display: flex;
    /* justify-content: center; */
    gap: 1rem;
    margin-top: auto;
}

.social-link {
    display: inline-flex;
    align-items: center;
    
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-3px);
}

/* Technology Stack Section */
.tech-stack-section {
    background-color: var(--secondary-color);
}

.tech-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.tech-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.tech-card h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.tech-card ul {
    list-style: none;
    padding: 0;
}

.tech-card li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.tech-card li:last-child {
    border-bottom: none;
}

/* Features Section */
.features-section {
    background: var(--white);
}

.feature-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.stats-section .section-title,
.stats-section .section-subtitle {
    color: var(--white);
}

.stats-section .section-title::after {
    background: var(--white);
}

.stat-box {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Acknowledgments Section */
.acknowledgments-section {
    background-color: var(--secondary-color);
}

.acknowledgment-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.acknowledgment-card h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.acknowledgment-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-section {
    background: var(--white);
}

.contact-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.contact-info h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: #333;
    color: #f5f5f5;
    padding-top: 4rem;
}

.footer h4 {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: white;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #3da35d;
}

.footer h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #e6b84c;
}

.footer-about p {
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links ul {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #e6b84c;
    padding-left: 5px;
}

.footer-contact ul {
    list-style: none;
    padding-left: 0;
}

.footer-contact li {
    margin-bottom: 1rem;
    color: #bbb;
    font-size: 0.95rem;
    display: flex;
}

.footer-contact li i {
    color: #3da35d;
    margin-right: 10px;
    margin-top: 5px;
    width: 16px;
}

.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-links a {
    background-color: rgba(255,255,255,0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s;
    text-decoration: none !important;
}

.social-links a:hover {
    background-color: #3da35d;
    transform: translateY(-3px);
}

.footer-bottom {
    padding-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #999;
    font-size: 0.9rem;
    width: 100%;
}

.copyright p {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .navbar-brand {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-about {
        min-height: 50vh;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    /* Navbar mobile adjustments */
    .navbar-brand {
        font-size: 0.7rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .project-description,
    .acknowledgment-card,
    .contact-card {
        padding: 2rem;
    }
    
    .team-info {
        padding: 1.5rem;
    }
    
    .tech-card,
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .project-info .badge {
        display: block;
        margin-bottom: 0.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.7rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .tech-card,
    .feature-card {
        padding: 1.5rem;
    }
    
    .team-info {
        padding: 1rem;
    }
    
    .project-description,
    .acknowledgment-card,
    .contact-card {
        padding: 1.5rem;
    }
}