
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://media.giphy.com/media/26BROrSHlmyzzHf3i/giphy.gif') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    margin: 0;
    scroll-behavior: smooth;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem -1rem; /* Further reduced right padding */
    background: transparent;
    z-index: 1000;
    transition: padding 0.3s;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Corrected alignment */
}

header.scrolled {
    background: rgba(18, 18, 18, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s;
}

nav a:hover {
    color: linear-gradient(45deg, #007bff, #8a2be2, #ff69b4);
}

section {
    padding: 6rem 2rem 4rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#hero {
    color: #fff;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s 0.5s;
    background: linear-gradient(45deg, #007bff, #8a2be2, #ff69b4);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    color: #fff;
    text-align: center;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #007bff, #8a2be2, #ff69b4);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    transition: background 0.3s, transform 0.3s;
    animation: zoomIn 1s 1s;
}

.cta-button:hover {
    transform: scale(1.05);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, #007bff, #8a2be2, #ff69b4);
    border-radius: 2px;
}

.service-cards, .portfolio-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.card, .portfolio-item {
    background: #121212;
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.4s, box-shadow 0.4s;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover, .portfolio-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.service-cards .card {
    width: 280px;
}

.portfolio-item {
    width: 320px;
    text-align: center;
}

.portfolio-item img {
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s;
}

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

#about p {
    max-width: 800px;
    line-height: 1.8;
}

#contact form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 600px;
    margin-top: 2rem;
}

#contact input,
#contact textarea {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    background: #121212;
    color: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#contact input:focus,
#contact textarea:focus {
    outline: none;
    border-color: #8a2be2;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

#contact button {
    padding: 1rem;
    border: none;
    border-radius: 25px;
    background: linear-gradient(45deg, #007bff, #8a2be2, #ff69b4);
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s;
}

#contact button:hover {
    transform: scale(1.05);
}

#form-status {
    margin-top: 1rem;
    font-weight: bold;
}

.success {
    color: #28a745;
}

.error {
    color: #dc3545;
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    background: #121212;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gallery Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1200px;
    animation-name: zoomIn;
    animation-duration: 0.6s;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        display: none;
    }

    #hero {
        padding-top: 2rem; /* Adjust padding for hero section when header is hidden */
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(18, 18, 18, 0.9);
        position: absolute;
        top: 60px;
        left: 0;
        text-align: center;
    }

    .nav-list.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: #fff;
    }

    .service-cards, .portfolio-items {
        flex-direction: column;
        align-items: center;
    }

    .card, .portfolio-item {
        width: 90%;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 15px; /* Further reduce the height of the logo in the header for very small screens */
    }

    .hero-logo {
        width: 300px; /* Increased size */
        height: auto;
        margin-bottom: 0.3rem;
    }

    .hero-content {
        padding: 0 0.3rem; /* Reduce horizontal padding for hero content */
    }

    .hero-content h1 {
        font-size: 4vw; /* Reverting to previous size */
    }

    .hero-content p {
        font-size: 2vw; /* Further reduce font size */
    }

    .portfolio-item {
        width: 80%; /* Scale down portfolio items */
        max-width: 250px;
    }
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
