/* General styles */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #0d0d0d; /* Dark background color */
    color: #ffffff; /* White text color */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    scroll-behavior: smooth; /* Enable smooth scrolling */
}

header {
    background-color: #121212;
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    padding: 0;
    margin: 0;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}

nav a:hover {
    color: #00ffcc;
}

.section {
    min-height: 100vh; /* Each section takes full viewport height */
    display: flex;
    flex-direction: column; /* Make sure content stacks vertically */
    align-items: center;
    justify-content: center;
    scroll-snap-align: start; /* Snap to start of section */
    padding-top: 6rem; /* Avoid content overlap with the header */
}

#home {
    background: linear-gradient(to right, #000428, #004e92);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
    text-align: center; /* Center text horizontally */
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.hero img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    border: 3px solid #00ffcc;
}

.hero h1 {
    font-size: 3rem;
    margin: 1rem 0;
}

.hero p {
    font-size: 1.5rem;
    color: #00ffcc;
    opacity: 0; /* Initially hidden */
    transition: opacity 2s; /* Fade-in effect */
}

.hero p.visible {
    opacity: 1; /* Visible state */
}

.contact-details {
    position: absolute;
    right: 2rem;
    top: 80%; /* Adjust this value to position it lower in the blue section */
    text-align: right;
    opacity: 0; /* Initially hidden */
    transition: opacity 4s; /* Slower fade-in effect */
}

.contact-details.visible {
    opacity: 1; /* Visible state */
}

/* Services section */
#services {
    background-color: #2b2b2b;
    padding: 2rem 1rem;
    color: #ffffff;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    padding: 1rem;
    margin-top: 60px; /* Adjust this margin to create space below the navbar */
}

.service-item {
    background-color: #1b1b1b;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.service-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid #00ffcc;
}

.service-text {
    padding: 1rem;
}

.service-text h3 {
    margin-top: 0;
}

.service-text p {
    margin: 0.5rem 0 0;
}

/* Development section */
#development {
    background-color: #1b1b1b;
    padding: 2rem 1rem;
    color: #ffffff;
    text-align: center;
}

.development-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    padding: 1rem;
    margin-top: 60px; /* Adjust this margin to create space below the navbar */
}

.development-item {
    background-color: #2b2b2b;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.development-item.reverse {
    flex-direction: row-reverse;
}

.development-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.development-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid #00ffcc;
}

.development-text {
    padding: 1rem;
}

.development-text h3 {
    margin-top: 0;
}

.development-text p {
    margin: 0.5rem 0 0;
}

/* Scroll container settings */
html {
    scroll-snap-type: y mandatory; /* Enable vertical scroll snapping */
}

section {
    scroll-snap-align: start; /* Align sections at the start */
}



/* Contact Section */
#contact {
    background-color: #2b2b2b;
    padding: 2rem 1rem;
    color: #ffffff;
    text-align: center;
    margin-top: 80px; /* Added margin to create space below the navbar */
}

.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.map-container {
    width: 100%;
    max-width: 600px;
    height: 450px;
}



/* Contact Section */
#contact {
    background-color: #2b2b2b;
    padding: 2rem 1rem;
    color: #ffffff;
    text-align: center;
    margin-top: 80px; /* Added margin to create space below the navbar */
}

.contact-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.map-container {
    flex: 1;
    min-width: 300px;
}

/* Contact Section */
/* Contact Section */
#contact {
    background-color: #1b1b1b;
    padding: 2rem 1rem;
    color: #ffffff;
    text-align: center;
    margin-top: 80px; /* Added margin to create space below the navbar */
}

.contact-container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    flex-wrap: wrap; /* Ensure flex items wrap */
}

.map-container {
    flex: 1 1 45%;
    min-width: 300px;
    height: 450px;
}

.contact-details-form {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding: 1rem;
    min-width: 300px;
}

.contact-info {
    text-align: left;
    margin-bottom: 20px;
}

.contact-info p {
    margin: 0.5rem 0;
}

.contact-form {
    width: 100%;
    text-align: left;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #00ffcc;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    border: 1px solid #00ffcc;
    background-color: #121212;
    color: #ffffff;
}

.contact-form button {
    background-color: #00ffcc;
    color: #1b1b1b;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #009999;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-container {
        flex-direction: column; /* Stack vertically on smaller screens */
        align-items: center;
    }

    .map-container,
    .contact-details-form {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column; /* Stack vertically on smaller screens */
        align-items: center;
    }

    .map-container,
    .contact-details-form {
        width: 100%;
        height: auto;
    }

    .contact-form input,
    .contact-form textarea {
        width: 100%;
        padding: 0.5rem;
        margin-bottom: 1rem;
        border-radius: 5px;
        border: 1px solid #00ffcc;
        background-color: #121212;
        color: #ffffff;
    }

    .contact-form button {
        width: 100%;
        padding: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .contact-container {
        flex-direction: column; /* Stack vertically on smaller screens */
        align-items: center;
    }

    .map-container,
    .contact-details-form {
        width: 100%;
        height: auto;
    }

    .contact-form input,
    .contact-form textarea {
        width: 100%;
        padding: 0.5rem;
        margin-bottom: 1rem;
        border-radius: 5px;
        border: 1px solid #00ffcc;
        background-color: #121212;
        color: #ffffff;
    }

    .contact-form button {
        width: 100%;
        padding: 0.5rem 0;
    }
}
