/* ============================================================
   Munal IT Solution - Cybersecurity Theme CSS
   Cleaned, deduplicated, and optimized
   ============================================================ */

/* ── CSS Custom Properties ── */
:root {
    --primary-color: #ff0040;
    --secondary-color: #00ff88;
    --accent-blue: #00d4ff;
    --dark-bg: #0a0a0a;
    --dark-alt: #111111;
    --dark-card: #1a1a1a;
    --dark-surface: #0f0f0f;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --glow-color: #ff0040;
    --warning-color: #ffaa00;
    --border-glow: rgba(255, 0, 64, 0.3);
}

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Preloader active state */
body.preloader-active { overflow: hidden; }

/* ── Preloader ── */
.cyber-preloader {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-alt) 50%, var(--dark-surface) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.cyber-preloader.fade-out { opacity: 0; visibility: hidden; }

.preloader-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,0,64,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,0,64,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    opacity: 0.3;
}

.preloader-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: particleFloat 4s linear infinite;
    opacity: 0.7;
}

@keyframes particleFloat {
    0%   { transform: translateY(100vh); opacity: 0; }
    10%  { opacity: 0.7; }
    90%  { opacity: 0.7; }
    100% { transform: translateY(-10vh); opacity: 0; }
}

.preloader-content { text-align: center; position: relative; z-index: 2; }

.preloader-logo {
    width: 120px;
    height: auto;
    max-width: 80vw;
    animation: logoAnimation 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255,0,64,0.5));
}

@keyframes logoAnimation {
    0%,100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(255,0,64,0.5)); }
    50%      { transform: scale(1.1); filter: drop-shadow(0 0 40px rgba(255,0,64,0.8)); }
}

.preloader-text {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: textPulse 1.5s ease-in-out infinite alternate;
}

@keyframes textPulse {
    0%   { opacity: 0.6; }
    100% { opacity: 1; }
}

.preloader-progress {
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin: 25px auto 0;
    overflow: hidden;
}

.preloader-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    animation: progressAnimation 3s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255,0,64,0.5);
}

@keyframes progressAnimation {
    0%   { width: 0%; transform: translateX(-100%); }
    50%  { width: 100%; transform: translateX(0%); }
    100% { width: 100%; transform: translateX(100%); }
}

@media (max-width: 768px) {
    .preloader-logo { width: 100px; }
    .preloader-text { font-size: 1rem; }
    .preloader-progress { width: 150px; }
}
@media (max-width: 480px) {
    .preloader-logo { width: 80px; }
    .preloader-text { font-size: 0.9rem; letter-spacing: 1px; }
    .preloader-progress { width: 120px; }
}

/* ── Navigation ── */
.cyber-nav {
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--primary-color);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.cyber-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary) !important;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.cyber-brand:hover {
    color: var(--primary-color) !important;
    text-shadow: 0 0 10px var(--glow-color);
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    margin: 0 8px;
    position: relative;
    transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--primary-color) !important; }

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { width: 100%; }

/* ── Shared Utilities ── */
.section-padding { padding: 80px 0; }
.bg-dark-alt { background-color: var(--dark-alt); }
.cyber-text { color: var(--primary-color); font-weight: bold; }

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ── Loading / Reveal ── */
.loading {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* GPU hint for animated cards */
.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

/* ── Hero Section ── */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-alt) 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,0,64,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0,255,136,0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0,212,255,0.1) 0%, transparent 50%);
    animation: networkPulse 6s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes networkPulse {
    0%   { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.6; transform: scale(1.05); }
}

.cyber-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,0,64,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,0,64,0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    z-index: 1;
}

@keyframes gridMove {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.typing-text {
    color: var(--primary-color);
    border-right: 3px solid var(--primary-color);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%,50%  { border-color: var(--primary-color); }
    51%,100%{ border-color: transparent; }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    position: relative;
    z-index: 2;
}

.hero-buttons { position: relative; z-index: 2; }
.hero-visual  { position: relative; z-index: 2; }

/* ── Buttons ── */
.cyber-btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #ff3366);
    border: none;
    color: #fff;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 20px rgba(255,0,64,0.3);
    border-radius: 4px;
}
.cyber-btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}
.cyber-btn-primary:hover::before { left: 100%; }
.cyber-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255,0,64,0.5);
    color: #fff;
}

