body {
background-color: #121212;
color: #e0e0e0;
font-family: 'Segoe UI', sans-serif;
padding-top: 90px;
}

/* =========================
   NAVBAR
========================= */

.navbar {
background-color: #1a1a1a;
position: fixed;
top: 0;
width: 100%;
z-index: 1000;
transition: all 0.3s ease;
}



/* Navbar when scrolling */

.navbar.scrolled {
background: rgba(20,20,20,0.85);
backdrop-filter: blur(10px);
box-shadow: 0 4px 25px rgba(157,78,221,0.15);
}

/* Brand + links */

.navbar-brand,
.nav-link {
color: #e0e0e0 !important;
align-items: center;
}

.navbar-brand img {
height: 200px;
max-width: 550px;
width: auto;
object-fit: contain;
filter: brightness(0) invert(1);
}


/* Link styling */
.nav-links {
    display: flex;
    align-items: center;
}

.nav-link {
    margin-left: 30px;
}
.nav-link {
margin-left: 32px;
font-weight: 500;
letter-spacing: 0.5px;
transition: color 0.25s ease;
position: relative;
}

/* Hover colour */

.nav-link:hover {
color: #9d4edd !important;
}

/* Animated underline */

.nav-link::after {
content: "";
position: absolute;
left: 0;
bottom: -4px;
width: 0%;
height: 2px;
background: linear-gradient(90deg,#9d4edd,#c77dff);
transition: width 0.3s ease;
}

.nav-link:hover::after {
width: 100%;
box-shadow: 0 0 8px rgba(157,78,221,0.7);
}

.hero {
padding: 100px 0;
text-align: center;
}

.accent {
color: #9d4edd;
}

.btn-accent {
background-color: #9d4edd;
border: none;
}

.btn-accent:hover {
background-color: #7b2cbf;
}

.card-dark {
background-color: #1a1a1a;
border: 1px solid #2c2c2c;
}

.cyber-image img {
max-height: 420px;
width: 100%;
object-fit: cover;
border-radius: 10px;
}

footer {
background-color: #1a1a1a;
padding: 30px 0;
margin-top: 80px;
text-align: center;
font-size: 14px;
color: #888;
}

/* Subtle animated purple glow */

@keyframes glowPulse {
0% { box-shadow: 0 0 8px rgba(157,78,221,0.3); }
50% { box-shadow: 0 0 20px rgba(157,78,221,0.6); }
100% { box-shadow: 0 0 8px rgba(157,78,221,0.3); }
}

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

.hero h1 {
text-shadow: 0 0 15px rgba(157,78,221,0.4);
}

.btn-accent {
background-color: #9d4edd;
border: none;
animation: glowPulse 3s infinite ease-in-out;
}

.card-dark:hover {
transform: translateY(-6px);
box-shadow: 0 0 20px rgba(157,78,221,0.25);
transition: all 0.25s ease;
}

/* Service cards */

.service-card {
transition: all 0.3s ease;
border: 1px solid #2c2c2c;
}

/* Hover effect */

.service-card:hover {
transform: translateY(-5px);
border-color: #9d4edd;
box-shadow: 0 0 20px rgba(157,78,221,0.4);
}


/* Active card */

.service-card.active {
border-color: #9d4edd;
box-shadow: 0 0 25px rgba(157,78,221,0.6);
background: linear-gradient(145deg, #1a1a1a, #1f1f1f);
}

/* Active card accent bar */

.service-card {
position: relative;
overflow: hidden;
}

.service-card::before {
content: "";
position: absolute;
left: 0;
top: 0;
height: 100%;
width: 4px;
background: linear-gradient(#9d4edd, #c77dff);
opacity: 0;
transition: opacity 0.3s ease;
}



.service-card.active::before {
opacity: 1;
}



/* Card hover lift animation */

.service-card {
transition: transform 0.25s ease, box-shadow 0.25s ease;
cursor: pointer;
}

.service-card:hover {
transform: translateY(-6px);
box-shadow: 0 10px 30px rgba(157,78,221,0.35);
}

/* Right side service content */

.service-content {
min-height: 180px;
transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-content.fade-out {
opacity: 0;
transform: translateX(10px);
}

.service-content.fade-in {
opacity: 1;
transform: translateX(0);
}

/* Animated hero glow background */

.hero-glow {
position: relative;
overflow: hidden;
}

.hero-glow::before {
content: "";
position: absolute;
width: 600px;
height: 600px;
top: -200px;
left: -200px;
background: radial-gradient(circle, rgba(157,78,221,0.35), transparent 70%);
filter: blur(120px);
animation: heroGlowMove 12s ease-in-out infinite alternate;
}

.hero-glow::after {
content: "";
position: absolute;
width: 500px;
height: 500px;
bottom: -150px;
right: -150px;
background: radial-gradient(circle, rgba(199,125,255,0.25), transparent 70%);
filter: blur(120px);
animation: heroGlowMove2 14s ease-in-out infinite alternate;
}

@keyframes heroGlowMove {
from { transform: translate(0,0); }
to { transform: translate(80px,60px); }
}

@keyframes heroGlowMove2 {
from { transform: translate(0,0); }
to { transform: translate(-60px,-80px); }
}

/* Architecture section */

.arch-section {
margin-top: -120px;
position: relative;
z-index: 2;
}

.arch-node {
display: flex;
align-items: center;
gap: 12px;
adding: 12px 18px;
background: #1c1c1c;
border-radius: 8px;
color: #b983ff;
font-weight: 500;
width: fit-content;
margin: 0 auto;
opacity: 0;
animation: stepFade .6s forwards;
}

.arch-node i {
font-size: 20px;
color: #9d4edd;
}

.arch-node:nth-child(1) { animation-delay: 0.2s; }
.arch-node:nth-child(3) { animation-delay: 0.6s; }
.arch-node:nth-child(5) { animation-delay: 1s; }
.arch-node:nth-child(7) { animation-delay: 1.4s; }
.arch-node:nth-child(9) { animation-delay: 1.8s; }

.arch-diagram {
font-family: monospace;
letter-spacing: 1px;
border-left: 4px solid #9d4edd;
background: rgba(0,0,0,0.35);
}

html, body {
height: 100%;
}

body {
min-height: 100vh;
display: flex;
flex-direction: column;
}

.site-main {
flex: 1;
padding-top: 80px;
}

/* Card text visibility */

.card-dark h4,
.card-dark p {
color: #444;
transition: color 0.25s ease;
}

.card-dark:hover h4,
.card-dark:hover p {
color: #e0e0e0;
}

.lab-card {
transition: all 0.3s ease;
}

.lab-card:hover {
transform: translateY(-6px);
box-shadow: 0 0 20px rgba(157,78,221,0.6);
}

.lab-diagram {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
font-size: 0.9rem;
}

.lab-diagram .arch-node {
margin: 6px 0;
display: flex;
align-items: center;
gap: 8px;
}

.lab-diagram .arch-arrow {
margin: 4px 0;
opacity: 0.7;
}