/* Apollo's Cloud - Warm Professional Theme */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');
@import url('cards.css');

:root {
    --primary-bg: #fffdf9;
    --secondary-bg: #f7f3ee;
    --accent-bg: #f0ebe4;
    --card-bg: #ffffff;
    --primary-text: #1e2a3a;
    --secondary-text: #4d5f72;
    --muted-text: #7a8da0;
    --accent-indigo: #4a56c0;
    --accent-teal: #0c8599;
    --accent-amber: #d97706;
    --accent-rose: #be185d;
    --accent-emerald: #059669;
    --accent-color: var(--accent-indigo);
    --gradient-primary: linear-gradient(135deg, #4a56c0 0%, #0c8599 100%);
    --gradient-warm: linear-gradient(135deg, #d97706 0%, #be185d 100%);
    --gradient-hero: linear-gradient(160deg, rgba(74,86,192,0.06) 0%, rgba(12,133,153,0.06) 40%, rgba(217,119,6,0.04) 100%);
    --gradient-section: linear-gradient(180deg, #f7f3ee 0%, #fffdf9 100%);
    --border-color: #e5ddd3;
    --border-light: #f0e9df;
    --header-bg: rgba(255, 253, 249, 0.95);
    --shadow-xs: 0 1px 3px rgba(30,42,58,0.04);
    --shadow-sm: 0 2px 8px rgba(30,42,58,0.06), 0 1px 3px rgba(30,42,58,0.04);
    --shadow-md: 0 8px 25px rgba(30,42,58,0.08), 0 2px 8px rgba(30,42,58,0.04);
    --shadow-lg: 0 16px 50px rgba(30,42,58,0.1), 0 4px 12px rgba(30,42,58,0.06);
    --shadow-glow-indigo: 0 8px 30px rgba(74,86,192,0.2);
    --shadow-glow-teal: 0 8px 30px rgba(12,133,153,0.2);
    --shadow-glow-amber: 0 8px 30px rgba(217,119,6,0.15);
    --shadow-warm: 0 4px 20px rgba(180,140,80,0.08);
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --nav-height: 68px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', 'Segoe UI', -apple-system, sans-serif;
    background-color: var(--primary-bg);
    color: var(--primary-text);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

/* ===== HEADER ===== */
header {
    position: fixed; top: 0; width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    box-shadow: var(--shadow-xs);
    transition: box-shadow 0.3s;
}

.header-container {
    max-width: 1400px; margin: 0 auto; padding: 0 2rem;
    display: flex; justify-content: space-between; align-items: center;
    height: var(--nav-height);
}

/*
 * LOGO: SVG wordmark, fits naturally inside the navbar.
 * No negative margins, no overflow. Clean containment.
 */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img,
.logo svg {
    height: 48px;
    width: auto;
    display: block;
}

/* Top-level nav only */
nav > ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--primary-text); text-decoration: none; font-weight: 600;
    font-size: 0.92rem; transition: color 0.3s; position: relative; padding: 0.3rem 0;
}

nav a:hover,
nav a[aria-current="page"] {
    color: var(--accent-indigo);
}

/* Underline indicator for top-level nav */
nav > ul > li > a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2.5px; background: var(--gradient-primary);
    transition: width 0.3s; border-radius: 2px;
}

nav > ul > li > a:hover::after { width: 100%; }
nav > ul > li > a[aria-current="page"]::after { width: 100%; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(1.8rem, 5vw, 3.8rem); font-weight: 700; line-height: 1.18; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.6rem); font-weight: 700; line-height: 1.25; margin-bottom: 1.5rem; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.8rem); font-weight: 600; margin-bottom: 0.8rem; }
h4 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.7rem; }

.section-label {
    font-size: 0.82rem; color: var(--accent-teal); text-transform: uppercase;
    letter-spacing: 2.5px; margin-bottom: 0.8rem; font-weight: 700;
    display: flex; align-items: center; gap: 0.6rem;
}

.section-label::before {
    content: ''; width: 28px; height: 2.5px;
    background: var(--gradient-warm); border-radius: 2px; flex-shrink: 0;
}

