/* DNT Technologies - Style System */

:root {
    /* Logo Colors */
    --clr-indigo: #393185;
    --clr-crimson: #e31e24;
    
    /* RGB representations for transparency manipulation */
    --rgb-indigo: 57, 49, 133;
    --rgb-crimson: 227, 30, 36;
    
    /* Backgrounds & Text */
    --clr-bg: #07060c;
    --clr-bg-panel: rgba(15, 13, 27, 0.5);
    --clr-text-primary: #f5f5f7;
    --clr-text-secondary: #a4a2b3;
    --clr-text-dark: #6e6b80;
    
    /* Glassmorphism & Borders */
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-border-active: rgba(255, 255, 255, 0.15);
    --glass-blur: blur(16px);
    
    /* Glows */
    --glow-indigo: 0 0 25px rgba(var(--rgb-indigo), 0.35);
    --glow-crimson: 0 0 25px rgba(var(--rgb-crimson), 0.35);
    --glow-intense-indigo: 0 0 40px rgba(var(--rgb-indigo), 0.6);
    --glow-intense-crimson: 0 0 40px rgba(var(--rgb-crimson), 0.6);
    
    /* Font Families */
    --ff-display: 'Outfit', sans-serif;
    --ff-mono: 'JetBrains Mono', monospace;
}

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

html, body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: var(--clr-bg);
    color: var(--clr-text-primary);
    font-family: var(--ff-display);
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Background Interactive Elements */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto; /* Allow mouse interactions */
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.007) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.007) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transform-origin: center;
    animation: gridReveal 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* CRT Screen Power-On Flash & Sweep Laser Scanline */
.cyber-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    opacity: 0;
    z-index: 1000;
    pointer-events: none;
    animation: flashScreen 0.4s ease-out forwards;
    animation-delay: 0.1s;
}

.boot-scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--clr-crimson), #ffffff, var(--clr-indigo), transparent);
    box-shadow: 0 0 20px var(--clr-crimson), 0 0 30px var(--clr-indigo);
    opacity: 0;
    z-index: 1001;
    pointer-events: none;
    animation: scanlineSweep 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Background Glowing Orbs */
.glowing-orb {
    position: fixed;
    width: 45vw;
    height: 45vw;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0;
    transform: scale(0.6);
    z-index: 2;
    pointer-events: none;
    animation: orbReveal 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards, orbFloat 20s infinite alternate ease-in-out 2.5s;
}

.orb-indigo {
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, var(--clr-indigo) 0%, transparent 70%);
}

.orb-crimson {
    bottom: -10%;
    right: -10%;
    background: radial-gradient(circle, var(--clr-crimson) 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes orbFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(5%, 10%) scale(1.1);
    }
    100% {
        transform: translate(-5%, -5%) scale(0.95);
    }
}

/* Layout Container (Heads Up Display Style) */
.hud-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    z-index: 10;
    display: flex;
    flex-direction: column;
    padding: 24px;
    justify-content: space-between;
    gap: 20px;
}

/* Header */
.hud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    min-height: 80px;
    height: auto;
}

.hud-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
}

.hud-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.95); /* Light backdrop for perfect visibility */
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.7), 0 4px 15px rgba(0, 0, 0, 0.2);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hud-logo-wrapper:hover .hud-logo-img {
    transform: scale(1.06) rotate(1.5deg);
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.95), 0 6px 20px rgba(0, 0, 0, 0.35);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.hud-company-info {
    display: flex;
    flex-direction: column;
}

.hud-company-title {
    font-weight: 800; /* Bolder */
    font-size: 1.45rem; /* Increased from 1.2rem */
    letter-spacing: 1.5px;
    line-height: 1.1;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 0%, #dedcef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hud-company-sub {
    font-size: 0.85rem; /* Increased from 0.75rem */
    letter-spacing: 4px; /* Increased letter-spacing */
    text-transform: uppercase;
    color: #b3b1c5; /* Brighter for readability */
    font-weight: 600;
    margin-top: 3px;
}

/* Center Header Panel: Continuous Code Stream */
.hud-code-stream {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 8, 20, 0.85);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(var(--rgb-crimson), 0.45);
    font-family: var(--ff-mono);
    font-size: 0.78rem;
    color: var(--clr-text-secondary);
    min-width: 290px;
    max-width: 400px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6), 0 0 8px rgba(var(--rgb-crimson), 0.1);
    white-space: nowrap;
    overflow: hidden;
    height: 38px;
    box-sizing: border-box;
}

