/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%; 
}

body {
    display: flex; 
    flex-direction: column; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;
    background: url('pexels-slendyalex-3648850.jpg') no-repeat center center fixed; 
    background-size: cover; 
}

/* Header and Footer Styles */
header, footer {
    background-color: rgba(30, 30, 30, 0.8); 
    padding: 20px 0;
    border-radius: 8px;
}

header .container, footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style-type: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    border-radius: 8px;
}

nav ul li a:hover {
    color: rgba(78, 160, 255, 0.9); 
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    flex: 1; 
    background-color: rgba(30, 30, 30, 0.7); 
    padding: 20px; 
    border-radius: 8px;
}

/* Buttons */
button, .button {
    background-color: rgba(85, 86, 86, 0.9);
    border: none;
    color: #ffffff;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 8px;
}

button:hover, .button:hover {
    background-color: rgba(78, 160, 255, 0.7); 
}

/* Home Page Styles */
.home-hero {
    background-image: url('pexels-slendyalex-3648850.jpg'); 
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 150px 0;
    position: relative;
}

.home-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(18, 18, 18, 0.7); 
}

.home-hero h1, .home-hero p, .home-hero button {
    position: relative;
    z-index: 1;
}

/* Email Subscription Styles */
.email-subscription {
    background-color: rgba(30, 30, 30, 0.8); 
    padding: 50px 0;
    text-align: center;
}

.email-subscription input[type="email"] {
    padding: 10px;
    width: 300px;
    border: none;
    margin-right: 10px;
}

.email-subscription button {
    padding: 10px 20px;
}

/* Portfolio Styles */
.portfolio {
    padding: 50px 0;
}

.portfolio h2 {
    text-align: center;
    margin-bottom: 30px;
}

.portfolio-filters {
    text-align: center;
    margin-bottom: 30px;
}

.portfolio-filters button {
    margin: 5px;
}

.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.portfolio-item {
    width: 20%;
    margin: 10px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.portfolio-item:hover {
    transform: scale(1.05);
}

.portfolio-item img {
    width: 100%;
    display: block;
}

.portfolio-item .overlay {
    position: absolute;
    bottom: 0;
    background: rgba(189, 189, 189, 0.9);
    color: #ffffff;
    width: 100%;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    text-align: center;
}

.portfolio-item:hover .overlay {
    transform: translateY(0);
}

/* Lightbox Styles */
.lightbox {
    display: none; 
    position: fixed; 
    z-index: 1001; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); 
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 100%; 
    max-height: 100%; 
    margin: auto;
}

/* Close Button */
.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
}
.lightbox video {
    max-width: 80%; 
    max-height: 80%; 
}
.lightbox .close:hover {
    color: rgba(78, 160, 255, 0.9);
}

/* About Us Styles */
.about-us {
    padding: 50px 0;
}

.about-us h2, .about-us h3 {
    text-align: center;
    margin-bottom: 20px;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.team-member {
    width: 200px;
    margin: 15px;
    text-align: center;
}

.team-member img {
    width: 100%;
    border-radius: 50%;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}


.team-member h4 {
    margin-bottom: 5px;
}

.team-member p {
    font-size: 0.9em;
    color: rgba(78, 160, 255, 0.9);
}

/* Contact Us Styles */
.contact-us {
    padding: 50px 0;
}

.contact-us h2 {
    text-align: center;
    margin-bottom: 30px;
}

.contact-form {
    width: 50%;
    margin: 0 auto;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: none;
    background-color: rgb(255, 255, 255); 
    color: #000000; 
    border-radius: 8px; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
}

.contact-form button {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
}


/* Footer Styles */
footer {
    margin-top: auto; 
    text-align: center; 
    padding: 20px 0; 
    background-color: rgba(30, 30, 30, 0.8); 
}

footer .container {
    justify-content: center; 
}

/* Media Queries */
@media (max-width: 768px) {
    .portfolio-item {
        width: 90%; 
    }

    .contact-form {
        width: 90%; 
    }

    .team-member {
        width: 45%; 
    }

    .team-member img {
        width: 80%; 
    }

    .team-member h4 {
        font-size: 1.1em; 
    }
}
