/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0 !important;
}

/* CSS Variables */
:root {
    --background: #000000;
    --foreground: #C5C9D2;
    --card: #1A1A1A;
    --card-foreground: #C5C9D2;
    --primary: #00FFFF;
    --primary-foreground: #000000;
    --secondary: #404040;
    --secondary-foreground: #C5C9D2;
    --muted: #2A2A2A;
    --muted-foreground: #808080;
    --accent: #00FFFF;
    --accent-foreground: #000000;
    --border: #404040;
    --input: #2A2A2A;
    --ring: #00FFFF;
    
    /* Skynet Color Palette */
    --skynet-black: #0a0a0a;
    --skynet-dark-blue: #0f1419;
    --skynet-blue: #1a2332;
    --skynet-cyan: #00ffff;
    --skynet-cyan-glow: #00ffff80;
    --skynet-gray: #c5c9d2;
    --skynet-dark-gray: #2a2a2a;
}

/* Custom Skynet: Blue Phase Styles */
.skynet-theme {
    font-family: 'Roboto Mono', monospace;
    background: var(--background);
    color: var(--foreground);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

.skynet-heading {
    font-family: 'Aldrich', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--foreground);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Aldrich', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--skynet-gray);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--skynet-dark-gray);
}

.nav-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 0;
}

.logo {
    width: 40px;
    height: 40px;
    animation: logoBlink 2.2s infinite linear;
}

/* Visually enlarge the logo in the navbar without affecting layout size */
.navbar .logo {
    transform: scale(1.35);
    transform-origin: center;
}

.brand-text {
    font-family: 'Aldrich', sans-serif;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

/* Hamburger button (hidden on desktop) */
.hamburger-button {
    display: none;
    background: transparent;
    border: 1px solid var(--skynet-dark-gray);
    color: var(--skynet-gray);
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hamburger-button:hover {
    border-color: var(--skynet-cyan);
    color: var(--skynet-cyan);
}

.nav-link {
    color: var(--skynet-gray);
    text-decoration: none;
    font-family: 'Roboto Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--skynet-cyan);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--skynet-cyan);
    box-shadow: 0 0 10px var(--skynet-cyan);
}

/* Buttons */
.skynet-button {
    background: transparent;
    border: 1px solid var(--skynet-dark-gray);
    color: var(--skynet-gray);
    padding: 12px 24px;
    font-family: 'Roboto Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skynet-button:hover {
    border-color: var(--skynet-cyan);
    color: var(--skynet-cyan);
    box-shadow: 0 0 7px rgba(0, 255, 255, 0.1);
}

/* Hero primary button styled like cards (no angular corners) */
.hero-btn-primary {
    background: rgba(10, 10, 10, 0.8) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important; /* override global reset */
    backdrop-filter: blur(10px);
    box-shadow: none;
}

/* Remove scanning overlay for this button to match card look */
.hero-btn-primary::before { display: none !important; }

/* Hover animation appears on hover and disappears on mouse leave */
.hero-btn-primary:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    animation: heroButtonGlow 1.4s ease-in-out infinite alternate !important;
    box-shadow: 0 0 16px rgba(0, 255, 255, 0.18) !important;
}

@keyframes heroButtonGlow {
    from { box-shadow: 0 0 6px rgba(0, 255, 255, 0.08); }
    to { box-shadow: 0 0 24px rgba(0, 255, 255, 0.35); }
}

.skynet-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.skynet-button:hover::before {
    left: 100%;
}

.icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

/* Hero Section */
.hero-btn-primary, .hero-btn-secondary {
    font-size: 18px;
    padding: 16px 32px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Footer */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--skynet-dark-gray);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand .logo {
    width: 32px;
    height: 32px;
}

.footer-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

/* Glitch Effect */
.glitch-text {
    position: relative;
}

.glitch-text.glitch-active {
    animation: glitch 0.3s ease-in-out;
}

.glitch-text.glitch-active::before,
.glitch-text.glitch-active::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text.glitch-active::before {
    color: #ff0000;
    z-index: -1;
    animation: glitch-1 0.3s ease-in-out;
}

.glitch-text.glitch-active::after {
    color: var(--skynet-cyan);
    z-index: -2;
    animation: glitch-2 0.3s ease-in-out;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes glitch-1 {
    0% { transform: translate(0); }
    20% { transform: translate(2px, 0); }
    40% { transform: translate(-2px, 0); }
    60% { transform: translate(2px, 0); }
    80% { transform: translate(-2px, 0); }
    100% { transform: translate(0); }
}

@keyframes glitch-2 {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 0); }
    40% { transform: translate(2px, 0); }
    60% { transform: translate(-2px, 0); }
    80% { transform: translate(2px, 0); }
    100% { transform: translate(0); }
}



.skynet-container {
    border: 1px solid var(--border);
    background: var(--card);
    position: relative;
}

.skynet-container::before,
.skynet-container::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.skynet-container::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.skynet-container::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

