* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Tahoma, sans-serif;
}

html,
body {
    height: 470%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
    background-color: rgb(255, 255, 255);
}

h1 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 80px;
    text-align: center;
    color: #000000c9;
    margin-top: 10px;
    padding-bottom: 10px;

}

/* Hero Section */
.hero {
    width: 100%;
    height: 100vh;
    background-image: linear-gradient(rgba(12, 3, 51, 0.3), rgba(12, 3, 51, 0.3));
    position: sticky;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 100px;
    font-family: Verdana, sans-serif;

}

/* Hero Content */
.content {
    text-align: center;
}

.content h1 {
    font-size: 150px;
    color: ghostwhite;
    font-weight: 600;
    transition: 0.3s;
}

.content h1:hover {
    -webkit-text-stroke: 2px rgb(255, 255, 255);
    color: transparent;
}

.content a {
    text-decoration: none;
    display: inline-block;
    color: rgb(196, 196, 198);
    font-family: 'Courier New', Courier, monospace;
    font-size: 35px;
    border: 2px solid ghostwhite;
    padding: 15px 60px;
    border-radius: 50px;
    margin-top: 20px;
    transition: 0.3s ease-in-out;
}

.content a:hover {
    color: rgb(125, 2, 156);
}


/* Background Video */
.back-video {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: -1;
}

@media (min-aspect-ratio: 16/9) {
    .back-video {
        width: 100%;
        height: auto;
    }
}

@media (max-aspect-ratio: 16/9) {
    .back-video {
        width: auto;
        height: 100%;
    }
}

/* NAVIGATION */

nav {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    padding: 20px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav .logo {
    width: 100px;
    cursor: pointer;
    height: auto;
    transition: 0.4s ease-in-out;
}

.logo:hover {
    opacity: 0.5;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    position: relative;
    padding: 15px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    /* Increased contrast */
    font-size: 17px;
    transition: 0.4s ease-in-out;
}

nav ul li a:hover {
    opacity: 0.7;
}

/* Dropdown Menu Animation */
nav ul li .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    background: rgba(9, 4, 32, 0.633);
    top: 120%;
    left: -20px;
    width: 200px;
    border-radius: 5px;
    transform: translate(-20px, -10px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

nav ul li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(0, 0);
}

nav ul li .dropdown-menu li {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

nav ul li .dropdown-menu li:last-child {
    border-bottom: none;
}

nav ul li .dropdown-menu li a {
    color: white;
    display: block;
}

nav ul li .dropdown-menu li:hover {
    background: rgba(255, 255, 255, 0.2);
}

/*ABOUT US*/

.about-us {
    font-size: 55px;
    position: relative;
    background: url('./assets/office_with_furniture.png') center/cover no-repeat;
    color: #eaeaeae7;
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
}

.about-us .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(46, 44, 44, 0.597);
    /* dark overlay */
    z-index: 2;
}

.about-us .content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.about-us h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-us p {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-us h2 {
        font-size: 2rem;
    }

    .about-us p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .about-us {
        padding: 60px 15px;
    }

    .about-us h2 {
        font-size: 1.75rem;
    }

    .about-us p {
        font-size: 0.95rem;
    }
}

/*SERVICE CARDS*/

.service-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background: none;
    border-radius: 10px;
}

.service-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-card h1 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #003366;
}

.service-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-card img {
    max-width: 100%;
    border-radius: 15px;
    height: auto;
    margin-top: 20px;
}

.card-details {
    font-size: 0.95rem;
    color: #444;
    margin-top: 15px;
}


@media (max-width: 1024px) {
    .service-card-container {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cards per row on medium screens */
    }
}

@media (max-width: 768px) {
    .service-card-container {
        grid-template-columns: 1fr;
        /* 1 card per row on small screens */
    }
}

/* Contact INFO*/

.contact-info-section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: auto;
}

.info-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.info-card {
    flex: 1;
    min-width: 250px;
    background-color: #ffff;
    border: 1px solid #a07c7c;
    padding: 30px 85px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}


.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
    color: rgb(192, 126, 4);
}

.info-card .icons {
    color: orange;
    font-size: 30px;
    margin-bottom: 10px;
    padding: 20px;
}

.info-card h3 {
    color: #333;
    font-size: 20px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.info-card p {
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}

.info-card:nth-child(1) {
    animation-delay: 0.2s;
}

.info-card:nth-child(2) {
    animation-delay: 0.4s;
}

.info-card:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .info-cards {
        flex-direction: column;
        gap: 30px;
    }
}


/* Map Styling */
.map-container {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}



/* Footer */
.footer {
    flex: 1;
    background: #3a3939d8;
    color: white;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

/* Newsletter Section (Right) */
.footer .newsletter {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
    /* Align newsletter to the left */
    width: 30%;
    /* Adjust width to your needs */
    order: 3;
    /* Moves the newsletter to the right */
}

.footer .newsletter input,
.footer .newsletter button {
    width: 90%;
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    border: none;
    max-width: 400px;
}

footer .newsletter button {
    background-color: orange;
}

/* Subscribe Button Hover Color */
.footer .newsletter button:hover {
    background-color: rgb(255, 132, 0);
}


/* Designer Section (Centered) */
.footer .designer {
    text-align: center;
    width: 40%;
    order: 2;
    /* Keeps designer in the center */
}

/* Social Icons (Left) */
.footer .social-icons {
    text-align: center;
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    width: 30%;
    order: 1;
    /* Moves social icons to the left */
}

.social-icons a {
    text-decoration: none;
    padding: 6px;
    color: white;
    margin: 6px;
    border-radius: 50%;
    font-size: 25px;
    display: flex;
}

.social-icons a:hover {
    color: #f58504ee;
}


.footer input,
.footer button {
    box-sizing: border-box;
}


/* Responsive Footer */
@media (max-width: 768px) {
    .footer div {
        margin-bottom: 20px;
        flex-direction: column;
        text-align: center;
    }

    .footer .social-icons,
    .footer .newsletter,
    .footer .designer {
        width: 100%;
        order: unset;
        align-items: center;
        justify-content: center;
        /* Resets order on small screens */
    }

    .footer .newsletter input,
    .footer .newsletter button {
        width: 90%;
    }
}