/* =============================================
   RESET & TOKENS
   ============================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg:       #06080f;
    --bg2:      #0d1117;
    --bg3:      #111827;
    --card:     #0f1623;
    --border:   rgba(255,255,255,0.07);
    --accent:   #3b82f6;
    --accent2:  #60a5fa;
    --cyan:     #22d3ee;
    --green:    #22c55e;
    --white:    #ffffff;
    --muted:    #94a3b8;
    --dim:      #64748b;
    --radius:   14px;
    --font:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
strong { color: var(--white); }

/* =============================================
   UTILITY
   ============================================= */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 5%; }

.sec-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent2);
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.25);
    padding: 4px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.sec-sub {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 580px;
    margin: 0 auto 50px;
    text-align: center;
}

.section { padding: 100px 0; }

.section h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 11px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    font-family: var(--font);
}
.btn-primary:hover {
    background: var(--accent2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59,130,246,0.35);
}
.btn-primary.large { padding: 14px 32px; font-size: 1rem; }
.btn-primary.btn-full { width: 100%; justify-content: center; }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 11px 24px;
    border-radius: 8px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    white-space: nowrap;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.05); }

.btn-outline-sm {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent2);
    border: 1px solid rgba(59,130,246,0.3);
    padding: 8px 18px;
    border-radius: 6px;
    margin-top: 16px;
    transition: background 0.2s, border-color 0.2s;
}
.btn-outline-sm:hover { background: rgba(59,130,246,0.1); border-color: var(--accent2); }

/* =============================================
   NAVBAR
   ============================================= */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(6,8,15,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--white);
    flex-shrink: 0;
}
.logo span { color: var(--accent2); }

.logo-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--accent), #1d4ed8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 16px rgba(59,130,246,0.4);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.desktop-nav a {
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}
.desktop-nav a:hover { color: var(--white); background: rgba(255,255,255,0.06); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font);
    transition: border-color 0.2s, color 0.2s;
}
.lang-btn:hover { border-color: var(--accent2); color: var(--white); }

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.hamburger span {
    display: block;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    border-top: 1px solid var(--border);
    background: var(--bg2);
}
.mobile-nav a {
    padding: 14px 5%;
    color: var(--muted);
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--white); }
.mobile-nav.open { display: flex; }

/* =============================================
   HERO
   ============================================= */
.hero {
    min-height: 100vh;
    padding: 140px 5% 80px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-glow {
    position: absolute;
    top: -200px; left: -200px;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, transparent 70%);
    pointer-events: none;
}
.hero-glow2 {
    position: absolute;
    bottom: -100px; right: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(34,211,238,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

/* badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59,130,246,0.08);
    border: 1px solid rgba(59,130,246,0.2);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent2);
    margin-bottom: 28px;
}
.badge-dot {
    width: 7px; height: 7px;
    background: var(--green);
    border-radius: 50%;
    animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* headline */
.hero-left h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 22px;
}
.hero-left h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--accent2), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-left p {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 500px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}
.hstat { display: flex; flex-direction: column; }
.hstat-n { font-size: 1.6rem; font-weight: 800; color: var(--white); letter-spacing: -0.02em; }
.hstat-l { font-size: 0.75rem; color: var(--dim); font-weight: 500; margin-top: 2px; }
.hstat-sep { width: 1px; height: 36px; background: var(--border); }

