/* =========================================
   VARIABLES & SETUP
   ========================================= */
   :root {
    /* Colors */
    --color-bg: #e2e8f0;
    --color-surface: #ffffff;
    --color-dark: #0f172a;
    --color-darker: #020617;
    --color-primary: #f97316; /* Safety Orange */
    --color-primary-hover: #ea580c;
    --color-secondary: #3b82f6; /* Blue accent */
    --color-text: #334155;
    --color-text-light: #64748b;
    --color-white: #f8fafc;
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --glow-primary: 0 0 20px rgba(249, 115, 22, 0.3);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-dark);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

.highlight-text {
    color: var(--color-primary);
}

/* =========================================
   LAYOUT & UTILITIES
   ========================================= */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-sm {
    max-width: 900px;
}

.section-padding {
    padding: 6rem 0;
}

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

.bg-dark h2, .bg-dark h3, .light-text h2, .light-text p {
    color: var(--color-white);
}

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    font-family: var(--font-main);
}

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

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

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

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-normal);
    background: transparent;
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: white;
    border-radius: 8px;
    font-size: 1.25rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: white; /* In hero */
    letter-spacing: -0.5px;
}

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

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

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition-fast);
    position: relative;
}

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

.nav-link:hover, .nav-link.active {
    color: white;
}

.navbar.scrolled .nav-link:hover, .navbar.scrolled .nav-link.active {
    color: var(--color-primary);
}

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

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

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

.navbar.scrolled .mobile-toggle {
    color: var(--color-dark);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Offset for navbar */
    overflow: hidden;
    background-color: var(--color-dark);
    background-image: url('assets/images/hero_v2.png');
    background-size: cover;
    background-position: center;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transform: scale(1.05); /* slightly scaled for animation */
}

/* Will apply image via JS when ready, adding classes here */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.7) 50%, rgba(15, 23, 42, 0.4) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(249, 115, 22, 0.2);
    color: var(--color-primary);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.hero-title {
    color: white;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    max-width: 650px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-surface);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: #fff8f1;
    color: var(--color-primary);
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

/* =========================================
   SPLIT LAYOUT DETAILS
   ========================================= */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-layout.reverse .split-content {
    grid-column: 2;
    grid-row: 1;
}

.split-layout.reverse .split-image {
    grid-column: 1;
    grid-row: 1;
}

.feature-list {
    list-style: none;
    margin: 2rem 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.feature-list i {
    color: var(--color-primary);
    font-size: 1.25rem;
    margin-top: 0.125rem;
}

.split-image {
    position: relative;
}

.rounded-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.shadow-lg {
    box-shadow: var(--shadow-xl);
}

.floating-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 2.5rem;
    color: var(--color-secondary);
}

.floating-card h4 {
    margin-bottom: 0.25rem;
}

.floating-card span {
    color: var(--color-text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* =========================================
   PROCESS TIMELINE
   ========================================= */
.process {
    position: relative;
}

.process::before {
    /* add an industrial pattern overlay to the background */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
}

.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    width: 2px;
    height: 100%;
    background: rgba(255,255,255,0.1);
}

.timeline-item {
    position: relative;
    padding-left: 100px;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-number {
    position: absolute;
    left: 15px;
    top: 0;
    width: 50px;
    height: 50px;
    background: var(--color-darker);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--color-primary);
    z-index: 2;
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.2);
}

.timeline-content h3 {
    color: white;
}

/* =========================================
   BENEFITS GRID (Spare Parts)
   ========================================= */
.benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.benefit-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.b-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* =========================================
   CONTACT / CTA
   ========================================= */
.cta {
    background: linear-gradient(135deg, #eff6ff 0%, #f1f5f9 100%);
}

.cta-box {
    background: white;
    padding: 4rem;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.c-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-dark);
}

.c-item i {
    color: var(--color-primary);
}

.contact-form {
    text-align: left;
    margin-top: 2.5rem;
}

.form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

textarea.form-control {
    resize: vertical;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background: var(--color-darker);
    color: #94a3b8;
    padding: 5rem 0 2rem;
}

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

.footer-logo .logo-text {
    color: white;
}

footer h4 {
    color: white;
    margin-bottom: 1.5rem;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 0.75rem;
}

footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition-fast);
}

footer a:hover {
    color: var(--color-primary);
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-list i {
    margin-top: 0.25rem;
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
}

/* =========================================
   ANIMATIONS (JS Revealed)
   ========================================= */
[data-animate] {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate="fade-up"] { transform: translateY(40px); }
[data-animate="fade-down"] { transform: translateY(-40px); }
[data-animate="fade-left"] { transform: translateX(40px); }
[data-animate="fade-right"] { transform: translateX(-40px); }
[data-animate="scale-up"] { transform: scale(0.9); }

.animated {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .split-layout.reverse .split-content,
    .split-layout.reverse .split-image {
        grid-column: 1;
        grid-row: auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        border-top: none;
        border-left: 1px solid rgba(255,255,255,0.1);
        padding-top: 0;
        padding-left: 2rem;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: -1;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-link {
        color: var(--color-dark);
    }
    
    .navbar {
        background: rgba(255, 255, 255, 0.95);
        padding: 1rem 0;
    }
    
    .logo-text {
        color: var(--color-dark);
    }
    
    .mobile-toggle {
        color: var(--color-dark);
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .cta-box {
        padding: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .section-padding {
        padding: 4rem 0;
    }

    .hero {
        padding-top: 60px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .process-timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-number {
        left: 0;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .cta-box {
        padding: 1.5rem 1rem;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }
}
