/* =====================================================
   AL MEDIA AGENCY - Main Stylesheet
   ال ميديا Al Media
   ===================================================== */

:root {
    /* Brand Colors */
    --navy: #0D2B45;
    --petrol: #2F7C95;
    --light-blue: #7FAFBF;
    --white: #FFFFFF;
    --soft-black: #0A1620;

    /* Derived */
    --navy-light: #16395a;
    --petrol-light: #3a93ad;
    --bg-dark: #0A1825;
    --bg-darker: #060e16;
    --text-light: #EAF2F6;
    --text-muted: #9FB8C6;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.12);

    /* Gradients */
    --gradient-main: linear-gradient(135deg, var(--navy) 0%, var(--petrol) 60%, var(--light-blue) 100%);
    --gradient-glow: linear-gradient(135deg, var(--petrol) 0%, var(--light-blue) 100%);

    /* Type */
    --font-display: 'Cairo', 'Tajawal', sans-serif;
    --font-body: 'Tajawal', 'Cairo', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Layout */
    --container-width: 1280px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --transition: 0.35s cubic-bezier(.25,.8,.25,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.8;
    overflow-x: hidden;
    direction: rtl;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--petrol); color: var(--white); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-darker); }
::-webkit-scrollbar-thumb { background: var(--petrol); border-radius: 10px; }

/* =====================================================
   Layout helpers
   ===================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 90px 0; position: relative; }
.section-sm { padding: 60px 0; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--light-blue);
    text-transform: uppercase;
    margin-bottom: 14px;
    opacity: .85;
}
.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(28px, 4.5vw, 44px);
    color: var(--white);
    margin-bottom: 16px;
}
.section-desc { color: var(--text-muted); font-size: 17px; }

.text-gradient {
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* =====================================================
   Background Animations - Code Lines / Particles
   ===================================================== */
.bg-fx {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    background: var(--bg-dark);
}
.bg-fx::before {
    content: '';
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 20% 20%, rgba(47,124,149,.18), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(127,175,191,.14), transparent 45%),
        radial-gradient(circle at 50% 100%, rgba(13,43,69,.5), transparent 50%);
    animation: bgDrift 22s ease-in-out infinite alternate;
}
@keyframes bgDrift {
    0%   { transform: translate(0,0) scale(1); }
    100% { transform: translate(-3%, 3%) scale(1.08); }
}

.code-lines {
    position: absolute;
    inset: 0;
    opacity: .12;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--light-blue);
    white-space: nowrap;
    line-height: 2.2;
    transform: rotate(-4deg) translateY(-5%);
    -webkit-mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,.7) 30%, rgba(0,0,0,.7) 70%, transparent);
    mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,.7) 30%, rgba(0,0,0,.7) 70%, transparent);
    animation: codeScroll 60s linear infinite;
    user-select: none;
}
@keyframes codeScroll {
    from { transform: rotate(-4deg) translateY(-5%); }
    to   { transform: rotate(-4deg) translateY(-55%); }
}

.particles { position: absolute; inset: 0; }
.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--light-blue);
    opacity: .35;
    filter: blur(1px);
    animation: floatUp linear infinite;
}
@keyframes floatUp {
    from { transform: translateY(110vh) translateX(0); opacity: 0; }
    10%  { opacity: .35; }
    90%  { opacity: .25; }
    to   { transform: translateY(-10vh) translateX(40px); opacity: 0; }
}

/* =====================================================
   Glassmorphism
   ===================================================== */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: var(--radius-md);
}

/* =====================================================
   Header / Navbar
   ===================================================== */
