/* ==========================================================================
   LMSFuel - Main Stylesheet
   ========================================================================== */

/* CSS Custom Properties (Theme Variables) */
:root {
    /* Brand Colors */
    --primary-orange: #FF8C00;
    --primary-yellow: #FFD700;
    --accent-blue: #2563EB;
    --accent-teal: #0891B2;

    /* Neutral Colors */
    --neutral-dark: #1F2937;
    --neutral-gray: #6B7280;
    --neutral-light: #F3F4F6;
    --white: #FFFFFF;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-yellow) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(255, 140, 0, 0.1) 0%, rgba(255, 215, 0, 0.1) 100%);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;

    /* Spacing */
    --section-padding: 5rem;
    --container-max: 1200px;
    --border-radius: 0.5rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--neutral-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

ul {
    list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */

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

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: var(--section-padding) 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

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

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

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

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

/* ==========================================================================
   Navigation
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-normal);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

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

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--neutral-dark);
    position: relative;
    padding: 0.5rem 0;
}

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

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

.nav-link:hover {
    color: var(--primary-orange);
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: none;
    font-family: var(--font-family);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--neutral-gray);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    color: var(--primary-orange);
}

.lang-btn.active {
    color: var(--white);
    background: var(--gradient-primary);
}

.lang-divider {
    color: var(--neutral-gray);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger {
    position: relative;
    width: 24px;
    height: 2px;
    background: var(--neutral-dark);
    transition: all var(--transition-normal);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--neutral-dark);
    transition: all var(--transition-normal);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(255, 140, 0, 0.08) 0%, transparent 70%);
    transform: rotate(-15deg);
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--neutral-gray);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn {
    margin-bottom: 1.5rem;
}

.hero-supporting {
    font-size: 0.875rem;
    color: var(--neutral-gray);
    font-style: italic;
}

/* ==========================================================================
   Services Section
   ========================================================================== */

.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-normal);
    border: 1px solid var(--neutral-light);
}

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

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    padding: 16px;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--white);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--neutral-gray);
    font-size: 1rem;
}

/* ==========================================================================
   Why Choose Us Section
   ========================================================================== */

.why-us {
    background: var(--neutral-light);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.why-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.why-card:hover {
    box-shadow: var(--shadow-md);
}

.why-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 140, 0, 0.1);
    border-radius: var(--border-radius);
    padding: 12px;
}

.why-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-orange);
}

.why-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.why-desc {
    color: var(--neutral-gray);
    font-size: 1rem;
}

/* ==========================================================================
   Process Section
   ========================================================================== */

.process {
    background: var(--white);
}

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

.process-timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--neutral-light);
}

.process-step {
    display: flex;
    gap: 2rem;
    padding-bottom: 3rem;
    position: relative;
}

.process-step:last-child {
    padding-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.step-content {
    padding-top: 0.5rem;
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.step-desc {
    color: var(--neutral-gray);
    font-size: 1rem;
}

/* ==========================================================================
   Technologies Section
   ========================================================================== */

.technologies {
    background: var(--neutral-light);
    padding: 3rem 0;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.tech-badge {
    background: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-dark);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-light);
    transition: all var(--transition-fast);
}

.tech-badge:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact {
    background: var(--white);
}

.contact-subtitle {
    text-align: center;
    color: var(--neutral-gray);
    margin-bottom: 3rem;
    font-size: 1.25rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--neutral-dark);
}

.form-group input,
.form-group textarea {
    padding: 0.875rem 1rem;
    font-family: var(--font-family);
    font-size: 1rem;
    border: 2px solid var(--neutral-light);
    border-radius: var(--border-radius);
    transition: border-color var(--transition-fast);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    position: relative;
    overflow: hidden;
}

.btn-submit .btn-loading {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.btn-submit.loading .btn-text {
    visibility: hidden;
}

.btn-submit.loading .btn-loading {
    display: block;
}

.spinner {
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.form-message {
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid #059669;
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
    border: 1px solid #DC2626;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-orange);
    flex-shrink: 0;
}

.contact-item a,
.contact-item span {
    color: var(--neutral-dark);
    font-size: 1rem;
}

.contact-info .btn {
    margin-top: 1rem;
    align-self: flex-start;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--neutral-dark);
    color: var(--white);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-tagline {
    color: var(--neutral-gray);
    font-size: 0.875rem;
}

.footer-links {
    text-align: right;
}

.footer-links a {
    color: var(--white);
    font-size: 0.875rem;
}

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

.copyright {
    color: var(--neutral-gray);
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* ==========================================================================
   WhatsApp Button
   ========================================================================== */

.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    z-index: 999;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.whatsapp-btn svg {
    width: 32px;
    height: 32px;
    fill: var(--white);
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --section-padding: 4rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info {
        order: -1;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: 3rem;
    }

    body {
        font-size: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    /* Mobile Navigation */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transform: translateX(100%);
        transition: transform var(--transition-normal);
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 1.125rem;
    }

    .lang-toggle {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--neutral-light);
    }

    /* Hero Mobile */
    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 3rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Services Mobile */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Why Us Mobile */
    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    /* Process Mobile */
    .process-timeline::before {
        left: 20px;
    }

    .step-number {
        width: 42px;
        height: 42px;
        font-size: 1.25rem;
    }

    .process-step {
        gap: 1.5rem;
    }

    /* Footer Mobile */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
    }

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

    /* WhatsApp Button Mobile */
    .whatsapp-btn {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
    }

    .whatsapp-btn svg {
        width: 28px;
        height: 28px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .tech-badges {
        gap: 0.5rem;
    }

    .tech-badge {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

/* Focus States */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --neutral-gray: #4B5563;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.15);
        --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.2);
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .navbar,
    .whatsapp-btn,
    .btn {
        display: none;
    }

    .hero {
        min-height: auto;
        padding-top: 0;
    }

    section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }
}
