:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --text-color: #343a40;
    --card-bg-color: #fff;
    --border-color: #e9ecef;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--card-bg-color);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.signup-btn {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.signup-btn:hover {
    background-color: #0056b3;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 10%;
    background: linear-gradient(135deg, #e0eafc, #cfdef3);
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #212529;
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #495057;
}

.cta-buttons .primary-btn, .secondary-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white !important;
    margin-right: 1rem;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.primary-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color) !important;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white !important;
    transform: translateY(-2px);
}

/* Main Content Sections */
section {
    padding: 3rem 5%;
}

h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.projects-grid, .ratings-grid, .users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card, .user-card {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover, .user-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.project-card h3, .user-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.project-card p, .user-card p {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.rating-stars {
    color: #ffc107; /* Yellow for stars */
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--text-color);
    color: white;
}

/* Rating Section */
.rating-section {
    margin-top: 2rem;
    text-align: center;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    padding-top: 60px;
}

.modal-content {
    background-color: var(--card-bg-color);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: center;
    position: relative;
}

.close-btn {
    color: var(--text-color-secondary);
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: var(--text-color-primary);
}

.rating-stars-input {
    font-size: 2.5rem;
    color: #ccc;
    cursor: pointer;
    margin: 1rem 0;
}

.rating-stars-input .star {
    transition: color 0.2s ease;
}

.rating-stars-input .star.active {
    color: gold;
}