.navbar {
    position: fixed;
    top: 0; right: 0; left: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: rgba(10,24,37,0);
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: rgba(10,24,37,.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 0;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--white); font-family: var(--font-display); }
.brand img { height: 42px; width: auto; border-radius: 8px; transition: var(--transition); }
.brand span.ar { color: var(--white); }
.brand span.en { color: var(--light-blue); font-size: 14px; font-weight: 600; letter-spacing: .5px; }
.brand small { display: block; font-size: 11px; color: var(--text-muted); font-weight: 400; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
    color: var(--text-light);
    font-size: 15px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 30px;
    transition: var(--transition);
    position: relative;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--white);
    background: rgba(127,175,191,.12);
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 4px; right: 16px; left: 16px;
    height: 2px;
    background: var(--gradient-glow);
    border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 12px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-primary {
    background: var(--gradient-glow);
    color: var(--navy);
    box-shadow: 0 8px 24px rgba(47,124,149,.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(47,124,149,.5); }
.btn-outline {
    border: 1.5px solid var(--glass-border);
    color: var(--text-light);
    background: var(--glass-bg);
}
.btn-outline:hover { border-color: var(--light-blue); color: var(--white); transform: translateY(-3px); }
.btn-whatsapp {
    background: linear-gradient(135deg, #1faa59, #25D366);
    color: #fff;
    box-shadow: 0 8px 24px rgba(37,211,102,.3);
}
.btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(37,211,102,.45); }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* Ripple / blur press effect */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.35);
    border-radius: 50%;
    transform: scale(0);
    opacity: 0;
    transition: transform .5s ease, opacity .6s ease;
    pointer-events: none;
}
.btn:active::after { transform: scale(3); opacity: 1; transition: 0s; }

.menu-toggle {
    display: none;
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--white);
    font-size: 18px;
    align-items: center;
    justify-content: center;
}

/* =====================================================
   Opening / Intro Animation
   ===================================================== */
#intro-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity .7s ease, visibility .7s ease;
}
#intro-screen.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-logo {
    width: 90px; height: 90px;
    margin-bottom: 28px;
    border-radius: 16px;
    animation: introPulse 1.8s ease-in-out infinite;
    filter: drop-shadow(0 0 25px rgba(47,124,149,.55));
}
@keyframes introPulse {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.07); }
}
.intro-typing {
    font-family: var(--font-mono);
    font-size: clamp(15px, 3vw, 22px);
    color: var(--light-blue);
    min-height: 32px;
    direction: ltr;
}
.intro-typing::after {
    content: '';
    display: inline-block;
    width: 2px; height: 1em;
    background: var(--light-blue);
    margin-right: 4px;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.intro-bar {
    width: 220px; height: 3px;
    background: rgba(255,255,255,.08);
    border-radius: 4px;
    margin-top: 30px;
    overflow: hidden;
}
.intro-bar span {
    display: block; height: 100%; width: 0%;
    background: var(--gradient-glow);
    animation: introBar 2.6s ease forwards;
}
@keyframes introBar { to { width: 100%; } }

body.no-scroll { overflow: hidden; height: 100vh; }

/* =====================================================
   Hero Section
   ===================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 110px;
    padding-bottom: 60px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 60px;
    align-items: center;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--light-blue);
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 22px;
}
.hero-eyebrow::before {
    content: '';
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--light-blue);
    box-shadow: 0 0 0 0 rgba(127,175,191,.7);
    animation: dotPulse 2s infinite;
}
@keyframes dotPulse {
    0% { box-shadow: 0 0 0 0 rgba(127,175,191,.6); }
    70% { box-shadow: 0 0 0 10px rgba(127,175,191,0); }
    100% { box-shadow: 0 0 0 0 rgba(127,175,191,0); }
}
.hero h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 18px;
}
.hero .slogan {
    font-size: clamp(18px, 2.4vw, 26px);
    color: var(--light-blue);
    font-weight: 700;
    margin-bottom: 18px;
}
.hero p.desc {
    color: var(--text-muted);
    font-size: 17px;
    max-width: 560px;
    margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero visual - 3D abstract */
.hero-visual {
    position: relative;
    height: 460px;
    display: flex; align-items: center; justify-content: center;
}
.shape3d {
    position: absolute;
    border-radius: 30px;
    background: var(--gradient-main);
    opacity: .85;
    box-shadow: 0 30px 80px rgba(13,43,69,.6);
    animation: floatShape 8s ease-in-out infinite;
}
.shape3d.s1 { width: 240px; height: 240px; top: 10%; right: 10%; transform: rotate(18deg); animation-delay: 0s; }
.shape3d.s2 { width: 160px; height: 160px; bottom: 10%; left: 5%; transform: rotate(-22deg); background: var(--gradient-glow); animation-delay: 1.5s; opacity: .7; }
.shape3d.s3 { width: 120px; height: 120px; top: 40%; left: 30%; border-radius: 50%; background: var(--petrol); opacity: .5; animation-delay: .8s; }
@keyframes floatShape {
    0%,100% { transform: translateY(0) rotate(var(--r, 0deg)); }
    50% { transform: translateY(-25px) rotate(calc(var(--r, 0deg) + 4deg)); }
}
.hero-visual .glass-card {
    position: absolute;
    padding: 18px 22px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--light-blue);
    animation: floatShape 7s ease-in-out infinite;
}
.hero-visual .glass-card.c1 { top: 6%; left: 0; animation-delay: .4s; }
.hero-visual .glass-card.c2 { bottom: 8%; right: 4%; animation-delay: 1.2s; }

