/* --- START OF FILE styles.css --- */
/* 
    Theme: DualTone Core
    Concept: Light (White -> Soft Blue) | Dark (Charcoal -> Deep Blue)
    Author: Earthmoving Digital Media Dev Team
*/

:root {
    /* LIGHT MODE VARIABLES */
    --bg-gradient-light: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --bg-solid-light: #f5f7fa;
    --text-primary-light: #102a43;
    --text-secondary-light: #334e68;
    --card-bg-light: rgba(255, 255, 255, 0.85);
    --card-border-light: rgba(255, 255, 255, 0.9);
    --accent-primary-light: #3182ce;
    --accent-secondary-light: #63b3ed;
    --btn-text-light: #ffffff;
    --shadow-light: 0 10px 30px rgba(0, 0, 0, 0.08);

    /* DARK MODE VARIABLES (Default overrides handled in body[data-theme='dark']) */
    --bg-gradient-dark: linear-gradient(135deg, #102a43 0%, #243b53 100%);
    --bg-solid-dark: #102a43;
    --text-primary-dark: #f0f4f8;
    --text-secondary-dark: #d9e2ec;
    --card-bg-dark: rgba(36, 59, 83, 0.85);
    --card-border-dark: rgba(255, 255, 255, 0.1);
    --accent-primary-dark: #63b3ed;
    --accent-secondary-dark: #3182ce;
    --btn-text-dark: #102a43;
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.4);

    /* COMMON VARIABLES */
    --font-main: 'Poppins', sans-serif;
    --font-heading: 'Orbitron', sans-serif;
    --transition-speed: 0.4s;
    --border-radius: 16px;
    --max-width: 1280px;
}

/* THEME HANDLING */
body {
    background: var(--bg-gradient-light);
    color: var(--text-primary-light);
    font-family: var(--font-main);
    transition: background 0.6s ease, color 0.6s ease;
    margin: 0;
    overflow-x: hidden;
}

body[data-theme="dark"] {
    background: var(--bg-gradient-dark);
    color: var(--text-primary-dark);
    --current-card-bg: var(--card-bg-dark);
    --current-shadow: var(--shadow-dark);
    --current-accent: var(--accent-primary-dark);
}

body[data-theme="light"] {
    --current-card-bg: var(--card-bg-light);
    --current-shadow: var(--shadow-light);
    --current-accent: var(--accent-primary-light);
}

/* RESET & UTILS */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

section {
    padding: 80px 20px;
    position: relative;
    z-index: 2;
}

/* CONTAINER */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER (STRICT CONSISTENCY) --- */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header.scrolled {
    padding: 10px 0;
    color: white;
    background: rgba(16, 42, 67, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container img {
    height: 60px;
    filter: brightness(1.2);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-primary-light);
    transition: width 0.3s ease;
}

body[data-theme="dark"] .nav-link::after {
    background: var(--accent-primary-dark);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* THEME TOGGLE */
.theme-switch {
    background: transparent;
    border: 2px solid currentColor;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.theme-switch:hover {
    transform: rotate(180deg);
}

/* MOBILE MENU */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-bg-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    perspective: 1000px;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: float 10s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(49, 130, 206, 0.3);
    top: -10%;
    left: -10%;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(99, 179, 237, 0.2);
    bottom: 10%;
    right: -5%;
    animation-delay: -2s;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--accent-primary-light), var(--accent-secondary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body[data-theme="dark"] .hero-title {
    background: linear-gradient(90deg, var(--accent-primary-dark), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* BUTTONS */
.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
}

.btn-primary {
    background: var(--accent-primary-light);
    color: #fff;
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.4);
}

body[data-theme="dark"] .btn-primary {
    background: var(--accent-primary-dark);
    color: #102a43;
    box-shadow: 0 4px 15px rgba(99, 179, 237, 0.4);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* --- SERVICES GRID --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--current-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Update variable for JS usage */
body[data-theme="light"] .service-card {
    background: var(--card-bg-light);
    border: 1px solid #fff;
}

body[data-theme="dark"] .service-card {
    background: var(--card-bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--current-shadow);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-primary-light);
}

body[data-theme="dark"] .service-icon {
    color: var(--accent-primary-dark);
}

/* --- CALCULATOR SECTION --- */
.calc-container {
    background: var(--current-card-bg);
    border-radius: var(--border-radius);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--current-shadow);
    backdrop-filter: blur(10px);
}

body[data-theme="light"] .calc-container {
    background: rgba(255, 255, 255, 0.7);
}

body[data-theme="dark"] .calc-container {
    background: rgba(16, 42, 67, 0.7);
}

.range-group {
    margin-bottom: 30px;
}

.range-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.range-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-primary-light);
    border-radius: 50%;
    cursor: pointer;
}

body[data-theme="dark"] .range-slider::-webkit-slider-thumb {
    background: var(--accent-primary-dark);
}

.calc-result {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-theme="dark"] .calc-result {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary-light);
}

body[data-theme="dark"] .result-value {
    color: var(--accent-primary-dark);
}

/* --- TESTIMONIALS --- */
.testimonial-track {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.testimonial-track::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-width: 350px;
    background: var(--current-card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body[data-theme="light"] .testimonial-card {
    background: #fff;
}

body[data-theme="dark"] .testimonial-card {
    background: var(--card-bg-dark);
}

.quote-icon {
    font-size: 2rem;
    opacity: 0.3;
    margin-bottom: 15px;
}

/* --- LEGAL PAGE CONTENT --- */
.legal-content {
    padding-top: 140px;
    max-width: 900px;
    margin: 0 auto;
}

.legal-box {
    background: var(--current-card-bg);
    padding: 50px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    box-shadow: var(--current-shadow);
    backdrop-filter: blur(10px);
}

body[data-theme="light"] .legal-box {
    background: rgba(255, 255, 255, 0.9);
}

body[data-theme="dark"] .legal-box {
    background: rgba(20, 30, 48, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-box h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.legal-box h2 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--accent-primary-light);
}

body[data-theme="dark"] .legal-box h2 {
    color: var(--accent-primary-dark);
}

.legal-box p {
    line-height: 1.8;
    margin-bottom: 15px;
    opacity: 0.9;
}

/* --- CONTACT FORM --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding-top: 60px;
}

.contact-info-card {
    background: var(--current-card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(5px);
}

body[data-theme="light"] .contact-info-card {
    background: rgba(255, 255, 255, 0.6);
}

body[data-theme="dark"] .contact-info-card {
    background: rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.5);
    color: inherit;
    font-family: inherit;
}

body[data-theme="dark"] .form-control {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* --- FOOTER (STRICT CONSISTENCY) --- */
.site-footer {
    background: #0f2438;
    color: #f0f4f8;
    padding: 80px 0 20px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-family: var(--font-heading);
    margin-bottom: 25px;
    color: #fff;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    opacity: 0.7;
    transition: 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-primary-dark);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* LIVE CHAT FAB */
.chat-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-primary-light);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 900;
    transition: transform 0.3s;
}

body[data-theme="dark"] .chat-fab {
    background: var(--accent-primary-dark);
    color: #102a43;
}

.chat-fab:hover {
    transform: scale(1.1) rotate(10deg);
}

/* ANIMATIONS */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 15px 0;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-solid-light);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.4s ease;
        z-index: 999;
    }

    body[data-theme="dark"] .nav-links {
        background: var(--bg-solid-dark);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .mobile-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* --- END OF FILE styles.css --- */