/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: #f8f9fa;
    color: #333333;
    line-height: 1.6;
    /* padding-bottom: 50vh; */ /* Add space at the bottom to ensure contact can be reached */
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-weight: 600;
}

a {
    color: #333333;
    text-decoration: none;
}

/* Header */
header {
    background-color: #ffffff;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eeeeee;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-light {
    width: 120px;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

header nav ul li {
    margin-left: 2.5rem;
}

header nav ul li a {
    font-weight: 500;
    transition: color 0.3s ease, background-color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 1.1rem; /* Increased font size */
}

header nav ul li a:hover {
    color: #007bff;
}

header nav ul li a.active {
    background-color: #007bff;
    color: #ffffff;
}

/* Hero Section */
#hero {
    background: url('images/header-light.png') no-repeat center center/cover;
    text-align: center;
    padding: 7rem 0;
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

/* Portfolio Section */
#portfolio {
    padding: 5rem 0;
}

#portfolio h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.8rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1 / 1; /* keep all items square and same size */
    display: block;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* crop and fill the block regardless of image aspect */
    display: block;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-caption {
    transform: translateY(0);
}

.portfolio-caption h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333333;
}

/* Pricing Section */
#pricing {
    background-color: #ffffff;
    padding: 5rem 0;
}

#pricing h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.8rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    justify-content: center;
}

.pricing-item {
    background-color: #f8f9fa;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #eeeeee;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pricing-item:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
}

.pricing-item h3 {
    color: #007bff;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
}

/* Contact Section */
#contact {
    padding: 2rem 0; /* Further reduced padding */
    text-align: center;
    min-height: 50vh; /* Ensure section is tall enough to be detected */
}

#contact h2 {
    margin-bottom: 2rem; /* Reduced margin */
    font-size: 2rem; /* Reduced font size */
}

#contact p {
    font-size: 1rem; /* Reduced font size */
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    text-align: left;
}

/* Footer */
footer {
    background-color: #ffffff;
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #eeeeee;
    margin-top: 3rem;
}
