* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    background-color: #000;
    color: #fff;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    z-index: 999;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 60px;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 24px;
    position: relative;
    padding: 5px 0;
}

nav ul li a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s;
}

nav ul li a:hover::before {
    width: 100%;
}

.section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: #000;
    padding: 60px 20px; /* Add padding to create space */
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    max-width: 100%; /* Limit the width to fit within the screen */
    padding: 0 20px;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 800px; /* Reduce the max-width to fit smaller screens */
    padding: 0 40px; /* Adjust the padding */
    margin: 0 auto;
  }
  
.logo {
    width: 100%;
    height: auto;
    max-width: 100%;
}
  
.typewriter-container {
   display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    margin-top: 30px;
}

.typewriter {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background-color: #000000;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 100%;
    opacity: 0;
    animation: fadeInUp 2s ease-in-out forwards;
    animation-delay: 0.5s;
    overflow: hidden; /* Hide the overflowing text */
}

.prompt {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 20px;
    margin-left: 20px;
    overflow: hidden; /* Hide the overflowing text */
    white-space: nowrap; /* Keep the text on a single line */
}

.typewriter-text {
    overflow: hidden;
    letter-spacing: 1px;
    white-space: nowrap; /* Keep the text on a single line */
    font-size: 18px;
    font-weight: 300;
    font-family: 'Inter', sans-serif;
    color: #d1d5db;
    border-right: 2px solid #d1d5db;
    padding-right: 5px;
    animation: typing 3s steps(40, end), blink-caret .75s step-end infinite;
    animation-fill-mode: forwards;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #d1d5db; }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-info {
    margin-top: 10px;
    text-align: left;
}

.about-info p {
    margin-bottom: 20px;
    font-size: 25px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s, transform 0.5s;
}

.about-info p:nth-child(1) {
    transition-delay: 0.2s;
}

.about-info p:nth-child(2) {
    transition-delay: 0.4s;
}

.section.active .about-info p {
    opacity: 1;
    transform: translateY(0);
}

.highlight {
    color: #FEDE00;
    font-weight: bold;
}

.services-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    gap: 20px;
}

.overlay-column {
    flex: 1;
    padding: 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    margin-bottom: 20px;
}

.type-column {
    flex: 0 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.services-box {
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 250px; /* Decrease the max-width to match the smaller image size */
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: auto;
    overflow: visible;
}

.services-box h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.services-box p {
    font-size: 16px;
}

.services-text {
    font-size: 24px;
    text-align: center;
}

.overlay {
    width: 100%;
    max-width: 150px; /* Decrease the max-width to make the images smaller */
    height: auto;
    margin: 0 auto;
    display: block;
    opacity: 0;
    filter: blur(10px);
    transition: opacity 1s, filter 1s;
    object-fit: contain;
    max-height: none;
    margin-bottom: 20px;
}

.section.active .overlay {
    opacity: 1;
    filter: blur(0);
}

.overlay-column:first-child .overlay {
    transition-delay: 0s;
}

.overlay-column:last-child .overlay {
    transition-delay: 1s;
}

.typewriter.services-text {
    margin-top: 0;
    background-color: transparent;
    box-shadow: none;
    max-width: 100%;
    width: 100%;
    opacity: 0;
    animation: fadeInUp 2s ease-in-out forwards;
    animation-delay: 1s;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    white-space: nowrap;
    overflow: hidden;
}

.typewriter-text-services {
    overflow: hidden;
    letter-spacing: 2px;
    white-space: nowrap;
    font-size: 24px;
    font-weight: 300;
    font-family: 'Inter', sans-serif;
    color: #d1d5db;
    border-right: 2px solid #d1d5db;
    padding-right: 5px;
    animation: typing-services 3s steps(40, end), blink-caret .75s step-end infinite;
    animation-fill-mode: forwards;
    width: 0;
}

@keyframes typing-services {
    from { width: 0 }
    to { width: 100% }
}

.section#contact .content {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background-color: #000000;
    border: 1px solid #adadad;
    color: #fff;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: box-shadow 0.3s, transform 0.3s;
}

