/* =============================
   Theme Variables — Matching Vertex Code repo exactly
   Blue as primary, Green as secondary, Orange as accent
   ============================= */
:root {
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a8a;
    --blue-950: #172554;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-700: #c2410c;

    --bg-body: #ffffff;
    --bg-card: #ffffff;
    --bg-muted: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-card: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-card-hover: 0 10px 30px rgba(0,0,0,0.1);
}

[data-theme="dark"] {
    --bg-body: #0a0a0a;
    --bg-card: #1a1a2e;
    --bg-muted: #111111;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #2d2d3f;
    --shadow-card: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-card-hover: 0 10px 30px rgba(0,0,0,0.5);
}

/* =============================
   Resets
   ============================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: all 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* =============================
   Top Banner — blue-950 gradient like repo
   ============================= */
.top-banner {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--blue-950), var(--blue-900), var(--blue-950));
    color: #fff;
    padding: 8px 0;
    font-size: 0.85rem;
    animation: slideInDown 0.6s ease-out;
}
.top-banner.hidden { display: none; }
.top-banner-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-banner-left { display: flex; align-items: center; gap: 16px; }
.banner-link {
    display: flex; align-items: center; gap: 8px;
    color: #fff; font-weight: 500;
}
.banner-link:hover { color: #93c5fd; }
.top-banner-right { display: flex; align-items: center; gap: 8px; }
.social-icons-row { display: flex; gap: 8px; }
.social-circle {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 0.8rem;
    transition: all 0.3s;
}
.social-circle:hover { background: var(--blue-600); transform: scale(1.1); }
.banner-close {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: none; border: none;
    color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
}
.banner-close:hover { background: rgba(255,255,255,0.1); transform: scale(1.1); }

/* =============================
   Navbar — blue-900 to emerald-900 gradient
   ============================= */
.navbar {
    position: fixed;
    top: 42px;
    left: 0; right: 0;
    z-index: 40;
    background: linear-gradient(90deg, var(--blue-900), #134e4a);
    border-bottom: 1px solid rgba(29,78,216,0.5);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    padding: 0;
    transition: top 0.3s;
}
.navbar.banner-hidden { top: 0; }
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-weight: 800; font-size: 1.15rem; color: #fff; }
.logo-sub { font-size: 0.72rem; color: #93c5fd; }

.nav-links { display: flex; gap: 6px; }
.nav-link {
    padding: 10px 16px;
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s;
}
.nav-link:hover, .nav-link.active { color: #93c5fd; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
    width: 40px; height: 40px;
    border-radius: 10px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s;
}
.theme-toggle:hover { background: rgba(59,130,246,0.3); transform: scale(1.05); }
.lang-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    transition: all 0.3s;
    font-family: inherit;
}
.lang-btn:hover { background: rgba(59,130,246,0.3); transform: scale(1.05); }
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none; border: none;
    cursor: pointer; padding: 5px;
}
.hamburger span {
    width: 24px; height: 2.5px;
    background: #fff; border-radius: 3px;
    transition: all 0.3s;
}

/* =============================
   Hero — White bg, matching repo
   ============================= */
.hero {
    padding-top: 160px;
    padding-bottom: 60px;
    background: var(--bg-body);
    overflow: hidden;
    transition: background 0.3s;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.hero-badge {
    display: inline-block;
    margin-bottom: 16px;
}
.hero-badge span {
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(249,115,22,0.1);
    color: var(--orange-500);
    font-size: 0.9rem;
    font-weight: 600;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-primary);
}
.hero-gradient-text {
    display: block;
    background: linear-gradient(90deg, var(--blue-600), var(--emerald-500), var(--orange-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* Orange buttons matching repo */
.btn-orange {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    color: #fff; border-radius: 10px;
    font-weight: 600; font-size: 0.95rem;
    border: none; cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(249,115,22,0.3);
}
.btn-orange:hover {
    background: linear-gradient(135deg, var(--orange-600), var(--orange-700));
    box-shadow: 0 8px 25px rgba(249,115,22,0.5);
    transform: translateY(-2px);
}
.btn-outline-orange {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: var(--orange-600);
    border: 2px solid var(--orange-500);
    border-radius: 10px;
    font-weight: 600; font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-outline-orange:hover {
    background: rgba(249,115,22,0.05);
    transform: translateY(-2px);
}
[data-theme="dark"] .btn-outline-orange { color: var(--orange-500); }

/* Stats */
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.stat-number { font-size: 2rem; font-weight: 900; }
.stat-blue { background: linear-gradient(90deg, var(--blue-600), var(--blue-600)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-green { background: linear-gradient(90deg, var(--emerald-500), var(--emerald-600)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-orange { background: linear-gradient(90deg, var(--orange-500), var(--orange-600)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

/* Float cards */
.hero-visual {
    position: relative;
    height: 420px;
    display: flex; align-items: center; justify-content: center;
}
.float-card {
    position: absolute;
    width: 140px; height: 140px;
    background: linear-gradient(135deg, rgba(37,99,235,0.15), rgba(249,115,22,0.15));
    border: 1px solid rgba(37,99,235,0.25);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    animation: float 3s ease-in-out infinite;
}
[data-theme="dark"] .float-card {
    background: linear-gradient(135deg, rgba(37,99,235,0.2), rgba(249,115,22,0.2));
    border-color: rgba(37,99,235,0.35);
}
.float-icon { font-size: 2.5rem; }
.float-icon-blue { color: var(--blue-600); }
.float-icon-orange { color: var(--orange-500); }
.float-icon-brain { color: var(--orange-600); }

.float-card-1 { top: 0; right: 0; animation-delay: 0s; }
.float-card-2 {
    bottom: 40px; left: 0;
    background: linear-gradient(135deg, rgba(249,115,22,0.15), rgba(16,185,129,0.15));
    border-color: rgba(249,115,22,0.25);
    animation-delay: 0.5s;
}
.float-card-3 {
    bottom: 0; right: 40px;
    background: linear-gradient(135deg, rgba(249,115,22,0.15), rgba(249,115,22,0.15));
    border-color: rgba(249,115,22,0.25);
    animation-delay: 1s;
}

/* =============================
   Section Headers
   ============================= */
.section-header { text-align: center; margin-bottom: 56px; }
.section-title { font-size: 2.8rem; font-weight: 900; color: var(--text-primary); margin-bottom: 12px; }
.section-desc { font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* =============================
   Services — cards with features list, matching repo
   ============================= */
.services {
    padding: 80px 0;
    background: var(--bg-muted);
    transition: background 0.3s;
}
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 32px;
    transition: all 0.3s;
}
.service-card:hover {
    border-color: rgba(37,99,235,0.4);
    box-shadow: var(--shadow-card-hover);
}
.svc-icon {
    width: 60px; height: 60px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 20px;
    transition: transform 0.3s;
}
.service-card:hover .svc-icon { transform: scale(1.1); }
.svc-icon-blue { background: linear-gradient(135deg, var(--blue-600), var(--blue-700)); }
.svc-icon-green { background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600)); }
.svc-icon-orange { background: linear-gradient(135deg, var(--orange-500), var(--orange-600)); }

.service-card h3 {
    font-size: 1.4rem; font-weight: 800;
    margin-bottom: 10px; color: var(--text-primary);
    transition: color 0.3s;
}
.service-card:hover h3 { color: var(--blue-600); }
.service-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; margin-bottom: 16px; }

.svc-features { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.svc-features li {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.9rem; color: var(--text-primary);
}
.dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--blue-600);
    flex-shrink: 0;
}
.svc-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--blue-600);
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.3s;
}
.svc-link:hover { gap: 12px; }

/* Mini service cards */
.services-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.service-mini-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    display: flex; align-items: center; gap: 16px;
    transition: all 0.3s;
}
.service-mini-card:hover { border-color: rgba(37,99,235,0.4); }
.mini-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: rgba(37,99,235,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    color: var(--blue-600);
    flex-shrink: 0;
}
.service-mini-card h4 { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); }
.service-mini-card p { font-size: 0.82rem; color: var(--text-secondary); margin-top: 2px; }

/* =============================
   Portfolio — cards with images, overlay, tags
   ============================= */
.portfolio {
    padding: 80px 0;
    background: var(--bg-body);
    transition: background 0.3s;
}
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s;
}
.project-card:hover {
    border-color: rgba(37,99,235,0.4);
    box-shadow: var(--shadow-card-hover);
}
.project-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-muted);
}
.project-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.project-card:hover .project-img-wrap img { transform: scale(1.1); }
.project-img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex; align-items: center; justify-content: center; gap: 16px;
    opacity: 0;
    transition: all 0.3s;
}
.project-card:hover .project-img-overlay {
    opacity: 1;
    background: rgba(0,0,0,0.5);
}
.overlay-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    color: #000; font-size: 1rem;
    transition: transform 0.3s;
}
.overlay-btn:hover { transform: scale(1.1); }