.skynet-glow {
    transition: all 0.1s ease;
    cursor: pointer;
}

.skynet-glow:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}



.skynet-circuit {
    background-image: url('./assets/background_1.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.skynet-glitch {
    animation: glitch 0.3s ease-in-out;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}



.skynet-terminal {
    font-family: 'Roboto Mono', monospace;
    background: var(--background);
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 16px;
    font-size: 14px;
    line-height: 1.4;
}

.skynet-terminal::before {
    content: '> ';
    color: var(--primary);
}

.skynet-logo {
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.3));
    transition: all 0.3s ease;
}

.skynet-logo:hover {
    filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.6));
    transform: scale(1.05);
}

.skynet-metric {
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
    color: var(--primary);
    font-size: 2rem;
    text-shadow: 0 0 10px var(--primary);
}

.skynet-label {
    font-family: 'Roboto Mono', monospace;
    color: var(--muted-foreground);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.skynet-nav {
    backdrop-filter: blur(10px);
    background: rgba(26, 26, 26, 0.8);
    border-bottom: 1px solid var(--border);
}

.skynet-section {
    position: relative;
    padding: 80px 0;
}

/* Slight vertical offset for the first hero section */
.hero-offset {
    padding-top: calc(80px + 5vh);
}

.skynet-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* Advanced Animations and Effects */
.skynet-pulse {
    animation: pulse 2s infinite;
}

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

.skynet-scan {
    position: relative;
    overflow: hidden;
}

.skynet-scan::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: scan 4s infinite;
}

@keyframes scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.skynet-matrix {
    position: relative;
    overflow: hidden;
}

.skynet-matrix::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 191, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(107, 159, 212, 0.1) 0%, transparent 50%);
    animation: matrixShift 10s infinite;
}

@keyframes matrixShift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(10px, -10px) rotate(1deg); }
    66% { transform: translate(-10px, 10px) rotate(-1deg); }
}

.skynet-typing {
    overflow: hidden;
    border-right: 2px solid var(--primary);
    white-space: nowrap;
    animation: typing 4s steps(40, end), blink-caret 1.5s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary); }
}

/* Simple typing animation with cursor */
.typing-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}


.typing-container {
    min-height: 7em;
    position: relative;
}
.typing-container p {
    position: relative;
    display: inline;
}

.typing-container .cursor {
    display: inline-block;
    width: 8px;
    height: 1.2rem;
    background-color: var(--primary);
    margin-left: 4px;
    animation: blink-caret 1.5s infinite linear;
}

@keyframes typing {
    from { 
        width: 0; 
    }
    to { 
        width: 100%; 
    }
}

@keyframes blink-caret {
    0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% {
        background-color: var(--primary);
    }
    20%, 21.999%, 63%, 63.999%, 65%, 69.999% {
        background-color: transparent;
    }
}

.skynet-float {
    animation: float 6s ease-in-out infinite;
}

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



.skynet-flicker {
    animation: flicker 1.5s infinite linear;
}

@keyframes flicker {
    0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% {
        opacity: 1;
    }
    20%, 21.999%, 63%, 63.999%, 65%, 69.999% {
        opacity: 0.4;
    }
}

.skynet-zoom-in {
    transition: transform 0.3s ease;
}

.skynet-zoom-in:hover {
    transform: scale(1.05);
}

.skynet-hologram {
    position: relative;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 255, 255, 0.1) 50%, transparent 70%);
    background-size: 20px 20px;
    animation: hologram 3s linear infinite;
}

@keyframes hologram {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}

.skynet-energy-field {
    position: relative;
    background: radial-gradient(ellipse at center, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
    animation: energyField 4s ease-in-out infinite;
}

@keyframes energyField {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.6; }
}



.skynet-interference {
    position: relative;
}

.skynet-interference::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 255, 0.03) 2px,
        rgba(0, 255, 255, 0.03) 4px
    );
    animation: interference 0.1s infinite linear;
}

@keyframes interference {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

.skynet-power-core {
    position: relative;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.2) 0%, rgba(0, 255, 255, 0.1) 30%, transparent 70%);
    animation: powerCore 2s ease-in-out infinite;
}

@keyframes powerCore {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 255, 0.3); }
    50% { box-shadow: 0 0 40px rgba(0, 255, 255, 0.6); }
}



