/* home.css */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-image: url("../assets/nitpimage.jpg");
    background-position: center;
    background-size: cover;
    color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Improved Navbar Styles */
header {
    background-color: #81C784; /* Matching your color scheme */
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center; /* Center the menu items */
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    display: block;
    font-weight: 500;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background-color: #66BB6A; /* Hover color from your scheme */
}

/* Current page indicator */
nav ul li a[href*="index.html"] {
    background-color: #66BB6A; /* Active page color */
}

/* Hero Section */
.hero {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

/* Features Section */
.features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 50px 0;
    gap: 20px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    width: 250px;
    text-align: center;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #81C784;
}

/* Counters Section */
.counters {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 50px 0;
    text-align: center;
}

.counter {
    font-size: 2.5rem;
    font-weight: bold;
    color: #81C784;
}

.counter-label {
    font-size: 1.2rem;
}

/* CTA Buttons */
.cta-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-button {
    padding: 12px 25px;
    background-color: #81C784;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    border: 2px solid #81C784;
}

.cta-button:hover {
    background-color: transparent;
    color: white;
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animated {
    animation: fadeIn 1s ease-out forwards;
}

/* Footer */
footer {
    background-color: #66BB6A;
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
    }
    
    .features {
        flex-direction: column;
        align-items: center;
    }
    
    .counters {
        flex-direction: column;
        gap: 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}
