/* ============================================
   RUPE NETWORKS - CYBER DEFENSE THEME
   ============================================ */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0d0d14;
    --bg-tertiary: #12121a;
    --bg-card: #0f0f18;
    --text-primary: #e8e8ef;
    --text-secondary: #8888a0;
    --text-muted: #4a4a60;
    --accent: #00C8AC;
    --accent-green: #00C8AC;
    --accent-dim: rgba(0, 200, 172, 0.15);
    --accent-glow: rgba(0, 200, 172, 0.4);
    --border: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(0, 200, 172, 0.2);
    --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #0d0d14 100%);
    --font-primary: 'Rajdhani', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    --font-display: 'Orbitron', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-primary);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.accent { color: var(--accent); }

/* ---- Cursor Glow ---- */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 200, 172, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}

body:hover .cursor-glow { opacity: 1; }

/* ---- Scan Line ---- */
.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.2;
    z-index: 10000;
    animation: scanLine 6s linear infinite;
    pointer-events: none;
}

@keyframes scanLine {
    0% { top: -2px; }
    100% { top: 100vh; }
}

/* ---- BF3 CRT Scanlines Overlay ---- */
.scanlines-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.08) 2px,
        rgba(0, 0, 0, 0.08) 4px
    );
}

/* ---- BF3 Noise/Grain Overlay ---- */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9997;
    opacity: 0.03;
}

/* ---- Canvas Layers ---- */
#gridCanvas, #particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

#particleCanvas { z-index: 2; }

/* ---- Navigation ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-accent);
    padding: 0.4rem 0;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 32px;
    width: auto;
    transition: height 0.4s;
    filter: brightness(1);
}

.nav.scrolled .nav-logo-img {
    height: 26px;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 2px;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    position: relative;
    transition: color 0.3s;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent);
    letter-spacing: 1px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 200, 172, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(0, 200, 172, 0); }
}

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

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

/* ---- Hero Section ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    overflow: hidden;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 200, 172, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 200, 172, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
    padding: 2rem;
}

.hero-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tag-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: var(--accent);
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.5s;
}

.tag-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent));
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.3s;
}

.tag-line:last-child {
    background: linear-gradient(90deg, var(--accent), transparent);
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    overflow: visible;
}

.title-word {
    display: inline-block;
    font-size: clamp(2.2rem, 5.5vw, 4.5rem);
    letter-spacing: 4px;
    opacity: 0;
    transform: translateY(100%);
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.title-line:nth-child(1) .title-word { animation-delay: 0.8s; }
.title-line:nth-child(2) .title-word { animation-delay: 1s; }
.title-line:nth-child(3) .title-word { animation-delay: 1.2s; }

.title-word.accent {
    background: linear-gradient(135deg, var(--accent), #00e6c8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Glitch Effect - BF3 Style */
.glitch {
    position: relative;
    cursor: default;
}

/* On hover, force the accent text to show solid (override the gradient transparent fill) */
.glitch.accent:hover {
    -webkit-text-fill-color: var(--accent);
}

.glitch:hover::before,
.glitch:hover::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
}

/* Red channel - shifts left */
.glitch:hover::before {
    color: rgba(255, 40, 40, 0.82);
    -webkit-text-fill-color: rgba(255, 40, 40, 0.82);
    animation: bf3-red 0.15s infinite steps(1);
}

/* Blue channel - shifts right */
.glitch:hover::after {
    color: rgba(50, 130, 255, 0.82);
    -webkit-text-fill-color: rgba(50, 130, 255, 0.82);
    animation: bf3-blue 0.15s infinite steps(1);
}

