/* ==========================================================================
   1. GLOBAL ARCHITECTURE & VARIABLES
   ========================================================================== */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #07111f;
    color: #ffffff;
    line-height: 1.7;
}

section {
    padding: 70px 8%;
}

/* ==========================================================================
   2. NAVIGATION & GLOBAL COMPONENTS
   ========================================================================== */
header {
    position: sticky;
    top: 0;
    background: rgba(7, 17, 31, 0.95);
    backdrop-filter: blur(8px); /* Subtle premium frosted-glass effect */
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav a, .btn {
    color: white;
    text-decoration: none;
    margin: 0 12px;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav a:hover, nav a.active {
    color: #3b82f6; /* Highlights active page matching brand blue */
}

.btn {
    background: #3b82f6;
    padding: 12px 20px;
    border-radius: 30px;
    display: inline-block;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* ==========================================================================
   3. HERO BLOCK & ANIMATIONS
   ========================================================================== */
.hero {
    padding: 120px 8%;
    background: linear-gradient(135deg, #0d1b2a, #1b4d8c, #07111f);
    animation: fade 1.5s ease-out;
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   4. SERVICES SYSTEM LAYOUT (2x2 RESPONSIVE GRID)
   ========================================================================== */
.services-intro {
    text-align: center;
    padding: 80px 8% 30px 8%;
    max-width: 800px;
    margin: 0 auto;
}

.services-intro h1 {
    font-size: 2.5rem;
    margin: 0 0 16px 0;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.services-intro .subtitle {
    font-size: 1.15rem;
    color: #94a3b8; /* Muted slate for professional readability */
    margin: 0;
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 100px;
}

/* Structured grid framework for the 4 pillars */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* Legacy support for original home page structural block */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* Unified Premium Card Interface Components */
.card {
    background: #13243c;
    padding: 32px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pins action links perfectly to card base */
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    border-color: rgba(59, 130, 246, 0.3); /* Subtle blue glow on hover intent */
}

.card-content {
    margin-bottom: 24px;
}

/* Tactical Context Badges */
.card-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 1.35rem;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.card h3 a {
    text-decoration: none;
    color: #ffffff;
}

.card p {
    font-size: 0.95rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.6;
}

/* Micro-interaction Call to Action Links */
.card-link {
    display: inline-block;
    text-decoration: none;
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.15s ease, transform 0.15s ease;
}

.card-link:hover {
    color: #60a5fa;
    transform: translateX(4px); /* Interactive nudge forward on hover */
}

/* ==========================================================================
   5. BIOGRAPHY COMPONENT (THEMED TO MATCH DARK MODE)
   ========================================================================== */
.bio-section {
    background-color: #111c30; /* Dark accent container */
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding: 80px 8%;
}

.bio-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 50px;
    align-items: center;
}

.bio-image {
    flex: 1;
    min-width: 260px;
    max-width: 350px;
}

.bio-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.bio-text {
    flex: 2;
}

.bio-text h2 {
    font-size: 2rem;
    margin: 0 0 20px 0;
}

.bio-text p {
    line-height: 1.7;
    margin-bottom: 16px;
    color: #cbd5e1; /* Clear, light text contrast */
}

.bio-text p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   6. RESPONSIVE MEDIA BREAKPOINTS
   ========================================================================== */
@media (max-width: 950px) {
    .cards-grid {
        grid-template-columns: 1fr; /* Safely collapses 2x2 layout on mid-sized viewports */
        gap: 24px;
    }
    
    .bio-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .bio-image {
        margin: 0 auto;
    }
    
    .services-intro h1 {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 20px 4%;
    }
    
    nav a {
        margin: 0 6px;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   7. UPGRADED ENTERPRISE FOOTER SYSTEM
   ========================================================================== */
footer {
    text-align: center;
    padding: 60px 8% 40px 8%;
    background: #111c30;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-copyright {
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.footer-meta {