.code-stream-tag {
    color: var(--clr-crimson);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.code-stream-text {
    color: #00e676; /* Vibrant code green */
    text-shadow: 0 0 6px rgba(0, 230, 118, 0.45);
    font-weight: 500;
}

.code-stream-cursor {
    color: #00e676;
    animation: blinkTextCursor 0.8s infinite;
    font-weight: 700;
}

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

.hud-system-status {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #00e676;
    box-shadow: 0 0 8px #00e676;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(0, 230, 118, 0);
    }
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0);
    }
}

.status-text {
    font-family: var(--ff-mono);
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #00e676;
    font-weight: 500;
}

.hud-company-location {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--clr-text-dark);
    font-weight: 600;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.hud-logo-wrapper:hover .hud-company-location {
    color: var(--clr-text-secondary);
}

.hud-company-location::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--clr-crimson);
    box-shadow: 0 0 6px var(--clr-crimson);
    animation: locationPulse 2s infinite alternate;
}

@keyframes locationPulse {
    0% {
        opacity: 0.5;
        box-shadow: 0 0 2px var(--clr-crimson);
    }
    100% {
        opacity: 1;
        box-shadow: 0 0 8px var(--clr-crimson), 0 0 12px var(--clr-crimson);
    }
}

.footer-location {
    font-size: 0.72rem;
    color: var(--clr-text-secondary);
    margin-top: 5px;
    font-weight: 550;
    display: flex;
    align-items: center;
    gap: 4px;
}

.loc-pin-icon {
    color: var(--clr-crimson);
    animation: locPinBounce 1.5s infinite alternate ease-in-out;
}

@keyframes locPinBounce {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-2px);
    }
}

/* Audio visualizer widget in system status */
.hud-audio-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 2.5px;
    height: 12px;
    margin-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 8px;
}

.hud-audio-visualizer .bar {
    width: 2px;
    background-color: #00e676;
    border-radius: 1px;
    transform-origin: bottom;
    animation: bounceBar 1.2s ease-in-out infinite;
}

.hud-audio-visualizer .bar-1 { animation-delay: 0.1s; height: 60%; }
.hud-audio-visualizer .bar-2 { animation-delay: 0.4s; height: 100%; }
.hud-audio-visualizer .bar-3 { animation-delay: 0.2s; height: 40%; }
.hud-audio-visualizer .bar-4 { animation-delay: 0.6s; height: 80%; }

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

/* Main Dashboard Panels */
.hud-main {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    margin: 20px 0;
    flex-grow: 1;
    align-items: stretch;
}

