:root {
    --color-bg: #FFFFFF;
    --color-bg-alt: #F8F9FC;
    --color-text: #202020;
    --color-text-light: #555555;
    --color-accent: #FF5A19;
    --color-accent-subtle: rgba(255, 90, 25, 0.08);
    --color-border: #E8E8E8;

    --font-main: 'Inter', sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

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

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: #444;
}

.section-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 1rem;
    display: inline-block;
}

/* Utilities */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.text-accent {
    color: var(--color-accent);
}

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

.section-spacer {
    padding: var(--spacing-xl) 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #fff;
}

.btn-primary:hover {
    background-color: #e64a0f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 90, 25, 0.3);
}

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

.btn-outline:hover {
    border-color: var(--color-text);
    background: var(--color-text);
    color: #fff;
}

.btn-link {
    padding: 0;
    color: var(--color-accent);
    font-weight: 600;
}

.btn-link:hover {
    text-decoration: underline;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: block;
}

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

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

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: #444;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
}

.lang-switch {
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: 1rem;
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    cursor: pointer;
    opacity: 0.4;
}

.lang-btn.active {
    opacity: 1;
    color: var(--color-accent);
}

/* Hero */
.hero {
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, var(--color-accent-subtle) 0%, transparent 70%);
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
}

/* Feature Blocks (Protagonists) */
.feature-block {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.feature-block:last-child {
    margin-bottom: 0;
}

.feature-content {
    flex: 1;
}

.feature-image {
    flex: 1;
    height: 400px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.reverse-mobile {
    flex-direction: row-reverse;
}

.abstract-visual {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.8;
}

/* Generate programmatic patterns for visuals using gradients */
.abstract-visual[data-type="data"] {
    background-image: radial-gradient(#FF5A19 1px, transparent 1px), radial-gradient(#FF5A19 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 0.1;
}

.abstract-visual[data-type="shield"] {
    background: conic-gradient(from 45deg, transparent 0 25%, #FF5A19 0 50%, transparent 0 75%, #FF5A19 0);
    background-size: 40px 40px;
    opacity: 0.05;
}

.icon-lg {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    font-weight: 500;
    color: var(--color-text);
}

.feature-list li::before {
    content: "•";
    color: var(--color-accent);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -0.2rem;
}

/* Service Grid Summary */
.services-grid-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-summary-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    text-align: left;
    transition: all 0.3s ease;
}

.service-summary-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.service-summary-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.service-summary-card p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 3;
}

/* Contact Form */
.section-contact {
    background: var(--color-bg-alt);
    padding: 5rem 0;
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.form-control,
.form-select {
    width: 100%;
    padding: 0.875rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-subtle);
}

.form-label {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Timeline (Horizontal & Responsive) */
.timeline-section {
    padding: 4rem 0;
    position: relative;
}

.timeline-items {
    display: flex;
    overflow-x: auto;
    padding-bottom: 2rem;
    padding-top: 4rem;
    /* Space for dates on top */
    gap: 0;
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) var(--color-border);
}

.timeline-items::-webkit-scrollbar {
    height: 6px;
}

.timeline-items::-webkit-scrollbar-track {
    background: var(--color-border);
    border-radius: 3px;
}

.timeline-items::-webkit-scrollbar-thumb {
    background-color: var(--color-accent);
    border-radius: 3px;
}

.timeline-item {
    flex: 0 0 280px;
    /* Fixed width for horizontal items */
    position: relative;
    padding: 2rem 1.5rem 0;
    text-align: center;
    border-top: 2px solid var(--color-border);
    transition: all 0.3s ease;
}

/* The Dot */
.timeline-dot {
    width: 16px;
    height: 16px;
    background-color: var(--color-accent);
    border-radius: 50%;
    position: absolute;
    top: -9px;
    /* Half height (8) + line thickness/2 (1) = 9 */
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px #fff;
    /* White halo to separate from line if needed, or just clean */
    z-index: 2;
    transition: all 0.3s;
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 0 6px rgba(255, 90, 25, 0.2);
}

.timeline-item:hover {
    border-top-color: var(--color-accent);
}

/* Date */
.timeline-date {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-border);
    /* Inactive color */
    transition: color 0.3s;
}

.timeline-item:hover .timeline-date {
    color: var(--color-accent);
}

/* Content */
.timeline-content {
    background: transparent;
    padding: 0;
    text-align: center;
    border: none;
    box-shadow: none;
}

.timeline-content h4 {
    color: var(--color-text);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* Responsive: Vertical on Mobile */
@media (max-width: 900px) {
    .timeline-items {
        display: block;
        /* Vertical stack */
        overflow-x: visible;
        padding-top: 0;
        padding-bottom: 0;
    }

    .timeline-item {
        width: 100%;
        text-align: left;
        padding: 0 0 3rem 2.5rem;
        /* Left padding for content */
        border-top: none;
        border-left: 2px solid var(--color-border);
        margin-left: 1rem;
    }

    .timeline-item:last-child {
        border-left-color: transparent;
        /* No line after last item */
        padding-bottom: 1rem;
    }

    .timeline-dot {
        left: -9px;
        /* Position strictly on the left line */
        top: 0;
        transform: none;
        box-shadow: 0 0 0 4px #fff;
    }

    .timeline-item:hover .timeline-dot {
        transform: scale(1.3);
        box-shadow: 0 0 0 6px rgba(255, 90, 25, 0.2);
    }

    .timeline-item:hover {
        border-left-color: var(--color-accent);
    }

    .timeline-date {
        position: relative;
        top: -6px;
        left: 0;
        transform: none;
        margin-bottom: 0.2rem;
        display: block;
        font-size: 1.5rem;
        color: var(--color-accent);
        /* Always accent on mobile for readability or keep logic */
    }

    .timeline-content {
        text-align: left;
        margin-top: 0;
    }

    .timeline-content h4 {
        margin-top: 0;
    }
}

/* Partners */
.partner-logo {
    max-height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    /* Simplified for now, normally would have clearer burger */
    .hero h1 {
        font-size: 2.5rem;
    }

    .feature-block,
    .reverse-mobile {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .feature-list li {
        text-align: left;
        display: inline-block;
    }
}

/* Footer (Global) */
footer {
    border-top: 1px solid var(--color-border);
    background-color: #fff;
    margin-top: auto;
}

.footer-content {
    padding: 1em 0;
    opacity: 0.8;
    font-size: 0.9em;
}

.footer-content p {
    margin-bottom: 0;
}


/* Neon Effect */
.neon-text {
    text-shadow: 0 0 5px rgba(255, 90, 25, 0.5), 0 0 10px rgba(255, 90, 25, 0.3);
}

.neon-box {
    box-shadow: 0 0 10px rgba(255, 90, 25, 0.2), 0 0 20px rgba(255, 90, 25, 0.1);
    border-color: var(--color-accent);
}

/* Fly-in Animation */
.fly-in {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fly-in.visible {
    opacity: 1;
    transform: translateX(0);
}

.fly-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fly-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* New Grid for 5 services */
.services-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}