/* BF3 rapid horizontal tear with chromatic aberration */
@keyframes bf3-red {
    0%   { clip-path: inset(40% 0 20% 0); transform: translate(-4px, 0); }
    8%   { clip-path: inset(85% 0 0% 0); transform: translate(-2px, 0); }
    16%  { clip-path: inset(10% 0 75% 0); transform: translate(-5px, 1px); }
    24%  { clip-path: inset(0% 0 90% 0); transform: translate(0); }
    32%  { clip-path: inset(60% 0 10% 0); transform: translate(-3px, 0); }
    40%  { clip-path: inset(25% 0 50% 0); transform: translate(-4px, -1px); }
    48%  { clip-path: inset(70% 0 15% 0); transform: translate(0); }
    56%  { clip-path: inset(5% 0 80% 0); transform: translate(-6px, 0); }
    64%  { clip-path: inset(45% 0 35% 0); transform: translate(-2px, 1px); }
    72%  { clip-path: inset(90% 0 2% 0); transform: translate(0); }
    80%  { clip-path: inset(15% 0 60% 0); transform: translate(-3px, 0); }
    88%  { clip-path: inset(55% 0 25% 0); transform: translate(-5px, 0); }
    100% { clip-path: inset(30% 0 45% 0); transform: translate(0); }
}

@keyframes bf3-blue {
    0%   { clip-path: inset(70% 0 5% 0); transform: translate(4px, 0); }
    8%   { clip-path: inset(15% 0 65% 0); transform: translate(2px, -1px); }
    16%  { clip-path: inset(50% 0 30% 0); transform: translate(5px, 0); }
    24%  { clip-path: inset(80% 0 5% 0); transform: translate(0); }
    32%  { clip-path: inset(5% 0 85% 0); transform: translate(3px, 0); }
    40%  { clip-path: inset(65% 0 15% 0); transform: translate(4px, 1px); }
    48%  { clip-path: inset(20% 0 55% 0); transform: translate(0); }
    56%  { clip-path: inset(35% 0 40% 0); transform: translate(6px, 0); }
    64%  { clip-path: inset(75% 0 10% 0); transform: translate(2px, 0); }
    72%  { clip-path: inset(10% 0 70% 0); transform: translate(0); }
    80%  { clip-path: inset(45% 0 30% 0); transform: translate(4px, -1px); }
    88%  { clip-path: inset(0% 0 80% 0); transform: translate(3px, 0); }
    100% { clip-path: inset(60% 0 20% 0); transform: translate(0); }
}


.hero-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.5s;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.8s;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 2px;
    padding: 0.9rem 2rem;
    border: 1px solid var(--border-accent);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: uppercase;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-dim), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.btn:hover::before { opacity: 1; }

.btn:hover {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(0, 200, 172, 0.15), inset 0 0 30px rgba(0, 200, 172, 0.05);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, rgba(0, 200, 172, 0.1), rgba(0, 200, 172, 0.05));
    border-color: var(--accent);
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(0, 200, 172, 0.2), rgba(0, 200, 172, 0.1));
}

.btn-icon {
    font-size: 0.6rem;
    transition: transform 0.3s;
}

.btn:hover .btn-icon { transform: translateX(4px); }

.btn-large { padding: 1.1rem 2.5rem; font-size: 0.85rem; }
.btn-full { width: 100%; justify-content: center; }

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 2.1s;
}

.stat-item { text-align: center; }

.stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Hero Scroll */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 2.5s;
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 3px;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--accent), transparent);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* Radar */
.radar-container {
    position: absolute;
    right: 5%;
    bottom: 15%;
    width: 200px;
    height: 200px;
    opacity: 0.15;
    z-index: 5;
}

.radar {
    position: relative;
    width: 100%;
    height: 100%;
}

.radar-ring {
    position: absolute;
    border: 1px solid var(--accent);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radar-ring { width: 100%; height: 100%; }
.radar-ring.ring-2 { width: 66%; height: 66%; }
.radar-ring.ring-3 { width: 33%; height: 33%; }

.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transform-origin: left center;
    animation: radarSweep 4s linear infinite;
}

@keyframes radarSweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.radar-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    animation: radarBlink 4s infinite;
}