.panel-left, .panel-right {
    border: 1px solid var(--glass-border);
    background: var(--clr-bg-panel);
    backdrop-filter: var(--glass-blur);
    border-radius: 20px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.panel-left {
    justify-content: space-between;
    opacity: 0;
    transform: translateX(-50px) scale(0.98);
    animation: slideRight 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.25s;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 30px;
    background: rgba(10, 8, 20, 0.85);
    border: 1px solid rgba(var(--rgb-crimson), 0.45);
    align-self: flex-start;
    opacity: 0;
    transform: scale(0.9);
    animation: badgeReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, borderPulse 4s infinite alternate 0.8s;
}

@keyframes borderPulse {
    0% {
        border-color: rgba(var(--rgb-crimson), 0.45);
        box-shadow: 0 0 8px rgba(var(--rgb-crimson), 0.25);
    }
    100% {
        border-color: rgba(var(--rgb-indigo), 0.55);
        box-shadow: 0 0 12px rgba(var(--rgb-indigo), 0.35);
    }
}

.badge-accent {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ff333a;
    box-shadow: 0 0 8px #ff333a;
}

.badge-text {
    font-family: var(--ff-mono);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

/* Typography & Headline */
.main-headline {
    font-size: clamp(3.5rem, 9.5vw, 5.5rem);
    font-weight: 850;
    line-height: 1.05;
    letter-spacing: 2px;
    margin: 12px 0;
    text-transform: uppercase;
}

.gradient-text {
    background: linear-gradient(135deg, #ff2b3c 0%, #b53eff 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    filter: drop-shadow(0 0 12px rgba(255, 43, 60, 0.65)) drop-shadow(0 0 25px rgba(59, 130, 246, 0.45));
}

.sub-headline {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 600;
    color: var(--clr-text-primary);
    letter-spacing: 1px;
    margin-bottom: 16px;
    text-transform: uppercase;
    opacity: 0;
    border-left: 2px solid var(--clr-crimson);
    padding-left: 10px;
    transform: translateY(15px);
    animation: elementFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.65s;
}

.description {
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    color: var(--clr-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(15px);
    animation: elementFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.75s;
}

/* System Progress Bar */
.system-progress-container {
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(15px);
    animation: elementFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.85s;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.progress-label {
    font-family: var(--ff-mono);
    font-size: 0.75rem;
    color: var(--clr-text-secondary);
    letter-spacing: 1px;
}

.progress-pct {
    font-family: var(--ff-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--clr-crimson);
}

.progress-bar-track {
    height: 6px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--clr-indigo) 0%, var(--clr-crimson) 100%);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(var(--rgb-crimson), 0.5);
}

/* Terminal Log Panel */
.terminal-panel {
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background-color: rgba(0, 0, 0, 0.4);
    font-family: var(--ff-mono);
    overflow: hidden;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(15px);
    animation: elementFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.95s;
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

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

.dot.red { background-color: var(--clr-crimson); }
.dot.yellow { background-color: #ffb300; }
.dot.green { background-color: #00e676; }

.terminal-title {
    font-size: 0.7rem;
    color: var(--clr-text-dark);
}

.terminal-body {
    padding: 16px;
    font-size: 0.75rem;
    height: 146px;
    overflow-y: hidden;
    color: var(--clr-text-secondary);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.log-line {
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid transparent;
}

.log-line.active {
    border-right-color: var(--clr-crimson);
    animation: blinkCursor 0.8s infinite;
}

.log-line.accent {
    color: var(--clr-crimson);
}

.log-line.info {
    color: var(--clr-text-primary);
}

@keyframes blinkCursor {
    50% { border-right-color: transparent; }
}

/* Right Panel Elements */
.panel-right {
    justify-content: flex-start;
    opacity: 0;
    transform: translateX(50px) scale(0.98);
    animation: slideLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.35s;
}

.panel-right .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.2px;
    background: linear-gradient(135deg, #fff 0%, #a4a2b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(15px);
    animation: elementFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.55s;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.expertise-card {
    display: flex;
    gap: 16px;
    padding: 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: elementFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.expertise-card:nth-child(1) { animation-delay: 0.65s; }
.expertise-card:nth-child(2) { animation-delay: 0.75s; }
.expertise-card:nth-child(3) { animation-delay: 0.85s; }
.expertise-card:nth-child(4) { animation-delay: 0.95s; }

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.expertise-card.border-glow-indigo::before {
    background: var(--clr-indigo);
}

.expertise-card.border-glow-crimson::before {
    background: var(--clr-crimson);
}

.expertise-card:hover {
    transform: translateX(4px) translateY(-2px);
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--glass-border-active);
}

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

.expertise-card.border-glow-indigo:hover {
    box-shadow: 0 6px 24px rgba(var(--rgb-indigo), 0.2);
}

.expertise-card.border-glow-crimson:hover {
    box-shadow: 0 6px 24px rgba(var(--rgb-crimson), 0.2);
}

.card-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.icon-indigo {
    color: #8c82ff;
}

.icon-crimson {
    color: #ff5252;
}

.expertise-card:hover .card-icon-wrapper {
    transform: scale(1.1);
}

.expertise-card:hover .icon-indigo {
    background-color: rgba(var(--rgb-indigo), 0.2);
    box-shadow: 0 0 15px rgba(var(--rgb-indigo), 0.4);
    color: #b4afff;
}

.expertise-card:hover .icon-crimson {
    background-color: rgba(var(--rgb-crimson), 0.2);
    box-shadow: 0 0 15px rgba(var(--rgb-crimson), 0.4);
    color: #ff8a8a;
}

.card-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--clr-text-primary);
}

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

/* Footer Container */
.hud-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    min-height: 80px;
    height: auto;
    opacity: 0;
    transform: translateY(40px);
    animation: slideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.footer-left .copyright {
    font-size: 0.8rem;
    color: var(--clr-text-dark);
}

/* Founder Badge */
.founder-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 22px 8px 8px;
    border-radius: 40px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    /* Subtle continuous breathing float */
    animation: founderFloat 4s infinite ease-in-out;
}

.founder-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.12),
        transparent
    );
    transform: rotate(35deg);
    pointer-events: none;
    transition: none;
}

.founder-badge:hover {
    border-color: rgba(var(--rgb-indigo), 0.5);
    background: rgba(var(--rgb-indigo), 0.1);
    box-shadow: 0 0 25px rgba(var(--rgb-indigo), 0.25), inset 0 0 8px rgba(255, 255, 255, 0.03);
    transform: translateY(-2px) scale(1.02);
}

/* Run the light sweep on hover */
.founder-badge:hover::after {
    left: 150%;
    transition: left 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.founder-avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--clr-crimson) 0%, var(--clr-indigo) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    position: relative;
    z-index: 2;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    /* Continuous neon breathing glow */
    animation: avatarGlowPulse 3s infinite ease-in-out;
}

/* 360-degree rotation and glow increase on hover */
.founder-badge:hover .founder-avatar-placeholder {
    transform: rotate(360deg) scale(1.08);
    box-shadow: 0 0 20px rgba(var(--rgb-crimson), 0.8), 0 0 30px rgba(var(--rgb-indigo), 0.8);
}

.founder-text {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.founder-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--clr-text-primary);
    transition: all 0.3s ease;
}

