:root {
    --bg-main: #0B0F14;            /* Your updated main dark background */
    --bg-card: #161B22;            /* Your updated card dark background */
    --accent-blue: #007BFF;        /* Your updated primary accent blue */
    --accent-blue-hover: #0052CC;  /* Your specific button hover states color */
    --electric-blue: #00D2FF;      /* High contrast menu links & icons accent color */
    --silver: #C0C7D1;             /* Your silver layout metrics variables */
    --border-subtle: #2A3441;      /* Your custom silver border metric variables */
    --text-primary: #F5F7FA;       /* Your updated primary text typography variables */
    --text-muted: #C0C7D1;         /* Matches typography theme to silver notes */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Nav */
.main-header {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 1px;
    z-index: 1100;
}

/* Clean containment framework for the top-left logo webp resource graphic */
.logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    display: block;
}

.main-nav a {
    color: #FFFFFF;                /* White navigation menu layout copy items */
    text-decoration: none;
    margin-left: 32px;
    font-weight: 600;
    transition: var(--transition);
}

.main-nav a.nav-cta {
    color: #FFFFFF;
}

.main-nav a:hover {
    color: var(--electric-blue);   /* Electric blue nav item link text interaction shifts */
}

/* Hero Section & Actions Optimization */
.hero-section {
    position: relative;
    padding: 200px 0 120px 0;
    overflow: hidden;
    background: radial-gradient(circle at 80% 20%, rgba(0, 123, 255, 0.08) 0%, transparent 50%);
}

.grid-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(rgba(255,255,255,0.01) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.01) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 40px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 123, 255, 0.1);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 20px;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.text-glow {
    color: var(--accent-blue);
    text-shadow: 0 0 25px rgba(0, 123, 255, 0.4);
}

.hero-section p {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-blue);
    color: #FFFFFF;                /* White button text */
    border: none;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--accent-blue-hover); /* Blue hover shifts down perfectly */
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.5);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-blue);
}

/* Stats Banner */
.experience-banner {
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 40px 0;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-blue);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services */
.services-section {
    padding: 100px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle); /* Subtle silver card tracking perimeter borders */
    padding: 40px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
}

.service-icon {
    font-size: 1.5rem;
    color: var(--electric-blue);   /* Electric blue for icons */
    margin-bottom: 16px;
}

.service-card h3 {
    font-family: var(--font-heading);
    margin-bottom: 16px;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.card-tag {
    font-size: 0.8rem;
    color: var(--electric-blue);
    font-weight: 600;
    text-transform: uppercase;
}

/* Contact Form */
.contact-section {
    padding: 100px 0;
    background: radial-gradient(circle at 20% 80%, rgba(0, 123, 255, 0.04) 0%, transparent 50%);
}

.contact-box {
    max-width: 600px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 48px;
    border-radius: 12px;
    margin: 0 auto;
}

.contact-box h2 {
    font-family: var(--font-heading);
    margin-bottom: 12px;
}

.contact-form {
    margin-top: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(11, 15, 20, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: white;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.2);
}

.btn-block {
    width: 100%;
    margin-top: 10px;
}

/* Footer */
.main-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 40px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* Complete Mobile Responsive Refactor */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

@media(max-width: 768px) {
    h1 { font-size: 2.3rem; }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-main);
        transition: var(--transition);
        z-index: 1000;
        gap: 40px;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav a {
        margin-left: 0;
        font-size: 1.5rem;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}