/* hero visual */
.hero-visual {
    position: relative;
    width: 100%;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vis-orb {
    width: 260px; height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(59,130,246,0.5), rgba(6,8,15,0.9) 70%);
    border: 1px solid rgba(59,130,246,0.25);
    box-shadow: 0 0 80px rgba(59,130,246,0.25), inset 0 0 60px rgba(59,130,246,0.1);
    position: absolute;
}
.vis-ring {
    width: 340px; height: 340px;
    border-radius: 50%;
    border: 1px dashed rgba(59,130,246,0.2);
    position: absolute;
    animation: spin 18s linear infinite;
}
.vis-ring.r2 {
    width: 420px; height: 420px;
    border-color: rgba(34,211,238,0.12);
    animation: spin 30s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

.float-chip {
    position: absolute;
    background: rgba(13,17,23,0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.float-chip strong { display: block; font-size: 0.8rem; font-weight: 700; color: var(--white); }
.float-chip small { display: block; font-size: 0.7rem; color: var(--dim); margin-top: 1px; }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.chip-dot.green { background: var(--green); box-shadow: 0 0 6px var(--green); }
.chip-dot.blue  { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.chip-dot.cyan  { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }

.chip1 { top: 30px; left: 0; animation: float1 4s ease-in-out infinite; }
.chip2 { top: 50%; right: 0; transform: translateY(-50%); animation: float2 5s ease-in-out infinite; }
.chip3 { bottom: 30px; left: 10%; animation: float3 4.5s ease-in-out infinite; }

@keyframes float1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes float2 { 0%,100%{transform:translateY(-50%)} 50%{transform:translateY(calc(-50% - 10px))} }
@keyframes float3 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* trusted bar */
.trusted-bar {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 0 5%;
    display: flex;
    align-items: center;
    gap: 32px;
    border-top: 1px solid var(--border);
    padding-top: 32px;
    flex-wrap: wrap;
}
.trusted-lbl { font-size: 0.75rem; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
.trusted-logos { display: flex; gap: 32px; flex-wrap: wrap; }
.trusted-logos span { font-size: 0.85rem; font-weight: 600; color: var(--dim); letter-spacing: 0.03em; transition: color 0.2s; }
.trusted-logos span:hover { color: var(--muted); }

/* =============================================
   SERVICES
   ============================================= */
#services { background: var(--bg2); }
#services .wrap { text-align: center; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 10px;
}

.svc-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    text-align: left;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}
.svc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--cyan));
    opacity: 0;
    transition: opacity 0.25s;
}
.svc-card:hover { transform: translateY(-6px); border-color: rgba(59,130,246,0.3); box-shadow: 0 16px 48px rgba(0,0,0,0.4); }
.svc-card:hover::before { opacity: 1; }

.svc-icon-wrap {
    margin: -32px -28px 20px -28px;
    display: block;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    height: 160px;
}
.svc-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.ac-emoji {
    margin: -36px -28px 20px -28px;
    display: block;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    height: 160px;
}
.ac-emoji img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.svc-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}
.svc-card p {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.7;
}

/* =============================================
   TECH STACK
   ============================================= */
.tech-section {
    padding: 80px 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.tech-section .wrap { text-align: center; }
.tech-section h2 { font-size: 1.6rem; margin-bottom: 36px; }

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.tech-pill {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 999px;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    cursor: default;
}
.tech-pill:hover { border-color: var(--accent); color: var(--accent2); background: rgba(59,130,246,0.07); }

/* =============================================
   ABOUT
   ============================================= */
.about-section { background: var(--bg2); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-left h2 { text-align: left; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 20px; }
.about-left p { color: var(--muted); font-size: 1rem; line-height: 1.8; margin-bottom: 28px; }

.about-list { list-style: none; margin-bottom: 36px; display: flex; flex-direction: column; gap: 10px; }
.about-list li {
    color: var(--muted);
    font-size: 0.9rem;
    padding-left: 22px;
    position: relative;
}
.about-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color 0.2s, transform 0.2s;
}
.stat-card:hover { border-color: rgba(59,130,246,0.3); transform: translateY(-4px); }
.sc-num {
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent2), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}
.sc-lbl { font-size: 0.8rem; color: var(--dim); font-weight: 500; }

/* =============================================
   DEVOPS EXPERTISE
   ============================================= */
.devops-section { background: var(--bg); }
.devops-section .wrap { text-align: center; }

.devops-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 20px;
    margin-top: 10px;
    text-align: left;
}

.devops-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}
.devops-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--cyan));
    opacity: 0;
    transition: opacity 0.25s;
}
.devops-card:hover { border-color: rgba(59,130,246,0.3); transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,0.4); }
.devops-card:hover::before { opacity: 1; }

.devops-card.devops-featured {
    border-color: rgba(59,130,246,0.35);
    background: linear-gradient(145deg, #0f1a2e, var(--card));
    box-shadow: 0 0 40px rgba(59,130,246,0.1);
}
.devops-card.devops-featured::before { opacity: 1; }

.devops-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent2);
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.25);
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    width: fit-content;
}

.devops-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--white); margin: 0; }
.devops-card > p { color: var(--muted); font-size: 0.875rem; line-height: 1.7; margin: 0; }

.devops-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
.devops-skills span {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 13px;
    border-radius: 999px;
    transition: border-color 0.2s, color 0.2s;
}
.devops-skills span:hover { border-color: var(--accent); color: var(--accent2); }

.devops-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
}
.devops-list li {
    color: var(--muted);
    font-size: 0.875rem;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}
.devops-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent2);
    font-weight: 700;
}

.rafay-intro-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
    text-align: left;
}