.dot-1 { top: 25%; left: 60%; animation-delay: 0.5s; }
.dot-2 { top: 65%; left: 30%; animation-delay: 1.5s; }
.dot-3 { top: 40%; left: 75%; animation-delay: 2.5s; }

@keyframes radarBlink {
    0%, 90%, 100% { opacity: 0; }
    10%, 80% { opacity: 1; }
}

/* ---- Sections ---- */
.section {
    position: relative;
    padding: 6rem 0;
    z-index: 10;
}

.section-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 200, 172, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 200, 172, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--accent);
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: 3px;
}

.section-subtitle {
    max-width: 700px;
    margin: 1.5rem auto 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

.section-line {
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin: 1.5rem auto 0;
    position: relative;
}

.section-line::before,
.section-line::after {
    content: '';
    position: absolute;
    top: 0;
    width: 6px;
    height: 2px;
    background: var(--accent);
}

.section-line::before { left: -12px; }
.section-line::after { right: -12px; }

/* ---- About Section ---- */
.about { background: var(--bg-secondary); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-terminal {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.8;
}

.terminal-line {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.terminal-prompt {
    color: var(--accent);
    margin-right: 0.5rem;
}

.terminal-output {
    color: var(--text-muted);
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 1px solid var(--border);
}

.cursor-blink {
    animation: blink 1s step-end infinite;
    color: var(--accent);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}


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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 200, 172, 0.05);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
    width: 40px;
    height: 40px;
    color: var(--accent);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---- Services Section ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
    text-decoration: none;
    color: inherit;
    display: block;
}

a.service-card {
    cursor: pointer;
}

a.service-card .service-cta {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    transition: all 0.4s;
}

a.service-card .service-cta span {
    display: inline-block;
    transition: transform 0.3s;
}

a.service-card:hover .service-cta {
    color: var(--accent);
}

a.service-card:hover .service-cta span {
    transform: translateX(4px);
}

.service-card::after {
    content: none;
}

.service-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 200, 172, 0.08);
}

.service-card:hover::after { width: 100%; }

.service-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--bg-tertiary);
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    line-height: 1;
    transition: color 0.4s;
}

.service-card:hover .service-number {
    color: var(--accent-dim);
}

.service-icon-wrap {
    width: 44px;
    height: 44px;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    list-style: none;
}

.service-tags li {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 1px;
    padding: 0.25rem 0.6rem;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.3s;
}

.service-card:hover .service-tags li {
    border-color: var(--border-accent);
    color: var(--accent);
}

.service-line {
    width: 30px;
    height: 1px;
    background: var(--border);
    margin-top: 1.25rem;
    transition: all 0.4s;
}

.service-card:hover .service-line {
    width: 60px;
    background: var(--accent);
}

/* ---- Fortinet Section ---- */
.fortinet { background: var(--bg-secondary); }

.fortinet-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.fortinet-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
}

.fortinet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--accent);
    transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.fortinet-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: 0 15px 50px rgba(0, 200, 172, 0.06);
}

.fortinet-card:hover::before {
    height: 100%;
}

.fortinet-icon {
    width: 44px;
    height: 44px;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.fortinet-card h3 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.fortinet-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---- Credentials Section ---- */
.credentials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.credential-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
}

.credential-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
}

.credential-badge {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.credential-card h3 {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.credential-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---- Testimonials ---- */
.testimonials { background: var(--bg-secondary); }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    position: relative;
    transition: all 0.4s;
}

.testimonial-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border: 1px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
}

.testimonial-meta h4 {
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.testimonial-meta span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.testimonial-classification {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--accent);
    border: 1px solid var(--border-accent);
    padding: 0.2rem 0.5rem;
}

.testimonial-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
}

.testimonial-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.rating-bar {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent) 100%, var(--border) 100%);
    border-radius: 1px;
}

.rating-text {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--accent);
    white-space: nowrap;
}