/* Utility classes */
.fixed { position: fixed; }
.top-0 { top: 0; }
.w-full { width: 100%; }
.z-50 { z-index: 50; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.p-8 { padding: 2rem; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-6xl { font-size: 2.5rem; line-height: 1; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.font-mono { font-family: 'Roboto Mono', monospace; }
.tracking-wider { letter-spacing: 0.05em; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.ml-2 { margin-left: 0.5rem; }
.mr-4 { margin-right: 1rem; }
.text-center { text-align: center; }
.text-cyan-400 { color: #22d3ee; }
.border-t { border-top-width: 1px; }
.border-gray-800 { border-color: #1f2937; }
.min-h-screen { min-height: 100vh; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-12 { gap: 3rem; }
.inline { display: inline; }

/* Grid layouts */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.col-span-3 { grid-column: span 3 / span 3; }
.col-span-2 { grid-column: span 2 / span 2; }

/* Responsive design */
@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:mb-0 { margin-bottom: 0; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:text-8xl { font-size: 4rem; line-height: 1; }
}

@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
}

/* Animation classes */
.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: fadeInRight 0.8s ease forwards 0.2s;
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Subtle logo blink similar to mobile */
@keyframes logoBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}



/* Responsive adjustments */
@media (max-width: 768px) {
    .skynet-heading {
        font-size: 2.5rem;
    }
    
    .skynet-metric {
        font-size: 1.5rem;
    }
    
    .skynet-container::before,
    .skynet-container::after {
        width: 15px;
        height: 15px;
    }
    
    .skynet-button::before,
    .skynet-button::after {
        width: 8px;
        height: 8px;
    }
    
    .flex-col { flex-direction: column; }
}

/* HUD Overlay */
.hud-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 30;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
}

.hud-top-left {
    position: absolute;
    top: 110px;
    left: 36px;
    color: var(--primary);
    opacity: 0.6;
}

.hud-top-left div {
    margin-bottom: 8px;
}

.hud-top-right {
    position: absolute;
    top: 110px;
    right: 36px;
    color: var(--primary);
    opacity: 0.6;
    text-align: right;
}

.hud-top-right div {
    margin-bottom: 8px;
}

.hud-corner {
    position: absolute;
    width: 32px;
    height: 32px;
    opacity: 0.3;
}

.hud-bottom-left {
    bottom: 24px;
    left: 24px;
    border-left: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
}

.hud-bottom-right {
    bottom: 24px;
    right: 24px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
}

.hud-top-left-corner {
    top: 100px;
    left: 24px;
    border-left: 2px solid var(--primary);
    border-top: 2px solid var(--primary);
}

.hud-top-right-corner {
    top: 100px;
    right: 24px;
    border-right: 2px solid var(--primary);
    border-top: 2px solid var(--primary);
}

/* About Section */
.about-section {
    position: relative;
    padding: 80px 0;
}

.about-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    z-index: -1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.about-image.angular-frame {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.about-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    opacity: 0;
    z-index: 1;
}

/* Subtle hover effect for inactive images in the About section */
.about-image img:not(.about-image-active):hover {
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
    transform: scale(1.01);
}

.about-image-active:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3) !important;
    transform: none !important;
    opacity: 1 !important;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-card {
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid var(--border);
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

/* Unified single-block layout for about cards */
.about-section .feature-card {
    display: block;
    text-align: left;
}

.about-section .feature-card .feature-text h3 {
    margin: 0;
    font-size: 20px;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.about-section .feature-card .feature-text p {
    margin-top: 8px;
    color: var(--muted-foreground);
    line-height: 1.6;
}

.about-section .feature-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-section .feature-title-row .feature-icon {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
}

/* Subtle hover effect for inactive cards in the About section */
.feature-card:hover:not(.about-card-active) {
    border-color: rgba(0, 255, 255, 0.5) !important;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.05) !important;
    transform: translateY(-2px) !important;
}

/* Disable hover effect for active cards in the About section */
.about-card-active:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3) !important;
    background: rgba(26, 26, 26, 0.8) !important;
    transform: none !important;
}

.about-card-active {
    border-color: var(--primary) !important;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3) !important;
    background: rgba(26, 26, 26, 0.8) !important;
    transform: none !important;
}

.about-image-active {
    opacity: 1 !important;
    z-index: 2 !important;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.feature-icon {
    width: 32px;
    height: 32px;
    color: var(--primary);
    animation: pulse 2s infinite;
}

.feature-card h3 {
    font-size: 20px;
    color: var(--foreground);
}

.feature-card p {
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* Container and section styles */
.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    position: relative;
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 2.25rem;
    line-height: 2.5rem;
    margin-bottom: 16px;
}

.section-description {
    font-size: 1.125rem;
    line-height: 1.75rem;
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto;
}

/* High contrast mode for accessibility */
@media (prefers-contrast: high) {
    .skynet-glow:hover {
        color: #FFFFFF;
        text-shadow: 0 0 15px var(--primary);
    }
    
    .skynet-button:hover {
        color: #FFFFFF;
        border-color: #FFFFFF;
    }
}

/* System Capabilities Section */
.features {
    padding: 100px 0;
}

.features {
    background-image: url('assets/background_capab.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    background-blend-mode: multiply !important;
}

.features-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    stroke: #00ffff;
    transition: all 0.3s ease;
}

.feature-title {
    font-size: 1rem;
    color: #00ffff;
    letter-spacing: 1px;
}

/* Subtle hover effect for inactive cards in the Features section */
.feature-card:hover:not(.active) {
    border-color: rgba(0, 255, 255, 0.5) !important;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.05) !important;
    transform: translateY(-2px) !important;
}

.feature-card:hover:not(.active) .feature-icon {
    transform: scale(1.2) !important;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5)) !important;
}