.lead-text {
    font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--secondary-text);
    line-height: 1.85; margin-bottom: 2rem; max-width: 800px;
}

.lead-text strong { color: var(--primary-text); font-weight: 600; }

.section-number {
    font-size: 3.5rem; font-weight: 800;
    background: linear-gradient(180deg, rgba(74,86,192,0.12), rgba(12,133,153,0.04));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 0.2rem;
    user-select: none; line-height: 1;
}

/* ===== BUTTONS ===== */
.cta-button {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.9rem 2.2rem; background: var(--gradient-primary); color: white;
    text-decoration: none; border-radius: 50px; font-weight: 700; font-size: 0.92rem;
    letter-spacing: 0.01em; transition: transform 0.3s, box-shadow 0.3s;
    margin-right: 1rem; margin-top: 1rem; border: none; cursor: pointer;
    box-shadow: var(--shadow-glow-indigo); position: relative; overflow: hidden; min-height: 50px;
}

.cta-button:hover { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(74,86,192,0.3); }

.cta-secondary {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.9rem 2.2rem; border: 2.5px solid var(--accent-indigo); color: var(--accent-indigo);
    text-decoration: none; border-radius: 50px; font-weight: 700; font-size: 0.92rem;
    letter-spacing: 0.01em; transition: all 0.3s; margin-top: 1rem; cursor: pointer;
    min-height: 50px; background: transparent;
}

.cta-secondary:hover {
    background: var(--accent-indigo); color: white;
    transform: translateY(-3px); box-shadow: var(--shadow-glow-indigo);
}

.button-group { display: flex; align-items: stretch; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.button-group .cta-button, .button-group .cta-secondary { margin-top: 0; margin-right: 0; }

/* ===== SECTIONS ===== */
section { padding: 5.5rem 0; position: relative; }
.section-gray { background: var(--secondary-bg); }
.section-warm { background: var(--gradient-hero); }

/* ===== HERO ===== */
.hero {
    min-height: 85vh; display: flex; align-items: center;
    margin-top: var(--nav-height);
    padding: 5rem 0; background: var(--gradient-hero); position: relative; overflow: hidden;
}

.hero::before {
    content: ''; position: absolute; top: -30%; right: -15%; width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(217,119,6,0.06) 0%, transparent 65%);
    border-radius: 50%; pointer-events: none;
}

.hero::after {
    content: ''; position: absolute; bottom: -20%; left: -10%; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(12,133,153,0.05) 0%, transparent 65%);
    border-radius: 50%; pointer-events: none;
}

.hero-content { max-width: 880px; position: relative; z-index: 1; }

/* ===== CLIENT GRID ===== */
.clients-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 1.8rem; margin-top: 3rem;
}

.client-card {
    background: var(--card-bg); padding: 1.8rem 1.5rem; border-radius: var(--radius);
    border: 1px solid var(--border-color); box-shadow: var(--shadow-sm);
    transition: transform 0.35s cubic-bezier(.4,0,.2,1), box-shadow 0.35s, border-color 0.3s;
    text-align: center; position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: center;
}

.client-card::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient-warm); transform: scaleX(0); transition: transform 0.4s;
}

.client-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.client-card:hover::after { transform: scaleX(1); }

.client-card img {
    max-width: 160px; height: 80px; width: auto; object-fit: contain;
    margin-bottom: 1.2rem; filter: saturate(0.9); transition: filter 0.3s; flex-shrink: 0;
}

.client-card:hover img { filter: saturate(1.1); }
.client-card h4, .client-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.client-card p { color: var(--secondary-text); font-size: 0.86rem; line-height: 1.6; flex-grow: 1; }

/* ===== SERVICES GRID ===== */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 1.8rem; margin-top: 3rem;
}

.service-card {
    background: var(--card-bg); padding: 2.2rem; border-radius: var(--radius);
    border: 1px solid var(--border-color); box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; position: relative;
}

.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 0;
    background: var(--gradient-primary); border-radius: 0 0 4px 0; transition: height 0.4s;
}