.founder-title {
    font-size: 0.8rem;
    color: var(--clr-text-secondary);
    letter-spacing: 1px;
    font-weight: 550;
    transition: all 0.3s ease;
}

.founder-badge:hover .founder-name {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.founder-badge:hover .founder-title {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(var(--rgb-crimson), 0.8);
}

/* Contact Links */
.contact-links {
    display: flex;
    gap: 12px;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--clr-text-primary);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.contact-btn.glow-indigo:hover {
    background-color: rgba(var(--rgb-indigo), 0.1);
    border-color: var(--clr-indigo);
    box-shadow: var(--glow-indigo);
    color: #fff;
    transform: translateY(-3px);
}

.contact-btn.glow-crimson:hover {
    background-color: rgba(37, 211, 102, 0.1);
    border-color: #25d366;
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.45);
    color: #fff;
    transform: translateY(-3px);
}

.contact-btn svg {
    transition: transform 0.3s ease;
}

.contact-btn:hover svg {
    transform: scale(1.1);
}

/* Responsive Rules for Small Heights and Widths */
@media (max-width: 1024px) {
    .hud-main {
        grid-template-columns: 1fr;
        height: auto;
        overflow-y: visible;
    }
    
    html, body {
        overflow-y: auto;
        height: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    .hud-container {
        height: auto;
        gap: 16px;
        padding: 16px;
        min-height: 100vh;
    }
    
    .panel-left, .panel-right {
        padding: 24px;
        height: auto;
    }
}

@media (max-width: 768px) {
    .hud-header {
        flex-direction: column;
        height: auto;
        gap: 12px;
        padding: 16px 12px;
    }
    
    .hud-code-stream {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        margin: 4px 0;
    }
    
    .hud-footer {
        flex-direction: column;
        height: auto;
        gap: 16px;
        padding: 20px 16px;
        text-align: center;
    }

    .footer-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-location {
        justify-content: center;
    }
    
    .footer-right {
        width: 100%;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 10px;
    }
    
    .contact-btn {
        width: auto;
        max-width: 100%;
        justify-content: center;
    }
    
    .founder-badge {
        width: 100%;
        justify-content: center;
        padding: 8px 16px;
    }

    .log-line {
        white-space: pre-wrap !important;
        overflow-wrap: break-word;
        word-break: break-word;
    }
}

@media (max-width: 600px) {
    .expertise-grid {
        grid-template-columns: 1fr;
    }
}

/* Extra optimization for old/small devices (iPhone SE/5S/6, smaller Android devices) */
@media (max-width: 480px) {
    .hud-code-stream {
        display: none !important;
    }

    .main-headline {
        font-size: clamp(1.8rem, 9.5vw, 2.8rem) !important;
        letter-spacing: 1px;
        margin: 8px 0;
    }

    .hud-container {
        padding: 10px;
        gap: 12px;
    }

    .hud-system-status {
        padding: 6px 12px;
        gap: 6px;
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .status-text {
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }

    .hud-audio-visualizer {
        display: none !important;
    }
    
    .panel-left, .panel-right {
        padding: 16px;
        border-radius: 14px;
    }
    
    .hud-logo-img {
        height: 36px;
        padding: 4px 8px;
        border-radius: 8px;
    }
    
    .hud-company-title {
        font-size: 1.15rem;
    }
    
    .hud-company-sub {
        font-size: 0.7rem;
        letter-spacing: 2.5px;
    }
    
    .sub-headline {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    
    .description {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    
    .expertise-card {
        padding: 14px;
        gap: 12px;
        border-radius: 10px;
    }
    
    .card-icon-wrapper {
        width: 38px;
        height: 38px;
        border-radius: 8px;
    }
    
    .card-icon-wrapper svg {
        width: 18px;
        height: 18px;
    }
    
    .terminal-body {
        padding: 10px;
        height: 128px;
        font-size: 0.7rem;
    }
    
    .system-progress-container {
        margin-bottom: 15px;
    }
    
    .panel-right .section-title {
        font-size: 1.25rem;
        margin-bottom: 16px;
    }

    .contact-btn {
        font-size: 0.82rem;
        padding: 8px 16px;
    }
}

@media (max-height: 800px) and (min-width: 1025px) {
    /* Tighten sizes on laptops with short height screens to avoid overflow */
    .hud-header, .hud-footer {
        min-height: 64px;
        height: auto;
        padding: 10px 16px;
    }
    .hud-logo-img {
        height: 38px;
        padding: 4px 10px;
        border-radius: 8px;
    }
    .hud-main {
        height: auto;
        min-height: calc(100vh - 190px);
        margin: 12px 0;
        gap: 16px;
    }
    .panel-left, .panel-right {
        padding: 24px;
    }
    .main-headline {
        font-size: clamp(2.8rem, 5vw, 3.8rem);
        margin: 8px 0;
    }
    .description {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    .system-progress-container {
        margin-bottom: 15px;
    }
    .expertise-grid {
        gap: 10px;
    }
    .expertise-card {
        padding: 12px 16px;
    }
    .terminal-body {
        height: 138px;
        padding: 12px;
    }
}

/* ==========================================================================
   Entrance animations (HUD Boot up sequence)
   ========================================================================== */
@keyframes flashScreen {
    0% { opacity: 0.35; }
    100% { opacity: 0; }
}

@keyframes scanlineSweep {
    0% { top: 0%; opacity: 0.8; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@keyframes gridReveal {
    0% { opacity: 0; transform: scale(1.15) rotate(-1deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes orbReveal {
    0% { opacity: 0; transform: scale(0.6); }
    100% { opacity: 0.15; transform: scale(1); }
}

@keyframes slideDown {
    0% { opacity: 0; transform: translateY(-40px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideRight {
    0% { opacity: 0; transform: translateX(-50px) scale(0.98); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes slideLeft {
    0% { opacity: 0; transform: translateX(50px) scale(0.98); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes badgeReveal {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes titleReveal {
    0% { opacity: 0; clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
    100% { opacity: 1; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}

@keyframes elementFadeUp {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes founderFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes avatarGlowPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(var(--rgb-crimson), 0.45), 0 0 0 1px rgba(var(--rgb-indigo), 0.2);
    }
    50% {
        box-shadow: 0 0 18px rgba(var(--rgb-crimson), 0.65), 0 0 0 3px rgba(var(--rgb-indigo), 0.3);
    }
}

/* Accessibility: Supports users with vestibular motion triggers */
@media (prefers-reduced-motion: reduce) {
    .grid-overlay, .glowing-orb, .hud-header, .hud-footer, .panel-left, .panel-right,
    .status-badge, .main-headline, .sub-headline, .description, .system-progress-container,
    .terminal-panel, .panel-right .section-title, .expertise-card, .founder-avatar-placeholder, .founder-badge, .status-pulse,
    .hud-audio-visualizer .bar, .loc-pin-icon, .hud-company-location::before {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
    }
    .boot-scanline, .cyber-flash {
        display: none !important;
    }
}

.fade-out-log {
    opacity: 0;
    transform: translateX(-15px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