/* =====================================================
   Cards & Services
   ===================================================== */
.grid {
    display: grid;
    gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glow);
    opacity: 0;
    transition: opacity .4s ease;
    z-index: -1;
}
.card:hover {
    transform: translateY(-8px);
    border-color: rgba(127,175,191,.4);
    box-shadow: 0 20px 50px rgba(13,43,69,.4);
}
.card .icon {
    width: 58px; height: 58px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    background: var(--gradient-glow);
    color: var(--navy);
    font-size: 24px;
    margin-bottom: 20px;
    transition: var(--transition);
}
.card:hover .icon { transform: rotate(-8deg) scale(1.08); }
.card h3 { color: var(--white); font-size: 19px; margin-bottom: 10px; font-weight: 700; }
.card p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 16px; }
.card .card-link { color: var(--light-blue); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.card .card-link i { transition: var(--transition); }
.card:hover .card-link i { transform: translateX(-5px); }

/* =====================================================
   Portfolio
   ===================================================== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}
.filter-btn {
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover {
    background: var(--gradient-glow);
    color: var(--navy);
    border-color: transparent;
}

.portfolio-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    background: var(--bg-darker);
    transition: var(--transition);
    transform-style: preserve-3d;
}
.portfolio-card:hover { transform: translateY(-8px) rotateX(2deg); box-shadow: 0 25px 60px rgba(13,43,69,.5); }
.portfolio-card .pf-img { height: 220px; overflow: hidden; }
.portfolio-card .pf-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.portfolio-card:hover .pf-img img { transform: scale(1.08); }
.portfolio-card .pf-body { padding: 20px; }
.portfolio-card .pf-cat {
    display: inline-block;
    font-size: 12px;
    color: var(--light-blue);
    font-family: var(--font-mono);
    margin-bottom: 8px;
    letter-spacing: 1px;
}
.portfolio-card h4 { color: var(--white); font-size: 17px; margin-bottom: 6px; }
.portfolio-card p { color: var(--text-muted); font-size: 13.5px; }
.portfolio-card .pf-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(13,43,69,0) 40%, rgba(10,22,32,.92) 100%);
    display: flex; align-items: flex-end; padding: 20px;
    opacity: 0; transition: var(--transition);
}
.portfolio-card:hover .pf-overlay { opacity: 1; }

/* =====================================================
   Clients Logos Strip
   ===================================================== */
.logos-strip { overflow: hidden; position: relative; padding: 40px 0; }
.logos-track { display: flex; gap: 70px; align-items: center; animation: scrollLogos 30s linear infinite; width: max-content; }
.logos-track img {
    height: 70px;
    max-width: 160px;
    width: auto;
    object-fit: contain;
    opacity: .9;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 10px 18px;
    transition: opacity .3s, transform .3s;
}
.logos-track img:hover { opacity: 1; transform: translateY(-4px); }
@keyframes scrollLogos { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logos-strip::before, .logos-strip::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2;
}
.logos-strip::before { right: 0; background: linear-gradient(270deg, var(--bg-dark), transparent); }
.logos-strip::after { left: 0; background: linear-gradient(90deg, var(--bg-dark), transparent); }

@media (max-width: 768px) {
    .logos-strip { padding: 26px 0; }
    .logos-track { gap: 40px; animation-duration: 22s; }
    .logos-track img { height: 52px; max-width: 120px; padding: 8px 14px; }
}

/* =====================================================
   Platforms section
   ===================================================== */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}
.platform-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 24px 14px;
    text-align: center;
    transition: var(--transition);
}
.platform-item:hover { transform: translateY(-6px); border-color: var(--light-blue); }
.platform-item i { font-size: 30px; color: var(--light-blue); margin-bottom: 10px; }
.platform-item span { display: block; color: var(--text-light); font-size: 13px; font-weight: 600; }

/* =====================================================
   Blog
   ===================================================== */