/* Disable hover effect for active cards in the Features section */
.feature-card.active:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3) !important;
    background: rgba(26, 26, 26, 0.8) !important;
    transform: none !important;
}

.feature-card.active {
    border-color: var(--primary) !important;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3) !important;
    background: rgba(26, 26, 26, 0.8) !important;
    transform: none !important;
}

.feature-card.active .feature-title {
    color: var(--primary) !important;
    text-shadow: none !important;
}

.feature-card.active .feature-icon {
    filter: none !important;
    transform: scale(1.1) !important;
}

.feature-details {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.feature-details-frame {
    padding: 30px;
    min-height: 400px;
    border: 1px solid var(--primary) !important;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3) !important;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
}

.feature-details-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}
.feature-details-title {
    color: var(--primary);
}
.feature-details-description {
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 20px;
}

.feature-metrics {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: auto;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.metric-label {
    color: #888;
}

.metric-value {
    color: #00ffff;
    font-weight: bold;
}

/* System Architecture */
.system-architecture {
    margin-top: 60px;
}

.architecture-frame {
    padding: 40px;
}

.architecture-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
}

.architecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.architecture-layer {
    text-align: center;
}

.layer-frame {
    padding: 30px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.layer-icon {
    stroke: #00ffff;
    transition: all 0.3s ease;
}

.layer-frame:hover .layer-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px #00ffff);
}

.layer-title {
    font-size: 1.2rem;
    color: #00ffff;
    margin-bottom: 10px;
}

.layer-description {
    color: #ccc;
    font-size: 0.9rem;
}

/* Angular Frame Styles */
.angular-frame {
    position: relative;
    border: 1px solid #333;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}



/* Enhanced Hover Effects */
.enhanced-hover {
    position: relative;
    overflow: hidden;
}

.enhanced-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.enhanced-hover:hover::before {
    left: 100%;
}

.enhanced-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

/* Glowing Text */
.glowing-text {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px #00ffff;
    }
    to {
        text-shadow: 0 0 20px #00ffff, 0 0 30px #00ffff;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .features-layout {
        grid-template-columns: 1fr;
    }
    
    .feature-details {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .architecture-grid {
        grid-template-columns: 1fr;
    }
}

/* Security Section */
.security-section {
    position: relative;
    padding: 80px 0;
    z-index: 5;
}

.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
}

.security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.security-card {
    position: relative;
    background: rgba(15, 20, 25, 0.7);
    border: 1px solid var(--border);
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.security-image {
    position: relative;
    height: 192px;
    overflow: hidden;
}

.security-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.security-card:hover .security-image img {
    transform: scale(1.1);
}

/* Center-highlight state for security cards */
.security-card.is-centered {
    border-color: var(--primary) !important;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
    transform: translateY(-4px);
}
.security-card.is-centered .security-image img {
    transform: scale(1.06);
}
.security-card.is-centered .security-title {
    color: var(--primary);
}

.security-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(15, 20, 25, 0.8), transparent);
}

.security-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.security-title {
    font-size: 20px;
    color: var(--primary);
    font-family: 'Aldrich', monospace;
    margin-bottom: 12px;
}

.security-description {
    font-size: 14px;
    color: var(--muted-foreground);
    font-family: 'Roboto Mono', monospace;
    margin-bottom: 16px;
}

.security-metric {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Roboto Mono', monospace;
    margin-top: auto;
}

.metric-label {
    color: var(--muted-foreground);
    font-size: 14px;
}

.metric-value {
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
}


.holographic-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.holographic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

.holographic-card:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