.cyber-btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 28px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 4px;
}
.cyber-btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 20px rgba(255,0,64,0.5);
    transform: translateY(-2px);
}

/* ── Terminal ── */
.cyber-terminal {
    background: var(--dark-card);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255,0,64,0.2);
    animation: terminalGlow 2s ease-in-out infinite alternate;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    height: 280px;
    max-width: 500px;
    width: 100%;
}
.cyber-terminal:hover {
    box-shadow: 0 0 40px rgba(255,0,64,0.4);
    transform: translateY(-2px);
}

@keyframes terminalGlow {
    0%   { box-shadow: 0 0 30px rgba(255,0,64,0.2); }
    100% { box-shadow: 0 0 40px rgba(255,0,64,0.4); }
}

.terminal-header {
    background: var(--dark-alt);
    padding: 10px 15px;
    border-bottom: 1px solid var(--primary-color);
    display: flex;
    gap: 8px;
    height: 42px;
    align-items: center;
    flex-shrink: 0;
}

.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-dot.red    { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green  { background: #27ca3f; }

.terminal-body {
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    height: calc(100% - 42px);
    overflow: hidden;
}

.terminal-line {
    margin-bottom: 8px;
    animation: typewriter 0.5s ease-in-out;
}

@keyframes typewriter {
    0%   { opacity: 0; transform: translateX(-10px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* ── About Section ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}
.stat-item { text-align: center; }
.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    text-shadow: 0 0 20px var(--glow-color);
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}
.stat-item:hover .stat-number {
    transform: scale(1.05);
    text-shadow: 0 0 30px var(--glow-color);
}
.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cyber-card {
    background: var(--dark-card);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cyber-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255,0,64,0.3);
}
.card-glow {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,0,64,0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}
@keyframes rotate {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.card-content { position: relative; z-index: 2; }

/* ── Service Cards ── */
.service-card {
    background: var(--dark-card);
    border: 1px solid var(--border-glow);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275), box-shadow 0.4s ease, border-color 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.service-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--dark-card) 0%, rgba(255,0,64,0.08) 100%);
}
.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(255,0,64,0.25);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}
.service-card:hover .service-icon {
    transform: scale(1.1);
    text-shadow: 0 0 20px var(--glow-color);
}

/* ── Service card body wrapper (used for mobile row layout) ── */
.service-card-body { flex: 1; min-width: 0; }
/* On desktop/tablet the card is column-flex, body fills naturally */
.service-card h4,
.service-card-body h4 { color: var(--text-primary); margin-bottom: 15px; font-weight: 600; }
.service-card > p,
.service-card-body > p { color: var(--text-secondary); margin-bottom: 20px; }

/* ── Feature card body wrapper ── */
.feature-card-body { flex: 1; min-width: 0; }
.feature-card h4,
.feature-card-body h4 { color: var(--text-primary); margin-bottom: 15px; font-weight: 600; }
.feature-card p,
.feature-card-body p  { color: var(--text-secondary); }

.service-features { list-style: none; padding: 0; }
.service-features li {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 5px;
    padding-left: 20px;
    position: relative;
    text-align: left;
}
.service-features li::before {
    content: '▶';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 0.7rem;
    top: 3px;
}

/* Status indicators */
.service-status, .project-status {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 8px 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    border: 1px solid rgba(255,0,64,0.2);
}
.status-indicator {
    width: 8px; height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    animation: statusPulse 2s ease-in-out infinite;
}
.status-indicator.active  { background: var(--secondary-color); box-shadow: 0 0 8px var(--secondary-color); }
.status-indicator.critical{ background: var(--primary-color);   box-shadow: 0 0 8px var(--primary-color); }
.status-indicator.warning { background: var(--warning-color);   box-shadow: 0 0 8px var(--warning-color); }
.status-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
@keyframes statusPulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%     { opacity: 0.7; transform: scale(1.2); }
}

