/* General Styling */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #343a40;
}

h1, h2, h3 {
    font-family: "Georgia", serif;
    color: #212529;
}

/* Header and Navigation */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center; /* Center the logo */
    align-items: center;
    padding: 0.5rem 2rem; /* Adjust padding */
}

nav {
    position: absolute;
    right: 2rem; /* Align nav to the right */
}

.logo {
    /* No margin needed now */
}

.logo img {
    height: 100px; /* Increase logo size */
}

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

.nav-links a {
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #1abc9c;
}

/* Main Content Sections */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 4rem 0;
    border-bottom: 1px solid #e9ecef;
}

section:last-of-type {
    border-bottom: none;
}

/* Hero Section */
#hero {
    text-align: center;
    padding: 6rem 0;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.cta-button {
    display: inline-block;
    background-color: #1abc9c;
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #16a085;
}

/* Responsive Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 800px; /* Limit max width for larger screens */
    background: #000;
    margin: 2rem auto; /* Center the video and add some margin */
    border-radius: 8px; /* Optional: rounded corners for the video */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Optional: subtle shadow */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}



/* Services Section */
#services {
    text-align: center;
}

#services h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.service-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    text-align: left;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-top: 0;
    color: #2c3e50;
}

/* Portfolio Section */
#portfolio h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.portfolio-item {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.portfolio-image img {
    width: 100%;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

.portfolio-description h3 {
    font-size: 1.75rem;
    margin-top: 0;
}

.portfolio-description p {
    margin-bottom: 1rem;
}

/* Contact Section */
#contact {
    text-align: center;
    background-color: #2c3e50;
    color: #ffffff;
    padding: 5rem 2rem;
    border-radius: 8px;
    margin-bottom: 4rem;
}

#contact h2 {
    font-size: 2.5rem;
    color: #ffffff;
}

#contact p {
    max-width: 600px;
    margin: 1rem auto 2rem auto;
    font-size: 1.1rem;
}

.email-link {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    border-bottom: 2px solid #1abc9c;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: #1abc9c;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    nav {
        position: static; /* Remove absolute positioning on smaller screens */
        padding-top: 1rem; /* Add some space below the logo */
    }

    .nav-links {
        flex-direction: column; /* Stack nav links vertically */
        gap: 0.5rem; /* Reduce gap */
        align-items: center; /* Center them */
    }

    .portfolio-item {
        grid-template-columns: 1fr; /* Stack portfolio items vertically */
    }

    .hero-content h1 {
        font-size: 2.5rem; /* Adjust hero title size */
    }

    .subtitle {
        font-size: 1rem; /* Adjust subtitle size */
    }

    #services h2,
    #portfolio h2,
    #contact h2 {
        font-size: 2rem; /* Adjust section titles */
    }

    #contact {
        padding: 3rem 1rem; /* Adjust contact section padding */
    }

    .email-link {
        font-size: 1.2rem; /* Adjust email link size */
    }
}
