@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&family=Roboto:wght@300;400;700&display=swap');

:root {
--dark-bg: #0d0f11;
--text-color: #f0f0f0;
--accent-color: #00aeff; /* Blue used for links/navbar glow (Original HTML 2) */
--secondary-accent: #ffffff;
--gray-text: #8e9498;
--navbar-bg: rgba(0,0,0,0.9);
--card-border-color: rgba(255,255,255,0.2);
--classy-border: rgba(0, 255, 136, 0.6); /* Semi-transparent accent for borders */
--hazard-yellow: #ffcc00; 
    --card-bg: #101010; /* Added: Specific background for the cards */
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: 'Roboto', sans-serif;
color: var(--text-color);
background-color: var(--dark-bg);
overflow-x: hidden;
min-height: 100vh;
}

/* --- Navbar & Hero (EXISTING STYLES) --- */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 40px;
background-color: var(--navbar-bg);
position: fixed;
width: 100%;
top: 0;
z-index: 1000;
backdrop-filter: blur(8px);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
font-family: 'Oswald', sans-serif;
font-weight: 700;
font-size: 1.2em;
color: var(--secondary-accent);
text-decoration: none;
margin-right: 30px;
letter-spacing: 2px;
}

.navbar-left nav ul {
list-style: none;
display: flex;
gap: 25px;
}

.navbar-left nav ul li a {
color: var(--gray-text);
text-decoration: none;
transition: color 0.3s ease;
}

.navbar-left nav ul li a:hover {
color: var(--accent-color);
}

/* Social icons */
.navbar-right, .mobile-socials {
display: flex;
align-items: center;
gap: 25px;
}

.icon-link {
display: flex;
align-items: center;
color: var(--gray-text);
text-decoration: none;
font-size: 0.85em;
letter-spacing: 1px;
transition: color 0.3s ease, transform 0.3s ease;
}

.icon-link img {
width: 28px;
height: 28px;
margin-right: 8px;
filter: drop-shadow(0 0 4px rgba(0, 255, 136, 0.6));
transition: transform 0.3s ease, filter 0.3s ease;
}

.icon-link:hover {
color: var(--accent-color);
transform: translateY(-2px);
}

.icon-link:hover img {
transform: scale(1.15);
filter: drop-shadow(0 0 8px rgba(0, 255, 136, 1));
}

/* --- Hamburger Menu (EXISTING STYLES) --- */
.hamburger {
display: none;
flex-direction: column;
justify-content: space-between;
width: 28px;
height: 20px;
background: none;
border: none;
cursor: pointer;
z-index: 1100;
}

.hamburger span {
display: block;
width: 100%;
height: 3px;
background-color: var(--secondary-accent);
border-radius: 2px;
transition: all 0.3s ease;
}

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

.navbar-left nav { display: flex; }
.mobile-socials { display: none; }

