body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #1c1c1c; /* Dark grey background */
    color: #ffffff; /* Default text color */
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    font-weight: 600;
    font-size: 1.25rem;
    color: #ffffff;
}

.nav-links button {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 1rem;
    margin-left: 1rem;
}

.nav-links button:hover {
    color: #868682;
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100;
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #ffffff;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 64px;
        flex-direction: column;
        background-color: rgba(28, 28, 28, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
        backdrop-filter: blur(10px);
    }

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

    .nav-links button {
        display: block;
        margin: 15px auto;
        font-size: 1.2rem;
    }

    /* Hamburger Menu Animation */
    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    background-image: url('images/backgroundimage.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Add an overlay to ensure text remains readable */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for better text visibility */
    z-index: 1;
}

/* Ensure header content stays above the overlay */
header h1,
header p {
    position: relative;
    z-index: 2;
}

h1 {
    font-size: 3.75rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #ffffff; /* White title color */
}

header p {
    font-size: 1.25rem;
    color: #ffffff; /* White paragraph color */
    max-width: 42rem;
}

section {
    padding: 4rem 2rem;
}

h2 {
    font-size: 1.875rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: #ffffff; /* White section title color */
}

.project-container {
    width: 80%;
    margin: 0 auto;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Default to 3 columns */
    gap: 2rem;
}

/* Add a media query for smaller screens */
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr); /* Change to 2 columns */
    }
}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.project-item:hover {
    transform: scale(1.05);
}

.project-item img {
    width: 100%;
    height: auto; /* Set height to auto */
    aspect-ratio: 1; /* Maintain a square aspect ratio */
    object-fit: cover; /* Ensure the image covers the area */
}

.project-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-overlay h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
}

#contact {
    background-color: #1c1c1c; /* Same as body background color */
}

.contact-info {
    max-width: 28rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item svg {
    color: #fbfbfb;
}

.contact-item a {
    color: #ffffff;
    text-decoration: none;
}

.contact-item a:hover {
    color: #b4b2a9;
}

/* Services Section Styles */
#servicios .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

#servicios .service-card {
    background-color: #2a2a2a;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#servicios .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#servicios .service-card h3 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

#servicios .service-card p {
    color: #b4b4b4;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #servicios .services-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    #servicios .service-card {
        padding: 1.5rem;
    }
}

/* Add some animation to the services */
.service-item {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger the animation for each service */
.service-1 { animation-delay: 0.1s; }
.service-2 { animation-delay: 0.2s; }
.service-3 { animation-delay: 0.3s; }
.service-4 { animation-delay: 0.4s; }
.service-5 { animation-delay: 0.5s; }
.service-6 { animation-delay: 0.6s; }
.service-7 { animation-delay: 0.7s; }

/* Photography Section Styles */
.photo-header {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background-color: #1c1c1c;
}

.photo-header .content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.photo-header h2 {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #ffffff;
}

.photo-header .main-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 2rem;
}

.photo-header .features {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: #b4b4b4;
    font-size: 1rem;
}

.photo-header .separator {
    color: #666;
}

@media (max-width: 768px) {
    .photo-header {
        padding: 2rem 1rem;
    }

    .photo-header h2 {
        font-size: 1.875rem;
        margin-bottom: 1.5rem;
    }

    .photo-header .main-description {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .photo-header .features {
        font-size: 0.95rem;
        gap: 1rem;
    }
}

/* Additional Photos Section */
.additional-photos {
    padding: 0 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: center;
    background-color: #1c1c1c;
}

.photo-card {
    max-width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 2rem;
}

.photo-card img {
    width: auto;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

@media (max-width: 768px) {
    .additional-photos {
        padding: 2rem 1rem;
        gap: 2rem;
    }

    .photo-card {
        padding: 0 1rem;
    }
}