.project-body { padding: 20px; }
.project-cat {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
}
.cat-blue { color: var(--blue-600); }
.cat-green { color: var(--emerald-500); }
.cat-orange { color: var(--orange-500); }
.project-body h3 {
    font-size: 1.2rem; font-weight: 800;
    margin-bottom: 6px; color: var(--text-primary);
    transition: color 0.3s;
}
.project-card:hover .project-body h3 { color: var(--orange-600); }
.project-body > p { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 14px; line-height: 1.5; }

.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
    font-size: 0.75rem; font-weight: 500;
    padding: 4px 12px;
    border-radius: 50px;
}
.tag-blue { background: rgba(37,99,235,0.1); color: var(--blue-600); }
.tag-green { background: rgba(16,185,129,0.1); color: var(--emerald-600); }
.tag-orange { background: rgba(249,115,22,0.1); color: var(--orange-600); }

.portfolio-cta { text-align: center; margin-top: 48px; }

/* =============================
   CTA Section — gradient box
   ============================= */
.cta-section {
    padding: 80px 0;
    background: var(--bg-body);
    transition: background 0.3s;
}
.cta-box {
    position: relative;
    background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(16,185,129,0.08), rgba(249,115,22,0.08));
    border: 1px solid rgba(37,99,235,0.15);
    border-radius: 24px;
    padding: 64px;
    text-align: center;
    overflow: hidden;
}
[data-theme="dark"] .cta-box {
    background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(16,185,129,0.12), rgba(249,115,22,0.12));
    border-color: rgba(37,99,235,0.2);
}
.cta-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
}
.cta-glow-1 { top: 20px; left: 20px; width: 80px; height: 80px; background: rgba(37,99,235,0.05); }
.cta-glow-2 { bottom: 20px; right: 20px; width: 120px; height: 120px; background: rgba(249,115,22,0.1); }
.cta-glow-3 { top: 50%; left: 50%; width: 96px; height: 96px; background: rgba(16,185,129,0.05); transform: translate(-50%,-50%); }
.cta-content { position: relative; z-index: 2; }
.cta-content h2 {
    font-size: 2.6rem; font-weight: 900;
    margin-bottom: 12px;
    background: linear-gradient(90deg, var(--blue-600), var(--emerald-600), var(--orange-600));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.cta-content p { font-size: 1.1rem; color: var(--text-secondary); max-width: 560px; margin: 0 auto 32px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* =============================
   Footer — blue-900 to emerald-900
   ============================= */
.footer {
    background: linear-gradient(90deg, var(--blue-900), #134e4a);
    border-top: 1px solid rgba(29,78,216,0.5);
    padding: 48px 0 0;
    color: #cbd5e1;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 32px;
    padding-bottom: 36px;
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-logo .logo-img { width: 48px; height: 48px; }
.footer-logo .logo-name { color: #fff; }
.footer-logo .logo-sub { color: #93c5fd; }
.footer-brand p { font-size: 0.9rem; color: #bfdbfe; margin-bottom: 16px; }
.footer-socials { display: flex; gap: 10px; }
.footer-social-btn {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(29,78,216,0.5);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 0.9rem;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.footer-social-btn:hover { background: var(--blue-600); transform: scale(1.1); }
.footer-col h4 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.88rem; color: #bfdbfe; }
.footer-col ul li a:hover { color: #93c5fd; }
.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.contact-label { font-size: 0.88rem; color: #bfdbfe; font-weight: 500; margin-bottom: 2px; }
.contact-value { font-size: 0.88rem; color: #93c5fd; }
.contact-value:hover { color: #fff; }
.contact-value-text { font-size: 0.88rem; color: #bfdbfe; }

.footer-bottom {
    border-top: 1px solid rgba(29,78,216,0.5);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: #93a3c0;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: #93a3c0; }
.footer-bottom-links a:hover { color: #93c5fd; }

/* =============================
   Animations
   ============================= */
@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
.reveal {
    opacity: 0; transform: translateY(28px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =============================
   Responsive
   ============================= */
@media (max-width: 1024px) {
    .services-grid, .portfolio-grid, .services-mini-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 2.8rem; }
}
@media (max-width: 768px) {
    .top-banner { display: none; }
    .navbar { top: 0 !important; }
    .hero { padding-top: 100px; }
    .nav-links {
        display: none;
        position: absolute;
        top: 72px; left: 0; right: 0;
        background: linear-gradient(180deg, var(--blue-900), #134e4a);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }
    .nav-links.open { display: flex; }
    .hamburger { display: flex; }
    .lang-btn { display: none; }
    .hero-inner { grid-template-columns: 1fr; gap: 24px; }
    .hero-visual { height: 260px; }
    .hero-title { font-size: 2.2rem; }
    .services-grid, .portfolio-grid, .services-mini-grid { grid-template-columns: 1fr; }
    .cta-box { padding: 40px 24px; }
    .cta-content h2 { font-size: 2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .section-title { font-size: 2rem; }
    .hero-buttons { flex-direction: column; }
    .cta-buttons { flex-direction: column; align-items: center; }
}
