/* ===== Design Tokens ===== */
:root {
    --blue: #0057b8;
    --blue-dark: #003d82;
    --blue-light: #1a7fe8;
    --teal: #00b4d8;
    --accent: #f46b1b;
    --accent-dark: #d45a0d;
    --dark: #0f172a;
    --dark-mid: #1e293b;
    --gray-700: #374151;
    --gray-500: #6b7280;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 2px 8px rgba(0,0,0,.08);
    --shadow-md: 0 6px 20px rgba(0,0,0,.12);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.16);
    --transition: .25s ease;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--gray-700); line-height: 1.65; background: var(--white); }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ===== Layout ===== */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 24px; }
.bg-light { background: var(--gray-100); }

/* ===== Section Labels ===== */
.section-label {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--blue);
    background: rgba(0,87,184,.08);
    padding: .35rem .9rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 3rem;
}

/* ===== Navbar ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--gray-200);
    padding: .75rem 0;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.logo-text {
    font-size: 1.15rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--blue), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-link {
    font-size: .92rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: color var(--transition);
    padding: .25rem 0;
    border-bottom: 2px solid transparent;
}
.nav-link:hover,
.nav-link.active { color: var(--blue); border-bottom-color: var(--blue); }
.cta-nav {
    background: var(--blue);
    color: var(--white) !important;
    padding: .45rem 1.1rem;
    border-radius: var(--radius-sm);
    border: none;
    transition: background var(--transition), transform var(--transition);
    -webkit-text-fill-color: var(--white) !important;
}
.cta-nav:hover { background: var(--blue-dark); transform: translateY(-1px); }
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
    border-radius: var(--radius-sm);
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all .3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 50%, var(--blue-light) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 48px 24px;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 60%, rgba(0,180,216,.25) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 30%, rgba(255,255,255,.1) 0%, transparent 50%);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .75;
    margin-bottom: 1.2rem;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}
.hero-sub {
    font-size: 1.1rem;
    opacity: .9;
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.75;
}
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: .5rem;
}
.hero-highlight {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 10px;
    padding: .65rem 1rem;
    flex: 1 1 180px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background var(--transition);
}
.hero-highlight:hover { background: rgba(255,255,255,.18); }
.hh-icon { font-size: 1.4rem; flex-shrink: 0; }
.hero-highlight strong {
    display: block;
    font-size: .88rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}
.hero-highlight span {
    display: block;
    font-size: .75rem;
    color: rgba(255,255,255,.7);
    margin-top: .15rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .7rem 1.6rem;
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-weight: 600;
    border: 2px solid transparent;
    transition: all var(--transition);
    cursor: pointer;
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,.5);
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-full { width: 100%; }

/* ===== Stats Bar ===== */
.stats-bar {
    background: var(--dark);
    color: var(--white);
    padding: 1.5rem 24px;
}
.stats-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .5rem 2.5rem;
    text-align: center;
}
.stat strong {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--teal);
    line-height: 1.1;
}
.stat span {
    font-size: .8rem;
    opacity: .7;
    margin-top: .2rem;
    white-space: nowrap;
}
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.15); }

/* ===== Why Us ===== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}
.why-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-top: 4px solid var(--blue);
    border-radius: 10px;
    padding: 2rem;
}
.why-card:nth-child(2) { border-top-color: var(--teal); }
.why-card:nth-child(3) { border-top-color: var(--accent); }
.why-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.why-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--dark); margin-bottom: .75rem; }
.why-card p { color: var(--gray-500); font-size: .95rem; line-height: 1.7; margin-bottom: 1rem; }
.why-list { list-style: none; padding: 0; margin: 0; }
.why-list li { font-size: .9rem; color: var(--gray-500); padding: .3rem 0 .3rem 1.4rem; position: relative; }
.why-list li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

/* ===== About ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.about-block h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}
.about-block p { color: var(--gray-500); line-height: 1.8; margin-bottom: 1rem; }
.mission-block {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
    color: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
}
.mission-block h3 { color: var(--white); }
.mission-block p { color: rgba(255,255,255,.85); margin-bottom: 0; }
.mission-icon { font-size: 2rem; margin-bottom: 1rem; }

/* ===== Services ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.2rem;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--gray-200);
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--blue);
}
.service-card.featured { border-color: var(--blue); }
.service-icon { font-size: 2rem; margin-bottom: 1rem; }
.service-desc { font-size: .88rem; color: var(--gray-500); line-height: 1.65; margin-bottom: 1rem; }
.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.2rem;
}
.service-card li {
    padding: .45rem 0 .45rem 1.4rem;
    color: var(--gray-500);
    font-size: .93rem;
    position: relative;
    border-bottom: 1px solid var(--gray-100);
}
.service-card li:last-child { border-bottom: none; }
.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--blue);
    font-weight: 700;
}

/* ===== Skills ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.skill-group h4 {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--blue);
    margin-bottom: .9rem;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
    font-size: .82rem;
    font-weight: 500;
    padding: .35rem .85rem;
    border-radius: 20px;
    background: var(--white);
    color: var(--dark);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.tag:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ===== Certifications ===== */
