/* =============================================
   RESET
   ============================================= */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
*, *:after, *:before {
    box-sizing: border-box;
}

/* =============================================
   VARIABLES
   ============================================= */
:root {
    --primary:       #0f1f3d;
    --primary-light: #162b57;
    --accent:        #2563eb;
    --accent-hover:  #1d4ed8;
    --text:          #1e293b;
    --text-muted:    #64748b;
    --bg:            #ffffff;
    --bg-alt:        #f8fafc;
    --border:        #e2e8f0;
    --white:         #ffffff;
    --max-width:     1200px;
    --header-h:      68px;
    --radius:        10px;
}

/* =============================================
   BASE
   ============================================= */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

img {
    display: block;
    max-width: 100%;
}

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

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 11px 26px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    transition: background 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}
.btn:hover {
    background: var(--accent-hover);
}
.btn-large {
    padding: 15px 36px;
    font-size: 17px;
}
.btn-white {
    background: var(--white);
    color: var(--accent);
}
.btn-white:hover {
    background: rgba(255, 255, 255, 0.9);
}
.btn-login {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    padding: 10px 22px;
}
.btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
}
.btn-signup {
    background: var(--accent);
    color: var(--white);
    padding: 10px 22px;
}
.btn-signup:hover {
    background: var(--accent-hover);
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--primary);
    height: var(--header-h);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
    width: 100%;
    position: relative;
}

.logo {
    font-size: 21px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.3px;
    flex-shrink: 0;
    text-decoration: none;
}

/* Desktop nav menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    list-style: none;
}

.nav-menu li a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
    display: block;
}
.nav-menu li a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.nav-cta-item {
    display: none; /* shown only in mobile menu */
}

.desktop-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Hamburger button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.28s ease, opacity 0.28s ease;
}
.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   HERO
   ============================================= */
.hero {
    background: url("../images/banner.jpg") no-repeat 0 0;
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 80px 0 88px;
    text-align: center;
    position: relative;

    &:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 0;
    }
}
.hero-content {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-size: clamp(28px, 4.5vw, 50px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 22px;
    color: var(--white);
}
.hero p {
    font-size: clamp(15px, 2vw, 19px);
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.75;
    margin-bottom: 36px;
}

/* =============================================
   GALLERY
   ============================================= */
.gallery {
    background: var(--bg-alt);
    padding: 40px 0;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
}
.gallery-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}

/* =============================================
   SECTION BASE STYLES
   ============================================= */
section {
    padding: 64px 0;
}

section h2 {
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 14px;
}

section h3 {
    font-size: clamp(16px, 2vw, 21px);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 12px;
}

section p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 12px;
}
section p:last-child {
    margin-bottom: 0;
}

section ul {
    margin: 8px 0 14px;
}
section ul li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    padding-left: 22px;
    position: relative;
    margin-bottom: 5px;
}
section ul li::before {
    content: '›';
    position: absolute;
    left: 6px;
    color: var(--accent);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.7;
}

.section-intro {
    font-size: 17px !important;
    color: var(--text-muted) !important;
    margin-bottom: 36px !important;
}

/* =============================================
   INTRO
   ============================================= */
.intro {
    background: var(--bg);
}
.intro .container {
    max-width: 820px;
}
.intro p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
}

/* =============================================
   SERVICES
   ============================================= */
.services {
    background: var(--bg-alt);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 8px;
}
.service-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 28px 30px;
    border: 1px solid var(--border);
}
.service-card h3 {
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
    margin-bottom: 16px;
}

/* =============================================
   WHY DIFFERENT
   ============================================= */
.why-different {
    background: var(--bg);
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 28px;
}
.why-card {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 28px;
    border-top: 4px solid var(--accent);
}

/* =============================================
   INDUSTRIES
   ============================================= */
.industries {
    background: var(--primary);
}
.industries h2 {
    color: var(--white);
}
.industries h3 {
    color: var(--white);
}
.industries p {
    color: rgba(255, 255, 255, 0.84);
}
.industries .section-intro {
    color: rgba(255, 255, 255, 0.65) !important;
}
.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 8px;
    margin-bottom: 32px;
}
.industry-card {
    background: rgba(255, 255, 255, 0.07);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.text-center {
    text-align: center;
    font-weight: 600;
    font-size: 17px !important;
    color: rgba(255, 255, 255, 0.88) !important;
}

/* =============================================
   PROCESS
   ============================================= */
.process {
    background: var(--bg-alt);
}
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 8px;
}
.step {
    display: flex;
    gap: 28px;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 28px 30px;
    border: 1px solid var(--border);
    align-items: flex-start;
}
.step-number {
    font-size: 44px;
    font-weight: 900;
    color: var(--accent);
    opacity: 0.22;
    flex-shrink: 0;
    line-height: 1;
    width: 56px;
    text-align: center;
}
.step-content {
    flex: 1;
}

