/* RESET & BASE */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #111;
    background: #f9fafc;
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    margin: 0;
}

p {
    margin: 10px 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* NAVBAR */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 50px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .logo img {
    height: 40px;
    cursor: pointer;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
}

nav ul li {
    cursor: pointer;
    position: relative;
}

nav ul li::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: #e60000;
    transition: width 0.3s ease;
}

nav ul li:hover::after {
    width: 100%;
}

.nav-btn {
    background: #e60000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #0f4c91;
    transform: scale(1.05);
}

/* HAMBURGER MENU */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #111;
    transition: 0.3s;
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 20px;
        box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
    }

    nav ul.show {
        display: flex;
    }

    .hamburger {
        display: flex;
    }
}

/* ABOUT SECTION */
.about-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    padding: 80px 10%;
    background: #fff;
    flex-wrap: wrap;
}

.about-text {
    flex: 1 1 500px;
}

.about-text h1 {
    color: #e60000;
    margin-bottom: 10px;
    font-size: 32px;
}

.about-text h2 {
    font-size: 24px;
    color: #0f172a;
    margin-bottom: 20px;
}

.about-text p {
    color: #333;
    margin-bottom: 15px;
}

.about-image {
    flex: 1 1 400px;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.03);
}

/* MISSION, VISION, WHAT WE DO */
.info-section {
    background: #f0f4f8;
    padding: 60px 10%;
    text-align: center;
}

.info-section h2 {
    color: #e60000;
    margin-bottom: 25px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.info-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.info-card:hover {
    transform: translateY(-8px);
    border: 2px solid #e60000;
}

/* WHY AUTOMAT AI */
.why-section {
    padding: 60px 10%;
    text-align: center;
}

.why-section h2 {
    color: #e60000;
    margin-bottom: 25px;
}

.why-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.why-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
}

.why-list li::before {
    content: "✔";
    color: #e60000;
    position: absolute;
    left: 0;
}

/* VALUE SECTION */
.value {
    background: #fff;
    text-align: center;
    padding: 80px 60px;
}

.value h2 {
    font-size: 2.2rem;
    color: #e60000;
    margin-bottom: 40px;
}

.value h3 {
    font-size: 1.8rem;
    margin-bottom: 40px;
    font-weight: normal;
}

.value h4 {
    color: #203e4d;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: left;
}

.value-card {
    background: #f8faff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #ddd;
    transition: transform 0.3s ease;
}

.value-card:hover {
    border-color: #e60000;
    transform: translateY(-6px);
    box-shadow: 0 6px 18px rgba(237, 182, 182, 0.1);
}

.value-card img {
    width: 40px;
    margin-bottom: 15px;
}

.value-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.value-card p {
    font-size: 0.95rem;
    color: #444;
}

/* FOOTER */
/* footer {
            background-color: #121111;
            color: #cbd5e1;
            padding: 36px 24px;
            text-align: center;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 18px;
            max-width: 1200px;
            margin: 0 auto;
        }

        footer a,
        footer h4,
        footer p {
            color: #cbd5e1;
            display: block;
            margin: 6px 0;
        }

        footer a:hover {
            color: #f04b4b;
        }

        hr {
            border: none;
            border-top: 1px solid rgba(255, 255, 255, 0.3);
            margin-top: 20px;
        } */
/* ==============================
       FOOTER
    ============================== */
footer {
    background-color: #121111;
    color: #cbd5e1;
    padding: 36px 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
    max-width: 1200px;
    margin: 0 auto;
}

footer a,
footer h4,
footer p {
    text-align: left;
    color: #cbd5e1;
    display: block;
    margin: 6px 0;
}

footer a {
    text-decoration: none;
}

footer h4 {
    margin-bottom: 18px;
    /* creates space below the heading */
}

footer a:hover {
    color: #f04b4b;
}

hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 20px;
}

@media (max-width: 600px) {
    footer {
        text-align: center;
    }

    footer a,
    footer h4,
    footer p {
        text-align: center;
    }
}

hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 20px;
    /* space above the line */

    /* translucent white */
}



@media (max-width: 768px) {
    .about-section {
        flex-direction: column-reverse;
        text-align: center;
    }

    .about-text {
        padding-top: 20px;
    }
}


/* mobile */

@media (max-width: 900px) {
    nav {
        padding: 10px 20px;
    }

    nav .logo img {
        height: 32px;
    }

    nav ul {
        gap: 15px;
    }

    .nav-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
    }

    .hamburger {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
        background: #fff;
        position: absolute;
        top: 65px;
        left: 0;
        width: 100%;
        padding: 20px 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        gap: 20px;
    }

    nav ul li {
        font-size: 16px;
    }

    nav ul.show {
        display: flex;
    }

    .nav-btn {
        width: 80%;
    }
}


/* @media (max-width: 600px) {
    footer {
        padding: 30px 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    footer h4 {
        margin-top: 20px;
    }

    footer a {
        font-size: 14px;
    }
} */


.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* --------------------------------------- */


/* Basic nav layout */
nav {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 16px;
    position: sticky;
}

.logo img {
    height: 40px;
}

/* Nav list */
.nav-list {
    display: flex;
    gap: 32px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Container relative for proper dropdown placement */
.dropdown {
  position: relative;
}

/* Button */
.dropbtn {
  padding: 10px 16px;
  display: inline-block;
  cursor: pointer;
  position: relative;
}

/* Dropdown content */
.dropdown-content {
  position: absolute; /* critical for accuracy */
  top: 100%;          /* directly under the button */
  left: 0;            /* align to left of parent */
  min-width: 200px;   /* adjust width as needed */
  margin-top: 6px;    /* small gap below button */
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  padding: 4px 0;
  display: none;
  z-index: 1000;
}

/* Dropdown links */
.dropdown-content li a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: #111;
  white-space: nowrap; /* prevents text wrap */
}

/* Hover effect */
.dropdown-content li a:hover {
  background: #f2f2f2;
}

/* Show on hover desktop */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-content {
    display: block;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .dropdown-content {
    position: static; /* part of flow */
    padding-left: 12px;
    display: none;
  }

  .dropdown.active .dropdown-content {
    display: block;
  }

  .dropbtn::after { content: "▾"; float: right; }
}


/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 3px;
    margin: 4px 0;
    background: #000;
    border-radius: 2px;
}

/* Mobile styles */
@media (max-width:768px) {
    .hamburger {
        display: block;
        margin-left: auto;
    }

    .nav-list {
        position: absolute;
        top: 64px;
        /* below nav */
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: #fff;
        padding: 10px 8px;
        display: none;
        z-index: 1500;
        border-top: 1px solid #eaeaea;
    }

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

    /* Make each nav item full-width and tappable */
    .nav-list>li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-list>li>a,
    .nav-list>li>button,
    .dropbtn {
        display: block;
        width: 100%;
        padding: 12px 16px;
        box-sizing: border-box;
        text-align: left;
    }

    /* Mobile dropdown content becomes part of flow */
    .dropdown-content {
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding-left: 8px;
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .nav-cta {
        padding: 12px 16px;
    }
}