/* ── Project Cards ── */
.project-card {
    background: var(--dark-card);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275), box-shadow 0.4s ease, border-color 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-glow);
    height: 100%;
}
.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(255,0,64,0.35);
    border-color: var(--primary-color);
}
.project-card:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.project-image {
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-alt) 0%, var(--primary-color) 100%);
}
.project-image.next-gen-antivirus { background: linear-gradient(135deg, #0f0f23 0%, #1a0033 50%, #330066 100%); }
.project-image.hotel-management   { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); }
.project-image.llms-education     { background: linear-gradient(135deg, #2d1b69 0%, #11998e 50%, #38ef7d 100%); }
.project-image.royal-education    { background: linear-gradient(135deg, #8b0000 0%, #ff6b35 50%, #f7931e 100%); }
.project-image.ecommerce-platform { background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%); }

.project-icon {
    position: absolute;
    top: 20px; right: 20px;
    font-size: 2rem;
    color: rgba(255,255,255,0.3);
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 2;
}
.project-card:hover .project-icon {
    color: rgba(255,255,255,0.8);
    transform: scale(1.2) rotate(10deg);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,0,64,0.9) 0%, rgba(0,0,0,0.8) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(4px);
    z-index: 3;
}
.project-card:hover .project-overlay { opacity: 1; }
.project-overlay i { color: #fff; font-size: 3rem; margin-bottom: 10px; }

.overlay-text {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease 0.15s, transform 0.3s ease 0.15s;
}
.project-card:hover .overlay-text { opacity: 1; transform: translateY(0); }

.project-content { padding: 25px; position: relative; z-index: 2; }
.project-content h4 { color: var(--text-primary); margin-bottom: 12px; font-size: 1.2rem; font-weight: 600; }
.project-content p  { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 15px; line-height: 1.6; }

.project-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tag {
    background: linear-gradient(45deg, var(--primary-color), #ff3366);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Tech Items ── */
.tech-item {
    background: var(--dark-card);
    border: 1px solid var(--border-glow);
    border-radius: 10px;
    padding: 25px 15px;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275), box-shadow 0.3s ease, border-color 0.3s ease;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.tech-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(255,0,64,0.2);
}
.tech-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}
.tech-item:hover i {
    transform: scale(1.1);
    text-shadow: 0 0 15px var(--glow-color);
}
.tech-item span { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; }

/* ── Feature Cards ── */
.feature-card {
    background: var(--dark-card);
    border: 1px solid var(--border-glow);
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(255,0,64,0.2);
}
.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}
.feature-card:hover .feature-icon {
    transform: scale(1.1);
    text-shadow: 0 0 20px var(--glow-color);
}

/* ── Client Cards ── */
.client-card {
    background: var(--dark-card);
    border: 1px solid var(--border-glow);
    border-radius: 10px;
    padding: 25px 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.client-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(255,0,64,0.25);
}
.client-logo { margin-bottom: 12px; }
.client-logo i {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
}
.client-card:hover .client-logo i {
    transform: scale(1.2);
    color: var(--secondary-color);
    text-shadow: 0 0 15px var(--secondary-color);
}
.client-card h6 {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
    transition: color 0.3s ease;
}
.client-card:hover h6 { color: var(--text-primary); }

/* ── Contact Form ── */
.contact-form {
    background: var(--dark-card);
    border: 1px solid var(--border-glow);
    border-radius: 10px;
    padding: 40px;
}
.cyber-input {
    background: var(--dark-alt);
    border: 1px solid var(--border-glow);
    color: var(--text-primary);
    padding: 12px 15px;
    border-radius: 5px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}
.cyber-input:focus {
    background: var(--dark-alt);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(255,0,64,0.3);
    outline: none;
}
.cyber-input::placeholder { color: var(--text-muted); }

/* Select element fix */
.form-select.cyber-input option { background: var(--dark-alt); color: var(--text-primary); }

.contact-info { text-align: center; padding: 20px; }
.contact-icon { margin-bottom: 15px; color: var(--primary-color); }
.contact-info h5 { color: var(--text-primary); margin-bottom: 10px; }
.contact-info p  { color: var(--text-secondary); }
.contact-info a  { color: var(--primary-color); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

/* ── Footer ── */
.footer {
    background: var(--dark-alt);
    border-top: 1px solid var(--primary-color);
    padding: 50px 0 20px;
}
.footer-brand h4 { color: var(--text-primary); margin-bottom: 15px; }
.footer-brand p  { color: var(--text-secondary); margin-bottom: 20px; }

.social-links { display: flex; gap: 12px; }
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: var(--dark-card);
    border: 1px solid var(--border-glow);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.social-links a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255,0,64,0.4);
}

.footer-links h5 { color: var(--text-primary); margin-bottom: 20px; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-links ul li a:hover { color: var(--primary-color); padding-left: 5px; }

.footer-newsletter h5 { color: var(--text-primary); margin-bottom: 15px; }
.footer-newsletter p  { color: var(--text-secondary); margin-bottom: 20px; }

.newsletter-form { display: flex; gap: 10px; }
.newsletter-form .form-control {
    background: var(--dark-card);
    border: 1px solid var(--border-glow);
    color: var(--text-primary);
    flex: 1;
}
.newsletter-form .form-control:focus {
    background: var(--dark-card);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 10px rgba(255,0,64,0.3);
}

.footer-divider { border-color: rgba(255,0,64,0.3); margin: 30px 0 20px; }

/* ── Modals ── */
.cyber-modal .modal-content {
    background: var(--dark-card);
    border: 1px solid var(--primary-color);
    color: var(--text-primary);
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(255,0,64,0.3);
}
.cyber-modal .modal-header {
    border-bottom: 1px solid rgba(255,0,64,0.3);
    background: linear-gradient(135deg, var(--dark-alt) 0%, rgba(255,0,64,0.08) 100%);
}
.cyber-modal .modal-title {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.cyber-modal .btn-close { filter: invert(1); opacity: 0.8; transition: opacity 0.2s ease; }
.cyber-modal .btn-close:hover { opacity: 1; }
.cyber-modal .modal-body { padding: 30px; }
.cyber-modal .modal-body h6 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cyber-modal .modal-body ul { list-style: none; padding: 0; }
.cyber-modal .modal-body ul li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}
.cyber-modal .modal-body ul li::before {
    content: '▶';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 0.7rem;
    top: 4px;
}

.tech-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 15px; }
.tech-badges .badge { padding: 8px 15px; font-size: 0.85rem; border-radius: 20px; }

.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.impact-stats .stat {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    border: 1px solid rgba(255,0,64,0.2);
}
.impact-stats .stat strong {
    display: block;
    font-size: 2rem;
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 5px;
}
.impact-stats .stat span { color: var(--text-secondary); font-size: 0.85rem; text-transform: uppercase; }

.security-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.security-metrics .metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    border: 1px solid rgba(255,0,64,0.2);
}
.security-metrics .metric i { font-size: 2rem; margin-bottom: 10px; }
.security-metrics .metric strong {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 5px;
}
.security-metrics .metric span { color: var(--text-secondary); font-size: 0.85rem; text-transform: uppercase; }

/* ── Cybersecurity Arsenal Section ── */
.cyber-tech-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-alt) 50%, var(--dark-surface) 100%);
    position: relative;
    overflow: hidden;
}
.cyber-tech-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,0,64,0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(0,255,136,0.05) 0%, transparent 50%);
    z-index: 1;
}
.cyber-tech-content { position: relative; z-index: 2; }

