/* ============================================
   DCE - Desarrollo y Consultoría Especializada
   Main Stylesheet - Warm Theme
   ============================================ */

/* ============================================
   CSS Variables / Theme - WARM PALETTE
   ============================================ */
:root {
    --primary: #ffffff;
    --secondary: #f8f6f3;
    --accent: #c75d15;
    --accent-light: #e07b2d;
    --accent-dark: #a04a10;
    --accent-glow: rgba(199, 93, 21, 0.2);
    --text: #1a1410;
    --text-muted: #5c5650;
    --surface: rgba(248, 246, 243, 0.9);
    --border: rgba(199, 93, 21, 0.2);
    --gradient-1: linear-gradient(135deg, #ffffff 0%, #f8f6f3 50%, #ffffff 100%);
    --gradient-accent: linear-gradient(135deg, #c75d15 0%, #e07b2d 50%, #c75d15 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--primary);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 18px;
}

/* ============================================
   Background Effects
   ============================================ */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.bg-pattern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(199, 93, 21, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 80% 20%, rgba(248, 246, 243, 0.8) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(199, 93, 21, 0.05) 0%, transparent 50%);
    animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(2deg); }
    66% { transform: translate(-20px, 20px) rotate(-1deg); }
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(199, 93, 21, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(199, 93, 21, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}

/* ============================================
   Navigation
   ============================================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 0.8rem 5%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 70px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--gradient-accent);
    color: var(--primary);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 5% 4rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-family: 'Space Mono', monospace;
    font-size: 1.25rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero p {
    font-size: 1.35rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    background: var(--gradient-accent);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--accent-glow);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: var(--surface);
}

/* ============================================
   Stats Cards
   ============================================ */
.hero-stats {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeInRight 1s ease 0.5s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate(50px, -50%);
    }
    to {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    text-align: center;
    min-width: 160px;
}

.stat-card .number {
    font-family: 'Space Mono', monospace;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stat-card .label {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ============================================
   Sections Common
   ============================================ */
section {
    padding: 6rem 5%;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   About Section
   ============================================ */
#nosotros {
    background: linear-gradient(180deg, transparent 0%, rgba(248, 246, 243, 0.5) 50%, transparent 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 20px 60px rgba(199, 93, 21, 0.12);
}

.about-card .icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.about-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.about-card p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* ============================================
   Specializations
   ============================================ */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.spec-item {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.spec-item:hover {
    border-color: var(--accent);
    transform: scale(1.02);
}

.spec-item .spec-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.spec-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.spec-item p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* ============================================
   Systems Section
   ============================================ */
#sistemas {
    padding: 8rem 5%;
}

.systems-container {
    max-width: 1400px;
    margin: 0 auto;
}

.systems-category {
    margin-bottom: 5rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.category-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 700;
}

.category-badge {
    background: var(--surface);
    border: 1px solid var(--accent);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--accent);
    margin-left: auto;
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.system-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f6f3 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.system-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.system-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 30px 80px rgba(199, 93, 21, 0.12);
}

.system-card:hover::before {
    transform: scaleX(1);
}

.system-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.system-logo {
    width: 56px;
    height: 56px;
    background: var(--gradient-accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.system-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 14px;
}

.system-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.system-info .subtitle {
    font-size: 0.95rem;
    color: var(--accent);
    font-family: 'Space Mono', monospace;
}

.system-card > p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.system-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: rgba(199, 93, 21, 0.1);
    border: 1px solid rgba(199, 93, 21, 0.3);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--accent);
}

.system-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.system-link:hover {
    gap: 0.8rem;
}

.system-link .arrow {
    transition: transform 0.3s ease;
}

.system-link:hover .arrow {
    transform: translateX(4px);
}

/* ============================================
   Projects / Timeline
   ============================================ */
#proyectos {
    background: linear-gradient(180deg, transparent 0%, rgba(248, 246, 243, 0.5) 50%, transparent 100%);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--border);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 30px);
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 30px);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    border: 4px solid #ffffff;
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(199, 93, 21, 0.2);
}

.timeline-content {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    max-width: 400px;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--accent);
    transform: scale(1.02);
}

.timeline-date {
    font-family: 'Space Mono', monospace;
    font-size: 0.95rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.3rem;
}

.timeline-content .client {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.timeline-content p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* ============================================
   Technologies
   ============================================ */
#tecnologias {
    padding: 6rem 5%;
}

.tech-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tech-category {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
}

.tech-category h4 {
    font-size: 1rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-item {
    background: rgba(199, 93, 21, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text);
}

/* ============================================
   Team Section
   ============================================ */
#equipo {
    background: linear-gradient(180deg, transparent 0%, rgba(248, 246, 243, 0.5) 50%, transparent 100%);
}

.team-container {
    max-width: 1000px;
    margin: 0 auto;
}

.team-lead {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 3rem;
}

.team-avatar {
    width: 140px;
    height: 140px;
    background: var(--gradient-accent);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    font-family: 'Space Mono', monospace;
    overflow: hidden;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.team-info .title {
    color: var(--accent);
    font-family: 'Space Mono', monospace;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.team-info p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.1rem;
}

.team-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.highlight-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
}

.highlight-card .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.highlight-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.highlight-card p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* ============================================
   Contact Section
   ============================================ */
#contacto {
    padding: 8rem 5%;
}

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

.contact-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f6f3 100%);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 50%);
    opacity: 0.3;
    animation: contactGlow 10s ease-in-out infinite;
}

@keyframes contactGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20%, 20%); }
}

.contact-content {
    position: relative;
    z-index: 1;
}

.contact-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-method:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.contact-method .icon {
    font-size: 1.3rem;
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: #f8f6f3;
    border-top: 1px solid var(--border);
    padding: 3rem 5%;
    position: relative;
    z-index: 2;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-brand .logo img {
    height: 55px;
}

.footer-tagline {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    color: var(--accent);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ============================================
   Language Selector
   ============================================ */
.lang-selector {
    position: relative;
    margin-right: 1rem;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-current:hover {
    border-color: var(--accent);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.lang-selector:hover .lang-dropdown,
.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.lang-dropdown a:hover {
    background: var(--surface);
    color: var(--accent);
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Fade-in 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
   ============================================ */
@media (max-width: 1024px) {
    .hero-stats {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        flex-direction: row;
        justify-content: center;
        margin-top: 3rem;
        animation: fadeInUp 0.8s ease 0.5s both;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 60px;
        padding-right: 0;
    }

    .timeline-item::before {
        left: 20px;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        padding: 6rem 2rem;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-cta {
        display: none;
    }

    .hero {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        flex-wrap: wrap;
    }

    .stat-card {
        min-width: 120px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .systems-grid {
        grid-template-columns: 1fr;
    }

    .team-lead {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .team-highlights {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 2rem;
    }

    .contact-methods {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .category-header {
        flex-wrap: wrap;
    }

    .category-badge {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}