@media (max-width: 768px) {
.hamburger { display: flex; }
.navbar-left nav {
 position: absolute;
 top: 100%;
 left: 0;
 width: 100%;
 background-color: var(--navbar-bg);
 max-height: 0;
 overflow: hidden;
 transition: max-height 0.3s ease;
 flex-direction: column;
}
.navbar-left nav.active { max-height: 500px; }
.navbar-left nav ul { flex-direction: column; gap: 15px; padding: 15px; }
.navbar-left nav ul li { margin: 0; }
.mobile-socials { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.navbar-right { display: none; }
}

/* Make mobile social icon text visible */
.mobile-socials .icon-link span {
display: inline;
}

.hero-section { position:relative; width:100%; height:100vh; overflow:hidden; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; }
#bg-video { position:absolute; top:0; left:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.hero-overlay { position:absolute; inset:0; background:linear-gradient(to top, rgba(13,15,17,0.9) 0%, rgba(13,15,17,0.4) 50%, rgba(13,15,17,0.1) 100%); z-index:1; }
.hero-content { position:relative; z-index:2; }
.large-brand-name { 
font-family: 'Oswald', sans-serif;
font-size: 7em;
font-weight: 700;
color: var(--secondary-accent);
text-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
transform: perspective(800px) rotateX(10deg) scale(1.05);
letter-spacing: 5px;
opacity: 0.95;
transition: all 0.5s ease;
}
.hero-content:hover .large-brand-name {
transform: perspective(800px) rotateX(0deg) scale(1);
opacity: 1;
}
.tagline { font-size:1.5em; color:var(--gray-text); margin-top:20px; }
@media (max-width: 768px) {
.large-brand-name { font-size: 5em; }
}
/* --- END NAVBAR & HERO --- */

/* Full-Width Banner Animation (EXISTING STYLES) */
.full-width-banner {
width: 100%;
background-color: var(--accent-color);
color: var(--dark-bg);
padding: 18px 40px; 
border-top: 2px solid var(--secondary-accent);
border-bottom: 2px solid var(--secondary-accent);
text-align: center;
position: relative;
overflow: hidden;
}
.banner-content p {
font-family: 'Oswald', sans-serif;
font-weight: 700;
letter-spacing: 4px; 
font-size: 1.1em;
animation: pulse-shadow 4s infinite ease-in-out; 
}
@keyframes pulse-shadow {
0% { text-shadow: none; }
50% { text-shadow: 0 0 8px rgba(13, 15, 17, 0.8); }
100% { text-shadow: none; }
}

/* Split-Border Title Effect (EXISTING STYLES) */
.section-protocol-title {
text-align: center;
font-family: 'Oswald', sans-serif;
font-size: 2.5em;
color: var(--secondary-accent);
margin: 50px 0 30px 0;
letter-spacing: 2px;
position: relative;
padding: 0 20px;
text-transform: uppercase;
}

.section-protocol-title::before,
.section-protocol-title::after {
content: '';
position: absolute;
top: 50%;
width: 150px; 
height: 2px;
background-color: var(--hazard-yellow);
transform: translateY(-50%);
}

.section-protocol-title::before {
left: calc(50% - 20px - 150px); 
}

.section-protocol-title::after {
right: calc(50% - 20px - 150px); 
}

/* -------------------------------------------------- */
/* --- CARD DESIGN STYLES (NEWLY ADDED) --- */
/* -------------------------------------------------- */

/* --- GRID LAYOUT (BIG CARDS) --- */
.core-provisions-grid {
display: grid;
/* Large two-column grid on desktop */
grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); 
gap: 80px 40px; /* Big gap for visual separation */
max-width: 1400px; 
margin: 50px auto 100px auto; 
padding: 0 40px; 
}

/* --- CARD STRUCTURE (HIGH-IMPACT DESIGN) --- */
.protocol-card {
    background-color: var(--card-bg); /* Use the new card background variable */
border: 1px solid rgba(0, 255, 136, 0.1); 
border-radius: 8px;
overflow: hidden;
position: relative;
text-decoration: none;
color: var(--text-color);
box-shadow: 0 4px 15px rgba(0,0,0,0.4); 
transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;

/* Flexbox to split content and image */
display: flex;
flex-direction: row; 
min-height: 400px; 
}

.protocol-card:hover {
transform: translateY(-8px); 
box-shadow: 
 0 0 5px var(--accent-color), 
 0 15px 35px rgba(0,255,136,0.4); 
border-color: var(--classy-border);
}

.protocol-card-content {
/* Content takes up 50% */
flex: 1 1 50%;
padding: 30px; 
display: flex;
flex-direction: column;
position: relative;
z-index: 2; 
}

.card-image-container {
/* Image takes up 50% */
flex: 1 1 50%;
overflow: hidden;
position: relative;
background-color: #000; 
}

.protocol-card-image {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.4s ease, filter 0.4s ease;
filter: brightness(0.8); 
object-position: 80% center; /* Focus ship image to the right */
}

.protocol-card:hover .protocol-card-image {
transform: scale(1.1); /* More aggressive zoom for impact */
filter: brightness(1); 
}

/* --- CARD TYPOGRAPHY & DATA BLOCKS --- */

.card-header-icon-small {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 15px;
}

.card-small-icon {
width: 50px; /* Larger icon */
height: 50px;
filter: drop-shadow(0 0 5px rgba(0, 255, 136, 0.8));
transition: transform 0.3s ease, filter 0.3s ease;
}