.cyber-tech-category {
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.cyber-tech-category.animate-in { opacity: 1; transform: translateY(0); }

.category-header { text-align: center; margin-bottom: 30px; }
.category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}
.category-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}
.category-subtitle { color: var(--text-secondary); font-size: 1rem; font-style: italic; }

.cyber-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.cyber-tool-card {
    background: var(--dark-card);
    border: 1px solid rgba(255,0,64,0.2);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275), box-shadow 0.4s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation-delay: calc(var(--animation-order, 0) * 0.1s);
}
.cyber-tool-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(255,0,64,0.3);
}
.cyber-tool-card.featured { animation: featuredPulse 3s ease-in-out infinite; }
@keyframes featuredPulse {
    0%,100% { box-shadow: 0 0 20px rgba(255,0,64,0.2); }
    50%     { box-shadow: 0 0 30px rgba(255,0,64,0.4); }
}

/* Category-specific border colors */
.category-operations .cyber-tool-card { border-color: rgba(0,255,136,0.2); }
.category-operations .cyber-tool-card:hover { border-color: var(--secondary-color); box-shadow: 0 20px 40px rgba(0,255,136,0.3); }
.category-endpoint .cyber-tool-card { border-color: rgba(0,212,255,0.2); }
.category-endpoint .cyber-tool-card:hover { border-color: var(--accent-blue); box-shadow: 0 20px 40px rgba(0,212,255,0.3); }
.category-network .cyber-tool-card { border-color: rgba(255,170,0,0.2); }
.category-network .cyber-tool-card:hover { border-color: var(--warning-color); box-shadow: 0 20px 40px rgba(255,170,0,0.3); }

