/* ============ RESET & GLOBAL ============ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-main: #020617;
    --bg-alt: #020617;
    --bg-card: rgba(15, 23, 42, 0.88);
    --accent: #38bdf8;
    /* sky blue */
    --accent-soft: #0ea5e9;
    --accent-strong: #06b6d4;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --border-subtle: rgba(148, 163, 184, 0.35);
    --radius-lg: 1.4rem;
    --radius-md: 1rem;
    --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.75);
    --transition-fast: 0.25s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #020617 0, #020617 40%, #020617 100%);
    color: var(--text-main);
    line-height: 1.6;
}

/* ============ LAYOUT HELPERS ============ */
.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.section-alt {
    background: radial-gradient(circle at top left, #020617 0, #020617 50%, #020617 100%);
}

.center {
    text-align: center;
}

.grid {
    display: grid;
    gap: 1.8rem;
}

/* ============ TYPOGRAPHY ============ */
.eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-soft);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.7rem, 2.2vw + 1rem, 2.4rem);
    margin-bottom: 1.25rem;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    background: linear-gradient(135deg, #0ea5e9, #22d3ee);
    color: #0b1120;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: transform var(--transition-fast),
        box-shadow var(--transition-fast), opacity var(--transition-fast),
        background var(--transition-fast), filter var(--transition-fast);
    box-shadow: 0 16px 40px rgba(8, 47, 73, 0.9);
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 22px 55px rgba(8, 47, 73, 1);
    filter: brightness(1.05);
}

.btn-outline {
    background: transparent;
    color: var(--accent-soft);
    border: 1px solid rgba(56, 189, 248, 0.6);
}

.btn-outline:hover {
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.28), transparent 70%);
    color: #e5f4ff;
}

.btn-link {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    position: relative;
}

.btn-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    transition: width var(--transition-fast);
}

.btn-link:hover::after {
    width: 100%;
}

.btn-link i {
    font-size: 0.8rem;
}

.full {
    width: 100%;
}

/* ============ GLASS & HOVERS ============ */
.glass {
    backdrop-filter: blur(22px);
    background: radial-gradient(circle at top left,
            rgba(56, 189, 248, 0.14),
            rgba(15, 23, 42, 0.88));
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.glass-hover {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top left,
            rgba(15, 23, 42, 0.9),
            rgba(15, 23, 42, 0.98));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-fast),
        box-shadow var(--transition-fast),
        border-color var(--transition-fast),
        background var(--transition-fast);
}

.glass-hover::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 120deg,
            rgba(56, 189, 248, 0.0),
            rgba(56, 189, 248, 0.4),
            rgba(56, 189, 248, 0.0));
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

.glass-hover:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.95);
    border-color: rgba(56, 189, 248, 0.7);
    background: radial-gradient(circle at top left,
            rgba(15, 23, 42, 0.6),
            rgba(15, 23, 42, 0.98));
}

.glass-hover:hover::before {
    opacity: 1;
    transform: rotate(18deg);
}

/* subtle float animation for cards on load */
@keyframes float-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card,
.image-card,
.team-card,
.blog-card,
.pricing-card {
    animation: float-up 0.6s ease forwards;
}

/* ============ NAVBAR ============ */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(to bottom,
            rgba(2, 6, 23, 0.97),
            rgba(2, 6, 23, 0.9));
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(30, 64, 175, 0.7);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 1.05rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    font-size: 0.9rem;
}

.nav a {
    text-decoration: none;
    color: var(--text-muted);
    position: relative;
    padding-bottom: 2px;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.nav a::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    height: 2px;
    bottom: -4px;
    transform: scaleX(0);
    transform-origin: center;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    transition: transform var(--transition-fast);
}

.nav a:hover {
    color: #e0f2fe;
    transform: translateY(-1px);
}

.nav a:hover::after {
    transform: scaleX(1);
}

.nav-cta {
    margin-left: 1.2rem;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    width: 38px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: #020617;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #e5e7eb;
    border-radius: 999px;
}