.blog-card { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--glass-border); background: var(--glass-bg); transition: var(--transition); }
.blog-card:hover { transform: translateY(-6px); border-color: rgba(127,175,191,.4); }
.blog-card .b-img { height: 200px; overflow: hidden; }
.blog-card .b-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.blog-card:hover .b-img img { transform: scale(1.06); }
.blog-card .b-body { padding: 22px; }
.blog-card .b-date { font-family: var(--font-mono); font-size: 12px; color: var(--light-blue); margin-bottom: 8px; display: block; }
.blog-card h3 { color: var(--white); font-size: 18px; margin-bottom: 10px; }
.blog-card p { color: var(--text-muted); font-size: 14px; }

/* =====================================================
   Forms
   ===================================================== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-light); font-size: 14px; }
.form-control {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,.04);
    color: var(--text-light);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--light-blue);
    background: rgba(255,255,255,.06);
    box-shadow: 0 0 0 4px rgba(127,175,191,.12);
}
textarea.form-control { resize: vertical; min-height: 140px; }

/* =====================================================
   Floating WhatsApp
   ===================================================== */
.wa-float {
    position: fixed;
    bottom: 26px;
    left: 26px;
    z-index: 9000;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1faa59, #25D366);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 28px;
    box-shadow: 0 10px 30px rgba(37,211,102,.45);
    animation: waPulse 2.4s infinite;
    transition: var(--transition);
}
.wa-float:hover { transform: scale(1.08); }
@keyframes waPulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
    70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* =====================================================
   Footer
   ===================================================== */
footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
    padding: 70px 0 30px;
    position: relative;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-grid h4 { color: var(--white); font-size: 16px; margin-bottom: 20px; }
.footer-grid ul li { margin-bottom: 12px; }
.footer-grid ul li a { color: var(--text-muted); font-size: 14.5px; transition: var(--transition); }
.footer-grid ul li a:hover { color: var(--light-blue); }
.footer-about p { color: var(--text-muted); font-size: 14.5px; margin: 18px 0; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-light); transition: var(--transition);
}
.footer-social a:hover { background: var(--gradient-glow); color: var(--navy); }
.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 13.5px;
}

/* =====================================================
   Page Header (sub-pages)
   ===================================================== */
.page-header {
    padding: 160px 0 70px;
    position: relative;
    text-align: center;
    overflow: hidden;
}
.page-header h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 5vw, 52px); color: var(--white); margin-bottom: 14px; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; color: var(--text-muted); font-size: 14px; }
.breadcrumb a { color: var(--light-blue); }

/* =====================================================
   Page transition overlay
   ===================================================== */
.page-transition {
    position: fixed; inset: 0; z-index: 99998;
    background: var(--bg-darker);
    transform: scaleY(0);
    transform-origin: bottom;
    pointer-events: none;
}
.page-transition.active { animation: pageIn .6s ease forwards; }
@keyframes pageIn { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: top; } }

/* =====================================================
   Animations - reveal on scroll
   ===================================================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { height: 320px; order: -1; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .platforms-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
    .nav-links { display: none; }
    .menu-toggle { display: flex; }
    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; right: 16px; left: 16px;
        background: rgba(10,24,37,.96);
        backdrop-filter: blur(16px);
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-md);
        padding: 16px;
        margin-top: 10px;
        gap: 4px;
    }
    .nav-links.mobile-open a { padding: 14px 16px; }
    .nav-actions .btn-outline { display: none; }
}

@media (max-width: 1024px) {
    .navbar { padding: 10px 0; }
    .navbar.scrolled { padding: 8px 0; }
    .brand img { height: 34px; }
    .brand { font-size: 17px; }
    .hero { padding-top: 90px; }
    .page-header { padding: 110px 0 50px; }
    .landing-hero { padding: 110px 0 60px; }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; margin-bottom: 24px; }
    .section { padding: 60px 0; }
    .platforms-grid { grid-template-columns: repeat(2, 1fr); }
    .wa-float { width: 54px; height: 54px; font-size: 24px; bottom: 18px; left: 18px; }
    footer { padding: 40px 0 20px; }
    .footer-grid h4 { margin-bottom: 12px; }
    .footer-grid ul li { margin-bottom: 8px; }
    .footer-about p { margin: 10px 0; font-size: 13.5px; line-height: 1.8; }
    .footer-bottom { padding-top: 16px; }
}

@media (max-width: 480px) {
    .platforms-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
    .navbar .container { gap: 10px; }
    .nav-actions { gap: 8px; }
    .nav-actions .btn-primary.btn-sm { padding: 9px 14px; font-size: 12.5px; }
    .brand span.en { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =====================================================
   Service Detail Modal
   ===================================================== */