.rafay-bio-card {
    background: linear-gradient(145deg, #0f1a2e, var(--card));
    border: 1px solid rgba(59,130,246,0.35);
    border-radius: var(--radius);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
}
.rafay-bio-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--cyan));
}
.rafay-bio-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--white); }
.rafay-bio-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.8; }

.rafay-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.devops-right-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.devops-tools-row {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    text-align: left;
}

/* =============================================
   ACADEMY
   ============================================= */
#academy { background: var(--bg); }
#academy .wrap { text-align: center; }

.academy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ac-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.ac-card:hover { border-color: rgba(59,130,246,0.3); transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }

.ac-card.ac-featured {
    border-color: rgba(59,130,246,0.4);
    background: linear-gradient(145deg, #0f1a2e, var(--card));
    box-shadow: 0 0 40px rgba(59,130,246,0.12);
}

.ac-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--dim);
    background: rgba(255,255,255,0.05);
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    width: fit-content;
}
.ac-tag.popular {
    color: var(--accent2);
    background: rgba(59,130,246,0.1);
    border-color: rgba(59,130,246,0.3);
}
.ac-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--white); }
.ac-card p { color: var(--muted); font-size: 0.875rem; line-height: 1.7; flex: 1; }

/* =============================================
   PRODUCTS
   ============================================= */
.products-section { background: var(--bg2); }
.products-section .wrap { text-align: center; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.prod-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.prod-card:hover { border-color: rgba(59,130,246,0.3); transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,0.35); }

.prod-emoji {
    margin: -32px -28px 20px -28px;
    display: block;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    height: 160px;
}
.prod-emoji img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cyan);
    background: rgba(34,211,238,0.08);
    border: 1px solid rgba(34,211,238,0.2);
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    width: fit-content;
}
.prod-card h3 { font-size: 1rem; font-weight: 700; color: var(--white); }
.prod-card p { color: var(--muted); font-size: 0.875rem; line-height: 1.7; flex: 1; }

/* =============================================
   RESOURCES
   ============================================= */
#resources { background: var(--bg); }
#resources .wrap { text-align: center; }

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.res-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s, transform 0.25s;
}
.res-card:hover { border-color: rgba(59,130,246,0.3); transform: translateY(-5px); }
.res-emoji {
    margin: -32px -28px 20px -28px;
    display: block;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    height: 160px;
}
.res-emoji img { width: 100%; height: 100%; object-fit: cover; display: block; }
.res-card h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.res-card p { color: var(--muted); font-size: 0.875rem; line-height: 1.7; flex: 1; }

/* =============================================
   CONTACT
   ============================================= */
.contact-section { background: var(--bg2); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.contact-left h2 { text-align: left; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.contact-left > p { color: var(--muted); font-size: 1rem; margin-bottom: 32px; line-height: 1.7; }

.contact-info-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.ci-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--muted);
}
.ci-row span:first-child,
.ci-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
    width: 20px;
    text-align: center;
    color: var(--accent2);
}

.wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 12px 24px;
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s;
}
.wa-btn:hover { background: #1db954; transform: translateY(-2px); }

/* form */
.contact-form {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-form label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 4px;
    margin-top: 10px;
}
.contact-form label:first-child { margin-top: 0; }

.contact-form input,
.contact-form textarea,
.contact-form select {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--white);
    font-size: 0.9rem;
    font-family: var(--font);
    padding: 11px 14px;
    width: 100%;
    transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { outline: none; border-color: var(--accent); }
.contact-form select option { background: var(--bg3); }
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form .btn-primary { margin-top: 12px; }

/* =============================================
   RAFAY CONTACT
   ============================================= */
.rafay-contact-section { background: var(--bg); border-top: 1px solid var(--border); }

.rafay-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.rafay-contact-grid .contact-left h2 {
    text-align: left;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 16px;
}
.rafay-contact-grid .contact-left > p {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 32px;
    line-height: 1.7;
}

.rafay-li-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0A66C2;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 12px 24px;
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s;
}
.rafay-li-btn:hover { background: #004182; transform: translateY(-2px); }

/* =============================================
   FOOTER
   ============================================= */
footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 70px 0 32px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 2fr;
    gap: 80px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}

.footer-brand .logo { margin-bottom: 16px; display: inline-flex; }
.footer-brand p { color: var(--dim); font-size: 0.875rem; line-height: 1.7; max-width: 320px; }

.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

.footer-col h4 { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--white); margin-bottom: 16px; }
.footer-col a {
    display: block;
    color: var(--dim);
    font-size: 0.875rem;
    margin-bottom: 10px;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--muted); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-bottom p { font-size: 0.8rem; color: var(--dim); }