/* ============ HERO ============ */
.hero {
    padding: 5rem 0 4rem;
    background: radial-gradient(circle at top left, #0b1120 0, #020617 55%);
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.65;
    pointer-events: none;
}

.hero-glow-1 {
    background: rgba(56, 189, 248, 0.3);
    top: -160px;
    left: -120px;
}

.hero-glow-2 {
    background: rgba(14, 165, 233, 0.4);
    bottom: -200px;
    right: -140px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: clamp(2.4rem, 3vw + 1.5rem, 3.4rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-sub {
    color: var(--text-muted);
    max-width: 32rem;
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
}

.stat-glass {
    padding: 0.9rem 1.2rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(56, 189, 248, 0.3);
    background: radial-gradient(circle at top left,
            rgba(15, 23, 42, 0.6),
            rgba(15, 23, 42, 0.98));
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.9);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-glass:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 1);
}

.hero-stats h3 {
    font-size: 1.3rem;
}

.hero-stats p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.hero-image {
    position: relative;
    border-radius: 1.8rem;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    border-radius: 1.8rem;
    object-fit: cover;
    min-height: 280px;
    transition: transform 0.6s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}

.hero-badge {
    position: absolute;
    left: -10px;
    bottom: 22px;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(56, 189, 248, 0.7);
    background: radial-gradient(circle at top left,
            rgba(15, 23, 42, 0.8),
            rgba(15, 23, 42, 0.98));
}

.badge-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: radial-gradient(circle, #facc15, #f97316);
}

/* ============ CARDS ============ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
}

.service-card h3 {
    margin: 0.9rem 0 0.4rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: radial-gradient(circle at top left,
            rgba(56, 189, 248, 0.2),
            transparent);
    border: 1px solid rgba(56, 189, 248, 0.6);
    color: var(--accent-soft);
    box-shadow: 0 10px 24px rgba(8, 47, 73, 0.9);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.glass-hover:hover .card-icon {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 18px 40px rgba(8, 47, 73, 1);
}

.card-link {
    margin-top: 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--accent-soft);
    font-size: 0.85rem;
    text-decoration: none;
    position: relative;
}

.card-link i {
    font-size: 0.75rem;
    transition: transform var(--transition-fast);
}

.card-link:hover i {
    transform: translateX(4px);
}

/* ============ SERVICES GRID ============ */
.services-grid {
    margin-top: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* ============ ABOUT ============ */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
    gap: 3rem;
    align-items: center;
}

.section-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.15);
    filter: blur(80px);
    top: -180px;
    right: -160px;
    pointer-events: none;
}

