/* =====================================================
GLOBAL RESET
===================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, Arial, sans-serif;
    line-height: 1.6;
    background-color: #000;
    color: #e5e5e5;
}

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

/* =====================================================
TYPOGRAPHY
===================================================== */

h1, h2, h3 {
    color: #ffffff;
    margin-top: 0;
}

p {
    margin-bottom: 1rem;
}

/* Link styles */

.about-text a,
.contact-page a {
    color: #a9cfff;
    text-decoration: none;
    font-weight: 600;
}

.about-text a:hover,
.contact-page a:hover {
    text-decoration: underline;
    color: #6ea0ff;
}

/* =====================================================
LAYOUT
===================================================== */

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

section {
    padding: 2.5rem 0;
}

/* =====================================================
HEADER
===================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #050505;
    border-bottom: 1px solid #222;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
}


/* =====================================================
NAVIGATION
===================================================== */

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    flex-direction: column;
    background: #050505;
    position: absolute;
    top: 70px;
    right: 0;
    width: 220px;
    border: 1px solid #222;
}

.main-nav ul li {
    border-bottom: 1px solid #222;
}

.main-nav ul li:last-child {
    border-bottom: none;
}

.main-nav a {
    display: block;
    padding: 1rem;
    color: #e5e5e5;
    text-decoration: none;
}

.main-nav a:hover {
    background: #111;
}

.nav-cta {
    color: #2d8cff;
    font-weight: bold;
}

/* =====================================================
MOBILE NAV BUTTON
===================================================== */

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    display: block;
}

.main-nav.active ul {
    display: flex;
}

/* =====================================================
HERO
===================================================== */

.hero {
    background: #0a0a0a;
    text-align: center;
    padding: 0 !important;
    margin: 0;
    overflow: hidden;
}

.hero-banner {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}


.hero .container {
    padding: 2rem 1rem 3rem 1rem;
}

@media (min-width: 900px) {
  .hero-banner {
    width: 60vw;       /* 60% of viewport width */
    max-width: 900px;  /* optional cap so it doesn't get huge */
  }
}


/* =====================================================
ABOUT SECTION
===================================================== */

.about-preview {
    background: #111;
}

.about-text-centered {
    text-align: center;
    max-width: 800px;
    margin: auto;
}

.about-flex {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-text {
    flex: 2;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 250px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #333;
}

.about-caption {
    margin-top: 0.7rem;
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .about-flex {
        flex-direction: row;
        align-items: center;
    }
}

/* =====================================================
SERVICES
===================================================== */

.services {
    background: #0a0a0a;
}

.service-card {
    background: #111;
    border: 1px solid #333;
    padding: 1.4rem;
    border-radius: 8px;
    transition: transform 0.2s ease, border 0.2s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #2d8cff;
}

.service-card h4 {
    margin-top: 0;
}

/* Highlight card */

.service-card.highlight {
    background: #1a2a52;
    border: 2px solid #2d8cff;
    padding: 1.8rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(45,140,255,0.3);
    cursor: pointer;
}

.service-card.highlight:hover {
    background: #2450a3;
}

.expandable-header {
    font-weight: 700;
    font-size: 1.5rem;
    color: #b7d0ff;
    cursor: pointer;
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.service-card.highlight.expanded .collapsible-content {
    max-height: 2000px;
    padding-top: 1rem;
}

.expand-toggle-text {
    font-size: 0.85rem;
    color: #8db1ff;
    cursor: pointer;
}

.service-card.highlight.expanded .expand-toggle-text {
    display: none;
}

/* Services grid */

.other-services {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .other-services {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =====================================================
CERTIFICATIONS
===================================================== */

.certifications {
    background: #0a0a0a;
    padding: 2.5rem 0;
}

.certifications h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.cert-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.cert-item {
    background: #111;
    border: 1px solid #333;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s ease, border 0.2s ease;
}

.cert-item:hover {
    transform: translateY(-5px);
    border-color: #2d8cff;
}

.cert-item img {
    max-width: 120px;
    margin-bottom: 0.8rem;
    filter: grayscale(25%);
    opacity: 0.85;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.cert-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.cert-item h4 {
    margin: 0;
    font-size: 1rem;
    color: #e5e5e5;
}

@media (min-width: 600px) {
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .cert-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =====================================================
CTA
===================================================== */

.cta {
    background: #111;
    text-align: center;
}

/* =====================================================
BUTTONS
===================================================== */

.btn-primary {
    display: inline-block;
    background: #2d8cff;
    color: white;
    padding: 0.7rem 1.4rem;
    margin-top: 1rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.btn-primary:hover {
    background: #1a6ed8;
}

.btn-secondary {
    display: inline-block;
    background: #333;
    color: #eee;
    padding: 0.7rem 1.4rem;
    margin-top: 1rem;
    text-decoration: none;
    border-radius: 4px;
}

/* =====================================================
FOOTER
===================================================== */

.site-footer {
    background: #050505;
    border-top: 1px solid #222;
    text-align: center;
    padding: 1.5rem 0;
}

/* =====================================================
DESKTOP NAV
===================================================== */

@media (min-width: 768px) {

    .nav-toggle {
        display: none;
    }

    .main-nav ul {
        display: flex !important;
        position: static;
        flex-direction: row;
        width: auto;
        border: none;
        background: none;
    }

    .main-nav a {
        padding: 0 1rem;
    }

}

