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

html {
    scroll-behavior: smooth;
}

/* DESIGN SYSTEM */
:root {
    --bg-main: #f7f9fc;
    --bg-subtle: #edf1f5;
    --white: #FFFFFF;
    --primary: #0A66FF;
    --text-main: #1A1A1A;
    --text-secondary: #555555;
    --border: #E5E7EB;
}

/* container */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* BODY */
body {
    font-family: 'Helvetica Neue', 'Trebuchet MS', 'Georgia', serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

/* FLEX UTILITIES */
.d-flex { display: flex; }
.flex-dir-column { flex-direction: column; }
.flex-dir-row { flex-direction: row; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.justify-space-between { justify-content: space-between; }

.gap-1 { gap: 0.75rem; }
.gap-2 { gap: 1.5rem; }
.gap-3 { gap: 2rem; }

/* LAYOUT */
section, footer {
    padding: 4rem 1.5rem;
    margin-top: 2rem;
}

/* HEADER */
header {
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

/* LOGO */
#logo-container {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
}

#logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Header --- */
header {
  background: var(--white);
  border-bottom: 1px solid #e2e8f0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  position: relative;
}

/* --- Logo --- */
.logo img {
  width: 50px;
  border-radius: 8px;
}

/* --- Nav Toggle (Hamburger) --- */
.nav-toggle {
  display: inline-flex;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  cursor: pointer;
  z-index: 50;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  content: "";
  display: block;
  width: 24px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  position: relative;
}

.hamburger::before {
  transform: translateY(-8px);
  position: absolute;
}

.hamburger::after {
  transform: translateY(8px);
  position: absolute;
}

/* --- Nav Links (Mobile) --- */
.nav-list {
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--bg-main);
  border-top: 1px solid #e2e8f0;
  flex-direction: column;
  list-style: none;
  padding: 1rem 1.5rem;
  display: none;
  gap: 1rem;
  z-index: 40;
}

.nav-list li a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0;
  display: block;
  transition: 0.3s;
  border-radius: 6px;
}

.nav-list li a:hover {
  background: rgba(10,102,255,0.1);
}

/* CTA link styling */
.nav-list li a.nav-cta {
  background: var(--primary);
  color: white;
  text-align: center;
}

/* --- Hamburger Animation --- */
.nav-toggle[aria-expanded="true"] .hamburger {
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(90deg) translateX(0);
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
  opacity: 0;
}

/* HERO */
#hero {
    /* background: var(--bg-main); */
    gap: 2rem;
    display: flex;
    flex-direction: column;
}

.hero-left h1 {
    font-size: 2rem;
    line-height: 1.3;
}

.hero-left p {
    color: var(--text-secondary);
    max-width: 500px;
}

.hero-right img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

/* BUTTON (PREMIUM) */
.btn {
    display: inline-block;
    background: var(--text-main);
    color: #fff;
    padding: 0.75rem 1.3rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    background: #000;
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 5px 10px rgba(0,0,0,0.06);
}

/* SERVICES SECTION */
#services {
    background: var(--bg-subtle);
}

/* CARDS (PREMIUM) */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* glow layer */
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(10, 102, 255, 0.05),
        transparent
    );
    opacity: 0;
    transition: opacity 0.35s ease;
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: rgba(10, 102, 255, 0.2);
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    margin-bottom: 0.5rem;
}

.card:hover h3 {
    color: var(--primary);
    transition: color 0.25s ease;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* SECTION HEADINGS */
h2 {
    margin-bottom: 0.8rem;
}

/* Footer Base */
footer {
  color: #012665;
  padding: 3rem 1.5rem;
  font-family: 'Segoe UI', sans-serif;
}

.footer-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Brand Section */
.footer-brand img {
  width: 60px;
  margin-bottom: 0.5rem;
}
.footer-brand p {
  max-width: 300px;
  line-height: 1.6;
  font-size: 0.95rem;
  color: #0f1a40;
}

/* Quick Links & Contact */
.footer-links, .footer-contact, .footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links h4, .footer-contact h4, .footer-newsletter h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: #0A66FF;
}

.footer-links ul, .footer-contact ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a, .footer-contact a {
  text-decoration: none;
  color: #012665;
  transition: 0.3s;
}
.footer-links a:hover, .footer-contact a:hover {
  color: #0A66FF;
}

/* Newsletter Form */
.footer-newsletter form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-newsletter input,
.footer-newsletter textarea {
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-family: inherit;
}

.footer-newsletter input:focus,
.footer-newsletter textarea:focus {
  border-color: #0A66FF;
  outline: none;
  box-shadow: 0 0 0 2px rgba(10,102,255,0.2);
}

.footer-newsletter button {
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 6px;
  background-color: #0A66FF;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}
.footer-newsletter button:hover {
  background-color: #084ecf;
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #555;
  border-top: 1px solid #e0e0e0;
  padding-top: 1rem;
}


/* DESKTOP */
@media (min-width: 768px) {

    /* --- Desktop Overrides --- */
  .nav-toggle {
    display: none;
    }

  .nav-list {
    position: static;
    display: flex !important;
    flex-direction: row;
    gap: 1.5rem;
    background: transparent;
    border: none;
    padding: 0;
  }

  .nav-list li a {
    padding: 0.4rem 0.8rem;
  }

  .nav-list li a.nav-cta {
    padding: 0.45rem 1rem;
    border-radius: 8px;
  }

    section, footer {
        padding: 4rem 6rem;
    }

    #hero {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        /* background: var(--white); */
    }

    .hero-left {
        width: 50%;
    }

    .hero-right {
        width: 40%;
    }

    .hero-right img {
        max-width: 100%;
        height: auto;
    }

    .card-container {
        flex-direction: row;
        gap: 1.5rem;
    }

    .card {
        width: 33%;
    }

    .contact {
        flex-direction: row;
        justify-content: space-between;
        margin-top: 3rem;
    }

    /* footer layout */
     .footer-wrapper {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-brand {
    flex: 1;
  }

  .footer-links, .footer-contact {
    flex: 1;
  }

  .footer-newsletter {
    flex: 1;
    max-width: 300px;
  }
}