.service-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 14, 22, .75);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    padding: 20px;
}
.service-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}
.service-modal {
    background: linear-gradient(160deg, rgba(22, 57, 90, .95), rgba(10, 24, 37, .98));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg, 20px);
    max-width: 560px;
    width: 100%;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    transform: translateY(20px) scale(.97);
    transition: transform .3s ease;
    box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.service-modal-overlay.open .service-modal {
    transform: translateY(0) scale(1);
}
.service-modal-close {
    position: absolute;
    top: 16px; left: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    width: 38px; height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: background .2s ease, transform .2s ease;
}
.service-modal-close:hover {
    background: var(--petrol);
    transform: rotate(90deg);
}
.service-modal-icon {
    font-size: 46px;
    color: var(--light-blue);
    margin-bottom: 18px;
}
.service-modal h3 {
    font-size: 24px;
    margin-bottom: 14px;
    color: var(--text-light);
}
.service-modal p {
    color: var(--text-muted);
    line-height: 1.9;
    font-size: 15px;
}

/* =====================================================
   Article / Blog Single Page Content
   ===================================================== */
.article-content {
    color: var(--text-light);
    line-height: 2;
    font-size: 16px;
}
.article-content h2, .article-content h3 {
    margin: 28px 0 14px;
    color: var(--text-light);
}
.article-content p { margin-bottom: 16px; color: var(--text-muted); }
.article-content ul, .article-content ol { margin: 0 0 16px 20px; color: var(--text-muted); }
.article-content img { max-width: 100%; border-radius: var(--radius-md); margin: 16px 0; }
.article-content a { color: var(--light-blue); text-decoration: underline; }

/* =====================================================
   Contact Page Extras
   ===================================================== */
.contact-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--glass-border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .icon {
    flex-shrink: 0;
    width: 50px; height: 50px;
    font-size: 18px;
    margin: 0;
}
.contact-info-item h4 { font-size: 15px; margin-bottom: 4px; color: var(--text-light); }
.contact-info-item p, .contact-info-item a { color: var(--text-muted); font-size: 14px; }
.contact-info-item a:hover { color: var(--light-blue); }

/* =====================================================
   Pagination
   ===================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    border-radius: var(--radius-sm, 10px);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: all .2s ease;
    background: var(--glass-bg);
}
.pagination a:hover { background: var(--petrol); border-color: var(--petrol); }
.pagination .active { background: var(--gradient-glow); color: var(--navy); border-color: transparent; }

/* =====================================================
   Landing Pages (CRM/ERP & Marketing)
   ===================================================== */
.landing-hero {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
}
.landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin: 40px 0;
}
.landing-feature {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 22px;
    text-align: center;
}
.landing-feature i {
    font-size: 28px;
    color: var(--light-blue);
    margin-bottom: 10px;
}
.landing-feature span { display:block; font-size: 14px; color: var(--text-light); font-weight: 600; }

/* =====================================================
   Form messages (success page)
   ===================================================== */
.form-success {
    text-align: center;
    padding: 50px 20px;
}
.form-success i {
    font-size: 60px;
    color: var(--light-blue);
    margin-bottom: 20px;
}
.form-success h3 { color: var(--text-light); margin-bottom: 10px; font-size: 22px; }
.form-success p { color: var(--text-muted); }

/* =====================================================
   Public Alerts
   ===================================================== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
    font-size: 14px;
    border: 1px solid transparent;
}
.alert-error {
    background: rgba(220,53,69,.12);
    border-color: rgba(220,53,69,.3);
    color: #ff9b96;
}
.alert-success {
    background: rgba(40,167,69,.12);
    border-color: rgba(40,167,69,.3);
    color: #8be9a3;
}

/* =====================================================
   CRM/ERP Highlight Card (Home)
   ===================================================== */
.crm-highlight {
    padding: 50px;
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 30px;
    align-items: center;
    background: linear-gradient(135deg, rgba(47,124,149,.18), rgba(127,175,191,.06));
}
.crm-highlight-icon {
    text-align: center;
    font-size: 120px;
    color: var(--light-blue);
    opacity: .5;
}
@media (max-width: 1024px) {
    .crm-highlight {
        grid-template-columns: 1fr;
        padding: 36px;
        text-align: center;
    }
    .crm-highlight-icon { font-size: 80px; order: -1; }
}