input:focus,
textarea:focus {
    box-shadow: 0 0 0 2px #8FA2A1;
    transform: scale(1.01);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

button {
    margin-top: 30px;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    background-color: #2b2b2b;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    align-self: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button:hover {
    background-color: #6d8786;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.section.active .animate-form {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s, transform 0.5s;
}

.section .content {
    max-width: 600px; /* Reduce the max-width to fit smaller screens */
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s, transform 0.5s;
    margin-left: 40px; /* Adjust the margin-left */
    margin-right: 40px; /* Adjust the margin-right */
}

.section.active .content {
    opacity: 1;
    transform: translateY(0);
}

.section.active .home-content {
    opacity: 1;
    transform: translateY(0);
}

.section.active .cotent-serv {
    opacity: 1;
    transform: translateY(0);
}

.animate-heading {
    font-size: 40px;
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 0.5s, transform 0.5s;
    margin-bottom: 30px; /* Add desired margin value */
}

.animate-text,
.animate-list,
.animate-form {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s, transform 0.5s;
}

.animate-text {
    transition-delay: 0.2s;
}

.animate-list {
    transition-delay: 0.4s;
}

.animate-form {
    transition-delay: 0.6s;
    transform: scale(0.8);
}

.section.active .animate-heading,
.section.active .animate-text,
.section.active .animate-list,
.section.active .animate-form {
    opacity: 1;
    transform: translateY(0);
}

.section.active .animate-form {
    transform: scale(1);
}

/* ... (previous CSS code remains the same) ... */

@media screen and (max-width: 1200px) {
    .services-row {
        flex-direction: column;
    }

    .overlay-column,
    .type-column {
        padding: 20px 0;
    }
}

@media screen and (max-width: 992px) {
    nav ul li {
        margin: 0 30px;
    }

    .logo-container,
    .typewriter-container {
        padding: 0 30px;
    }

    .typewriter-text {
        font-size: 16px;
    }

    .about-info p {
        font-size: 22px;
    }

    .services-box {
        padding: 15px;
    }

    .overlay {
        max-width: 120px;
    }

    .typewriter.services-text {
        font-size: 22px;
    }
}

@media screen and (max-width: 768px) {
    nav ul li {
        margin: 0 20px;
    }

    .logo-container,
    .typewriter-container {
        padding: 0 20px;
    }

    .logo {
        max-width: 100%;
    }

    .typewriter {
        max-width: 100%;
    }

    .typewriter-text {
        font-size: 14px;
    }

    .about-info p {
        font-size: 20px;
    }

    .services-box {
        padding: 10px;
    }

    .overlay {
        max-width: 100px;
    }

    .typewriter.services-text {
        font-size: 20px;
    }

    .typewriter-text-services {
        font-size: 18px;
    }

    .section#contact .content {
        width: 90%;
        padding: 30px;
    }

    input,
    textarea {
        font-size: 16px;
    }

    button {
        font-size: 20px;
        padding: 16px 32px;
    }
}

@media screen and (max-width: 576px) {
    nav ul li {
        margin: 0 10px;
    }

    nav ul li a {
        font-size: 18px;
    }

    .logo-container,
    .typewriter-container {
        padding: 0 10px;
    }

    .logo {
        max-width: 80%;
    }

    .typewriter-text {
        font-size: 10px;
    }

    .animate-heading {
        font-size: 30px;
    }

    .about-info p {
        font-size: 18px;
        text-align: center;
    }

    .overlay {
        max-width: 80px;
    }

    .typewriter.services-text {
        font-size: 18px;
    }

    .typewriter-text-services {
        font-size: 16px;
    }

    .section#contact .content {
        padding: 20px;
    }

    input,
    textarea {
        font-size: 14px;
    }

    button {
        font-size: 18px;
        padding: 14px 28px;
    }
}

@media screen and (max-width: 480px) {
    .logo-container {
        padding: 0 10px;
    }

    .logo {
        max-width: 70%;
    }

    .typewriter-container {
        padding: 0 10px;
    }

    .typewriter {
        padding: 10px;
        border-radius: 8px;
    }

    .prompt {
        margin-right: 10px;
        margin-left: 10px;
    }

    .typewriter-text {
        font-size: 9px;
    }

    .animate-heading {
        font-size: 24px;
    }

    .about-info p {
        font-size: 16px;
    }

    .overlay {
        max-width: 60px;
    }

    .typewriter.services-text {
        font-size: 16px;
    }

    .typewriter-text-services {
        font-size: 14px;
    }

    .section#contact .content {
        padding: 15px;
    }

    input,
    textarea {
        font-size: 12px;
    }

    button {
        font-size: 16px;
        padding: 12px 24px;
    }
}