.certs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid var(--gray-200);
    padding-top: 2.5rem;
}
.cert-badge {
    display: flex;
    align-items: center;
    gap: .9rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem 1.6rem;
    box-shadow: var(--shadow);
    flex: 1 1 200px;
}
.cert-icon { font-size: 1.8rem; }
.cert-badge strong { display: block; font-size: .95rem; color: var(--dark); }
.cert-badge span { font-size: .8rem; color: var(--gray-500); }

/* ===== Team ===== */
.team-intro { font-size: 1.05rem; color: var(--gray-500); line-height: 1.75; max-width: 680px; margin: -1.5rem 0 2.5rem; }
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}
.team-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.2rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: box-shadow var(--transition), transform var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--teal));
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}
.team-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: .4rem; }
.team-role { font-size: .9rem; font-weight: 600; color: var(--blue); margin-bottom: .3rem; }
.team-exp { font-size: .85rem; color: var(--teal); font-weight: 600; margin-bottom: 1rem; }
.team-bio { font-size: .88rem; color: var(--gray-500); line-height: 1.7; margin-bottom: 1rem; }
.cert-chips { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.cert-chip {
    font-size: .75rem;
    font-weight: 700;
    padding: .25rem .7rem;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--blue), var(--teal));
    color: var(--white);
}

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
}
.contact-intro {
    color: var(--gray-500);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}
.info-list { display: flex; flex-direction: column; gap: 1.5rem; }
.info-row { display: flex; align-items: flex-start; gap: 1rem; }
.info-icon { font-size: 1.3rem; margin-top: .1rem; flex-shrink: 0; }
.info-label { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--blue); margin-bottom: .2rem; }
.info-row a, .info-row span { font-size: .95rem; color: var(--gray-700); }
.info-row a:hover { color: var(--blue); text-decoration: underline; }

/* Contact Form */
.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { margin-bottom: 1.2rem; }
.form-field label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: .4rem;
    letter-spacing: .02em;
}
.form-field input,
.form-field textarea {
    width: 100%;
    padding: .7rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: .95rem;
    color: var(--dark);
    background: var(--gray-100);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--blue);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0,87,184,.1);
}
.form-field textarea { resize: vertical; }
.form-note { font-size: .85rem; color: var(--gray-500); text-align: center; margin-top: .75rem; min-height: 1.2em; }
.form-note.success { color: #16a34a; }
.form-note.error { color: #dc2626; }

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,.7);
    padding: 3rem 24px;
    text-align: center;
}
.footer-brand {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: .5rem;
}
.footer-tag { font-size: .85rem; margin-bottom: 1.5rem; }
.footer-copy { font-size: .8rem; opacity: .5; }

/* ===== Chat Widget ===== */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 340px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 300;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}
.chat-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .9rem 1.1rem;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-light));
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: .95rem;
    font-weight: 600;
    text-align: left;
}
.chat-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #4ade80;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(74,222,128,.3);
}
.chat-title { flex: 1; }
.chat-toggle { font-size: 1.3rem; line-height: 1; margin-left: auto; }
.chat-body { display: flex; flex-direction: column; max-height: 420px; }
.chat-widget.collapsed .chat-body { display: none; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; max-height: 220px; }
.message { padding: .7rem .9rem; border-radius: 8px; font-size: .88rem; line-height: 1.5; }
.message p { margin: 0; }
.bot-message { background: var(--gray-100); color: var(--dark); align-self: flex-start; max-width: 90%; }
.user-message { background: var(--blue); color: var(--white); align-self: flex-end; max-width: 85%; }
@keyframes slideUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.message { animation: slideUp .25s ease; }
.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    padding: .8rem 1rem 1rem;
    border-top: 1px solid var(--gray-200);
}
.inquiry-form input,
.inquiry-form textarea {
    width: 100%;
    padding: .55rem .8rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: .88rem;
    background: var(--gray-100);
    transition: border-color var(--transition), background var(--transition);
    resize: vertical;
}
.inquiry-form input:focus,
.inquiry-form textarea:focus {
    outline: none;
    border-color: var(--blue);
    background: var(--white);
}
.btn-send {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: .6rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: .9rem;
    transition: background var(--transition);
}
.btn-send:hover { background: var(--accent-dark); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .contact-form-wrap { padding: 1.8rem; }
}

@media (max-width: 768px) {
    .section { padding: 64px 20px; }
    .hamburger { display: flex; }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 24px 1.5rem;
        gap: .5rem;
        border-top: 1px solid var(--gray-200);
        box-shadow: var(--shadow-md);
        display: none;
    }
    .nav-links.open { display: flex; }
    .nav-link { padding: .5rem 0; font-size: 1rem; }
    .cta-nav { margin-top: .25rem; }
    .stat { padding: .5rem 1.2rem; }
    .stat-divider { display: none; }
    .stats-inner { gap: 1rem; }
    .hero { padding: 40px 20px; }
    .form-row { grid-template-columns: 1fr; }
    .chat-widget { width: calc(100% - 32px); right: 16px; left: 16px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .logo-text { font-size: 1rem; }
    .section-title { font-size: 1.6rem; }
    .services-grid, .team-grid { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: 1fr 1fr; }
}
