:root {
    --bg-color: #0a0a0a;
    --text-color: #e0e0e0;
    --accent-color: #00ff88; /* Cyber green accent */
    --secondary-accent: #00ccff; /* Blue accent for gradients */
    --spotlight-color: rgba(255, 255, 255, 0.03);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', 'Helvetica Neue', sans-serif;
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: 0.3s ease-out;
    --mobile-content-max: min(96vw, 640px);
    --content-max: min(1200px, 92vw);
    --gutter: clamp(16px, 3vw, 28px);
    --hero-left-pad: var(--gutter);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
}

.container {
    max-width: var(--content-max);
    margin: 0 auto;
    padding-left: max(20px, env(safe-area-inset-left, 0));
    padding-right: max(20px, env(safe-area-inset-right, 0));
}

/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.08) 0%, rgba(0, 204, 255, 0.05) 30%, transparent 70%);
    /* Transform handled by GSAP for performance */
    pointer-events: none;
    z-index: 0; /* Behind content */
    mix-blend-mode: screen;
    filter: blur(60px);
    opacity: 0;
    border-radius: 50%;
    will-change: transform, opacity;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(10,10,10,0.9), transparent);
    backdrop-filter: blur(5px);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 32px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: color var(--transition-fast);
}

.main-nav a:hover {
    color: var(--accent-color);
}

.btn-nav {
    padding: 8px 20px;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    background: var(--glass-bg);
}

.btn-nav:hover {
    border-color: var(--accent-color);
    background: rgba(0, 255, 136, 0.1);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    overflow: hidden;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Stage and group opacity baseline only (revealed via JS intro) */
body.js-anim .killchain-group { opacity: 0; }
body.js-anim .killchain-stage { opacity: 0; }

/* Spotlight removed */

.halo-arc {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 40vw;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    opacity: 0.5;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-bottom: 40px;
}

.hero-title {
    font-size: clamp(2.8rem, 5.5vw, 4.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    line-height: 1.1;
    color: #fff;
}

.hero-title .line {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.text-gradient {
    background: linear-gradient(90deg, #ffffff 0%, #f5f5f5 35%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block; /* Fix for background-clip in some browsers */
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 40px;
    opacity: 1;
}

/* Buttons */
.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
    margin-bottom: 60px;
    opacity: 1;
}

.btn {
    padding: 16px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    backdrop-filter: blur(4px);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
}

.btn-primary:hover .btn-glow {
    left: 150%;
    transition: 0.7s;
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-color);
    background: transparent;
}

.btn-secondary:hover {
    border-color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
}

/* Proof Points */
.proof-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
        "rt global pt"
        "apt cross itot";
    gap: 40px 120px;
    justify-items: center;
    align-items: start;
    text-align: center;
    margin-bottom: 80px;
    margin-left: auto;
    margin-right: auto;
    max-width: 720px;
    opacity: 1;
}

.proof-item {
    display: flex;
    flex-direction: column;
}

.proof-rt { grid-area: rt; }
.proof-pt { grid-area: pt; }
.proof-global { grid-area: global; }
.proof-apt { grid-area: apt; }
.proof-itot { grid-area: itot; }
.proof-cross { grid-area: cross; }

.proof-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.proof-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
}

/* Kill Chain */
.killchain-indicator {
    display: flex;
    gap: 15px; /* Increased gap for line visibility */
    justify-content: center;
    margin-bottom: 20px;
    opacity: 1;
    position: relative;
    align-items: center;
}

.killchain-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 12px auto 28px;
    width: 180px;
    height: 180px;
}

.killchain-stage svg {
    width: 80%;
    height: 80%;
    display: block;
}

/* Connector Line */
.killchain-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.2) 80%, transparent);
    z-index: 0;
    transform: translateY(-50%);
}

