/* =====================================================================
   GLOBAL RESET & BASE
   ===================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

:root {
    /* ================= Brand Colours ================= */
    --clr-primary-blue: #0066CC;
    --clr-primary-teal: #00B4D8;
    --clr-accent-cyan: #00F5FF;

    /* ================= Surface Colours =============== */
    --clr-bg-dark: #0A1128;
    --clr-bg-glass: rgba(255, 255, 255, 0.02);
    --clr-bg-glass-hover: rgba(255, 255, 255, 0.05);

    /* ================= Text Colours ================== */
    --clr-text-main: #F8F9FA;
    --clr-text-muted: rgba(248, 249, 250, 0.7);
    --clr-text-subtle: rgba(248, 249, 250, 0.5);

    /* ================= Borders ======================= */
    --clr-border-soft: rgba(0, 180, 216, 0.1);
    --clr-border-strong: rgba(255, 255, 255, 0.1);

    /* ================= Effects ======================= */
    --blur-glass: 10px;
    --radius-sm: 8px;
    --radius-md: 12px;

    /* ================= Transitions =================== */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--clr-bg-dark);
    color: var(--clr-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Focus Accessibility */
a:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--clr-accent-cyan);
    outline-offset: 3px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =====================================================================
   NAVIGATION
   ===================================================================== */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 17, 40, 0.95);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
    z-index: 1000;
    border-bottom: 1px solid var(--clr-border-soft);
}

@supports not (backdrop-filter: blur(10px)) {
    nav {
        background: #0A1128;
    }
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-text-main);
    text-decoration: none;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--clr-text-main);
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: color var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--clr-accent-cyan);
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--clr-primary-blue), var(--clr-primary-teal));
    transition: width var(--transition-base);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* =====================================================================
   HERO SECTION
   ===================================================================== */

.hero {
    min-height: 100vh;
    padding: 6rem 2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.hero {
    position: relative;
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-canvas canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 2;
}


.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 102, 204, 0.15), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 180, 216, 0.15), transparent 50%);
    animation: pulse 8s ease-in-out infinite;
    will-change: opacity;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    max-width: 1200px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--clr-primary-blue), var(--clr-primary-teal), var(--clr-accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--clr-text-muted);
    margin: 0 auto 2rem;
    max-width: 65ch;
}

/* =====================================================================
   BUTTONS
   ===================================================================== */

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-base), box-shadow var(--transition-base), color var(--transition-base), background var(--transition-base);
    cursor: pointer;
    will-change: transform;
}

.btn-primary {
    background: linear-gradient(135deg, var(--clr-primary-blue), var(--clr-primary-teal));
    color: #ffffff;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 180, 216, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--clr-primary-teal);
    border: 2px solid var(--clr-primary-teal);
}

.btn-secondary:hover {
    background: var(--clr-primary-teal);
    color: #ffffff;
}

/* =====================================================================
   SERVICES
   ===================================================================== */

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    max-width: 65ch;
    margin: 0 auto;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--clr-bg-glass);
    border: 1px solid var(--clr-border-soft);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-base), background var(--transition-base), border-color var(--transition-base);
    will-change: transform;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--clr-primary-blue), var(--clr-primary-teal));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-5px);
    background: var(--clr-bg-glass-hover);
    border-color: var(--clr-primary-teal);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--clr-primary-teal);
}

.service-card p {
    color: var(--clr-text-muted);
    margin-bottom: 1rem;
}

.service-card a {
    color: var(--clr-accent-cyan);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap var(--transition-base);
}

.service-card a:hover {
    gap: 1rem;
}

/* =====================================================================
   TRUST SECTION
   ===================================================================== */

.trust-section {
    padding: 6rem 2rem;
    background: var(--clr-bg-glass);
}

.trust-content {
    max-width: 1400px;
    margin: 0 auto;
}

.trust-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--clr-primary-blue), var(--clr-primary-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
}

/* =====================================================================
   FOOTER
   ===================================================================== */

footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 3rem 2rem 1rem;
    border-top: 1px solid var(--clr-border-soft);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    color: var(--clr-primary-teal);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section a {
    display: block;
    padding: 0.5rem 0;
    color: var(--clr-text-muted);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-section a:hover {
    color: var(--clr-accent-cyan);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--clr-border-strong);
    color: var(--clr-text-subtle);
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

@media (min-width: 1600px) {
    .hero-content {
        max-width: 1400px;
    }
}
/* ============================================================
   DARK-MODE OPTIMISED SERVICE ICONS
   ============================================================ */

.service-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.5rem;

    display: flex;
    align-items: center;
    justify-content: center;

    /* Contrast anchor */
    background:
        radial-gradient(
            circle at top left,
            rgba(0, 245, 255, 0.22),
            rgba(0, 102, 204, 0.12)
        );

    border-radius: 14px;

    box-shadow:
        inset 0 0 0 1px rgba(0, 245, 255, 0.22),
        0 10px 24px rgba(0, 0, 0, 0.45);
}

.service-icon svg {
    width: 28px;
    height: 28px;

    stroke-width: 1.9;
    vector-effect: non-scaling-stroke;

    /* Default dark-mode safe */
    stroke: url(#svc-gradient);
    fill: rgba(0, 245, 255, 0.10);

    transition:
        transform 0.35s ease,
        fill 0.35s ease,
        stroke 0.35s ease;
}

.service-card:hover .service-icon svg {
    transform: scale(1.15);
    fill: rgba(0, 245, 255, 0.22);
}

.service-card:hover .service-icon {
    box-shadow:
        inset 0 0 0 1px rgba(0, 245, 255, 0.45),
        0 14px 36px rgba(0, 180, 216, 0.55);
}
