:root {
    /* Color Palette - Updated for Latinfy Trademark */
    --bg-dark: #0a0a0f;
    --primary: #f15a24;
    /* Original Latinfy Orange */
    --primary-glow: rgba(241, 90, 36, 0.4);
    --secondary: #ed1c24;
    /* Latinfy Red from collage */
    --secondary-glow: rgba(237, 28, 36, 0.4);
    --accent: #00aeef;
    /* Blue sketch color from collage */
    --accent-glow: rgba(0, 174, 239, 0.3);
    --text-main: #ffffff;
    --text-muted: #a0a0b0;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 16px;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Background Glows */
.ambient-glow {
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
    animation: float 20s ease-in-out infinite alternate;
}

.ambient-glow.bg-primary {
    top: -20%;
    left: -10%;
    background: var(--primary);
}

.ambient-glow.bg-secondary {
    bottom: 20%;
    right: -10%;
    background: var(--secondary);
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(5%, 10%) scale(1.1);
    }
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gradient-text {
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #d4491a;
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-glow {
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(241, 90, 36, 0.05);
}

/* Navbar */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.8rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    height: 45px;
    width: auto;
    display: block;
}

.desktop-nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.desktop-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.desktop-nav a:hover {
    color: var(--primary);
}

.desktop-nav .btn {
    color: white;
    padding: 0.7rem 1.8rem;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2.8rem;
    max-width: 580px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
}

.image-card {
    padding: 0.8rem;
    border-radius: 20px;
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* Timeline/History Grid */
.timeline-section {
    padding: 10rem 0;
}

.history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary), transparent);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3.5rem;
}

.timeline-dot {
    position: absolute;
    left: 14px;
    top: 24px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
    z-index: 2;
}

.collage-card {
    padding: 0.5rem;
}

.collage-img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    display: block;
}

/* Ecosystem Section */
.ecosystem-section {
    padding: 8rem 0;
    background: radial-gradient(circle at center, rgba(241, 90, 36, 0.05) 0%, transparent 70%);
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 3.5rem;
}

/* Contact Section */
.contact-section {
    padding: 8rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.info-card {
    height: 100%;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.info-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group,
.captcha-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label,
.captcha-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-group input,
.form-group textarea,
.captcha-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    color: white;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.captcha-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.w-full {
    width: 100%;
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #555;
    box-shadow: none;
}

.form-status {
    font-size: 0.9rem;
    text-align: center;
    margin-top: 1rem;
}

.form-status.error {
    color: var(--secondary);
}

.form-status.success {
    color: var(--accent);
}

/* Services Chips */
.services-chips {
    padding-bottom: 8rem;
}

.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.chip {
    padding: 0.8rem 1.8rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s ease;
    cursor: default;
}

.chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--accent-glow);
}

/* Footer */
.glass-footer {
    border-top: 1px solid var(--glass-border);
    padding: 6rem 0 3rem;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.9), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .nav-logo {
    height: 35px;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-size: 1.2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.25s;
}

.delay-2 {
    transition-delay: 0.5s;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-text h1 {
        font-size: 3.8rem;
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .history-grid {
        grid-template-columns: 1fr;
    }

    .collage-wrapper {
        order: -1;
    }

    h2 {
        font-size: 3rem;
    }

    .hero-text h1 {
        font-size: 3.2rem;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .ecosystem-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-dot {
        left: -6px;
    }

    .timeline-item {
        padding-left: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .chips-container {
        gap: 0.6rem;
    }

    .chip {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}