:root {
    --sky-blue: #00d2ff;
    --navy-deep: #0a192f;
    --navy-light: #112240;
    --slate: #8892b0;
    --white: #e6f1ff;
    --orbitron: 'Orbitron', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--orbitron);
}

body {
    background-color: var(--navy-deep);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    font-family: var(--orbitron) !important;
}

/* ── NAVBAR OPTIMIZATION ── */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
    padding: 20px 0;
    background: transparent;
    will-change: transform, background;
}

#navbar.scrolled {
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 210, 255, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo-img { 
    height: 80px;
    width: auto;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
    cursor: pointer;
    will-change: transform, filter;
}

.logo-img:hover { 
    filter: drop-shadow(0 0 12px rgba(0, 210, 255, 0.6));
    transform: scale(1.03) translateZ(0); 
}

.nav-links { list-style: none; display: flex; }
.nav-links li { margin-left: 35px; }

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-family: var(--orbitron) !important;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 8px;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
    will-change: transform, color, text-shadow;
}

.nav-links a:hover {
    transform: translateY(-4px) translateZ(0); /* Reduced from -10px to protect line tracking layout boundaries */
    color: var(--sky-blue);
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.6);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--sky-blue);
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: width;
}

.nav-links a:hover::after { width: 100%; }

/* ── FOOTER OPTIMIZATION ── */
footer { 
    padding: 60px 0; 
    border-top: 1px solid rgba(255,255,255,0.05); 
    text-align: center; 
}

.footer-links { 
    margin-top: 20px; 
    color: var(--sky-blue); 
    word-spacing: 20px; 
}

.footer-links span {
    display: inline-block;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease, text-shadow 0.3s ease;
    font-family: var(--orbitron);
    position: relative;
    will-change: transform, color, text-shadow;
}

.footer-links span:hover {
    color: #fff; 
    transform: scale(1.08) translateZ(0); 
    text-shadow: 0 0 10px var(--sky-blue), 0 0 20px rgba(0, 210, 255, 0.4);
}

.copy-bubble {
    position: absolute;
    bottom: 130%; 
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--sky-blue);
    color: var(--navy-deep);
    padding: 5px 12px;
    border-radius: 4px;
    font-family: var(--orbitron);
    font-size: 0.7rem;
    font-weight: 900;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
    will-change: transform, opacity;
}

.copy-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--sky-blue) transparent transparent transparent;
}

.copy-bubble.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.footer-links span:not(:last-child)::after {
    content: "|";
    margin-left: 20px;
    color: rgba(255,255,255,0.1);
    display: inline-block;
    transform: scale(1);
}

/* ── BLOG FEED OPTIMIZATION ── */
.blog-feed {
    padding: 120px 5% 100px 5%;
    background-color: #0a192f;
    content-visibility: auto; /* Browser ignores layout logic out of the visible screen frame */
}

.blog-feed .services-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;    
    justify-content: center;
    margin-bottom: 60px;    
    width: 100%;
}

.blog-feed .services-header h1 {
    font-family: var(--orbitron) !important;
    font-size: clamp(2rem, 5vw, 3rem); /* Responsive typography mapping */
    margin-top: 15px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.blog-feed .badge {
    font-family: var(--orbitron) !important;
    color: var(--sky-blue);
    letter-spacing: 5px;
    text-transform: uppercase;
    font-size: 0.8rem;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.blog-card {
    background: #112240;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 210, 255, 0.05);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    will-change: transform, border-color, box-shadow;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-6px) translateZ(0);
    border-color: var(--sky-blue);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #0d1b2a; /* Fallback rendering color layer */
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05) translateZ(0); 
}

.blog-date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--sky-blue);
    color: var(--navy-deep);
    font-family: var(--orbitron);
    font-size: 0.7rem;
    font-weight: 900;
    padding: 5px 12px;
    border-radius: 4px;
}

.blog-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-title {
    font-family: var(--orbitron);
    font-size: 1.2rem;
    color: var(--white);
    line-height: 1.4;
    margin-bottom: 12px;
}

.blog-excerpt {
    color: var(--slate);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    font-family: var(--orbitron);
    font-size: 0.8rem;
    color: var(--sky-blue);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    transition: text-shadow 0.3s ease, color 0.3s ease;
    margin-top: auto; /* Forces execution link to stick to card bottoms */
}

.read-more:hover {
    text-shadow: 0 0 8px var(--sky-blue);
}

/* Coming Soon Custom Styles */
.coming-soon-card {
    opacity: 0.85;
}
.status-badge {
    font-family: var(--orbitron);
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--sky-blue);
    margin-top: auto;
    font-weight: bold;
}

/* ── RESPONSIVE RESPONSIVENESS MATRIX ── */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    .blog-feed .services-header h1 {
        font-size: 2.2rem;
    }
}