/* ---- CTA Section ---- */
.cta {
    background: var(--bg-secondary);
    text-align: center;
}

.cta-content { max-width: 650px; margin: 0 auto; }

.cta-alert {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 200, 172, 0.05);
    border: 1px solid var(--border-accent);
    padding: 0.5rem 1.5rem;
    margin-bottom: 2rem;
    animation: alertPulse 3s infinite;
}

@keyframes alertPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 200, 172, 0.1); }
    50% { box-shadow: 0 0 20px rgba(0, 200, 172, 0.1); }
}

.alert-icon { color: var(--accent); font-size: 1.1rem; }
.alert-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--accent);
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.cta-sub {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* ---- Contact Section ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
    background: var(--bg-card);
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.contact-card:hover {
    border-color: var(--border-accent);
    transform: translateX(4px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.25rem;
}

.contact-detail a,
.contact-detail span {
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: color 0.3s;
}

.contact-detail a:hover { color: var(--accent); }

.contact-map {
    margin-top: 1rem;
    height: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Override Leaflet styles for dark tactical look */
.contact-map .leaflet-container {
    background: var(--bg-card);
}

.contact-map .leaflet-control-zoom {
    border: 1px solid var(--border-accent) !important;
    border-radius: 0 !important;
}

.contact-map .leaflet-control-zoom a {
    background: var(--bg-primary) !important;
    color: var(--accent) !important;
    border: none !important;
    border-bottom: 1px solid var(--border) !important;
    font-family: var(--font-mono) !important;
    width: 28px !important;
    height: 28px !important;
    line-height: 28px !important;
}

.contact-map .leaflet-control-zoom a:hover {
    background: var(--bg-tertiary) !important;
}

.contact-map .leaflet-control-attribution {
    display: none;
}

/* Tactical ping marker */
.tactical-marker {
    position: relative;
}

.tactical-ping {
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid rgba(0, 200, 172, 0.6);
    box-shadow: 0 0 15px rgba(0, 200, 172, 0.5), 0 0 30px rgba(0, 200, 172, 0.2);
    position: relative;
}

.tactical-ping::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 200, 172, 0.4);
    border-radius: 50%;
    animation: tacticalPulse 2s infinite;
}

.tactical-ping::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 1px solid rgba(0, 200, 172, 0.15);
    border-radius: 50%;
    animation: tacticalPulse 2s infinite 0.5s;
}

@keyframes tacticalPulse {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* Crosshair on marker */
.tactical-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    pointer-events: none;
}

.tactical-crosshair::before,
.tactical-crosshair::after {
    content: '';
    position: absolute;
    background: rgba(0, 200, 172, 0.3);
}

.tactical-crosshair::before {
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    transform: translateX(-50%);
}

.tactical-crosshair::after {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    transform: translateY(-50%);
}

/* HUD overlay on map */
.map-hud-overlay {
    position: relative;
    margin-top: -1px;
    padding: 0.5rem 0.75rem;
    background: rgba(10, 10, 15, 0.85);
    border: 1px solid var(--border);
    border-top: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-coords-live {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--accent);
    letter-spacing: 2px;
    opacity: 0.8;
}

/* Contact Form */
.contact-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
}

.form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.form-tag {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 3px;
}

.form-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--accent);
    letter-spacing: 1px;
}

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

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-bottom-color: var(--accent);
}