/* =============================================
   TECHNOLOGY
   ============================================= */
.technology {
    background: var(--bg);
}
.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 28px 0 24px;
}
.tech-item {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 18px;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary);
    text-align: center;
    line-height: 1.4;
}

/* =============================================
   CASE STUDIES
   ============================================= */
.case-studies {
    background: var(--primary-light, #162b57);
}
.case-studies h2 {
    color: var(--white);
}
.case-studies p {
    color: rgba(255, 255, 255, 0.84);
}
.case-studies .section-intro {
    color: rgba(255, 255, 255, 0.65) !important;
}
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 22px 0 24px;
}
.result-item {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    padding: 20px;
    font-weight: 600;
    font-size: 14px;
    color: var(--white);
    text-align: center;
    line-height: 1.5;
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
    background: linear-gradient(135deg, var(--accent) 0%, #1d4ed8 100%);
    text-align: center;
}
.cta-section h2 {
    color: var(--white);
    font-size: clamp(24px, 3.5vw, 42px);
}
.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: 10px;
}
.cta-section ul {
    display: inline-block;
    text-align: left;
    margin: 14px auto 20px;
}
.cta-section ul li {
    color: rgba(255, 255, 255, 0.88);
}
.cta-section ul li::before {
    color: rgba(255, 255, 255, 0.65);
}
.cta-section .btn-white {
    margin-top: 10px;
}

/* =============================================
   GEOGRAPHY
   ============================================= */
.geography {
    background: var(--bg-alt);
}
.cities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 24px;
}
.city {
    background: var(--primary);
    color: var(--white);
    border-radius: 6px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 15px;
}

/* =============================================
   FUTURE
   ============================================= */
.future {
    background: var(--bg);
}

/* =============================================
   FAQ
   ============================================= */
.faq {
    background: var(--bg-alt);
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 28px;
}
.faq-item {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 24px 28px;
    border: 1px solid var(--border);
}
.faq-item h3 {
    margin-bottom: 10px;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: var(--primary);
    padding: 52px 0 28px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.footer-brand .logo {
    display: block;
    margin-bottom: 10px;
    font-size: 20px;
}
.footer-brand p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
    margin: 0;
}
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    align-items: center;
}
.footer-nav a {
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}
.footer-nav a:hover {
    color: var(--white);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 22px;
    text-align: center;
}
.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
}

/* =============================================
   RESPONSIVE — HAMBURGER FROM 1024px
   ============================================= */
@media (max-width: 1024px) {

    /* Show hamburger, hide desktop CTA */
    .hamburger {
        display: flex;
    }
    .desktop-cta {
        display: none;
    }

    /* Mobile nav menu */
    .nav-menu {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: -24px;
        right: -24px;
        background: var(--primary);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0 16px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
        z-index: 100;
        margin-left: 0;
    }
    .nav-menu.open {
        display: flex;
    }
    .nav-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }
    .nav-menu li:last-child {
        border-bottom: none;
    }
    .nav-menu li a {
        padding: 14px 24px;
        font-size: 15px;
        border-radius: 0;
    }
    .nav-menu li a:hover {
        background: rgba(255, 255, 255, 0.06);
    }
    .nav-cta-item {
        display: block;
        padding: 10px 24px;
        border-bottom: none !important;
    }
    .nav-cta-item .btn {
        display: block;
        width: 100%;
        text-align: center;
    }

    /* Layout adjustments */
    .services-grid {
        grid-template-columns: 1fr;
    }
    .why-grid {
        grid-template-columns: 1fr;
    }
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 48px 0;
    }
    .hero {
        padding: 60px 0 68px;
    }
    .industries-grid {
        grid-template-columns: 1fr;
    }
    .results-grid {
        grid-template-columns: 1fr;
    }
    .step {
        flex-direction: column;
        gap: 12px;
    }
    .step-number {
        width: auto;
        font-size: 34px;
    }
    .footer-content {
        flex-direction: column;
        gap: 24px;
    }
    .footer-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .hero h1 {
        font-size: 26px;
    }
}
