:root {
    /* Brand Colors */
    --color-primary: #0A2540;     /* Deep Ocean Blue */
    --color-secondary: #4F46E5;   /* Electric Indigo */
    --color-bg: #F9FAFB;          /* Off-White */
    --color-accent: #E5E7EB;      /* Platinum Grey */
    --color-text-main: #111827;
    --color-text-light: #6B7280;
    --color-white: #FFFFFF;
  
    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-float: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
  
* { box-sizing: border-box; margin: 0; padding: 0; }
  
body {
    font-family: var(--font-body);
    background-color: var(--color-white);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}
  
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
button { font-family: var(--font-heading); border: none; background: none; cursor: pointer; }
input { font-family: var(--font-body); }

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
  
.section { padding: 100px 0; }
.bg-light { background-color: var(--color-bg); }
.text-center { text-align: center; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }
.max-w-2xl { max-width: 42rem; margin-left: auto; margin-right: auto; } /* Centered by default unless specified */

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
  
/* Flex & Grid Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-4 { gap: 1rem; }
.grid { display: grid; }
.overflow-hidden { overflow: hidden; }

/* ---------------- HEADER ---------------- */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 10px 0;
}
.header.scrolled { 
    padding: 10px 0; 
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.nav-desktop { display: none; }
@media (min-width: 768px) {
    .nav-desktop { display: flex; align-items: center; gap: 40px; }
    .nav-mobile-btn { display: none; }
    .max-w-2xl { margin-left: 0; margin-right: 0; } /* Reset from center utility if needed */
}

.nav-link {
    font-weight: 500;
    color: var(--color-primary);
    position: relative;
}
.nav-link::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--color-secondary); transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

.nav-mobile-btn { font-size: 24px; color: var(--color-primary); }

.mobile-menu {
    position: fixed; top: 70px; left: 0; right: 0;
    background: white; border-bottom: 1px solid var(--color-accent);
    padding: 0; height: 0; overflow: hidden;
    transition: height 0.3s ease;
}
.mobile-menu.open { height: auto; padding: 20px; box-shadow: var(--shadow-sm); }
.mobile-link { display: block; padding: 12px 0; border-bottom: 1px solid #f3f4f6; font-weight: 500; }

/* ---------------- BUTTONS ---------------- */
.btn {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
}
.btn-primary {
    background: var(--color-secondary);
    color: white;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6); }

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

/* ---------------- HERO ---------------- */
.hero {
    min-height: 100vh;
    padding-top: 80px;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.7)), url('https://latamtechindustries.com/img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    width: 100%;
    align-items: center;
    z-index: 10;
}
@media (min-width: 768px) {
    .hero-content { grid-template-columns: 1fr 1fr; gap: 0; }
}

.hero-text {
    z-index: 20;
}
.hero-title {
    font-size: 3rem;
    margin-bottom: 24px;
    line-height: 1.1;
}
@media (min-width: 768px) { .hero-title { font-size: 4.5rem; } }

.hero-desc {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-visual {
    height: 500px; /* Force height for globe container */
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Globe is injected here */
#globe-container {
    width: 100%;
    height: 100%;
}

/* ---------------- TECH STACK ---------------- */
.text-tracking {
    font-size: 0.875rem; 
    font-weight: 600; 
    letter-spacing: 0.05em;
    color: var(--color-text-light);
}

.tech-scroll-container {
    overflow: hidden;
    position: relative;
    display: flex;
    padding: 20px 0;
}
.tech-track {
    display: flex;
    gap: 60px;
    animation: scroll 40s linear infinite;
    white-space: nowrap;
}
.tech-item {
    font-size: 1.5rem;
    font-weight: 700;
    color: #9CA3AF;
    font-family: var(--font-heading);
    cursor: default;
    transition: all 0.3s ease;
}
.tech-item:hover { color: var(--color-text-main); transform: scale(1.1); } /* JS will handle specific colors but this is fallback */

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Assuming content is duplicated once */
}

.scroll-gradient {
    position: absolute; top: 0; height: 100%; width: 100px; pointer-events: none;
}
.scroll-gradient.left { left: 0; background: linear-gradient(to right, var(--color-bg), transparent); }
.scroll-gradient.right { right: 0; background: linear-gradient(to left, var(--color-bg), transparent); }

/* ---------------- SERVICES ---------------- */
.section-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
.section-subtitle { max-width: 600px; font-size: 1.2rem; color: var(--color-text-light); }

.services-grid {
    display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 768px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}
.col-span-1 { grid-column: span 1; }
.col-span-2 { grid-column: span 1; }
@media (min-width: 768px) { .col-span-2 { grid-column: span 2; } }

.service-card {
    background: white;
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--color-accent);
    transition: all 0.3s ease;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-float);
    border-color: transparent;
}
.icon-box {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: #EEF2FF;
    color: var(--color-secondary);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
    transition: background 0.3s, color 0.3s;
}
.service-card:hover .icon-box { background: var(--color-secondary); color: white; }

.service-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.service-card p { color: var(--color-text-light); }

/* ---------------- PROCESS ---------------- */
.timeline {
    max-width: 800px; margin: 0 auto; position: relative;
    padding-left: 20px;
}
.timeline-line {
    position: absolute; left: 27px; top: 0; bottom: 0; width: 2px; background: var(--color-accent);
}
.timeline-step {
    position: relative; margin-bottom: 60px; padding-left: 60px;
    opacity: 0; transform: translateY(20px); transition: all 0.6s ease;
}
.timeline-step.visible { opacity: 1; transform: translateY(0); }

.timeline-dot {
    position: absolute; left: 20px; top: 0;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--color-secondary);
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px var(--color-secondary);
    z-index: 2;
}
.timeline-content {
    background: white; padding: 32px; border-radius: 16px;
    box-shadow: var(--shadow-sm);
}
.timeline-step:hover .timeline-content { box-shadow: var(--shadow-float); }

.step-num { font-size: 0.875rem; font-weight: 700; color: var(--color-secondary); display: block; margin-bottom: 8px; }

/* ---------------- FOOTER ---------------- */
.footer { background: var(--color-primary); color: white; padding: 80px 0 30px; }
.footer-grid {
    display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 60px;
}
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.5fr; }
}

.footer-brand { margin-bottom: 16px; font-size: 1.25rem; color: white; }
.footer-desc { color: #9CA3AF; font-size: 0.9rem; margin-bottom: 24px; max-width: 300px; }
.footer-socials { display: flex; gap: 16px; font-size: 20px; color: #9CA3AF; }
.footer-socials a:hover { color: white; }

.footer h4 { color: white; font-size: 1.1rem; margin-bottom: 24px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #9CA3AF; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: white; }

.newsletter-form { display: flex; flex-direction: column; gap: 12px; }
.newsletter-form input {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px; padding: 10px 16px; color: white; outline: none;
}
.newsletter-form button {
    background: var(--color-secondary); color: white; padding: 10px; border-radius: 8px; font-weight: 500;
}

.footer-bottom {
    border-top: 1px solid #1f2937; 
    padding-top: 32px;
    display: flex; flex-direction: column; gap: 20px;
    align-items: center; color: #6B7280; font-size: 0.875rem;
}
@media (min-width: 768px) {
    .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ---------------- CONTACT ---------------- */
.contact-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--color-accent);
    box-shadow: var(--shadow-sm);
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--color-accent);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-main);
    background: #F9FAFB;
    transition: all 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-secondary);
    background: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.form-group textarea {
    resize: vertical;
}