/* ========================================
   CSS RESET & BASE STYLES
   ======================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    color: #0f172a;
    background: #ffffff;
    line-height: 1.6;
}

/* ========================================
   LAYOUT COMPONENTS
   ======================================== */
.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
}

.narrow {
    max-width: 900px;
}

/* ========================================
   NAVIGATION COMPONENTS
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    z-index: 1000;
}

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

.logo { 
    text-decoration: none; 
    display: inline-flex; 
    align-items: center; 
}

.logo-img { 
    height: 47px; 
    width: auto; 
    display: block; 
}

.nav .nav-links {
    list-style: none;
    display: flex;
    gap: 24px;
}

.nav .nav-links a {
    color: #0f172a;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    position: relative;
    transition: color 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

.nav .nav-links a:hover {
    color: #1976d2;
}

.nav .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1976d2;
    transition: width 0.3s ease;
}

.nav .nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    width: 28px;
    height: 22px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 2px;
    background: #0f172a;
    margin: 5px 0;
}

/* Mobile navigation styles */
.nav-links.mobile-open {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    background: #fff;
    position: absolute;
    top: 64px;
    right: 20px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(2,6,23,0.15);
    z-index: 1001;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero { 
    position: relative; 
    padding: 160px 0 88px; 
    margin-top: 80px; 
    width: 100%;
    min-height: 80vh;
    overflow: hidden;
}

.hero-bg { 
    background-color: #0b1220; 
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2,6,23,0.35), rgba(2,6,23,0.15));
}

.hero-overlay { 
    position: relative; 
    z-index: 1; 
    text-align: left; 
    transform: translateY(-4em) translateX(-8%); 
}

.hero-overlay h1 { 
    color: #ffffff; 
    font-family: 'Roboto', sans-serif;
    font-size: 42px; 
    font-weight: 500;
    line-height: 1.2; 
    margin-bottom: 14px; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    -webkit-font-smoothing: antialiased;
}

.hero-overlay p { 
    color: #e2e8f0; 
    max-width: 760px; 
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    font-size: 18px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.hero-cta .btn {
    min-width: 140px;
}

/* ========================================
   BUTTON COMPONENTS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 24px;
    border-radius: 0;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 15px;
    border: 0;
    margin: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
    text-align: center;
    -webkit-font-smoothing: antialiased;
}

.btn-primary { 
    background: #1976d2; 
    color: #ffffff; 
}

.btn-primary:hover { 
    background: #1565c0; 
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.btn-ghost { 
    background: transparent; 
    color: #0f172a; 
    border-color: #cbd5e1; 
}

.btn-ghost:hover { 
    border-color: #94a3b8; 
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ========================================
   TYPOGRAPHY COMPONENTS
   ======================================== */
.section-title {
    font-family: 'Roboto', sans-serif;
    font-size: 38.4px;
    font-weight: 700;
    line-height: 38.4px;
    margin-bottom: 12px;
    text-align: center;
    -webkit-font-smoothing: antialiased;
}

.section-lead {
    color: #475569;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
    text-align: center;
    -webkit-font-smoothing: antialiased;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
    margin-top: 20px;
    content-visibility: auto;
    contain-intrinsic-size: 520px;
}

.about-split .split-col {
    position: relative;
}

.about-split .split-left {
    background: #00aeef;
    display: flex;
    align-items: center;
    color: #ffffff;
}

.about-split .split-left .section-title {
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 92px;
    line-height: 0.9;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    text-align: right;
}

.about-split .split-left .section-lead {
    color: #e2e8f0;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.01em;
    text-align: right;
}

.about-split .split-right {
    background-size: cover;
    background-position: center;
}

/* ========================================
   CAPABILITIES SECTION
   ======================================== */
.capabilities {
    padding: 56px 0;
    background: #ffffff;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(2,6,23,0.06);
}

.card img { 
    width: 100%; 
    height: 240px; 
    object-fit: cover; 
}

.card-body { 
    padding: 16px 16px 18px; 
}

.card-body h3 { 
    margin-bottom: 8px; 
    font-size: 20px; 
}

.card-body p { 
    color: #475569; 
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
    -webkit-font-smoothing: antialiased;
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */
.products { 
    padding: 56px 0; 
    background: #ffffff; 
    content-visibility: auto; 
    contain-intrinsic-size: 800px; 
}

.product-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.product-item { 
    position: relative; 
    background: #f8fafc; 
    border: 1px solid #e2e8f0; 
    border-radius: 0; 
    overflow: hidden; 
    cursor: pointer; 
    aspect-ratio: 1 / 1; 
}

.product-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
    transition: transform 0.5s ease; 
}

.product-item:hover img { 
    transform: scale(1.06); 
}

.product-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(25, 118, 210, 0.7);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.product-item:hover::after { 
    opacity: 1; 
}

.product-item figcaption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 22.4px;
    line-height: 33.6px;
    text-align: center;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: 1;
    -webkit-font-smoothing: antialiased;
}

