/* ===== CSS Variables (Light/Dark) ===== */
:root {
    /* Dark theme (default) */
    --bg-primary: #0b0e14;
    --bg-secondary: #131a22;
    --bg-card: #1a232e;
    --bg-card-hover: #232f3d;
    --text-primary: #e8edf2;
    --text-secondary: #a0b3c9;
    --accent: #f58a1e;
    --accent-hover: #d97a1a;
    --accent-glow: rgba(245, 138, 30, 0.25);
    --border-color: #2a3747;
    --shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
    --radius: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light theme */
[data-theme="light"] {
    --bg-primary: #f5f7fa;
    --bg-secondary: #eef0f3;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f2f5;
    --text-primary: #1a2332;
    --text-secondary: #3a4a5a;
    --border-color: #c8d0d8;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
    display: block;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-hover); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 24px var(--accent-glow);
}
.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    box-shadow: none;
}
.btn-outline:hover {
    background: var(--accent);
    color: #fff;
}

/* ===== Navigation ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 14, 20, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(42, 55, 71, 0.4);
    transition: background 0.3s;
}
[data-theme="light"] nav {
    background: rgba(245, 247, 250, 0.9);
    border-bottom-color: rgba(200, 208, 216, 0.5);
}
nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo span { color: var(--accent); }
.logo i { color: var(--accent); font-size: 1.6rem; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
    padding: 10px 24px;
    font-size: 0.85rem;
    background: var(--accent);
    border-radius: 50px;
    color: #fff !important;
    font-weight: 600;
}
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-2px); }
.nav-cta::after { display: none !important; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 28px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 4px;
    transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero ===== */
.hero {
    padding: 160px 0 100px;
    background: radial-gradient(ellipse at 30% 20%, rgba(245,138,30,0.08), transparent 70%),
                radial-gradient(ellipse at 70% 80%, rgba(245,138,30,0.05), transparent 60%),
                var(--bg-primary);
    position: relative;
    overflow: hidden;
}
.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245,138,30,0.12);
    border: 1px solid rgba(245,138,30,0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 20px;
}
.hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}
.hero h1 .highlight { color: var(--accent); position: relative; }
.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--accent);
    opacity: 0.25;
    border-radius: 4px;
}
.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 32px;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}
.hero-stats .stat h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}
.hero-stats .stat p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.hero-image {
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.hero-image:hover {
    transform: scale(1.02);
    border-color: var(--accent);
}
.hero-tag {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(8px);
}
.hero-tag i { color: var(--accent); }

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 56px;
}
.section-header .label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 12px;
}
.section-header h2 {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}
.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* ===== Services ===== */
.services { padding: 100px 0; background: var(--bg-secondary); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 12px 48px rgba(0,0,0,0.4);
}
.service-card .icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(245,138,30,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--accent);
    margin-bottom: 20px;
    transition: var(--transition);
}
.service-card:hover .icon {
    background: var(--accent);
    color: #fff;
    transform: scale(1.05);
}
.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}
.service-card .tag {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
    background: rgba(245,138,30,0.1);
    padding: 4px 12px;
    border-radius: 50px;
}

/* ===== Hardware (new) ===== */
.hardware { padding: 100px 0; background: var(--bg-secondary); }
.hardware-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.hardware-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.hardware-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 12px 48px rgba(0,0,0,0.4);
}
.hardware-card img { width: 100%; height: 200px; object-fit: cover; }
.hardware-card h3 {
    padding: 20px 20px 0;
    font-size: 1.2rem;
    font-weight: 700;
}
.hardware-card p {
    padding: 0 20px 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===== About ===== */
.about { padding: 100px 0; background: var(--bg-primary); }
.about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}
.about-image img { width: 100%; min-height: 300px; object-fit: cover; }
.about-image .badge-float {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 0.8rem;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 8px;
}
.about-image .badge-float i { color: var(--accent); }

.about-content .label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 12px;
    display: inline-block;
}
.about-content h2 {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
    line-height: 1.2;
}
.about-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}
.about-content .highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}
.about-content .highlights li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    list-style: none;
}
.about-content .highlights li i { color: var(--accent); }

/* ===== Projects ===== */
.projects { padding: 100px 0; background: var(--bg-secondary); }
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 12px 48px rgba(0,0,0,0.4);
}
.project-card .thumb { height: 200px; overflow: hidden; }
.project-card .thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: var(--transition);
}
.project-card:hover .thumb img { transform: scale(1.05); }
.project-card .body { padding: 24px 28px 28px; }
.project-card .body .cat {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
    background: rgba(245,138,30,0.1);
    padding: 4px 12px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 12px;
}
.project-card .body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.project-card .body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== Contact ===== */
.contact { padding: 100px 0; background: var(--bg-primary); }
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}
.contact-info h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.contact-info p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 32px;
}
.contact-info .detail {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    color: var(--text-secondary);
}
.contact-info .detail i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(245,138,30,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1rem;
    flex-shrink: 0;
}
.contact-info .detail strong { color: var(--text-primary); font-weight: 600; }
.contact-info .detail a { color: var(--accent); }

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 40px;
}
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-secondary);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { width: 100%; justify-content: center; font-size: 1rem; padding: 16px; }

.form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    display: none;
}
.form-message.success {
    display: block;
    background: rgba(34,197,94,0.15);
    border: 1px solid rgba(34,197,94,0.3);
    color: #4ade80;
}
.form-message.error {
    display: block;
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.3);
    color: #f87171;
}

