﻿/* ========================================
   ACE INSTRUMENTATION - MAIN STYLESHEET
   ======================================== */

:root {
    --navy: #0A192F;
    --navy-light: #112240;
    --orange: #FF6B00;
    --orange-hover: #E65C00;
    --light-gray: #F8F9FA;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--orange);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--orange-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--navy);
}

.btn-outline {
    background-color: transparent;
    color: var(--orange);
    border: 2px solid var(--orange);
}

.btn-outline:hover {
    background-color: var(--orange);
    color: var(--text-light);
}

/* HEADER & NAVIGATION */
header {
    background-color: var(--navy);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.top-bar {
    background-color: var(--navy-light);
    padding: 8px 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info span {
    margin-right: 25px;
}

.top-info i {
    color: var(--orange);
    margin-right: 8px;
}

.social-links a {
    margin-left: 15px;
    color: rgba(255,255,255,0.8);
}

.social-links a:hover {
    color: var(--orange);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--orange), #FF8C00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 1.5rem;
}

.logo-text {
    color: var(--text-light);
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--orange);
}

.nav-links {
    display: flex;
    gap: 5px;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 4px;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--orange);
    background-color: rgba(255,107,0,0.1);
}

.mobile-menu-toggle {
    display: none;
    color: var(--text-light);
    font-size: 1.8rem;
    cursor: pointer;
}

/* HERO SECTION */
.hero {
    height: 90vh;
    min-height: 600px;
    background: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.9)), 
                url('https://images.unsplash.com/photo-1518709414768-a88981a4515d?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content h1 span {
    color: var(--orange);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-stats {
    position: absolute;
    bottom: 50px;
    right: 50px;
    display: flex;
    gap: 40px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 30px 40px;
    border-radius: 8px;
    border-left: 4px solid var(--orange);
}

.hero-stat-item h3 {
    font-size: 2.5rem;
    color: var(--orange);
    font-weight: 900;
}

.hero-stat-item p {
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.9;
}

/* PAGE HEADER */
.page-header {
    background: linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.95)),
                url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    padding: 120px 0 80px;
    text-align: center;
    color: var(--text-light);
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.breadcrumb {
    font-size: 1rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: var(--orange);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* SECTIONS */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 900;
}

.section-header .underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--orange), #FF8C00);
    margin: 0 auto;
    border-radius: 2px;
}

.section-header p {
    max-width: 700px;
    margin: 20px auto 0;
    font-size: 1.1rem;
    color: #666;
}

/* STATS SECTION */
.stats {
    background-color: var(--light-gray);
    padding: 80px 0;
    border-top: 4px solid var(--orange);
    border-bottom: 4px solid var(--orange);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-card i {
    font-size: 3rem;
    color: var(--orange);
    margin-bottom: 20px;
}

.stat-card h3 {
    font-size: 2.8rem;
    color: var(--navy);
    font-weight: 900;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
    text-transform: uppercase;
}

/* SERVICES GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--orange);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-image {
    height: 220px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    font-size: 4rem;
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    font-size: 1.6rem;
    color: var(--navy);
    margin-bottom: 15px;
    font-weight: 700;
}

.service-content p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.8;
}

.service-content a {
    color: var(--orange);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-content a:hover {
    gap: 12px;
}

/* PRODUCTS GRID */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--orange);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 10;
}

.product-image {
    height: 250px;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-size: 5rem;
}

.product-content {
    padding: 25px;
}

.product-content h3 {
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: 10px;
    font-weight: 700;
}

.product-content .category {
    color: var(--orange);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.product-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
}

.product-specs {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
}

.product-specs li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.product-specs strong {
    color: var(--navy);
}

/* INDUSTRIES SECTION */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.industry-card {
    position: relative;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.industry-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    transition: var(--transition);
}

.industry-card:hover .industry-bg {
    transform: scale(1.1);
}

.industry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
    color: var(--text-light);
    transition: var(--transition);
}

.industry-card:hover .industry-overlay {
    background: rgba(255, 107, 0, 0.9);
}

.industry-overlay i {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.industry-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.industry-overlay p {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.industry-card:hover .industry-overlay p {
    opacity: 1;
    transform: translateY(0);
}

/* ABOUT PAGE SPECIFIC */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: auto;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 25px;
    font-weight: 900;
}

.about-content h2 span {
    color: var(--orange);
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.9;
    color: #555;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 80px;
}

.value-card {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--orange);
}

.value-card i {
    font-size: 3rem;
    color: var(--orange);
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 15px;
}

/* CERTIFICATIONS */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.cert-card {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 25px;
    transition: var(--transition);
}

.cert-card:hover {
    transform: translateX(10px);
    border-left: 4px solid var(--orange);
}

.cert-icon {
    width: 70px;
    height: 70px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    font-size: 2rem;
    flex-shrink: 0;
}

.cert-content h3 {
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: 10px;
}

.cert-content p {
    color: #666;
    line-height: 1.7;
}

/* CONTACT PAGE */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info {
    background: var(--navy);
    color: var(--text-light);
    padding: 50px;
    border-radius: 8px;
    height: fit-content;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--orange);
}

.contact-detail {
    margin-bottom: 30px;
}

.contact-detail h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-detail p,
.contact-detail li {
    margin-bottom: 10px;
    opacity: 0.9;
    line-height: 1.8;
}

.contact-form {
    background: white;
    padding: 50px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* FOOTER */
footer {
    background-color: var(--navy);
    color: var(--text-light);
    padding: 80px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    line-height: 1.9;
    opacity: 0.85;
    margin-bottom: 25px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--orange);
    text-transform: uppercase;
    font-weight: 700;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    opacity: 0.85;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--orange);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
    opacity: 0.85;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-contact i {
    color: var(--orange);
    margin-top: 5px;
}

.footer-bottom {
    padding: 30px 0;
    text-align: center;
    opacity: 0.7;
    font-size: 0.95rem;
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-intro,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 50px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--navy);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .stats-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 60px 0;
    }
}

/* SCROLL TO TOP BUTTON */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 15px rgba(255,107,0,0.4);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--orange-hover);
    transform: translateY(-5px);
}