.tool-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 2;
}
.tool-icon i {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cyber-tool-card:hover .tool-icon { transform: scale(1.2); }

.tool-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.tool-description {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
    position: relative;
    z-index: 2;
}
.cyber-tool-card:hover .tool-description { color: var(--text-primary); }

/* Loading state for tool cards */
.cyber-tool-card.loading { opacity: 0; transform: translateY(30px) scale(0.95); }
.cyber-tool-card.loaded  { opacity: 1; transform: translateY(0) scale(1); transition: all 0.6s cubic-bezier(0.175,0.885,0.32,1.275); }

/* ── Network Lines (decorative) ── */
.network-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}
.network-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: networkFlow 4s ease-in-out infinite;
}
@keyframes networkFlow {
    0%,100% { opacity: 0; transform: translateX(-100%); }
    50%     { opacity: 0.8; transform: translateX(100%); }
}

/* ── Accessibility ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .cyber-grid, .network-lines { display: none; }
}

/* ================================================================
   RESPONSIVE SYSTEM
   Breakpoints:
     lg  : ≤ 992px  (tablet landscape / small laptop)
     md  : ≤ 768px  (tablet portrait)
     sm  : ≤ 480px  (large phone — iPhone Max, etc.)
     xs  : ≤ 375px  (small phone — iPhone SE, etc.)
   ================================================================ */

/* ── Fluid typography scale (applied globally, overridden per-bp) ── */
:root {
    --fs-hero:     clamp(1.75rem, 6vw, 3.5rem);
    --fs-section:  clamp(1.4rem,  4vw, 2.5rem);
    --fs-subtitle: clamp(0.9rem,  2.5vw, 1.1rem);
    --fs-card-h:   clamp(0.9rem,  2.2vw, 1.1rem);
    --fs-body:     clamp(0.82rem, 2vw,   0.95rem);
    --sp-section:  clamp(40px, 8vw, 80px);
}

/* ── ≤ 992px  (tablet landscape) ── */
@media (max-width: 992px) {
    .section-padding { padding: 60px 0; }

    .hero-title    { font-size: clamp(2rem, 5vw, 2.8rem); }
    .hero-subtitle { font-size: 1rem; max-width: 100%; }
    .section-title { font-size: clamp(1.6rem, 4vw, 2.2rem); }

    /* Terminal shifts below hero text on tablet */
    .hero-visual { margin-top: 40px; }
    .cyber-terminal { max-width: 100%; }

    /* Service cards: 2-col on tablet */
    #services .row.g-4 { --bs-gutter-x: 1rem; }
}

