/* =============================================
   EGEO SYSTEMS — Main Stylesheet
   ============================================= */

:root {
    --primary: #1B3A5C;
    --secondary: #2E6DA4;
    --accent: #5B9BD5;
    --bg: #FFFFFF;
    --bg-alt: #F5F7FA;
    --text: #1A1A2E;
    --text-muted: #5A6377;
    --border: #E1E5EB;
    --success: #2E7D4F;
    --error: #C0392B;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 8px rgba(27,58,92,0.08);
    --shadow-hover: 0 4px 16px rgba(27,58,92,0.14);
    --transition: 0.2s ease;
    --container: 1200px;
    --font-heading: 'DM Sans', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--secondary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: 48px; }
h2 { font-size: 32px; }
h3 { font-size: 22px; }
p { margin-bottom: 1em; }
ul { list-style: none; }

/* Container */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.content-narrow { max-width: 800px; margin: 0 auto; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-2 { margin-top: 32px; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.nav-container {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.logo-link { display: flex; align-items: center; }
.logo { height: 40px; width: auto; }
.nav-list { display: flex; gap: 32px; list-style: none; }
.nav-link {
    font-family: var(--font-heading); font-weight: 500; font-size: 15px;
    color: var(--text); transition: color var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--secondary); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.lang-switch {
    font-family: var(--font-heading); font-weight: 600; font-size: 14px;
    color: var(--secondary); padding: 4px 12px; border: 1px solid var(--secondary);
    border-radius: 4px; transition: all var(--transition);
}
.lang-switch:hover { background: var(--secondary); color: #fff; }

/* Hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span {
    display: block; width: 24px; height: 2px; background: var(--text);
    margin: 5px 0; transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1E4F7A 100%);
    color: #fff; padding: 80px 0; text-align: center;
}
.hero-title { color: #fff; font-size: 48px; margin-bottom: 20px; max-width: 800px; margin-left: auto; margin-right: auto; }
.hero-subtitle { color: rgba(255,255,255,0.85); font-size: 19px; max-width: 640px; margin: 0 auto 32px; line-height: 1.5; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
    display: inline-block; font-family: var(--font-heading); font-weight: 600;
    font-size: 16px; padding: 12px 28px; border-radius: 6px;
    transition: all var(--transition); cursor: pointer; border: 2px solid transparent;
    text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: #1E4F7A; color: #fff; border-color: #1E4F7A; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.hero .btn-primary { background: #fff; color: var(--primary); border-color: #fff; }
.hero .btn-primary:hover { background: rgba(255,255,255,0.9); }
.hero .btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.hero .btn-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; }
.btn-full { width: 100%; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; margin-bottom: 12px; }
.section-subtitle { text-align: center; color: var(--text-muted); max-width: 640px; margin: 0 auto 40px; }

/* Credentials */
.credentials { background: var(--bg-alt); padding: 28px 0; border-bottom: 1px solid var(--border); }
.credentials-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.credential strong { display: block; font-family: var(--font-heading); font-size: 28px; color: var(--primary); }
.credential span { font-size: 14px; color: var(--text-muted); }

/* Value Props */
.vp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.vp-card { padding: 32px; background: var(--bg); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.vp-card h2 { font-size: 22px; margin-bottom: 12px; color: var(--primary); }
.vp-card p { color: var(--text-muted); margin-bottom: 0; }

/* Project Cards */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.project-card { background: var(--bg); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); }
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.project-card-link { display: block; color: inherit; }
.project-card-image { position: relative; overflow: hidden; aspect-ratio: 16/9; background: var(--bg-alt); }
.project-card-image img { width: 100%; height: 100%; object-fit: cover; }
.project-card-badge {
    position: absolute; top: 12px; left: 12px;
    background: rgba(255,255,255,0.92); color: var(--secondary);
    font-size: 12px; font-weight: 600; padding: 4px 12px;
    border-radius: 20px; font-family: var(--font-heading);
}
.project-card-body { padding: 20px; }
.project-card-title { font-size: 18px; margin-bottom: 8px; }
.project-card-summary { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.project-card-year { font-size: 13px; color: var(--accent); font-weight: 600; }

/* Carousel */
.projects-carousel { position: relative; overflow: hidden; }
.carousel-track { display: flex; gap: 24px; transition: transform 0.4s ease; }
.carousel-track .project-card { min-width: calc(33.333% - 16px); flex-shrink: 0; }
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%; border: none;
    background: rgba(255,255,255,0.95); box-shadow: var(--shadow);
    font-size: 24px; cursor: pointer; z-index: 2; color: var(--primary);
    transition: all var(--transition);
}
.carousel-btn:hover { background: var(--primary); color: #fff; }
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }

/* Capabilities */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cap-item { padding: 24px; background: var(--bg); border-radius: var(--radius); border: 1px solid var(--border); }
.cap-item h3 { font-size: 17px; margin-bottom: 8px; color: var(--primary); }
.cap-item p { font-size: 14px; color: var(--text-muted); margin: 0; }

.capabilities-list { display: flex; flex-direction: column; gap: 40px; max-width: 800px; margin: 0 auto; }
.capability-block h2 { font-size: 24px; color: var(--primary); margin-bottom: 12px; }
.capability-block p { color: var(--text-muted); }

/* Industries */
.industries-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.industry-chip {
    background: var(--bg); border: 1px solid var(--border); border-radius: 24px;
    padding: 10px 24px; font-family: var(--font-heading); font-weight: 500;
    font-size: 15px; color: var(--primary); transition: all var(--transition);
}
.industry-chip:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.industries-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.industry-card { padding: 32px; background: var(--bg-alt); border-radius: var(--radius-lg); border: 1px solid var(--border); }
.industry-card h2 { font-size: 22px; color: var(--primary); margin-bottom: 12px; }
.industry-card p { color: var(--text-muted); margin-bottom: 12px; }
.link-arrow { font-weight: 600; font-size: 14px; }

/* Trust */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.trust-item h3 { font-size: 18px; color: var(--primary); margin-bottom: 8px; }
.trust-item p { font-size: 15px; color: var(--text-muted); margin: 0; }

/* Tech */
.tech-category { margin-bottom: 48px; }
.tech-category h2 { font-size: 24px; color: var(--primary); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tech-item { padding: 20px; background: var(--bg-alt); border-radius: var(--radius); border: 1px solid var(--border); }
.tech-item h3 { font-size: 16px; color: var(--primary); margin-bottom: 6px; }
.tech-item p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* CTA Block */
.cta-block { background: var(--primary); color: #fff; padding: 64px 0; text-align: center; }
.cta-block h2 { color: #fff; margin-bottom: 12px; }
.cta-block p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto 24px; }
.cta-block .btn-primary { background: #fff; color: var(--primary); border-color: #fff; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step-card { text-align: center; padding: 28px 20px; }
.step-number {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 50%; background: var(--primary);
    color: #fff; font-family: var(--font-heading); font-weight: 700;
    font-size: 20px; margin-bottom: 16px;
}
.step-card h3 { font-size: 18px; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--text-muted); }

/* Project Detail */
.project-detail { padding-top: 32px; }
.project-cover { width: 100%; border-radius: var(--radius-lg); margin-bottom: 32px; aspect-ratio: 16/9; object-fit: cover; }
.project-subtitle { font-size: 20px; color: var(--text-muted); margin-bottom: 24px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 24px; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 32px; font-size: 15px; }
.project-meta strong { color: var(--primary); }
.project-detail h2 { font-size: 24px; margin: 32px 0 12px; color: var(--primary); }
.tech-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.badge {
    background: #E6F1FB; color: var(--secondary); font-size: 13px; font-weight: 600;
    padding: 5px 14px; border-radius: 20px; font-family: var(--font-heading);
}
.project-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0; }
.project-gallery img { border-radius: var(--radius); width: 100%; }

/* Breadcrumbs */
.breadcrumbs { margin-bottom: 24px; }
.breadcrumbs ol { display: flex; gap: 8px; font-size: 14px; color: var(--text-muted); }
.breadcrumbs li::after { content: '/'; margin-left: 8px; }
.breadcrumbs li:last-child::after { content: ''; }
.breadcrumbs a { color: var(--secondary); }
.breadcrumbs .active { color: var(--text-muted); }

/* Filters */
.project-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-chip {
    padding: 8px 20px; border-radius: 20px; border: 1px solid var(--border);
    font-size: 14px; font-family: var(--font-heading); font-weight: 500;
    color: var(--text-muted); transition: all var(--transition);
}
.filter-chip:hover, .filter-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.page-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: var(--radius);
    border: 1px solid var(--border); font-weight: 600; font-size: 14px;
    color: var(--text); transition: all var(--transition);
}
.page-link:hover, .page-link.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 16px; border: 1px solid var(--border);
    border-radius: var(--radius); font-family: var(--font-body); font-size: 16px;
    transition: border-color var(--transition); background: var(--bg);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(46,109,164,0.1);
}
.form-group input.error, .form-group textarea.error { border-color: var(--error); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-trust { font-size: 13px; color: var(--text-muted); margin-top: 16px; }
.contact-info { padding: 32px; background: var(--bg-alt); border-radius: var(--radius-lg); height: fit-content; }
.contact-info h3 { font-size: 20px; margin-bottom: 20px; color: var(--primary); }
.contact-info p { margin-bottom: 16px; font-size: 15px; }
.alert { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 24px; font-size: 15px; }
.alert-success { background: #E8F5E9; color: var(--success); border: 1px solid #A5D6A7; }
.alert-error { background: #FFEBEE; color: var(--error); border: 1px solid #EF9A9A; }

/* Footer */
.site-footer { background: var(--primary); color: rgba(255,255,255,0.85); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { height: 36px; width: auto; margin-bottom: 12px; filter: brightness(0) invert(1); }
.footer-tagline { font-size: 14px; margin-bottom: 6px; }
.footer-address { font-size: 13px; opacity: 0.7; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 24px; text-align: center; font-size: 13px; opacity: 0.6; }
.btn-whatsapp { display: inline-flex; align-items: center; gap: 8px; background: #25D366; color: #fff; padding: 9px 16px; border-radius: 24px; font-size: 14px; font-weight: 600; margin-top: 14px; transition: background .2s; text-decoration: none; }
.btn-whatsapp:hover { background: #1ebe59; color: #fff; }
.btn-whatsapp--lg { padding: 13px 22px; font-size: 16px; border-radius: 28px; }
.contact-whatsapp { margin-top: 20px; }
.contact-whatsapp p { margin-bottom: 4px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .vp-grid, .cap-grid, .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .carousel-track .project-card { min-width: calc(50% - 12px); }
}

@media (max-width: 768px) {
    h1, .hero-title { font-size: 32px; }
    h2 { font-size: 26px; }
    .section { padding: 48px 0; }
    .hero { padding: 56px 0; }

    .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
    .main-nav.open { display: block; }
    .nav-list { flex-direction: column; padding: 16px 24px; gap: 0; }
    .nav-link { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
    .hamburger { display: block; }

    .credentials-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .credential strong { font-size: 22px; }
    .vp-grid, .cap-grid, .tech-grid, .industries-detail-grid, .steps-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .carousel-track .project-card { min-width: 100%; }
    .carousel-btn { display: none; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .project-gallery { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    h1, .hero-title { font-size: 28px; }
    .container { padding: 0 16px; }
    .credentials-grid { grid-template-columns: 1fr; }
}

/* =============================================
   CLIENTS LOGO CAROUSEL
   Replace the previous clients-section CSS with this
   ============================================= */
.clients-section {
    padding: 40px 0;
    border-top: 1px solid var(--border, #E1E5EB);
    border-bottom: 1px solid var(--border, #E1E5EB);
    background: var(--bg, #fff);
    overflow: hidden;
}
.clients-label {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted, #5A6377);
    margin-bottom: 24px;
}
.clients-carousel {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.clients-track {
    display: flex;
    align-items: center;
    gap: 60px;
    animation: scrollClients 25s linear infinite;
    width: max-content;
}
.clients-track:hover {
    animation-play-state: paused;
}
.client-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
}
.client-logo a {
    display: flex;
    align-items: center;
    height: 100%;
}
.client-logo img {
    max-height: 40px;
    max-width: 130px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.45);
    transition: filter 0.3s ease;
}
.client-logo img:hover,
.client-logo a:hover img {
    filter: grayscale(0%) opacity(1);
}
.client-name-text {
    font-family: var(--font-heading, 'DM Sans', sans-serif);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted, #5A6377);
    opacity: 0.5;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}
.client-name-text:hover,
.client-logo a:hover .client-name-text {
    opacity: 1;
}
@keyframes scrollClients {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (max-width: 768px) {
    .clients-track { gap: 40px; }
    .client-logo img { max-height: 32px; max-width: 100px; }
}