.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card:hover::before { height: 100%; }
.service-card h3, .service-card h4 { color: var(--accent-indigo); margin-bottom: 0.7rem; }
.service-card > p { color: var(--secondary-text); margin-bottom: 1.2rem; font-size: 0.92rem; }
.service-card ul { list-style: none; }

.service-card li {
    padding: 0.35rem 0; color: var(--secondary-text); position: relative;
    padding-left: 1.5rem; font-size: 0.9rem;
}
.service-card li::before {
    content: '\2192'; position: absolute; left: 0; color: var(--accent-teal); font-weight: 700;
}

.service-card a { color: var(--accent-indigo); text-decoration: none; font-weight: 600; transition: color 0.3s; }
.service-card a:hover { color: var(--accent-teal); }

/* ===== TECH GRID ===== */
.tech-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 1.8rem; margin-top: 3rem;
}

.tech-column {
    background: var(--card-bg); padding: 2.2rem; border-radius: var(--radius);
    border: 1px solid var(--border-color); box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tech-column:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.tech-column h4, .tech-column h3 { margin-bottom: 0.7rem; color: var(--accent-indigo); }
.tech-column > p { color: var(--secondary-text); margin-bottom: 1.2rem; font-size: 0.92rem; }

.tech-tags { display: flex; flex-wrap: wrap; gap: 0.55rem; }

.tech-tag {
    background: linear-gradient(135deg, rgba(74,86,192,0.06), rgba(12,133,153,0.06));
    padding: 0.38rem 0.85rem; border-radius: 20px; font-size: 0.82rem;
    color: var(--primary-text); border: 1px solid var(--border-color);
    font-weight: 500; transition: all 0.25s;
}

.tech-tag:hover {
    border-color: var(--accent-teal); color: var(--accent-teal);
    background: rgba(12,133,153,0.08); transform: translateY(-2px); box-shadow: var(--shadow-xs);
}

/* ===== FEATURES / WHY US ===== */
.features-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; margin-top: 3rem; }

.feature-item {
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
    background: var(--card-bg); border-radius: var(--radius-lg); padding: 2.5rem;
    border: 1px solid var(--border-color); box-shadow: var(--shadow-sm);
    transition: box-shadow 0.4s, transform 0.4s;
    opacity: 1 !important; transform: none !important;
}

.feature-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px) !important; }
.feature-item:nth-child(even) { direction: rtl; }
.feature-item:nth-child(even) > * { direction: ltr; }
.feature-content h3, .feature-content h4 { color: var(--accent-indigo); margin-bottom: 0.8rem; font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
.feature-content p { color: var(--secondary-text); line-height: 1.85; font-size: 0.95rem; }
.feature-content strong { color: var(--primary-text); }
.feature-image { width: 100%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); transition: transform 0.4s; }
.feature-image:hover { transform: scale(1.03); }
.feature-image img { width: 100%; height: auto; display: block; border-radius: var(--radius); }

/* ===== TEAM ===== */
.team-section { text-align: center; max-width: 900px; margin: 3rem auto; }
.team-avatar { width: 170px; height: 170px; border-radius: 50%; margin: 0 auto 1.5rem; overflow: hidden; box-shadow: 0 8px 30px rgba(30,42,58,0.15), 0 0 0 4px var(--card-bg), 0 0 0 6px var(--accent-amber); transition: transform 0.3s; }
.team-avatar:hover { transform: scale(1.05); }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-size: 1.8rem; margin-bottom: 0.4rem; }
.team-title { color: var(--accent-teal); font-weight: 700; margin-bottom: 1.2rem; text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.85rem; }
.team-bio { color: var(--secondary-text); line-height: 1.8; max-width: 700px; margin: 0 auto 1rem; font-size: 0.98rem; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 3rem; }
.contact-info { background: var(--card-bg); padding: 2.5rem; border-radius: var(--radius); border: 1px solid var(--border-color); box-shadow: var(--shadow-md); }
.contact-item { margin-bottom: 1.8rem; }
.contact-item h3, .contact-item h4 { color: var(--accent-indigo); margin-bottom: 0.4rem; }
.contact-item a { color: var(--primary-text); text-decoration: none; font-size: 1.05rem; font-weight: 500; transition: color 0.3s; word-break: break-word; }
.contact-item a:hover { color: var(--accent-teal); }