.form-group select {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group select option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* reCAPTCHA */
.recaptcha-wrap {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1.5rem;
}

.recaptcha-wrap .g-recaptcha {
    transform: scale(0.9);
    transform-origin: 0 0;
}

/* Form Messages */
.form-message {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid;
}

.form-message.success {
    color: #00ff88;
    border-color: rgba(0, 255, 136, 0.3);
    background: rgba(0, 255, 136, 0.05);
}

.form-message.error {
    color: #ff4444;
    border-color: rgba(255, 68, 68, 0.3);
    background: rgba(255, 68, 68, 0.05);
}

/* ---- Footer ---- */
.footer {
    position: relative;
    z-index: 10;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
    background: var(--bg-primary);
}

.footer-logo-img {
    height: 72px;
    width: auto;
    margin-bottom: 0.5rem;
    opacity: 0.85;
}

/* ---- Cookie Banner ---- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10001;
    background: rgba(10, 10, 15, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-accent);
    padding: 1.25rem 2rem;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.cookie-link {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--accent);
    white-space: nowrap;
    transition: opacity 0.3s;
}

.cookie-link:hover { opacity: 0.7; }

.cookie-accept {
    padding: 0.6rem 1.5rem;
}

.cookie-decline {
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.cookie-decline:hover {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .cookie-inner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
    line-height: 1.7;
}

.footer-links h4 {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-links a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.3rem 0;
    transition: color 0.3s;
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
}

/* ---- HUD Corner Brackets ---- */
.hud-brackets {
    position: relative;
}

.hud-brackets::before,
.hud-brackets::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease 0.3s;
}

.hud-brackets::before {
    top: -1px;
    left: -1px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
}

.hud-brackets::after {
    bottom: -1px;
    right: -1px;
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
}

.hud-brackets.visible::before,
.hud-brackets.visible::after {
    opacity: 1;
}

/* Inner brackets (via JS-injected spans) */
.hud-corner-tr,
.hud-corner-bl {
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease 0.3s;
}

.hud-corner-tr {
    top: -1px;
    right: -1px;
    border-top: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
}

.hud-corner-bl {
    bottom: -1px;
    left: -1px;
    border-bottom: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
}

.visible .hud-corner-tr,
.visible .hud-corner-bl {
    opacity: 1;
}

/* ---- BF3 Glitch Reveal Animation ---- */
@keyframes bf3Reveal {
    0%   { clip-path: inset(0 100% 0 0); opacity: 0; }
    10%  { clip-path: inset(0 20% 0 0); opacity: 1; }
    15%  { clip-path: inset(30% 0 40% 0); transform: translateX(8px); }
    20%  { clip-path: inset(0); transform: translateX(-4px); }
    25%  { clip-path: inset(50% 0 20% 0); transform: translateX(3px); }
    30%  { clip-path: inset(0); transform: translateX(0); }
    35%  { clip-path: inset(10% 0 60% 0); transform: translateX(-2px); }
    40%  { clip-path: inset(0); transform: translateX(0); opacity: 1; }
    100% { clip-path: inset(0); transform: translateX(0); opacity: 1; }
}

/* ---- Scroll Animations ---- */
.service-card,
.testimonial-card,
.feature-card,
.contact-card,
.fortinet-card,
.credential-card {
    opacity: 0;
    transform: translateY(30px);
    transition: border-color 0.4s, box-shadow 0.4s;
}

.service-card.visible,
.testimonial-card.visible,
.feature-card.visible,
.contact-card.visible,
.fortinet-card.visible,
.credential-card.visible {
    animation: bf3Reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Section header glitch reveal */
.section-header {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

.section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Section Header Decode Text ---- */
.decode-text {
    display: inline;
}

.decode-text .char {
    display: inline-block;
    transition: opacity 0.1s;
}

.decode-text .char.decoding {
    color: var(--accent);
    opacity: 0.6;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .fortinet-grid { grid-template-columns: repeat(2, 1fr); }
    .credentials-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .radar-container { display: none; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 5rem 2rem;
        gap: 0.5rem;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-left: 1px solid var(--border-accent);
    }

    .nav-links.open { right: 0; }

    .nav-toggle { display: flex; }

    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .nav-status { display: none; }

    .services-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
    .fortinet-grid { grid-template-columns: 1fr; }
    .credentials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .hero-tag { margin-top: 2rem; }

    .hero-stats { flex-direction: column; gap: 1.5rem; }
    .stat-divider { width: 40px; height: 1px; }

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