/* ── ≤ 768px  (tablet portrait / large phone) ── */
@media (max-width: 768px) {
    /* ── Global spacing ── */
    .section-padding { padding: 48px 0; }
    .container { padding-left: 16px; padding-right: 16px; }

    /* ── Typography ── */
    .hero-title    { font-size: clamp(1.7rem, 7vw, 2.2rem); line-height: 1.2; }
    .hero-subtitle { font-size: 0.95rem; margin-bottom: 1.5rem; }
    .section-title { font-size: clamp(1.35rem, 5vw, 1.9rem); letter-spacing: 1px; margin-bottom: 0.75rem; }
    .section-subtitle { font-size: 0.9rem; }

    /* ── Hero ── */
    .hero-section .row { padding-top: 90px; padding-bottom: 40px; }
    .hero-section .min-vh-100 { min-height: auto; }
    .hero-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
    .hero-buttons .me-3 { margin-right: 0 !important; }
    .cyber-btn-primary,
    .cyber-btn-outline { padding: 10px 22px; font-size: 0.82rem; letter-spacing: 0.5px; }

    /* Terminal: compact on mobile */
    .hero-visual { margin-top: 32px; }
    .cyber-terminal { height: 220px; }
    .terminal-body  { padding: 14px 16px; font-size: 12px; }
    .terminal-line  { margin-bottom: 6px; }

    /* ── About ── */
    .about-content { margin-bottom: 32px; }
    .about-content h3 { font-size: 1.2rem; }
    .about-content > p { font-size: 0.9rem; }
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin-top: 20px;
    }
    .stat-number { font-size: 1.8rem; }
    .stat-label  { font-size: 0.75rem; letter-spacing: 0.5px; }
    .cyber-card  { padding: 28px 20px; }

    /* ── Services: 2-col compact grid ── */
    #services .col-lg-4 { flex: 0 0 50%; max-width: 50%; }
    .service-card { padding: 20px 16px; }
    .service-icon { font-size: 2rem; margin-bottom: 12px; }
    .service-card h4 { font-size: 0.9rem; margin-bottom: 8px; }
    .service-card > p { font-size: 0.82rem; margin-bottom: 10px;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .service-features { display: none; } /* hidden on mobile — detail in modal/expand */
    .service-status { margin-top: 12px; padding: 6px 10px; }
    .status-text { font-size: 0.7rem; }

    /* ── Projects: 2-col ── */
    #projects .col-lg-4 { flex: 0 0 50%; max-width: 50%; }
    .project-image { height: 130px; }
    .project-icon  { font-size: 1.4rem; top: 10px; right: 10px; }
    .project-content { padding: 14px; }
    .project-content h4 { font-size: 0.88rem; margin-bottom: 6px; }
    .project-content > p {
        font-size: 0.8rem; margin-bottom: 8px;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .project-tags { gap: 4px; margin-bottom: 8px; }
    .tag { font-size: 0.68rem; padding: 3px 8px; }
    .project-status { margin-top: 8px; padding: 5px 10px; }

    /* ── Tech stack: 3-col ── */
    .tech-item { height: 90px; padding: 12px 8px; border-radius: 8px; }
    .tech-item i    { font-size: 1.8rem; margin-bottom: 6px; }
    .tech-item span { font-size: 0.75rem; }

    /* ── Cyber Arsenal ── */
    .cyber-tech-category { margin-bottom: 36px; }
    .category-header { margin-bottom: 20px; }
    .category-title  { font-size: 1.2rem; letter-spacing: 1px; }
    .category-subtitle { font-size: 0.85rem; }
    .cyber-tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 16px;
    }
    .cyber-tool-card { height: auto; min-height: 150px; padding: 16px 12px; }
    .tool-icon  { font-size: 2rem; margin-bottom: 10px; }
    .tool-name  { font-size: 0.8rem; letter-spacing: 0.5px; margin-bottom: 6px; }
    .tool-description { font-size: 0.75rem; line-height: 1.35;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

    /* ── Clients: 3-col ── */
    #clients .col-lg-2 { flex: 0 0 33.333%; max-width: 33.333%; }
    .client-card { height: 110px; padding: 14px 10px; border-radius: 8px; }
    .client-logo i { font-size: 1.8rem; }
    .client-card h6 { font-size: 0.72rem; }

    /* ── Why Choose Us: 1-col compact ── */
    .feature-card { padding: 24px 20px; }
    .feature-icon { font-size: 2rem; margin-bottom: 12px; }
    .feature-card h4 { font-size: 1rem; margin-bottom: 8px; }
    .feature-card p  { font-size: 0.85rem; }

    /* ── Contact ── */
    .contact-form { padding: 20px 16px; }
    .contact-info { padding: 12px; }
    .contact-info-cards .contact-info { margin-bottom: 16px !important; }
    .contact-icon i { font-size: 1.5rem !important; }
    .contact-info h5 { font-size: 0.95rem; margin-bottom: 6px; }
    .contact-info p  { font-size: 0.85rem; }

    /* ── Footer ── */
    .footer { padding: 36px 0 16px; }
    .footer-brand h4 { font-size: 1.1rem; }
    .footer-brand p  { font-size: 0.85rem; margin-bottom: 14px; }
    .footer-links h5 { font-size: 0.95rem; margin-bottom: 12px; }
    .footer-links ul li { margin-bottom: 7px; }
    .footer-links ul li a { font-size: 0.85rem; }
    .footer-newsletter h5 { font-size: 0.95rem; }
    .footer-newsletter p  { font-size: 0.85rem; margin-bottom: 12px; }
    .newsletter-form { flex-direction: column; gap: 8px; }
    .newsletter-form .cyber-btn-primary { width: 100%; }
    .social-links { gap: 10px; }
    .social-links a { width: 36px; height: 36px; }

    /* ── Modals ── */
    .cyber-modal .modal-body { padding: 20px 16px; }
    .cyber-modal .modal-title { font-size: 0.95rem; }
    .impact-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .impact-stats .stat { padding: 12px 8px; }
    .impact-stats .stat strong { font-size: 1.4rem; }
    .security-metrics { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .security-metrics .metric { padding: 12px 8px; }
    .security-metrics .metric strong { font-size: 1.2rem; }

    /* ── Decorative elements: reduce on mobile ── */
    .network-lines { display: none; }
    .cyber-grid { opacity: 0.15; }
    .hero-section::before { opacity: 0.2; }
}

/* ── ≤ 480px  (phones — iPhone X/Max/14 Pro) ── */
@media (max-width: 480px) {
    /* ── Global ── */
    .section-padding { padding: 40px 0; }
    .container { padding-left: 14px; padding-right: 14px; }

    /* ── Typography ── */
    .hero-title    { font-size: clamp(1.5rem, 8vw, 1.9rem); }
    .hero-subtitle { font-size: 0.88rem; }
    .section-title { font-size: clamp(1.2rem, 6vw, 1.6rem); letter-spacing: 0.5px; }
    .section-subtitle { font-size: 0.85rem; }

    /* ── Hero ── */
    .hero-section .row { padding-top: 80px; padding-bottom: 32px; }
    .hero-buttons { flex-direction: column; align-items: flex-start; gap: 10px; }
    .cyber-btn-primary,
    .cyber-btn-outline { width: 100%; text-align: center; padding: 11px 20px; }
    .cyber-terminal { height: 190px; }
    .terminal-body  { padding: 12px 14px; font-size: 11px; }

    /* ── About ── */
    .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .stat-number { font-size: 1.5rem; }
    .stat-label  { font-size: 0.68rem; }

    /* ── Services: 1-col on very small phones ── */
    #services .col-lg-4 { flex: 0 0 100%; max-width: 100%; }
    .service-card { padding: 18px 14px; display: flex; flex-direction: row;
        align-items: center; text-align: left; gap: 14px; }
    .service-icon { font-size: 1.8rem; margin-bottom: 0; flex-shrink: 0; }
    .service-card-body { flex: 1; min-width: 0; }
    .service-card h4 { font-size: 0.88rem; margin-bottom: 4px; }
    .service-card > p { display: none; } /* hide description entirely on xs */
    .service-status { margin-top: 8px; }

    /* ── Projects: 1-col ── */
    #projects .col-lg-4 { flex: 0 0 100%; max-width: 100%; }
    .project-image { height: 140px; }
    .project-content { padding: 14px 12px; }
    .project-content h4 { font-size: 0.92rem; }
    .project-content > p { -webkit-line-clamp: 2; }

    /* ── Tech stack: 3-col ── */
    .tech-item { height: 80px; padding: 10px 6px; }
    .tech-item i    { font-size: 1.5rem; margin-bottom: 4px; }
    .tech-item span { font-size: 0.68rem; }

    /* ── Cyber Arsenal: 2-col ── */
    .cyber-tools-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cyber-tool-card { min-height: 130px; padding: 14px 10px; }
    .tool-icon  { font-size: 1.7rem; margin-bottom: 8px; }
    .tool-name  { font-size: 0.75rem; letter-spacing: 0; }
    .tool-description { display: none; } /* hide on xs — icon + name only */

    /* ── Clients: 3-col ── */
    #clients .col-lg-2 { flex: 0 0 33.333%; max-width: 33.333%; }
    .client-card { height: 90px; padding: 10px 8px; }
    .client-logo i { font-size: 1.5rem; }
    .client-card h6 { font-size: 0.65rem; }

    /* ── Feature cards: compact row layout ── */
    .feature-card { padding: 18px 14px; display: flex; align-items: flex-start;
        text-align: left; gap: 14px; }
    .feature-icon { font-size: 1.8rem; margin-bottom: 0; flex-shrink: 0; }
    .feature-card h4 { font-size: 0.92rem; margin-bottom: 4px; }
    .feature-card p  { font-size: 0.82rem; }

    /* ── Contact ── */
    .contact-form { padding: 16px 12px; border-radius: 8px; }
    .cyber-input  { padding: 10px 12px; font-size: 0.88rem; }
    .contact-info-cards { margin-top: 8px; }

    /* ── Footer ── */
    .footer { padding: 28px 0 14px; }
    .footer-brand { margin-bottom: 20px; }
    .footer-links { margin-bottom: 16px; }
    .footer-divider { margin: 20px 0 14px; }

    /* ── Modals ── */
    .impact-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .impact-stats .stat { padding: 10px 6px; }
    .impact-stats .stat strong { font-size: 1.2rem; }
    .security-metrics { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .security-metrics .metric { padding: 10px 6px; }
    .security-metrics .metric i { font-size: 1.4rem; }
    .security-metrics .metric strong { font-size: 1rem; }
    .tech-badges .badge { padding: 5px 10px; font-size: 0.75rem; }
}

/* ── ≤ 375px  (iPhone SE / small Android) ── */
@media (max-width: 375px) {
    .hero-title { font-size: 1.45rem; }
    .section-title { font-size: 1.15rem; }
    .cyber-terminal { height: 170px; }
    .terminal-body  { font-size: 10.5px; padding: 10px 12px; }
    .stats-grid { gap: 6px; }
    .stat-number { font-size: 1.3rem; }
    .cyber-tools-grid { gap: 8px; }
    .cyber-tool-card { min-height: 115px; padding: 12px 8px; }
    .tool-icon { font-size: 1.5rem; }
    .tool-name { font-size: 0.7rem; }
    .client-card { height: 80px; }
    .client-logo i { font-size: 1.3rem; }
    .client-card h6 { font-size: 0.6rem; }
    .cyber-btn-primary,
    .cyber-btn-outline { font-size: 0.78rem; padding: 10px 16px; }
}

/* ── Reduced motion (JS-detected low FPS) ── */
.reduced-motion .service-card,
.reduced-motion .project-card,
.reduced-motion .tech-item,
.reduced-motion .cyber-tool-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}
.reduced-motion .service-card:hover,
.reduced-motion .project-card:hover,
.reduced-motion .tech-item:hover,
.reduced-motion .cyber-tool-card:hover {
    transform: translateY(-4px) !important;
}

/* ── Form validation feedback ── */
.was-validated .cyber-input:invalid { border-color: var(--primary-color); }
.was-validated .cyber-input:valid   { border-color: var(--secondary-color); }

/* ── Visually hidden (accessibility) ── */
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ── Focus visible (keyboard nav) ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}