.phase {
    font-size: 0.7rem;
    padding: 4px 12px; /* Slightly wider */
    background: rgba(10, 10, 10, 0.9); /* Darker bg to hide line behind text */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px; /* Pill shape */
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.phase.active {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
    transform: scale(1.1);
}

@media (prefers-reduced-motion: reduce) {
    .phase.active { transform: none; }
}

/* Mascot */
.mascot-container {
    position: relative;
    width: 320px;
    height: 320px;
    z-index: 1;
    opacity: 0.85;
    pointer-events: auto;
    display: none; /* Hidden on mobile by default, shown on desktop */
    margin: 0 auto 12px;
}

.mascot-container svg * {
    transform-box: view-box; /* Changed from fill-box to view-box for stable rotation center */
    transform-origin: center;
}

@media (min-width: 1024px) {
    .mascot-container {
        display: block;
        margin-bottom: 84px;
    }
    .hero-right { padding-left: 24px; }
}

@media (max-width: 1360px) {
    .killchain-group { width: 400px; }
}

@media (max-width: 1200px) {
    .killchain-group { width: 380px; }
    .killchain-indicator {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-bottom: 12px;
    }
    .killchain-indicator::before { display: none; }
    .phase { font-size: 0.7rem; padding: 6px 12px; }
    .killchain-stage { width: 160px; height: 160px; margin: 10px auto 24px; }
    .mascot-container { margin: 0 auto 24px; }
}

/* Map Popup Card (ForeignObject) */
.map-popup-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.map-popup-card {
    background: rgba(10, 15, 20, 0.85);
    border: 1px solid var(--accent-color);
    border-left: 3px solid var(--accent-color);
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #fff;
    font-size: 15px;
    line-height: 1.6;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
    backdrop-filter: blur(4px);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    opacity: 0; /* Start hidden for animation */
    animation: popupFadeIn 0.5s ease-out 1s forwards;
    pointer-events: auto;
}

.popup-header {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.3);
    padding-bottom: 6px;
}

.popup-row {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popup-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

.popup-row.icon-row {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--accent-color);
}

/* Connector Line Animation */
.connector-line {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawLine 1s ease-out forwards;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

@keyframes popupFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Contact Panel */
.contact-panel-trigger {
    width: 100%;
    max-width: 600px;
    margin: 10px auto 80px;
    opacity: 1;
}

.contact-panel {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.contact-panel h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.6);
}

.contact-form {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
    position: relative;
    isolation: isolate;
}

