/* =========================================
   TSL Aerospace - Modern Minimalist Styles
   ========================================= */

/* --- Variables & Reset --- */
:root {
    --primary-color: #1a4f24; /* Deep Forest Green */
    --secondary-color: #388e3c; /* Metallic Vibrant Green */
    --accent-color: #9ca3af; /* Silver/Gray accent */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --white: #ffffff;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevent horizontal scroll */
    scroll-padding-top: 100px; /* Offset for sticky menu */
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

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

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

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 16px 0;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .logo-text {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.navbar.scrolled .nav-link {
    color: var(--text-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

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

.nav-link:hover {
    color: var(--white);
}
.navbar.scrolled .nav-link:hover {
    color: var(--secondary-color);
}

.nav-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.nav-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.navbar.scrolled .mobile-menu-btn {
    color: var(--text-dark);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(40, 44, 52, 0.9) 0%, rgba(40, 44, 52, 0.4) 100%);
    z-index: 1;
}

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

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 24px;
}

.hero-title span {
    color: var(--secondary-color);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(56, 142, 60, 0.6);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* --- Typo Utilities --- */
.section-title {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.title-underline {
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin-bottom: 32px;
}

.title-underline.center {
    margin: 0 auto 32px auto;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 48px auto;
}

/* --- About Section --- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.about-list {
    margin-top: 32px;
}

.about-list li {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-color);
}

.about-list i {
    color: var(--secondary-color);
    font-size: 1.25rem;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 32px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: 4px solid var(--secondary-color);
}

.badge-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.badge-text {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 8px;
    text-align: center;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--white);
    padding: 48px 32px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--secondary-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(56, 142, 60, 0.1);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--secondary-color);
    color: var(--white);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
}

/* --- Parallax Quote Section --- */
.parallax-section {
    position: relative;
    padding: 120px 0;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
}

.parallax-section .overlay {
    position: absolute;
    top: 0; left:0; right:0; bottom:0;
    background-color: rgba(40, 44, 52, 0.85);
}

.parallax-content {
    position: relative;
    z-index: 2;
}

.quote-text {
    color: var(--white);
    font-size: 2.5rem;
    font-style: italic;
    font-weight: 300;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.4;
}

/* --- Standards Section --- */
.standards-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.standards-text p {
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.pillar-item {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
}

.pillar-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.pillar-info h4 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.pillar-info p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 1rem;
}

.standards-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stat-box {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 24px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-5px);
    background-color: var(--secondary-color);
}

.stat-number {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1;
}

.stat-suffix {
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.stat-label {
    display: block;
    margin-top: 8px;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* --- Footer --- */
.footer {
    background-color: #0c2511;
    color: var(--white);
    padding-top: 80px;
}

.footer-cta {
    background-color: var(--secondary-color);
    border-radius: 12px;
    padding: 60px;
    text-align: center;
    margin-top: -140px;
    position: relative;
    z-index: 10;
    margin-bottom: 80px;
    box-shadow: var(--shadow-lg);
}

.footer-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.footer-cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.footer-cta .btn {
    background-color: var(--white);
    color: var(--secondary-color);
    border-color: var(--white);
}

.footer-cta .btn:hover {
    background-color: transparent;
    color: var(--white);
}

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

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 24px;
    margin-bottom: 24px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    margin-right: 12px;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer h3 {
    font-size: 1.25rem;
    margin-bottom: 24px;
    color: var(--white);
    font-family: var(--font-heading);
}

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

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact i {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* --- Animations --- */
.animate-on-scroll {
    opacity: 0;
    will-change: transform, opacity;
}

[data-animation="fade-up"] {
    transform: translateY(40px);
}

[data-animation="slide-left"] {
    transform: translateX(40px);
}

[data-animation="slide-right"] {
    transform: translateX(-40px);
}

[data-animation="zoom-in"] {
    transform: scale(0.9);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0) scale(1);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .about-container, .standards-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .experience-badge {
        bottom: -20px;
        left: 20px;
        padding: 24px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        transition: transform 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-link, .navbar.scrolled .nav-link {
        color: var(--text-dark);
        font-size: 1.25rem;
    }

    .nav-links.active ~ .mobile-menu-btn {
        color: var(--text-dark);
    }

    .nav-btn {
        margin-top: 16px;
    }
    
    .mobile-menu-btn {
        display: block;
        z-index: 1001; /* Above nav menu */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        text-align: center;
        width: 100%;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .footer-cta {
        padding: 40px 24px;
        margin-top: -100px;
    }
    
    .quote-text {
        font-size: 1.8rem;
    }
    
    .hero, .parallax-section {
        background-attachment: scroll;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
}
