* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background: #1a1a1a;
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background: linear-gradient(90deg, #0a3d9c 0%, #1651b9 100%);
    color: white;
    padding: 0.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1517336714731-489689fd1ca8');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Darker overlay */
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.section {
    padding: 5rem 0;
    background: #1a1a1a;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pagination {
    text-align: center;
    margin-top: 2rem;
}

#loadMore {
    margin: 0 auto;
}

.feature-card {
    background: #f4f4f4;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    border: none;
    cursor: pointer;
}

form {
    max-width: 600px;
    margin: 0 auto;
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

textarea {
    height: 150px;
}

footer {
    background: linear-gradient(90deg, #0a3d9c 0%, #1651b9 100%);
    color: white;
    text-align: center;
    padding: 1rem 0;
}

/* Member card styles */
.member-card {
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.member-card:hover {
    transform: translateY(-5px);
}

.project-preview {
    width: 100%;
    padding-top: 56.25%; /* Aspect ratio 16:9 (9/16 = 0.5625) */
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.project-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}


.member-dropdown {
    padding: 0 15px 15px;
    background: #2a2a2a;
    position: relative;
}

.dropdown-trigger {
    background: linear-gradient(90deg, #0a3d9c 0%, #1651b9 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-trigger:hover {
    background: linear-gradient(90deg, #1651b9 0%, #0a3d9c 100%);
}

.member-info {
    padding: 15px;
    background: #2a2a2a;
}


.member-info p {
    color: #fff;
    margin-bottom: 12px;
}

.visit-btn {
    display: inline-block;
    background: linear-gradient(90deg, #28a745 0%, #218838 100%);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.visit-btn:hover {
    background: linear-gradient(90deg, #218838 0%, #28a745 100%);
    transform: translateY(-2px);
}

/* Error message styles */
.error-message {
    text-align: center;
    padding: 20px;
    background-color: #fff3f3;
    border-radius: 8px;
    margin: 20px 0;
}

.error-message button {
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.error-message button:hover {
    background-color: #0056b3;
}

/* Logo styles */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.site-logo {
    height: 60px;
    width: auto;
}

/* Animation styles */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search box styles */
.search-container {
    margin-bottom: 2rem;
}

#searchInput {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    border: 2px solid #d1d1d1;
    border-radius: 8px;
    font-size: 16px;
    background: #2a2a2a;
    color: #fff;
    transition: all 0.3s ease;
}

#searchInput:focus {
    outline: none;
    border-color: #0a3d9c;
    box-shadow: 0 0 5px rgba(22, 81, 185, 0.5);
}

#searchInput::placeholder {
    color: #888;
}

/* Scroll to top button styles */
.scroll-top-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(90deg, #0a3d9c 0%, #1651b9 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .member-card {
        margin-bottom: 1rem;
    }
    
    .scroll-top-btn {
        display: block;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }

    .scroll-top-btn.visible {
        opacity: 1;
        visibility: visible;
    }
}

