/* ==========================================================================
   KRAD Innovation - Global Typography & Variables
   ========================================================================== */
@import url('https://googleapis.com');

:root {
    /* Color Palette */
    --color-primary: #0A192F;       /* Deep Navy */
    --color-secondary: #172A45;     /* Lighter Navy */
    --color-accent: #00D2FF;        /* Electric Blue Accent */
    --color-accent-hover: #00A8CC;  /* Darker Electric Blue */
    --color-text-main: #E2E8F0;     /* Light Grey Slate */
    --color-text-muted: #94A3B8;    /* Muted Slate */
    --color-white: #FFFFFF;
    
    /* Layout Properties */
    --max-width: 1200px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 8px;
}

/* Base Reset & Accessibility */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-primary);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Typography & Reusable Utilities
   ========================================================================== */
h1, h2, h3, h4 {
    color: var(--color-white);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-text-muted);
}

.btn-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
/* ==========================================================================
   Header & Brand Logo Styles
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.header.scrolled {
    background: var(--color-primary);
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Premium Logo Branding Element Wrapper */
.logo {
    display: inline-flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.logo:hover {
    opacity: 0.9;
    transform: scale(0.98);
}

.logo-img {
    height: 40px;       /* Fixed dimension prevents Cumulative Layout Shift (CLS) */
    width: auto;        /* Preserves native graphic aspect ratio */
    display: block;
    object-fit: contain;
}

.footer-brand .logo-img {
    height: 45px;       /* Slightly enhanced scale for footer visibility balance */
    margin-bottom: 0.5rem;
}


.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-main);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-accent);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-white);
    margin: 5px 0;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   Footer Component Layout
   ========================================================================== */
.footer {
    background-color: var(--color-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin-top: 1rem;
    color: var(--color-text-muted);
}

.footer-heading {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--color-text-muted);
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* ==========================================================================
   Responsive Breakpoints Media Queries
   ========================================================================== */
@media (max-width: 968px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--color-secondary);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 3rem;
        gap: 2rem;
        transition: var(--transition-smooth);
        box-shadow: -10px 0 20px rgba(0,0,0,0.3);
    }
    
    .nav-menu.active {
        right: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ==========================================================================
   Micro-Interactions & Premium Design Overlays
   ========================================================================== */

/* Structural Focus Highlight Overlay across Node lists */
.capability-node, .service-card {
    position: relative;
    overflow: hidden;
}

.capability-node::before, .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.capability-node:hover::before, .service-card:hover::before {
    opacity: 1;
}

/* Subtle Interactive Scaling Action on Anchor Links */
.footer-links a {
    display: inline-block;
    transition: var(--transition-smooth);
}

/* Focus Ring Accessibility Styles for Keyboard-Driven Navigation */
.form-control:focus-visible, .btn:focus-visible, .nav-link:focus-visible {
    outline: 2px dashed var(--color-accent);
    outline-offset: 4px;
}
