/* General Styles */
body {
    background-color: #000;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.preloader-logo {
    width: 150px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Top Bar */
#top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

#top-bar .logo img {
    width: 50px;
}

#top-bar nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 30px;
    font-weight: 600;
    transition: color 0.3s ease;
}

#top-bar nav a:hover {
    color: #aaa;
}

/* Main Content */
#main-content {
    display: none;
}

/* Intro Section */
#intro {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.intro-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.intro-content h1 {
    font-size: 4rem;
    margin: 0;
}

.intro-content p {
    font-size: 1.5rem;
}

/* Portfolio Section */
#portfolio {
    padding: 100px 0;
}

#portfolio h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 50px;
}

.portfolio-container {
    display: flex;
    overflow-x: auto;
    padding-bottom: 20px; /* For scrollbar */
}

.portfolio-item {
    position: relative;
    flex: 0 0 400px; /* Adjust width as needed */
    margin: 0 20px;
    overflow: hidden;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.overlay h3 {
    font-size: 1.5rem;
    margin: 0;
}

.overlay p {
    font-size: 1rem;
}

/* About Section */
#about {
    padding: 100px 20px;
    text-align: center;
}

#about h2 {
    font-size: 3rem;
    margin-bottom: 30px;
}

#about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Contact Section */
#contact {
    padding: 50px 20px;
    text-align: center;
}

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

#contact p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.social-links a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #aaa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .intro-content h1 {
        font-size: 2.5rem;
    }

    .intro-content p {
        font-size: 1.2rem;
    }

    .portfolio-container {
        flex-direction: column;
        align-items: center;
    }

    .portfolio-item {
        flex: 0 0 auto;
        width: 80%;
        margin: 20px 0;
    }
}
