/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f8fafc;
    color: #333;
    line-height: 1.7;
}

/* Header */
header {
    background: #455173;
    color: #ffffff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* keep header visible on scroll */
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    /* subtle shadow to separate from content */
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

header h1 {
    margin: 0;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

/* Layout Container (for About page) */
.container {
    max-width: 1000px;
    margin: auto;
    padding: 40px 20px;
}

/* Headings */
h2 {
    color: #1e3a8a;
    margin-top: 40px;
    margin-bottom: 15px;
}

/* Lists */
ul {
    padding-left: 20px;
    margin-top: 10px;
}

ul li {
    margin-bottom: 10px;
}

/* Highlight box */
.highlight-box {
    background: #e0ecff;
    padding: 20px;
    border-left: 5px solid #2563eb;
    margin-top: 30px;
    border-radius: 6px;
}

/* Hero Section (Home page) */
.hero {
    background: linear-gradient(to right, #38428338, #2563eb);
    color: white;
    padding: 160px 20px;
    text-align: center;   
}

.hero h2 {
    font-size: 26px;
    margin-bottom: 10px;
}

.hero p {
        font-size: 15px;
    }

/* Button */
.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: #fff;
    color: #2563eb;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.btn:hover {
    background: #e0e7ff;
}

/* Sections (Home page) */
section {
    padding: 10px 20px;
    max-width: 1351px;
    margin: auto;
}

section h2 {
    margin-bottom: 15px;
    color: #1e3a8a;
}

/* Services */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    background: #fff;
}

/* Footer */
footer {
    background: #0f172a;
    color: #ffffff;
    text-align: center;
    padding: 30px 10px;
    margin-top: 50px;
}

footer a {
    color: #93c5fd;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Desktop Menu */
nav {
    display: flex;
    gap: 20px;
}

/* Hamburger icon */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
}


/* Mobile View */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        /* position menu directly below the header regardless of header height */
        top: 100%;
        right: 0;
        width: 220px;
        background: #222;
        padding: 15px;
        /* ensure menu appears above header/content */
        z-index: 1001;
    }

        nav.active {
            display: flex;
        }

        nav a {
            color: #fff;
            padding: 10px 0;
            text-decoration: none;
            border-bottom: 1px solid #444;
        }
}

.brand h1 {
    margin: 0;
}

.brand p {
    margin: 0;
    font-size: 13px;
    color: #cbd5f5;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo-link h1 {
    margin: 0;
}

.hero {
    height: 90vh;
    background: url("../Images/banner2.png") no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

/* Dark overlay for better text visibility */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 40px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 20px;
}

.btn {
    padding: 12px 25px;
    background: #00bcd4;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

/* Desktop Menu */
#nav-menu {
  display: flex;
  gap: 20px;
}

/* Hamburger icon hidden on desktop */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #fff;
}

/* Mobile View */
@media (max-width: 768px) {
  .menu-toggle {
    display: block; /* show hamburger */
    /* ensure toggle sits above the menu and header for visibility/clicks */
    z-index: 1002;
  }

  #nav-menu {
    display: none; /* hide menu until toggle */
    flex-direction: column;
    position: absolute;
    /* position relative to header: show immediately below it */
    top: 100%;
    right: 0;
    width: 220px;
    background: #222;
    padding: 15px;
    z-index: 1001;
  }

  #nav-menu.active {
    display: flex; /* show when toggled */
  }

  #nav-menu a {
    color: #fff;
    padding: 10px 0;
    text-decoration: none;
    border-bottom: 1px solid #444;
  }
}
