/* 
   Corporate Website Design System - Modern Engineering (Precision & Scale)
   Theme: High-Tech, Industrial, Trustworthy
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Colors */
    --navy-deep: #0F172A;
    /* Slate Navy - Primary Background/Text */
    --navy-light: #1E293B;
    /* Lighter Navy for Cards/Sections */
    --blue-electric: #2563EB;
    /* Electric Blue - Primary Accent */
    --blue-glow: rgba(37, 99, 235, 0.5);

    --text-main: #0F172A;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --text-white: #FFFFFF;

    --bg-body: #F8FAFC;
    /* Cool Grey */
    --bg-white: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.8);

    --border-light: #E2E8F0;
    --border-focus: #2563EB;

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing & Layout */
    --container-width: 1280px;
    --header-height: 80px;
    --section-padding: 120px 0;

    /* Effects */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px var(--blue-glow);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    background-image: radial-gradient(#E2E8F0 1px, transparent 1px);
    background-size: 40px 40px;
    /* Subtle technical grid */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--navy-deep);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 4rem;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.7;
}

.mono-text {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--blue-electric);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius-md);
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: var(--section-padding);
    position: relative;
}

.bg-white {
    background-color: var(--bg-white);
}

.bg-navy {
    background-color: var(--navy-deep);
    color: var(--text-white);
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--text-white);
}

/* Buttons - Modern Engineering */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    border: 1px solid transparent;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--blue-electric);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--border-light);
    color: var(--navy-deep);
    background: var(--bg-white);
}

.btn-secondary:hover {
    border-color: var(--navy-deep);
    transform: translateY(-2px);
}

/* Header - Glassmorphism */
header {
    height: var(--header-height);
    background-color: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Header Button Override */
header .btn {
    height: 48px;
    padding: 0 28px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
}

.logo img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

nav ul {
    display: flex;
    gap: 32px;
}

nav a {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
}

nav a:hover,
nav a.active {
    color: var(--blue-electric);
}

/* Hamburger Menu Button */
.menu-toggle {
    display: none;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    width: 100%;
    height: 2.5px;
    background-color: var(--navy-deep);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
    display: block;
    position: absolute;
    left: 0;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span:nth-child(3) {
    bottom: 0;
}

.menu-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateY(-50%) scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu.active {
    max-height: 600px;
    overflow: visible;
}

.mobile-menu.active li .btn,
.mobile-menu.active li:last-child a.btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 20px 24px;
    margin: 0;
}

.mobile-menu li {
    list-style: none;
    border-bottom: 1px solid var(--border-light);
}

.mobile-menu li:last-child {
    border-bottom: none;
}

.mobile-menu li:nth-last-child(2) {
    border-bottom: none;
}

.mobile-menu a {
    display: block;
    padding: 16px 0;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--blue-electric);
}

.mobile-menu li .btn,
.mobile-menu li:last-child a.btn {
    border-bottom: none !important;
    margin: 20px 0 0 0 !important;
    padding: 16px 28px !important;
    width: 100% !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-white) !important;
    background-color: var(--blue-electric) !important;
    border: none !important;
    border-radius: var(--radius-sm);
    text-decoration: none;
    box-shadow: var(--shadow-md);
    min-height: 52px;
    position: relative;
    z-index: 1;
}

.mobile-menu li .btn:hover {
    background-color: #1d4ed8 !important;
    transform: translateY(-2px);
}

/* Cards - Floating */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.card-icon {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--blue-electric);
    background: rgba(37, 99, 235, 0.1);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

/* Footer */
footer {
    background-color: var(--navy-deep);
    color: var(--text-white);
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.footer-col:first-child {
    min-width: 250px;
    max-width: 400px;
}

.footer-col .logo {
    display: block !important;
    margin-bottom: 0px !important;
    width: fit-content;
    height: auto !important;
    align-items: unset !important;
    gap: 0 !important;
    flex-direction: unset !important;
}

.footer-col .logo img {
    display: block !important;
    height: 28px !important;
    width: auto !important;
    max-height: 28px !important;
    object-fit: contain;
    margin: 0 !important;
    padding: 0 !important;
}

.footer-col h4 {
    color: var(--text-white);
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-light);
    font-weight: 400;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--blue-electric);
}

/* Footer Contact Text Override */
.footer-col p {
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 1rem;
}

/* First footer column - logo and tagline spacing */
.footer-col:first-child {
    min-width: 250px;
    max-width: 400px;
    align-items: flex-start;
}

.footer-col:first-child .logo {
    display: block !important;
    margin-bottom: 0px !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    width: 100%;
    min-height: 40px;
}

.footer-col:first-child .logo img {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.footer-col:first-child p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    padding: 0 !important;
    display: block !important;
    line-height: 1.6 !important;
    clear: both;
    text-align: left !important;
    width: 100%;
    max-width: 100%;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .container {
        padding: 0 24px;
    }

    nav {
        display: none;
    }

    header .btn,
    header > .container > a.btn,
    header > .container > a.btn-primary {
        display: none !important;
        visibility: hidden !important;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    /* Mobile Button Styles - Full Width and Stacked */
    .btn {
        width: 100% !important;
        display: flex !important;
        justify-content: center;
        box-sizing: border-box;
    }

    /* Stack buttons vertically when in flex containers */
    div[style*="display: flex"] .btn,
    div[style*="display:flex"] .btn {
        width: 100% !important;
    }

    /* Hero section buttons - stack vertically */
    .hero-content > div[style*="display: flex"],
    .hero-content > div[style*="display:flex"] {
        flex-direction: column !important;
        gap: 16px !important;
        width: 100%;
    }

    .hero-content > div[style*="display: flex"] .btn,
    .hero-content > div[style*="display:flex"] .btn {
        width: 100% !important;
        margin: 0 !important;
    }

    /* Services section - make button full width and stack */
    div[style*="align-items: start"] {
        flex-direction: column !important;
    }

    div[style*="align-items: start"] .btn {
        width: 100% !important;
        margin-top: 24px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* CTA section button */
    .cta-section .btn {
        width: 100% !important;
        margin-top: 24px;
    }

    /* Any button container with flex display */
    section .btn,
    .section .btn {
        width: 100% !important;
    }
}