.social-links { display: flex; gap: 0.8rem; margin-top: 1.5rem; flex-wrap: wrap; }
.social-links a { padding: 0.65rem 1.3rem; background: var(--gradient-primary); color: white; text-decoration: none; border-radius: 50px; font-size: 0.85rem; font-weight: 600; transition: transform 0.3s, box-shadow 0.3s; box-shadow: var(--shadow-sm); }
.social-links a:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow-indigo); }

/* ===== UTILITY ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }

.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.stat-item { text-align: center; padding: 1.8rem 1rem; background: var(--card-bg); border-radius: var(--radius); border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); transition: transform 0.3s, box-shadow 0.3s; }
.stat-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-number { font-size: 2.5rem; font-weight: 800; background: var(--gradient-warm); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.1; }
.stat-label { font-size: 0.82rem; color: var(--muted-text); font-weight: 600; margin-top: 0.3rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* CTA BANNER */
.cta-banner { background: linear-gradient(160deg, #1e2a3a 0%, #0f2030 60%, #0c3547 100%); padding: 5rem 0; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; top: -40%; left: 50%; transform: translateX(-50%); width: 700px; height: 500px; background: radial-gradient(ellipse, rgba(217,119,6,0.12) 0%, transparent 65%); pointer-events: none; }
.cta-banner h2 { color: #fff; }
.cta-banner .lead-text { color: #a0b4c8; max-width: 650px; margin: 1rem auto 2rem; }
.cta-banner .cta-secondary { border-color: rgba(255,255,255,0.3); color: #fff; }
.cta-banner .cta-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }

/* FOOTER */
footer { background: linear-gradient(180deg, #1e2a3a, #16202e); color: #b0bfce; padding: 3rem 0; text-align: center; }
footer p { opacity: 0.85; font-size: 0.88rem; }
footer a { color: #b0bfce; transition: color 0.3s; text-decoration: none; }
footer a:hover { color: #fff; }
footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .container { padding: 0 1.5rem; }
    .header-container { padding: 0 1.5rem; }
    section { padding: 4rem 0; }
    .hero { min-height: auto; padding: 4rem 0; }
    .feature-item { gap: 2rem; padding: 2rem; }
    nav > ul { gap: 1.5rem; }
    .logo img, .logo svg { height: 42px; }
}

@media (max-width: 768px) {
    :root { --nav-height: 58px; }
    .container { padding: 0 1.2rem; }
    .header-container { padding: 0 1rem; }
    .logo img, .logo svg { height: 36px; }
    nav > ul { display: none; }
    .mobile-menu-toggle { display: flex; }
    .hero { min-height: auto; padding: 3rem 0; }
    section { padding: 3rem 0; }
    .feature-item, .contact-grid { grid-template-columns: 1fr; padding: 1.8rem; }
    .feature-item:nth-child(even) { direction: ltr; }
    .feature-image { order: -1; max-height: 260px; overflow: hidden; }
    .clients-grid, .services-grid, .tech-grid { grid-template-columns: 1fr; }
    .section-number { font-size: 2.5rem; }
    .button-group { flex-direction: column; align-items: stretch; }
    .cta-button, .cta-secondary { display: flex; justify-content: center; text-align: center; margin-right: 0; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .team-avatar { width: 130px; height: 130px; }
    .client-card img { max-height: 60px; max-width: 140px; height: 60px; }
}

@media (max-width: 480px) {
    :root { --nav-height: 50px; }
    .container { padding: 0 1rem; }
    .header-container { padding: 0 0.8rem; }
    .logo img, .logo svg { height: 30px; }
    .hero { padding: 2.5rem 0; }
    section { padding: 2.5rem 0; }
    .client-card, .service-card, .tech-column { padding: 1.5rem; }
    .feature-item { padding: 1.4rem; gap: 1.5rem; }
    .section-number { font-size: 2rem; }
    .section-label { font-size: 0.75rem; }
    .section-label::before { width: 20px; }
}

@keyframes fadeInUp { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeInUp 0.7s ease-out; }