.about-images {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-main {
    width: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
    min-height: 260px;
}

.about-secondary {
    position: absolute;
    width: 50%;
    right: -10px;
    bottom: -20px;
    border-radius: var(--radius-md);
    border: 4px solid #020617;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-fast);
}

.about-images:hover .about-secondary {
    transform: translateY(-6px) translateX(-6px);
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.checklist {
    list-style: none;
    margin: 0 0 1.4rem;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.checklist i {
    color: var(--accent-soft);
}

/* ============ WORK ============ */
.work-grid {
    margin-top: 2.2rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.image-card {
    padding: 0;
    overflow: hidden;
    position: relative;
}

.image-card img {
    width: 100%;
    height: 100%;
    max-height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.image-card:hover img {
    transform: scale(1.06);
}

.image-card-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 1.1rem 1.3rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
}

/* ============ WHY US ============ */
.why-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
    gap: 3rem;
    align-items: center;
}

.why-points {
    margin-top: 1.4rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.mini-card {
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: radial-gradient(circle at top left,
            rgba(15, 23, 42, 0.9),
            rgba(15, 23, 42, 1));
    border: 1px solid var(--border-subtle);
}

.mini-card h3 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.mini-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.why-images img {
    width: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
}

/* ============ TEAM ============ */
.team-grid {
    margin-top: 2.3rem;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.team-card {
    text-align: center;
    padding: 1.3rem 1.1rem 1.5rem;
}

.team-card img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 1.3rem;
    margin-bottom: 0.9rem;
    transition: transform 0.45s ease;
}

.team-card:hover img {
    transform: translateY(-4px) scale(1.03);
}

.team-card h3 {
    font-size: 1rem;
}

.team-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============ CTA ============ */
.cta-section {
    background: radial-gradient(circle at top right, #0f172a 0, #020617 60%);
}

.cta-glow {
    position: absolute;
    width: 460px;
    height: 460px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.18);
    filter: blur(90px);
    left: -220px;
    bottom: -240px;
    pointer-events: none;
}

.cta-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.cta-text p {
    color: var(--text-muted);
    max-width: 28rem;
    margin-bottom: 1.5rem;
}

.cta-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.stat-card {
    padding: 1.1rem 1.2rem;
}

.cta-stats h3 {
    font-size: 1.4rem;
}

.cta-stats p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============ PRICING ============ */
.pricing-grid {
    margin-top: 2.4rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.pricing-card ul {
    list-style: none;
    margin: 1rem 0 1.3rem;
}

.pricing-card li {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.pricing-card i {
    color: var(--accent-soft);
    font-size: 0.8rem;
}

.price {
    font-size: 1.8rem;
    margin-top: 0.4rem;
}

.price span:first-child {
    font-size: 1rem;
    vertical-align: super;
}

.price span:last-child {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 0.2rem;
}

.pricing-card--featured {
    border-color: rgba(56, 189, 248, 0.85);
    position: relative;
    box-shadow: 0 26px 66px rgba(8, 47, 73, 1);
}

.pricing-card--featured .tag {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.7rem;
    background: linear-gradient(90deg, #0ea5e9, #22d3ee);
    color: #0b1120;
}

/* ============ BLOG ============ */
.blog-grid {
    margin-top: 2.2rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.blog-card {
    padding: 0;
    overflow: hidden;
}

.blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.blog-card:hover img {
    transform: scale(1.06);
}

.blog-body {
    padding: 1.2rem 1.3rem 1.3rem;
}

.blog-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.blog-body h3 {
    font-size: 1rem;
}

/* ============ CONTACT CTA ============ */
.contact-cta {
    background: radial-gradient(circle at top, #020617 0, #020617 60%);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2rem;
}

.contact-card.secondary {
    background: radial-gradient(circle at top left,
            rgba(15, 23, 42, 0.8),
            rgba(15, 23, 42, 0.98));
}

.contact-number {
    font-size: 1.3rem;
    font-weight: 600;
}

/* ============ FOOTER ============ */
.footer {
    padding: 3rem 0 1.5rem;
    background: #020617;
    border-top: 1px solid #1e293b;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 2rem;
    font-size: 0.85rem;
}

.footer p {
    color: var(--text-muted);
    max-width: 18rem;
    margin-top: 0.4rem;
}

.footer h4 {
    margin-bottom: 0.7rem;
}

.footer ul {
    list-style: none;
}

.footer li {
    margin-bottom: 0.4rem;
}

.footer a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer a:hover {
    color: #e0f2fe;
    transform: translateX(2px);
}

.footer-social {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.footer-social a {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast),
        box-shadow var(--transition-fast),
        border-color var(--transition-fast),
        background var(--transition-fast);
}

.footer-social a:hover {
    transform: translateY(-2px);
    background: radial-gradient(circle at top left,
            rgba(56, 189, 248, 0.22),
            transparent);
    border-color: rgba(56, 189, 248, 0.8);
    box-shadow: 0 10px 26px rgba(8, 47, 73, 0.9);
}

.footer-bottom {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 40;
}

.nav-overlay.show {
    opacity: 1;
    visibility: visible;
}


/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {

    .hero-grid,
    .about-grid,
    .why-grid,
    .cta-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 4rem;
    }

    .hero-image {
        order: -1;
    }

    .about-secondary {
        width: 55%;
        right: 10px;
        bottom: -16px;
    }

    .cta-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* MOBILE SIDEBAR NAV */
    .nav-toggle {
        display: flex;
        z-index: 60;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 270px;
        background: radial-gradient(circle at top left,
                rgba(15, 23, 42, 0.96),
                rgba(8, 47, 73, 0.98));
        backdrop-filter: blur(24px);
        border-left: 1px solid rgba(56, 189, 248, 0.4);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 4.5rem 1.8rem 1.8rem;
        gap: 1rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 55;
    }

    .nav.open {
        transform: translateX(0);
    }

    .nav a {
        width: 100%;
        padding: 0.4rem 0;
        font-size: 0.96rem;
    }

    .nav-cta {
        width: 100%;
        margin-top: 1.5rem;
        justify-content: center;
    }
}


@media (max-width: 600px) {
    .section {
        padding: 3.5rem 0;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-stats {
        gap: 1.6rem;
    }

    .cta-stats {
        grid-template-columns: 1fr;
    }
}