.pulse-ring {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

/* System Status Matrix from v5 */
.skynet-network {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.skynet-network {
    background-image: url('assets/background_faq.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    background-blend-mode: multiply !important;
}

.skynet-neural-network {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(0, 191, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 50% 50%, rgba(107, 159, 212, 0.1) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px, 20px 20px;
    animation: neuralNetwork 15s linear infinite;
}

@keyframes neuralNetwork {
    0% { background-position: 0 0, 0 0, 0 0; }
    100% { background-position: 50px 50px, 30px 30px, 20px 20px; }
}

.skynet-digital-rain {
    position: relative;
    overflow: hidden;
}

.skynet-digital-rain::before {
    content: '01001001 01001110 01010100 01000101 01001100 01001100 01001001 01000111 01000101 01001110 01000011 01000101';
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    color: rgba(0, 255, 255, 0.3);
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    line-height: 1.5;
    animation: digitalRain 8s linear infinite;
    word-wrap: break-word;
}

@keyframes digitalRain {
    0% { top: -100%; }
    100% { top: 100%; }
}

.skynet-data-stream {
    position: relative;
    overflow: hidden;
}

.skynet-data-stream::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    animation: dataStream 3s infinite;
}

@keyframes dataStream {
    0% { left: -100%; }
    100% { left: 100%; }
}

.status-card:hover {
    transform: scale(1.05);
}

.faq-card {
    border: 1px solid var(--border);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.faq-card:hover {
    border-color: var(--border);
    transform: none !important;
    box-shadow: none !important;
}

/* Center highlight for FAQ */
.faq-card.is-centered {
    border-color: var(--primary) !important;
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.1) !important;
    transform: translateY(-4px) !important;
}

.faq-question {
    color: var(--primary);
    font-family: 'Aldrich', sans-serif;
    margin-bottom: 12px;
}

.faq-answer {
    color: var(--muted-foreground);
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
}



.skynet-flicker-fast {
    animation: flicker-fast 0.15s infinite linear;
}

@keyframes flicker-fast {
    0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% {
        opacity: 1;
    }
    20%, 21.999%, 63%, 63.999%, 65%, 69.999% {
        opacity: 0.4;
    }
}
.text-green-400 { color: #4ade80; }
.text-gray-300 { color: #d1d5db; }
.mb-12 { margin-bottom: 3rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.p-6 { padding: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease forwards;
}

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

/* V9 Footer Styles */
.footer-v9 {
    padding: 80px 0 20px;
    position: relative;
}

.footer-content-v9 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: stretch;
}

.footer-section-v9 {
    display: flex;
    flex-direction: column;
}

.footer-section-frame-v9 {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.footer-title-v9 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-text-v9 {
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 25px;
}

.staking-protocol-step-title {
    color: var(--primary);
}

.network-stats-v9 {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.network-stat-item-v9 {
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.stat-row-v9 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-row-v9 svg {
    stroke: #00ffff;
    flex-shrink: 0;
}

.stat-label-v9 {
    color: #888;
    font-size: 0.9rem;
}

.stat-value-v9 {
    color: #00ffff;
    font-weight: bold;
}

.contact-info-v9 {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.contact-item-v9 {
    padding: 15px 0;
    border-bottom: 1px solid #333;
    flex: 1;
}

.contact-row-v9 {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-row-v9 svg {
    stroke: #00ffff;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-details-v9 {
    flex: 1;
}

.contact-header-v9 {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 5px;
}

.contact-label-v9 {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-value-v9 {
    color: #fff;
    font-weight: bold;
}

.contact-description-v9 {
    font-size: 0.8rem;
    color: #666;
}

.system-info-v9 {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    flex: 1;
}

.system-info-item-v9 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #333;
    flex: 1;
}

.info-label-v9 {
    color: #888;
    font-size: 0.9rem;
}

.info-value-v9 {
    color: #ccc;
    font-weight: normal;
    line-height: 1.8;
}

.social-section-v9 {
    margin-top: 20px;
}

.social-title-v9 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #00ffff;
}

.social-links-v9 {
    display: flex;
    gap: 15px;
}

.social-link-v9 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #00ffff;
    color: #00ffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link-v9:hover {
    background: #00ffff;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.social-link-v9 svg {
    stroke: currentColor;
}

.angular-frame-v9 {
    position: relative;
    border: 1px solid #00ffff;
    background: rgba(0, 20, 30, 0.8);
    backdrop-filter: blur(10px);
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
    transition: all 0.3s ease;
}

/* Apply the FAQ-like tint for cards in the footer */
.footer-section-frame-v9 {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--border);
}

/* Apply the FAQ-like tint for the footer */
.footer-bottom-frame-v9 {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--border);
}

.angular-frame-v9:hover { transform: none !important; box-shadow: none !important; }

/* Disable hover effects for cards in the footer */
.footer-section-frame-v9,
.footer-bottom-frame-v9 { transition: none !important; }
.footer-section-frame-v9:hover,
.footer-bottom-frame-v9:hover { transform: none !important; box-shadow: none !important; border-color: var(--border) !important; }

.angular-frame-v9::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, #00ffff, #0080ff, #00ffff);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.angular-frame-v9:hover::before {
    opacity: 0;
}

/* Disable only the gradient border for cards in the footer */
.footer-section-frame-v9:hover::before { opacity: 0 !important; }

/* Keep border color unchanged on hover */
.footer-section-frame-v9:hover,
.footer-bottom-frame-v9:hover { border-color: var(--border) !important; }

/* Re-enable hover effects for the three contact/info cards only */
.footer-content-v9 .footer-section-frame-v9 { transition: all 0.3s ease !important; }
.footer-content-v9 .footer-section-frame-v9:hover,
.footer-content-v9 .footer-section-frame-v9.is-centered {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.1) !important;
    border-color: var(--primary) !important;
}
.footer-content-v9 .footer-section-frame-v9:hover::before,
.footer-content-v9 .footer-section-frame-v9.is-centered::before { opacity: 0 !important; }

.glowing-text-v9 {
    color: #00ffff;
}

@keyframes glow-v9 {
    from { text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff; }
    to { text-shadow: 0 0 20px #00ffff, 0 0 30px #00ffff, 0 0 40px #00ffff; }
}

@media (max-width: 768px) {
    .footer-content-v9 {
        grid-template-columns: 1fr;
    }
}

/* V9 Footer Bottom Styles */
.footer-bottom-v9 {
    border-top: 1px solid #333;
    padding-top: 30px;
    padding-bottom: 30px;
}

.footer-bottom-v9 {
    background-image: url('assets/background_footer.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    background-blend-mode: multiply !important;
}

.footer-bottom-frame-v9 {
    padding: 20px;
}

.footer-bottom-content-v9 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-left-v9 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.copyright-v9 {
    font-size: 0.9rem;
}

.footer-bottom-right-v9 {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
}

.footer-stat-v9 {
    color: #00ffff;
}

.footer-divider-v9 {
    color: #666;
}

.footer-bottom-text-v9 {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.powered-by-v9 {
    font-size: 0.7rem;
    color: #666;
    letter-spacing: 1px;
}

/* Carousel controls (hidden by default) */
.carousel-controls { display: none; }
.carousel-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--skynet-gray);
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.carousel-btn:hover { border-color: var(--primary); color: var(--primary); }

/* Carousel counter */
.carousel-counter {
    color: var(--skynet-gray);
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    opacity: 0.8;
    min-width: 40px;
    text-align: center;
}

.status-dot-v9 {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff00;
    animation: pulse 2s infinite;
}

@media (max-width: 768px) {
    .footer-bottom-content-v9 {
        flex-direction: column;
        text-align: center;
    }
}


/* Staking Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    position: relative;
    padding: 30px;
    width: auto;
    max-width: 90%;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    will-change: transform;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--skynet-gray);
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 1.5rem;
}

.modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
}

.staking-widget {
    width: 472px;
    height: 302px;
    border: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modal-overlay.active .staking-widget {
    opacity: 1;
    pointer-events: auto;
}

.copy-icon-button {
    transition: all 0.3s ease;
}

.copy-icon-button:hover {
    color: #fff !important;
    transform: scale(1.1);
}

.copy-icon-button svg {
    stroke: currentColor;
}

/* Mobile Optimization */
@media (max-width: 480px) {
    /* Navigation */
    .nav-container {
        padding: 12px 16px;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    
    .nav-brand { order: 1; flex: 1; }
    .hamburger-button { display: inline-flex; order: 2; }
    
    .brand-text {
        font-size: 16px;
    }
    
    /* Reduce logo size specifically on small mobile */
    .navbar .logo {
        transform: scale(1.08) !important;
        transform-origin: center;
    }
    
    .nav-menu {
        order: 4;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 8px;
    }
    .nav-menu.open { display: flex; }
    
    .nav-link {
        font-size: 12px;
        padding: 8px 4px;
    }
    
    .nav-button {
        order: 3;
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
    
    /* Hero Section */
    .hero-offset {
        /* Keep content near top but not too high */
        padding-top: calc(84px + 5vh) !important;
        /* Align hero content to top instead of vertical center */
        align-items: flex-start !important;
    }
    .hero-container {
        /* Remove extra vertical offset on mobile */
        margin-top: 0 !important;
        padding-top: 8px !important;
    }
    .skynet-heading {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    .text-6xl {
        font-size: 2rem !important;
    }
    
    .lg\:text-8xl {
        font-size: 2.5rem !important;
    }
    
    .hero-btn-primary,
    .hero-btn-secondary {
        font-size: 14px;
        padding: 12px 20px;
    }
    
    .flex-col {
        flex-direction: column !important;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .about-image {
        height: 250px;
        order: 2;
    }
    
    .about-features {
        order: 1;
    }
    
    /* Features Section */
    .features-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .feature-card {
        padding: 20px;
        min-height: 120px;
    }
    
    .feature-title {
        font-size: 14px;
    }
    
    .feature-details-frame {
        padding: 20px;
        min-height: 300px;
    }
    
    /* Security Section */
    .security-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .security-card {
        margin-bottom: 20px;
    }
    
    .security-image {
        height: 150px;
    }
    
    /* FAQ Section */
    .grid-cols-1 {
        grid-template-columns: 1fr !important;
    }
    
    .md\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
    
    .faq-card {
        padding: 16px !important;
    }
    
    /* Footer */
    .footer-content-v9 {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-section-frame-v9 {
        padding: 20px;
    }
    
    .footer-bottom-content-v9 {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    /* HUD Overlay - Hide on mobile */
    .hud-overlay {
        display: none;
    }
    
    /* Angular Frames - Simplify for mobile */
    .angular-frame {
        clip-path: none !important;
        border-radius: 8px !important;
    }
    
    .angular-frame::before,
    .angular-frame::after {
        display: none;
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 10px;
    }
    
    .staking-widget {
        width: 100%;
        height: 250px;
    }
    
    /* General spacing */
    .container {
        padding: 0 16px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 32px;
    }
    
    .section-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .section-description {
        font-size: 0.9rem;
    }
    
    /* Contact section */
    .contact-row-v9 {
        flex-direction: column;
        gap: 8px;
    }
    
    .contact-row-v9 svg {
        margin-top: 0;
    }
    
    /* System info */
    .system-info-item-v9 {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    /* Copy button */
    .copy-icon-button {
        padding: 8px;
    }
    
    #vote-account {
        font-size: 12px;
        word-break: break-all;
    }
}

/* Tablet/mobile alignment: push hero content higher up to 768px */
@media (min-width: 481px) and (max-width: 768px) {
    .hero-offset {
        padding-top: calc(70px + 2vh) !important;
        align-items: flex-start !important;
    }
    .hero-container { margin-top: 0 !important; }
}

/* Reorder contact blocks on small mobile: show SYSTEM_INFORMATION first */
@media (max-width: 480px) {
    .footer-content-v9 {
        display: flex !important;
        flex-direction: column;
    }
    /* DOM order: 1) STAKING_PROTOCOL, 2) SYSTEM_INFORMATION, 3) CONTACT_PROTOCOL
       Move the 2nd block to the top on mobile */
    .footer-content-v9 .footer-section-v9:nth-child(2) {
        order: -1;
    }
}

/* Tablet Optimization */
@media (min-width: 481px) and (max-width: 768px) {
    .nav-container {
        padding: 14px 20px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .skynet-heading {
        font-size: 3rem !important;
    }
    
    .text-6xl {
        font-size: 3rem !important;
    }
    
    .lg\:text-8xl {
        font-size: 3.5rem !important;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .security-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content-v9 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* HUD - Reduce opacity on tablet */
    .hud-overlay {
        opacity: 0.3;
    }
    
    .hud-top-left,
    .hud-top-right {
        font-size: 10px;
    }
}

/* Small mobile devices */
@media (max-width: 360px) {
    .nav-menu {
        gap: 8px;
    }
    
    .nav-link {
        font-size: 10px;
        padding: 6px 2px;
    }
    
    .skynet-heading {
        font-size: 1.5rem !important;
    }
    
    .text-6xl {
        font-size: 1.5rem !important;
    }
    
    .lg\:text-8xl {
        font-size: 2rem !important;
    }
    
    .hero-btn-primary,
    .hero-btn-secondary {
        font-size: 12px;
        padding: 10px 16px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .section {
        padding: 30px 0;
    }
    
    .feature-card {
        padding: 16px;
        min-height: 100px;
    }
    
    .feature-title {
        font-size: 12px;
    }
    
    .footer-section-frame-v9 {
        padding: 16px;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hud-overlay {
        display: none;
    }
    
    .skynet-heading {
        font-size: 2rem !important;
    }
    
    .text-6xl {
        font-size: 2rem !important;
    }
    
    .lg\:text-8xl {
        font-size: 2.5rem !important;
    }
    
    .section {
        padding: 30px 0;
    }
    
    .about-image {
        height: 200px;
    }
    
    .feature-details-frame {
        min-height: 250px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .nav-link {
        padding: 12px 8px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .skynet-button {
        min-height: 44px;
        padding: 12px 24px;
    }
    
    .feature-card {
        min-height: 120px;
    }
    
    /* Disable hover effects on touch devices */
    .feature-card:hover:not(.active),
    .feature-card:hover:not(.about-card-active) {
        transform: none !important;
        box-shadow: none !important;
    }
    
    .about-image img:not(.about-image-active):hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    .footer-section-frame-v9:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    .faq-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    .security-card:hover {
        transform: none !important;
    }
    
    .security-card:hover .security-image img {
        transform: none !important;
    }
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
    /* Keep animations but reduce complexity for mobile */
    .skynet-pulse {
        animation: pulse 2s infinite;
    }
    
    .skynet-flicker {
        animation: flicker 1.5s infinite linear;
    }
    
    .skynet-typing {
        animation: typing 4s steps(40, end), blink-caret 1.5s step-end infinite;
        border-right: 2px solid var(--primary);
        white-space: nowrap;
        overflow: hidden;
    }
    
    .typing-line {
        animation: typing 3s steps(40, end) forwards;
        white-space: nowrap;
        overflow: hidden;
    }
    
    .typing-line:nth-child(1) {
        animation-delay: 0s;
    }
    
    .typing-line:nth-child(2) {
        animation-delay: 3s;
    }
    
    .typing-line:nth-child(3) {
        animation-delay: 6s;
    }
    
    .typing-line:nth-child(4) {
        animation-delay: 9s;
    }
    
    .typing-line {
        animation: typing 3s steps(40, end) forwards;
        white-space: nowrap;
        overflow: hidden;
    }
    
    .typing-line:nth-child(1) {
        animation-delay: 0s;
    }
    
    .typing-line:nth-child(2) {
        animation-delay: 3s;
    }
    
    .typing-line:nth-child(3) {
        animation-delay: 6s;
    }
    
    .typing-line:nth-child(4) {
        animation-delay: 9s;
    }
    

    
    .skynet-matrix::before {
        animation: matrixShift 20s linear infinite;
    }
    
    .skynet-scan::after {
        animation: scan 2s linear infinite;
    }
    
    /* Simplify particle system for mobile */
    .particle-system {
        display: none;
    }
    
    /* Reduce backdrop-filter usage on mobile */
    .navbar,
    .feature-card,
    .security-card,
    .faq-card,
    .footer-section-frame-v9,
    .footer-bottom-frame-v9,
    .modal-content {
        backdrop-filter: none;
        background: rgba(10, 10, 10, 0.95);
    }
}

/* High DPI mobile screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .feature-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode optimization for mobile */
@media (prefers-color-scheme: dark) {
    .skynet-theme {
        background: #000000;
        color: #C5C9D2;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    /* Keep essential animations but reduce intensity */
    .skynet-pulse {
        animation: pulse 4s infinite !important;
    }
    
    .skynet-flicker {
        animation: flicker 3s infinite linear !important;
    }
    
    .skynet-typing {
        animation: typing 6s steps(40, end), blink-caret 2s step-end infinite !important;
    }
    
    .typing-line {
        animation: typing 4s steps(40, end) forwards !important;
    }
    
    .typing-line:nth-child(1) {
        animation-delay: 0s !important;
    }
    
    .typing-line:nth-child(2) {
        animation-delay: 4s !important;
    }
    
    .typing-line:nth-child(3) {
        animation-delay: 8s !important;
    }
    
    .typing-line:nth-child(4) {
        animation-delay: 12s !important;
    }
    
    .typing-line {
        animation: typing 4s steps(40, end) forwards !important;
    }
    
    .typing-line:nth-child(1) {
        animation-delay: 0s !important;
    }
    
    .typing-line:nth-child(2) {
        animation-delay: 4s !important;
    }
    
    .typing-line:nth-child(3) {
        animation-delay: 8s !important;
    }
    
    .typing-line:nth-child(4) {
        animation-delay: 12s !important;
    }
    

    
    .skynet-matrix::before {
        animation: matrixShift 30s linear infinite !important;
    }
    
    .skynet-scan::after {
        animation: scan 4s linear infinite !important;
    }
}

/* Hero container alignment with nav */
.hero-container {
    /* Force the same content width and padding as the header container */
    width: min(100%, 80rem);
    margin: 0 auto;
    padding: 16px 24px;
    /* Slightly lower the hero content relative to viewport height */
    margin-top: 5vh;
}

/* Final overrides to ensure hero primary button uses card-like style */
button.skynet-button.hero-btn-primary {
    border-radius: 8px !important;
    background: rgba(10, 10, 10, 0.8) !important;
    border: 1px solid var(--border) !important;
}
button.skynet-button.hero-btn-primary:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    animation: heroButtonGlow 1.4s ease-in-out infinite alternate !important;
    box-shadow: 0 0 16px rgba(0, 255, 255, 0.18) !important;
}

/* Mobile-specific overrides for About and Features carousels */
@media (max-width: 480px) {
    /* About: stack text (card) above image, show only active */
    .about-content { grid-template-columns: 1fr; gap: 16px; }
    .about-features { order: 1; }
    .about-image { order: 2; height: 220px; }
    .about-section .feature-card { display: none; }
    .about-section .feature-card.about-card-active { display: block; }

    /* Features: show single active card and details below; match ABOUT gap */
    .features-layout { grid-template-columns: 1fr; gap: 16px; }
    /* Override desktop/tablet margin between grid rows */
    .feature-details { margin-top: 0 !important; }
    .features-grid { grid-template-columns: 1fr; gap: 12px; }
    .features-grid .feature-card { display: none; }
    .features-grid .feature-card.active { display: flex; }
    .feature-details-frame { padding: 16px; min-height: 260px; }

    /* Show carousel controls on mobile (bottom) */
    .carousel-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 8px; }

    /* Hero: make text wider and centered */
    .hero-container .grid { grid-template-columns: 1fr !important; }
    .hero-container .col-span-3, .hero-container .col-span-2 { grid-column: auto !important; }
    .hero-container .skynet-heading, .hero-container .typing-container { text-align: center; }
    .hero-container .flex { align-items: center; justify-content: center; }
    /* Restore angular corners for cards on mobile */
    .about-section .angular-frame,
    .features .angular-frame,
    .security-section .angular-frame,
    #faq .angular-frame {
        clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px)) !important;
        border-radius: 0 !important;
    }
}

/* Mobile background micro-jitter fix (keep parallax, avoid zoom) */
@media (max-width: 480px) {
    .skynet-circuit,
    .features,
    .skynet-network,
    .footer-bottom-v9 {
        background-attachment: fixed !important;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: transform;
        background-size: cover;
        background-position: center;
    }
    /* Disable hero overlay animation to prevent perceived zoom */
    .skynet-matrix::before {
        animation: none !important;
        transform: none !important;
    }
}