/* ===== Footer ===== */
footer {
    padding: 48px 0 32px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
}
footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
footer .footer-logo { font-size: 1.2rem; font-weight: 800; }
footer .footer-logo span { color: var(--accent); }
footer p { color: var(--text-secondary); font-size: 0.85rem; }
footer .socials { display: flex; gap: 16px; }
footer .socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}
footer .socials a:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

/* ===== Scroll-to-top button ===== */
#scrollTopBtn {
    display: none; /* hidden by default, JS will show/hide */
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px var(--accent-glow);
    cursor: pointer;
    transition: var(--transition);
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}
#scrollTopBtn:hover {
    transform: scale(1.1);
    background: var(--accent-hover);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3rem; }
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero p { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { order: -1; }
    .hero-image { max-width: 320px; margin: 0 auto; }
    .hero-tag { right: 10%; bottom: 10px; }
    .about .container { grid-template-columns: 1fr; text-align: center; }
    .about-content .highlights { justify-items: center; }
    .contact-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 24px 0;
        gap: 20px;
        transform: translateY(-120%);
        transition: var(--transition);
        opacity: 0;
        backdrop-filter: blur(16px);
        background: rgba(11,14,20,0.95);
    }
    [data-theme="light"] .nav-links {
        background: rgba(245,247,250,0.95);
    }
    .nav-links.open { transform: translateY(0); opacity: 1; }
    .hamburger { display: flex; }

    .hero { padding: 120px 0 60px; }
    .hero h1 { font-size: 2.4rem; }
    .hero p { font-size: 1rem; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .hero-stats .stat h3 { font-size: 1.5rem; }
    .hero-image { max-width: 260px; }

    .section-header h2 { font-size: 2rem; }
    .about-content h2 { font-size: 2rem; }
    .about-content .highlights { grid-template-columns: 1fr; }

    .services-grid, .projects-grid { grid-template-columns: 1fr; }
    .hardware-grid { grid-template-columns: 1fr 1fr; }

    .contact-form { padding: 24px; }
    footer .container { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .container { padding: 0 16px; }
    .hardware-grid { grid-template-columns: 1fr; }
}

/* ===== Scroll Progress Bar ===== */
#scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), #ff9d3b);
    z-index: 1100;
    transition: width 0.1s linear;
}

/* ===== Tech Stack & Protocol Ribbon ===== */
.tech-ribbon {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
    overflow: hidden;
}
.tech-ribbon .container {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}
.tech-ribbon-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}
.tech-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}
.tech-badge:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--accent-glow);
}
.tech-badge i {
    color: var(--accent);
}

/* ===== Engineering Methodology / Process ===== */
.process {
    padding: 100px 0;
    background: var(--bg-primary);
}
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}
.process-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px 24px;
    position: relative;
    transition: var(--transition);
}
.process-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}
.process-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.85;
    line-height: 1;
    margin-bottom: 16px;
}
.process-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.process-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}
.process-deliverable {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(245, 138, 30, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
}

/* ===== Live Telemetry Simulator ===== */
.telemetry-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}
.sim-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.sim-header {
    background: #111722;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 16px;
}
.sim-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.1rem;
}
.sim-title i { color: var(--accent); }
.status-tag {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.status-normal {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.status-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    animation: pulseDanger 1.2s infinite;
}
@keyframes pulseDanger {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.sim-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border-color);
}
.sim-metric {
    background: var(--bg-card);
    padding: 28px 24px;
    text-align: center;
}
.sim-metric .label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.sim-metric .val {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}
.sim-metric .unit {
    font-size: 0.9rem;
    color: var(--accent);
    margin-left: 4px;
    font-weight: 600;
}
.sim-controls {
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-primary);
    flex-wrap: wrap;
    gap: 16px;
    border-top: 1px solid var(--border-color);
}
.sim-log {
    background: #090d14;
    padding: 16px 20px;
    border-radius: 8px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.8rem;
    color: #8fa3b8;
    max-height: 90px;
    overflow-y: auto;
    flex: 1;
    min-width: 300px;
}
.log-ok { color: #10b981; }
.log-err { color: #f87171; font-weight: 700; }
.btn-danger {
    background: #dc2626 !important;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4) !important;
}

/* ===== Industry Verticals ===== */
.industries {
    padding: 100px 0;
    background: var(--bg-primary);
}
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.industry-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: var(--transition);
}
.industry-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}
.industry-card .ind-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 16px;
}
.industry-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.industry-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== FAQ Accordion ===== */
.faq {
    padding: 100px 0;
    background: var(--bg-secondary);
}
.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.faq-item:hover {
    border-color: var(--accent);
}
.faq-question {
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
    user-select: none;
    gap: 16px;
}
.faq-question i {
    color: var(--accent);
    transition: transform 0.3s;
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out, padding 0.35s ease;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 0 24px;
}
.faq-item.active .faq-answer {
    max-height: 250px;
    padding: 0 24px 22px;
}

/* ===== Floating WhatsApp Button ===== */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    text-decoration: none;
}
.floating-whatsapp:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.55);
    color: #ffffff;
}
.floating-whatsapp i {
    font-size: 1.4rem;
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive updates for new sections */
@media (max-width: 1024px) {
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .sim-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .process-grid { grid-template-columns: 1fr; }
    .sim-grid { grid-template-columns: 1fr; }
    .floating-whatsapp span { display: none; }
    .floating-whatsapp { padding: 14px; width: 54px; height: 54px; justify-content: center; border-radius: 50%; }
}