.footer-lang { display: flex; gap: 8px; }
.footer-lang button {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--dim);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font);
    transition: color 0.2s, border-color 0.2s;
}
.footer-lang button:hover { color: var(--white); border-color: var(--muted); }

/* =============================================
   WHATSAPP FLOAT
   ============================================= */
.wa-float {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 58px; height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 999;
    transition: transform 0.25s, box-shadow 0.25s;
    animation: wa-pulse 2.5s infinite;
}
.wa-float:hover { transform: scale(1.12); box-shadow: 0 6px 28px rgba(37,211,102,0.55); }

@keyframes wa-pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.4); }
    70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .services-grid,
    .academy-grid,
    .products-grid,
    .resources-grid { grid-template-columns: repeat(2, 1fr); }

    .devops-grid { grid-template-columns: 1fr 1fr; }
    .rafay-intro-grid { grid-template-columns: 1fr; }

    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-right { display: none; }
    .about-grid,
    .contact-grid,
    .rafay-contact-grid,
    .footer-top { grid-template-columns: 1fr; gap: 48px; }
    .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .hamburger { display: flex; }
    #navbar .nav-right .btn-primary { display: none; }
    #navbar .nav-right .lang-btn { display: none; }

    .nav-inner { gap: 0; justify-content: space-between; }
    .nav-right { margin-left: auto; }

    .hero { padding: 110px 5% 60px; }
    .hero-left h1 { font-size: 2.2rem; }
    .hero-stats { gap: 16px; flex-wrap: wrap; }
    .hero-actions { flex-direction: column; }
    .hero-actions a,
    .hero-actions button { width: 100%; text-align: center; justify-content: center; }

    .services-grid,
    .academy-grid,
    .products-grid,
    .resources-grid { grid-template-columns: 1fr; }

    .devops-grid { grid-template-columns: 1fr; }
    .rafay-intro-grid { grid-template-columns: 1fr; }
    .devops-right-stack { gap: 16px; }
    .devops-tools-row { padding: 20px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    .about-left h2 { font-size: 1.6rem; }
    .about-left p { font-size: 0.95rem; }

    .footer-cols { grid-template-columns: 1fr; gap: 28px; }
    .footer-top { gap: 36px; }

    .trusted-bar { flex-direction: column; align-items: flex-start; gap: 16px; }
    .trusted-logos { gap: 16px; }

    .contact-form { padding: 20px; }
    .contact-grid { gap: 36px; }
    .rafay-contact-grid { gap: 36px; }
    .contact-left h2 { font-size: 1.5rem; }

    .rafay-bio-card { padding: 24px 20px; }
    .devops-card { padding: 24px 20px; }

    .sec-sub { font-size: 0.95rem; }

    .svc-card,
    .ac-card,
    .prod-card,
    .res-card { padding: 28px 20px; }

    .svc-icon-wrap { margin: -28px -20px 18px -20px; }
    .ac-emoji { margin: -28px -20px 18px -20px; }
    .prod-emoji { margin: -28px -20px 18px -20px; }
    .res-emoji { margin: -28px -20px 18px -20px; }

    .wa-float { width: 50px; height: 50px; bottom: 20px; right: 20px; }

    .tech-grid { gap: 8px; }
    .tech-pill { font-size: 0.78rem; padding: 6px 14px; }
}

@media (max-width: 480px) {
    .hero-left h1 { font-size: 1.85rem; }
    .hero-badge { font-size: 0.72rem; }
    .hstat-n { font-size: 1.3rem; }

    .section { padding: 60px 0; }

    .about-grid { gap: 32px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .sc-num { font-size: 1.8rem; }

    .contact-form { padding: 16px; }
    .contact-form input,
    .contact-form textarea,
    .contact-form select { font-size: 0.85rem; padding: 10px 12px; }

    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
    .footer-brand p { font-size: 0.82rem; }

    .btn-primary.large { padding: 12px 24px; font-size: 0.95rem; }

    .rafay-bio-card { padding: 20px 16px; }
    .devops-card { padding: 20px 16px; }
    .devops-skills { gap: 6px; }
    .devops-skills span { font-size: 0.75rem; padding: 4px 10px; }

    .svc-icon-wrap { margin: -28px -20px 16px -20px; height: 140px; }
    .ac-emoji,
    .prod-emoji,
    .res-emoji { margin: -28px -20px 16px -20px; height: 140px; }

    .ac-card,
    .prod-card,
    .res-card,
    .svc-card { padding: 28px 20px; }

    .logo { font-size: 0.85rem; }
    .logo-icon { width: 28px; height: 28px; }
}