.card-header-icon-small h3 {
font-family: 'Oswald', sans-serif;
font-size: 1.8em; /* Much larger title */
color: var(--secondary-accent);
text-transform: uppercase;
letter-spacing: 2px;
margin: 0;
}

.protocol-card .card-tagline {
font-family: 'Roboto', sans-serif; 
color: var(--hazard-yellow); 
text-transform: uppercase;
font-size: 0.9em; 
margin-bottom: 20px;
letter-spacing: 1px;
padding-bottom: 10px;
border-bottom: 1px dashed rgba(255, 255, 255, 0.1); /* Separator line */
}

/* New Data Block Styles */
.data-block {
margin-bottom: 25px;
}

.data-block h4 {
font-family: 'Oswald', sans-serif;
font-size: 0.9em;
color: var(--accent-color);
text-transform: uppercase;
margin-bottom: 5px;
letter-spacing: 0.5px;
}

.protocol-card .card-description {
font-size: 0.95em;
line-height: 1.6;
color: var(--gray-text);
margin-bottom: 0; 
}

.protocol-card .card-description.small-text {
font-size: 0.85em; 
}


/* Styled Read More (Link style) */
.read-more-styled {
display: inline-block;
color: var(--accent-color);
font-family: 'Oswald', sans-serif;
text-transform: uppercase;
font-size: 0.9em;
letter-spacing: 1px;
border: 1px solid var(--accent-color);
padding: 8px 15px;
transition: all 0.3s ease;
margin-top: auto; /* Pushes the button to the bottom */
}

.protocol-card:hover .read-more-styled {
background-color: var(--accent-color);
color: var(--dark-bg);
border-color: var(--dark-bg);
}

/* Image Detail Overlay */
.image-detail-overlay {
position: absolute;
bottom: 0;
right: 0;
background: rgba(0, 0, 0, 0.7);
color: var(--secondary-accent);
padding: 8px 15px;
font-family: 'Oswald', sans-serif;
font-size: 0.9em;
letter-spacing: 1px;
border-top-left-radius: 8px;
z-index: 10;
}

/* Animated Border (Classy status indicator) */
@keyframes slide-stripes {
0% { background-position: 0 0; }
100% { background-position: 0 64px; }
}

.animated-border-left {
position: absolute;
top: 0;
left: 0;
width: 5px; 
height: 100%;

background: repeating-linear-gradient(
 45deg,
 var(--classy-border),
 var(--classy-border) 16px,
 rgba(0,0,0,0.1) 16px,
 rgba(0,0,0,0.1) 32px
);
background-size: 64px 64px; 
animation: slide-stripes 4s linear infinite;
opacity: 0.4; 
transition: opacity 0.4s ease;
z-index: 3; 
}

.protocol-card:hover .animated-border-left {
opacity: 1; 
box-shadow: 0 0 10px var(--accent-color);
}

/* === PARTICLE CANVAS === */
#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.7;
}
/* --- Footer & Responsive (UPDATED) --- */
.section-footer-cta { text-align:center; max-width:900px; margin:60px auto; border-top:2px solid var(--accent-color); padding-top:40px; }
.footer-links { display:flex; justify-content:center; gap:25px; }
.footer-links .social-icon img { width:48px; height:48px; filter: drop-shadow(0 0 6px rgba(0,255,136,0.7)); transition: transform 0.3s ease, filter 0.3s ease; }
.footer-links .social-icon:hover img { transform:scale(1.15); filter: drop-shadow(0 0 12px rgba(0,255,136,1)); }

@media(max-width:1100px){ 
/* Switch to single column on smaller desktop screens/tablets */
.core-provisions-grid {
 grid-template-columns: 1fr;
 max-width: 700px;
 padding: 0 20px;
}
}

@media(max-width:650px){ 
/* Stack content and image vertically on mobile */
.protocol-card {
 flex-direction: column;
 min-height: auto;
}
.protocol-card-content {
 order: 2; /* Put content below image */
}
.card-image-container {
 order: 1; /* Put image above content */
 height: 250px;
}
.image-detail-overlay {
 top: 0;
 bottom: auto;
 border-top-left-radius: 0;
 border-bottom-right-radius: 8px;
}
}
