:root {
    --primary-color: #0c2340; /* Navy Blue */
    --secondary-color: #ffffff; /* White */
    --accent-color: #1d4ed8; /* Lighter Blue Accent */
    --text-color: #333333;
    --text-muted: #666666;
    --bg-light: #f8fafc;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-weight: 800;
}

/* Navbar */
.navbar {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    height: 90px; /* Taller navbar so logo fits better */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    height: 90px; /* Match new navbar height */
    width: 280px; /* Slightly wider for logo */
    overflow: hidden; /* Cropping out the white space */
}

.logo-img {
    height: 200px; /* Less zoom so logo is not cut */
    width: auto;
    margin-bottom: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
}

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

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .navbar {
        height: 80px;
    }

    .logo {
        width: 200px;
        height: 80px;
    }

    .logo-img {
        height: 160px;
        margin-bottom: 0;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: -100%;
        width: 78%;
        height: calc(100vh - 80px);
        background-color: var(--secondary-color);
        flex-direction: column;
        align-items: center;
        padding-top: 2rem;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }
}

/* Page Header */
.page-header {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 6rem 20px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto;
}

/* Projects Gallery */
.projects {
    padding: 5rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-muted);
}

/* Reviews */
.reviews-section {
    padding: 5rem 0;
    background-color: #e2e8f0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.review-card .rating {
    color: #fbbf24;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.review-text {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.reviewer-name {
    font-weight: 600;
    color: var(--primary-color);
}

.reviewer-project {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Leave a Review Form */
.leave-review-container {
    margin-top: 4rem;
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 20px; /* More rounded */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05); /* Softer shadow */
    border: 1px solid #e2e8f0;
}

.leave-review-container h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 800;
}

.review-form {
    max-width: 500px; /* Made narrower and more compact */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem; /* Reduced gap */
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.rating-input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0.5rem 0;
}

.rating-input-container label {
    font-weight: 600;
    color: var(--primary-color); /* Navy blue text */
    margin-bottom: 0.5rem;
}

/* Interactive Stars */
.star-rating {
    display: flex;
    gap: 5px;
    font-size: 2.5rem; /* Large stars */
    cursor: pointer;
    color: #cbd5e1; /* Default empty gray color */
}

.star-rating .star {
    transition: var(--transition);
}

.star-rating .star.hover,
.star-rating .star.active {
    color: #fbbf24; /* Golden yellow */
    transform: scale(1.1); /* Slight pop effect */
}

.btn-submit-review {
    border-radius: 50px; /* Pill shape for the button */
    font-weight: 800;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* Contact */
.contact {
    padding: 6rem 0;
    background-color: var(--secondary-color);
}

.contact-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-info {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.contact-info h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-details {
    list-style: none;
    margin-top: 2rem;
    padding: 0;
    text-align: center;
}

.contact-details li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-details a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(12, 35, 64, 0.1);
}

.btn-block {
    width: 100%;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: var(--transition);
    border: 2px solid var(--secondary-color);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .page-header h1 { font-size: 2.5rem; }
}