/* Unique Texture Background (Non-Stacked) */
.contact-form::before {
    content: '';
    position: absolute;
    top: -30px; bottom: -30px; left: -30px; right: -30px;
    z-index: -1;
    background-image: 
        /* Tech Dots Pattern */
        radial-gradient(circle, rgba(0, 255, 136, 0.07) 1px, transparent 1px),
        /* Subtle Circuit Lines */
        linear-gradient(0deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 20px 20px, 60px 60px, 60px 60px;
    background-position: 0 0, 30px 30px, 30px 30px;
    
    /* Soft fade out to blend with page */
    mask-image: radial-gradient(closest-side, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(closest-side, black 40%, transparent 100%);
    opacity: 0.8;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group.full {
    flex-basis: 100%;
}

/* Modern Input Styling */
.input-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    background: rgba(10, 15, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding: 24px 16px 8px;
    color: #fff;
    border-radius: 4px 4px 0 0;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.input-wrapper textarea {
    min-height: 120px;
    resize: vertical;
}

/* Floating Label */
.input-wrapper label {
    position: absolute;
    top: 18px;
    left: 16px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

/* Input Focus & Filled States */
.input-wrapper input:focus,
.input-wrapper textarea:focus,
.input-wrapper input:not(:placeholder-shown),
.input-wrapper textarea:not(:placeholder-shown) {
    background: rgba(0, 255, 136, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.input-wrapper input:focus ~ label,
.input-wrapper textarea:focus ~ label,
.input-wrapper input:not(:placeholder-shown) ~ label,
.input-wrapper textarea:not(:placeholder-shown) ~ label {
    top: 6px;
    left: 16px;
    font-size: 0.7rem;
    color: var(--accent-color);
    font-weight: 600;
}

/* Animated Border Line */
.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.4s ease;
    box-shadow: 0 0 10px var(--accent-color);
    z-index: 2;
}

.input-wrapper input:focus ~ .input-border,
.input-wrapper textarea:focus ~ .input-border {
    width: 100%;
}

/* Cyberpunk Button */
.btn-transmit {
    position: relative;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 16px 32px;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.1em;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    overflow: hidden;
    text-transform: uppercase;
    font-size: 0.9rem;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.btn-transmit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transition: left 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
}

.btn-transmit:hover {
    color: #000;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

.btn-transmit:hover::before {
    left: 0;
}

.btn-transmit .arrow {
    transition: transform 0.3s;
    display: flex;
    align-items: center;
}

.btn-transmit:hover .arrow {
    transform: translateX(6px);
}

/* Trusted Industries Marquee */
.industry-section {
    padding: 80px 0;
    position: relative;
    background-color: #050505;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(0, 255, 136, 0.03) 0%, transparent 70%),
        linear-gradient(0deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.about-section {
    padding: 80px 0;
    position: relative;
    background-color: #060606;
    background-image:
        linear-gradient(135deg, rgba(0,255,136,0.05), rgba(0,204,255,0.03)),
        radial-gradient(circle at 20% 30%, rgba(0,255,136,0.06) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0,204,255,0.05) 0%, transparent 40%),
        radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0 2px, transparent 2px 6px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 18px 18px, 100% 100%;
    background-position: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cred-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.cred-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.mini-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.mini-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 16px;
}

.mini-title {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.mini-list {
    min-height: 32px;
}

.industry-section .container {
    width: 100%;
}

.contact-section {
    padding: 80px 0 120px;
    background-color: #050505;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(0, 255, 136, 0.03) 0%, transparent 70%),
        linear-gradient(0deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.contact-info-side, .contact-form-side { width: 100%; }
.map-wrapper { width: 100%; max-width: 640px; margin: 0 auto 20px; aspect-ratio: 11/9; overflow: hidden; position: relative; }

.map-card-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(92%, 420px);
    max-height: min(75%, 340px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
}
.hk-map-svg { width: 100%; height: auto; display: block; }

.site-footer {
    background-color: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.03em;
}

.trusted-industries {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 20px 0;
    margin-top: 30px;
}

.marquee-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: marquee 40s linear infinite;
    will-change: transform;
}

.marquee-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.industry-item {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.industry-separator {
    color: var(--accent-color);
    opacity: 0.15;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.expertise-text {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.8;
}

.expertise-highlight {
    color: var(--accent-color);
    font-weight: 600;
}

@media (max-width: 640px) {
    .industry-section {
        padding: 60px 0;
    }
    .expertise-text {
        font-size: 0.85rem;
        line-height: 1.7;
        padding: 0 16px;
        margin-bottom: 24px;
        text-wrap: balance;
        overflow-wrap: anywhere;
        word-break: normal;
        hyphens: auto;
        -webkit-hyphens: auto;
        white-space: normal;
        max-width: 100%;
    }
    .trusted-industries {
        margin-top: 20px;
        padding: 14px 0;
    }
    .marquee-track {
        gap: 24px;
    }
    .marquee-content {
        gap: 24px;
    }
    .industry-item {
        font-size: 0.75rem;
        letter-spacing: 0.03em;
    }
}

@media (max-width: 600px) {
    .contact-section .container { padding-left: max(12px, env(safe-area-inset-left, 0)); padding-right: max(12px, env(safe-area-inset-right, 0)); }
    .contact-grid { grid-template-columns: 1fr; gap: 16px; }
    .map-popup-card { 
        padding: 14px; 
        font-size: 14px; 
        line-height: 1.5; 
        overflow: hidden; 
        overflow-y: auto;
        max-width: 92%; 
        margin: 0 auto;
        height: auto;
        max-height: 90%;
        width: 100%;
    }
    .popup-header { font-size: 16px; }
    .popup-row { white-space: normal; }
    .contact-panel { padding: 20px; }
    .input-wrapper { margin-bottom: 12px; }
    .hero-inner { padding: 0 12px; width: 100%; max-width: var(--mobile-content-max); margin-left: auto; margin-right: auto; }
    .container { padding-left: max(12px, env(safe-area-inset-left, 0)); padding-right: max(12px, env(safe-area-inset-right, 0)); width: 100%; max-width: var(--mobile-content-max); margin-left: auto; margin-right: auto; }
    .hero-left { margin: 0 auto; max-width: 720px; }
    .hero-title, .hero-subtitle { text-align: left; padding-left: var(--hero-left-pad); margin-right: auto; }
}

@supports (-webkit-touch-callout: none) {
  @media (max-width: 600px) {
    .hero-title, .hero-subtitle { text-align: left; padding-left: var(--hero-left-pad); margin-right: auto; }
    .services-grid-layout { justify-items: center; }
    .service-column, .interactive-svg-container { margin-left: auto; margin-right: auto; }
    .container, .hero-inner, .proof-points, .killchain-group, .contact-form-side, .map-wrapper { width: 100%; max-width: var(--mobile-content-max); margin-left: auto; margin-right: auto; }
  }
}

/* Services Section */
.services-section {
    padding: 100px 0;
    position: relative;
}

.services-section .container {
    margin: 0 auto;
    text-align: center;
}

/* Mobile Layout Improvements */
@media (max-width: 600px) {
    .site-header { padding: 10px 0; padding-top: calc(10px + env(safe-area-inset-top, 0)); }
    .logo-img { height: 26px; }
    .main-nav ul { gap: 10px; flex-wrap: wrap; justify-content: center; row-gap: 6px; }
    .btn-nav { padding: 6px 14px; border-radius: 16px; }

    .hero { padding-top: 70px; }
    .hero-inner { padding: 0 16px; }
    .container { padding: 0 16px; }
    .hero-left { text-align: left; margin: 0 auto; max-width: 560px; }
    .hero-title { font-size: clamp(2rem, 10vw, 3rem); }
    .hero-subtitle { max-width: 32rem; margin: 0 0 24px 0; }
    .cta-group { flex-direction: column; align-items: center; gap: 12px; margin-bottom: 32px; }
    .btn { width: 100%; max-width: 320px; }

    .killchain-indicator { flex-wrap: wrap; justify-content: center; gap: 8px; }
    .killchain-group { margin: 0 auto; }
    .killchain-stage { width: 140px; height: 140px; margin: 12px auto 20px; }
}

@media (max-width: 480px) {
    .logo-img { height: 24px; }
    .btn-nav { padding: 5px 12px; font-size: 0.8rem; }
    .killchain-indicator { gap: 8px; }
}

/* Mobile map sizing overrides */
@media (max-width: 600px) {
    .map-wrapper { aspect-ratio: auto; height: clamp(380px, 62vh, 640px); }
    .map-card-overlay { max-height: min(92%, 480px); padding-bottom: 12px; overflow-y: auto; }
    .map-card-overlay .map-popup-card { padding-bottom: 18px; }
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.service-block {
    margin-bottom: 80px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.service-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
    opacity: 0.5;
}

.service-header {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 10px;
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.service-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.service-intro {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    max-width: 800px;
}

.service-list {
    list-style: none;
    padding-left: 20px;
}

.service-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
    color: var(--text-color);
}

.service-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Red Team Insights (Terminal Style) */
.red-team-insights {
    margin-top: 40px;
    background: #0f0f0f;
    border: 1px solid #333;
    padding: 0;
    border-radius: 6px;
    font-family: 'Courier New', Courier, monospace;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.insights-header {
    background: #1a1a1a;
    padding: 10px 15px;
    border-bottom: 1px solid #333;
    color: #ccc;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 6px 6px 0 0;
}

.insights-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 15px;
}

.insight-item {
    padding: 10px 0;
    border-bottom: 1px solid #222;
    font-size: 0.9rem;
    color: #aaa;
}

.insight-item:last-child {
    border-bottom: none;
}

.insight-item .prompt {
    color: #ff4d4d;
    margin-right: 10px;
}

.insight-item .response {
    color: #fff;
    display: block;
    margin-top: 5px;
    margin-left: 20px;
    font-style: italic;
    opacity: 0.9;
}

/* Pentest Categories */
.pentest-categories {
    display: grid;
    gap: 40px;
}

.category-title {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pentest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.pentest-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid transparent;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.pentest-item:before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    margin-right: 10px;
    opacity: 0.5;
}

.pentest-item:hover {
    border-color: var(--accent-color);
    background: rgba(0, 255, 136, 0.05);
    transform: translateY(-2px);
}

.pentest-item:hover:before {
    opacity: 1;
    box-shadow: 0 0 8px var(--accent-color);
}

/* IR Grid */
.ir-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.ir-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 25px;
    border-radius: 8px;
    transition: all 0.3s;
}

.ir-card:hover {
    border-color: var(--secondary-accent);
    background: rgba(0, 204, 255, 0.05);
    transform: translateY(-5px);
}

.ir-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.ir-card h4 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.ir-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        margin-left: auto;
        margin-right: auto;
    }
    .hero {
        min-height: auto;
        padding-top: 110px;
        padding-bottom: 40px;
        overflow: visible;
    }
    .hero-inner { padding: 0 16px; }
    .hero-left { text-align: left; padding: 0; }
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 12px;
        text-wrap: balance;
        overflow-wrap: anywhere;
        word-break: normal;
        margin-left: 0;
        margin-right: auto;
        max-width: 500px;
    }
    
    .cta-group {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .contact-form {
        flex-direction: column;
    }
    
    .btn-transmit {
        padding: 12px;
        justify-content: center;
    }
    
    .proof-points {
        grid-template-columns: 1fr;
        grid-template-areas:
            "global"
            "rt"
            "pt"
            "apt"
            "itot"
            "cross";
        gap: 20px;
        margin-bottom: 64px;
        justify-items: center;
        width: 100%;
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }
    
    .proof-item {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Kill Chain Centered Mobile Layout */
    .killchain-indicator {
        flex-wrap: wrap;
        justify-content: center;
        overflow-x: visible;
        gap: 10px;
        padding: 8px 12px;
        scroll-snap-type: none;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; 
        -ms-overflow-style: none;
        mask-image: none;
        -webkit-mask-image: none;
        margin: 0 auto 12px;
        max-width: 92vw;
    }
    
    .killchain-indicator::-webkit-scrollbar {
        display: none;
    }

    .killchain-indicator::before {
        display: none;
    }

    .phase {
        flex: 0 0 auto; /* Don't shrink */
        font-size: 0.75rem; /* Increased from 0.6rem for legibility */
        padding: 8px 14px; /* Slightly tighter for centering */
        scroll-snap-align: center;
    }

    .killchain-stage {
        width: 120px;
        height: 120px;
        margin: 8px auto 28px;
    }

    .proof-points { justify-items: center; }
    
    .pentest-grid {
        grid-template-columns: 1fr;
    }

    .pentest-item {
        font-size: 0.95rem; /* Improve readability on mobile */
        padding: 14px 16px; /* Larger touch target */
    }
    
    .industry-item {
        font-size: 0.85rem; /* Slight bump from 0.75rem */
    }
    
    .section-title {
        font-size: 2rem; /* Prevent excessive wrapping */
    }
    
    .ir-grid {
        grid-template-columns: 1fr;
    }
}

/* Global Reach Section */
.global-reach {
    padding-top: 120px;
    padding-bottom: 80px;
    position: relative;
}

/* Dynamic Contact Message */
.contact-dynamic-msg {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-style: italic;
    min-height: 1.4em; /* Prevent layout shift */
    opacity: 0;
    transition: opacity 0.5s ease;
}

.contact-dynamic-msg.visible {
    opacity: 1;
}

/* Contact Panel Highlight Animation */
@keyframes pulseHighlight {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4); border-color: var(--glass-border); }
    50% { box-shadow: 0 0 20px 5px rgba(0, 255, 136, 0.2); border-color: var(--accent-color); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); border-color: var(--glass-border); }
}

.highlight-panel {
    animation: pulseHighlight 1.5s ease-in-out 2; /* Pulse twice */
}

#contact {
    scroll-margin-top: 180px;
}

@keyframes glitchJitter {
    0% { transform: translate(0,0) skew(0deg); clip-path: inset(0 0 0 0); }
    10% { transform: translate(-3px, 2px) skew(-2deg); clip-path: inset(10% 0 60% 0); }
    20% { transform: translate(3px, -2px) skew(3deg); clip-path: inset(50% 0 10% 0); }
    30% { transform: translate(-3px, 1px) skew(-1deg); clip-path: inset(20% 0 70% 0); }
    40% { transform: translate(2px, -3px) skew(2deg); clip-path: inset(70% 0 10% 0); }
    50% { transform: translate(0,0) skew(0deg); clip-path: inset(0 0 0 0); }
    60% { transform: translate(-2px, -2px) skew(1deg); clip-path: inset(30% 0 50% 0); }
    70% { transform: translate(2px, 2px) skew(-1deg); clip-path: inset(60% 0 20% 0); }
    80% { transform: translate(-1px, 1px) skew(2deg); clip-path: inset(10% 0 80% 0); }
    90% { transform: translate(1px, -1px) skew(-2deg); clip-path: inset(40% 0 30% 0); }
    100% { transform: translate(0,0) skew(0deg); clip-path: inset(0 0 0 0); }
}

.glitch-highlight {
    animation: glitchJitter 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    box-shadow: 0 0 24px rgba(0, 255, 136, 0.4);
    border-color: var(--accent-color);
    position: relative;
}

.glitch-text {
    animation: glitchJitter 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    text-shadow: 3px 0 rgba(255,0,0,0.7), -3px 0 rgba(0,0,255,0.7);
    color: #fff;
}

.glitch-active {
    animation: glitchJitter 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    color: #fff;
    text-shadow: 3px 0 #ff00ea, -3px 0 #00ff88;
    position: relative;
}

#services,
#about,
#industries {
    scroll-margin-top: 180px;
}

/* Contact Grid Layout */


.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Left Column: Map & Info */
.contact-info-side {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.map-wrapper {
    position: relative;
    width: 100%; /* Increased size as requested */
    margin: 0 auto;
    aspect-ratio: 11/9; /* Taller aspect ratio for vertical increase */
    background: rgba(10, 15, 20, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.05);
}

.contact-header-group {
    margin-bottom: 30px;
    text-align: center;
}

.contact-title-aligned {
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 100%;
}

.contact-form-side {
    margin: 0 auto;
    max-width: 640px;
}

.hk-map-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.2));
}

.map-land {
    fill: rgba(0, 0, 0, 0.5);
    stroke: rgba(0, 255, 136, 0.4);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.map-grid {
    stroke: rgba(0, 204, 255, 0.1);
    stroke-width: 1;
}

.pin-core {
    fill: #fff;
}

.pin-pulse {
    fill: none;
    stroke: #00ff88;
    stroke-width: 1;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    transform-box: fill-box;
    transform-origin: center;
}

.pin-pulse-outer {
    fill: none;
    stroke: #00ff88;
    stroke-width: 1;
    opacity: 0.5;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    animation-delay: 0.4s;
    transform-box: fill-box;
    transform-origin: center;
}

@keyframes pulse-ring {
    0% { transform: scale(0.33); opacity: 1; }
    80%, 100% { transform: scale(1.2); opacity: 0; }
}

.map-overlay-glitch {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(transparent 50%, rgba(0, 255, 136, 0.02) 50%);
    background-size: 100% 4px;
    pointer-events: none;
}

/* Address Details */
.address-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: center; /* Vertically align icon and text */
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Keep address top-aligned as it is multi-line */
.detail-item:first-child {
    align-items: flex-start;
}

.icon-box {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s;
    color: var(--accent-color);
}

.icon-box svg {
    width: 20px;
    height: 20px;
}

.btn-transmit .arrow svg {
    width: 16px;
    height: 16px;
    display: block;
}

.detail-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.95rem;
}

.detail-text strong {
    color: white;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 4px;
}

.contact-link {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-link:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--accent-color);
}

/* Obfuscated Phone */
#secure-phone {
    cursor: pointer;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    font-family: monospace;
    letter-spacing: 1px;
    transition: all 0.3s;
}

#secure-phone:hover {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
.hero-inner {
    width: 100%;
    max-width: 1360px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    padding: 0 20px;
    margin: 0 auto;
    justify-items: center;
}

.hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-left: 0;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.est-badge { display: block; text-align: left; padding-left: var(--hero-left-pad); }

.hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.killchain-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 420px;
    max-width: 100%;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1.3fr 0.7fr;
        gap: 60px;
        justify-items: center;
    }
    .hero-title .line:first-child { white-space: nowrap; }
    .hero-left { text-align: left; padding-left: 0; margin: 0 auto; max-width: var(--hero-max); }
    .hero-title, .hero-subtitle { text-align: left; padding-left: var(--hero-left-pad); margin: 0; }
}
/* Hero intro gate to prevent first-paint flicker */
body.hero-init .hero-title .line,
body.hero-init .hero-subtitle,
body.hero-init .cta-group,
body.hero-init .proof-points {
    opacity: 0;
    transform: translateY(10px);
}
