body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1f1d1d;
    color: #333;
}

header {
    background-image: url('img/bg_hero6.jpg'); /*Ensure the image path is correct*/
    background-size: cover; /* Ensures the image covers the entire header */
    background-position: center center; /* Centers the image */
    color: #fff;
    text-align: center;
    padding: 0; /* Ensure no unwanted padding in header */
    height: 100vh; /* Full viewport height */
    width: 100%; /* Ensures header spans the full width of the screen */
    position: relative; /* Ensures positioning of child elements inside the header */
    top: 0;
    box-sizing: border-box; /* Ensures padding and borders are included in width calculation */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Light shadow for effect */
}


body header nav {
    display: flex; /* Use flexbox for layout */
    justify-content: space-between; /* Align items with space between */
    align-items: center; /* Vertically center the items */
    padding: 15px 20px; /* Space around the elements */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000000; /* Ensure it appears above the header content */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    position: fixed;
}





header nav .logo a {
    color: #f7f7f7;
    font-family: 'Playfair Display', serif;
    font-size: 1.5em;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 2px;
    transition: color 0.3s, transform 0.3s;
}



header p {
    font-size: 3rem;
    font-weight: bold;
    color: #ebcccc;
    display: inline-block;
    /* min-width: 300px;     */
}





header nav .logo a:hover {
    color: #ffd700;
    transform: scale(1.1);
}


header nav .nav-links a {
    color: #f7f7f7;
    margin: 0 20px;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-size: 1.2em;
    font-weight: 700;
    letter-spacing: 1px;
    transition: color 0.3s, transform 0.3s;

}


header nav.sticky {
    background-color: #1f1d1d; /* Background color when sticky */
    color: #f7f7f7;            /* Change text color to white when the background is black */
}


header nav .nav-links a:hover {
    color: #ffd700;
    transform: scale(1.1);
}

header nav .nav-links a:focus {
    outline: none;
    color: #ffd700;
}

header .intro {
    position: absolute; /* Allows precise positioning */
    top: 50%; /* Vertically center the text */
    left: 50%; /* Horizontally center the text */
    transform: translate(-50%, -50%); /* Adjust for true centering */
    z-index: 10; /* Makes sure text is on top of the background */
    padding: 20px;
}

header .intro h1 {
    font-family: 'Playfair Display', serif;
    margin: 0;
    font-size: 3em; /* Increase font size for visibility */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Optional shadow for text readability */
}

header .intro p {
    margin: 10px 0 0;
    font-size: 1.2em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6); /* Optional shadow for paragraph text */
}


.main-section {
    padding: 0;
}


section {
    padding: 50px;
    /* max-width: 1200px; */
    margin: 0 auto;
}




section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    color: #000000;
    margin-bottom: 20px;
    border-bottom: 2px solid #ffd700;
    display: inline-block;
}



.main-section {
    /* background-color: #4d4c4c; */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    /* max-width: 800px; */
    /* padding: 10px; */
}

/* Main content styles */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ddd;
}

.content p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: justify;
    color: #c7c4c4;
    line-height: 1.8;
}

/* Strong text */
strong {
    color: #61f29b;
}



.projects {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    justify-content: space-between;
}



.project-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s, box-shadow 0.3s;
    flex: 1 1 calc(33.333% - 60px);
    max-width: calc(33.333% - 60px);
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.project-card img {
    width: 100%;
    height: auto;
    display: block;
}
.project-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5em;
    margin: 15px;
}
.project-card p {
    font-size: 1em;
    margin: 0 15px 15px;
}


/* Contact Section */

.contact-section {
    text-align: center;
    padding: 50px 20px;
    background-color: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    margin: 20px auto;
    /* max-width: 800px; */
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 100px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.contact-link {
    text-decoration: none;
    color: #ffffff;
    font-size: 4rem;
    transition: transform 0.2s, color 0.2s;
}

.contact-link i {
    font-size: 5rem;
    color: #4CAF50; /* Customize icon color */
    transition: color 0.2s;
}

.contact-link:hover {
    transform: scale(1.3);
}

.contact-link:hover i {
    color: #f6ff00;
}

/* Responsiveness */
@media (max-width: 768px) {
    .contact-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 30px; /* Smaller gaps on mobile */
    }

    .contact-link i {
        font-size: 4rem; /* Slightly smaller icons for smaller screens */
    }
}



footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: #fff;
    font-size: 0.9em;
}
footer a {
    color: #ffd700;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}
@media (max-width: 768px) {
    .project-card {
        flex: 1 1 calc(100% - 20px);
        max-width: calc(100% - 20px);
    }
}