.product-item:hover figcaption { 
    opacity: 1; 
    transform: translateY(0); 
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    padding: 60px 0;
    background: #3e4869;
    color: #0f172a;
    position: relative;
    clip-path: polygon(0 0, calc(50% - 32px) 0, 50% 32px, calc(50% + 32px) 0, 100% 0, 100% 100%, 0 100%);
    content-visibility: auto; 
    contain-intrinsic-size: 600px;
}

.contact-inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact .section-title { 
    color: #ffffff; 
    font-family: 'Roboto', sans-serif;
    font-size: 38.4px; 
    font-weight: 700; 
    line-height: 38.4px;
    text-align: center;
    -webkit-font-smoothing: antialiased;
}

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

.contact-description {
    color: #e2e8f0;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
    margin-top: 16px;
    -webkit-font-smoothing: antialiased;
}

.contact-form {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #3e4869;
    border: none;
    border-radius: 0;
    padding: 32px;
    box-shadow: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.form-actions .btn,
.form-actions .email-btn {
    min-width: 140px;
}

.email-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 20px;
    border-radius: 0;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 15px;
    border: 0;
    margin: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    background: #1976d2;
    color: #ffffff;
}

.email-btn:hover {
    background: #1565c0;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.field { 
    margin-bottom: 14px; 
}

.field label { 
    display: block; 
    color: #374151; 
    margin-bottom: 6px; 
    font-size: 14px; 
    font-weight: 500; 
}

.field input, 
.field textarea {
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #d1d5db;
    border-radius: 0;
    outline: none;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 21px;
    -webkit-font-smoothing: antialiased;
}

.field textarea {
    font-family: inherit;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #9ca3af;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 21px;
    -webkit-font-smoothing: antialiased;
}

.field input:focus, 
.field textarea:focus { 
    border-color: #1976d2; 
    box-shadow: 0 0 0 3px rgba(25,118,210,0.1); 
}

.contact-form .btn-primary { 
    background: #1976d2; 
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    -webkit-font-smoothing: antialiased;
    min-width: 140px;
}

.contact-form .btn-primary:hover { 
    background: #1565c0; 
}

.form-status { 
    margin-top: 10px; 
    font-size: 14px; 
    color: #374151; 
}

.form-status.form-success {
    color: #86efac;
}

.form-status.form-error {
    color: #fda4af;
}

/* ========================================
   FOOTER COMPONENTS
   ======================================== */
.site-footer {
    background: #ffffff;
    color: #374151;
    padding: 40px 0 24px;
    border-top: 1px solid #e5e7eb;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.footer-address {
    flex: 0 0 50%;
}

.footer-address h4 {
    color: #0f172a;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 16px;
    margin-bottom: 8px;
    -webkit-font-smoothing: antialiased;
}

.footer-address p {
    color: #6b7280;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

.footer-email a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1976d2;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    line-height: 16px;
    transition: color 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

.footer-email a:hover {
    color: #1565c0;
}

.footer-bottom { 
    text-align: center; 
    color: #6b7280;
    font-size: 14px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* High resolution screens */
@media (min-width: 1920px) and (max-width: 2559px) {
    .hero-overlay {
        transform: translateY(-3.5em) translateX(-6%);
    }
}

/* Ultra high resolution screens */
@media (min-width: 2560px) {
    .hero-overlay {
        transform: translateY(-7.5em) translateX(-5%);
    }
}

/* Tablet and smaller desktop */
@media (max-width: 992px) {
    .about-split {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    
    .about-split .split-right { 
        min-height: 320px; 
    }
    
    .form-row { 
        grid-template-columns: 1fr; 
    }
    
    .product-grid { 
        grid-template-columns: repeat(3, 1fr); 
    }
    
    .cards { 
        grid-template-columns: 1fr 1fr; 
    }
    
    .footer-top { 
        flex-direction: column; 
        gap: 16px; 
        text-align: center; 
    }
    
    .hero {
        padding: 110px 0 64px;
        min-height: 60vh;
    }
    
    .hero-overlay {
        transform: translateY(-3em) translateX(-12%);
    }
    
    .hero-overlay h1 {
        font-size: 36px;
    }
    
    .hero-overlay p {
        font-size: 16px;
    }
}

/* Mobile devices */
@media (max-width: 640px) {
    .nav .nav-links { 
        display: none; 
    }
    
    .hamburger { 
        display: inline-block; 
    }
    
    .product-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .cards { 
        grid-template-columns: 1fr; 
    }
    
    .hero {
        padding: 90px 0 48px;
        min-height: 50vh;
    }
    
    .hero-overlay {
        transform: translateY(-2.5em) translateX(-15%);
    }
    
    .hero-overlay h1 {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .hero-overlay p {
        font-size: 15px;
    }
}

/* Touch devices - show product overlays */
@media (hover: none) {
    .product-item::after { 
        opacity: 1; 
    }
    
    .product-item figcaption { 
        opacity: 1; 
        transform: none; 
    }
}

/* ========================================
   EMAIL ICON
   ======================================== */
.email-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 6px;
    vertical-align: middle;
}