/* =========================================
   DEVLORA AGENCY DESIGN SYSTEM
   8px Grid · Golden Ratio · Morph Edition
   ========================================= */

:root {
    /* Colors */
    --color-navy: #1D3557;
    --color-navy-dark: #0D1B2A;
    --color-azure: #3B82F6;
    --color-azure-light: #60A5FA;
    --color-azure-glow: rgba(59, 130, 246, 0.45);
    --color-white: #FFFFFF;
    --color-off-white: #F9FAFB;
    --color-light-blue: #EFF6FF;
    --color-text: #334155;
    --color-text-muted: #64748B;

    /* Grid & Spacing (Base 8px) */
    --grid-1: 8px;
    --grid-2: 16px;
    --grid-3: 24px;
    --grid-4: 32px;
    --grid-5: 40px;
    --grid-6: 48px;
    --grid-8: 64px;
    --grid-10: 80px;
    --grid-12: 96px;
    --grid-16: 128px;

    /* Typography (Golden Ratio: 1.618, Base 16px) */
    --font-base: 16px;
    --font-h1: clamp(48px, 7vw, 84px);
    --font-h2: clamp(28px, 4vw, 56px);
    --font-h3: clamp(22px, 3vw, 36px);
    --font-h4: clamp(16px, 2vw, 22px);

    /* Layout */
    --container-max: 1280px;

    /* Effects */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow-soft: 0 4px 20px rgba(29, 53, 87, 0.06);
    --shadow-dramatic: 0 20px 60px rgba(0, 0, 0, 0.18), 0 8px 16px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 40px var(--color-azure-glow);

    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-morph: all 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html.smooth-scroll { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--color-off-white);
    color: var(--color-text);
    font-size: var(--font-base);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* replaced by custom cursor */
}

body.loading { overflow: hidden; }

.matte-finish {
    background-image: radial-gradient(ellipse at top, #f0f4ff 0%, var(--color-off-white) 70%);
    background-attachment: fixed;
}

h1, h2, h3, h4 {
    color: var(--color-navy);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: var(--grid-3);
}

h1 { font-size: var(--font-h1); }
h2 { font-size: var(--font-h2); }
h3 { font-size: var(--font-h3); }
h4 { font-size: var(--font-h4); }

h2 em, h1 em { font-style: italic; color: var(--color-azure); -webkit-text-fill-color: inherit; }

p { margin-bottom: var(--grid-3); color: var(--color-text-muted); }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--grid-3);
}

.section-padding { padding: var(--grid-12) 0; }
.text-center { text-align: center; }
.text-white { color: var(--color-white); }
.text-white-muted { color: rgba(255,255,255,0.7); }

/* =========================================
   PAGE LOADER (Devlora SVG Animation)
   ========================================= */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F0F4FF;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* ----- SVG ----- */
.ldr-logo-svg {
    width: 200px;
    height: 200px;
}

/* Spinning rings */
.ldr-ring-outer {
    transform-origin: 110px 110px;
    animation: ldr-spin-ring 3s linear infinite;
}
.ldr-ring-dashed {
    transform-origin: 110px 110px;
    animation: ldr-spin-ring-reverse 5s linear infinite;
}

/* Pulsing logo centre */
.ldr-logo-inner {
    transform-origin: 110px 110px;
    animation: ldr-pulse-logo 2s ease-in-out infinite;
}

/* Blinking cursor inside logo */
.ldr-cursor-blink { animation: ldr-blink-cursor 1s step-end infinite; }

/* Animated underline stroke */
.ldr-underline-anim {
    stroke-dasharray: 136;
    stroke-dashoffset: 136;
    animation: ldr-draw-underline 1.8s ease-out infinite alternate;
}

/* Tagline fade */
.ldr-tagline-text { animation: ldr-fade-in-text 1.5s ease-in-out infinite alternate; }

/* ----- Label & dots ----- */
.ldr-label {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #5C6BC0;
    letter-spacing: 3px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.ldr-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #3D5AFE;
    margin-left: 4px;
}

.ldr-dot1 { animation: ldr-fade-dots 1.4s ease-in-out infinite 0s; }
.ldr-dot2 { animation: ldr-fade-dots 1.4s ease-in-out infinite 0.2s; }
.ldr-dot3 { animation: ldr-fade-dots 1.4s ease-in-out infinite 0.4s; }

/* ----- Progress bar (JS-driven width) ----- */
.ldr-progress-wrap {
    width: 180px;
    height: 3px;
    background: #C5CAE9;
    border-radius: 2px;
    margin-top: 14px;
    overflow: hidden;
}

.ldr-progress-bar {
    height: 100%;
    width: 0%;
    background: #3D5AFE;
    border-radius: 2px;
    transition: width 0.12s ease;
}

/* Morph-out overlay that collapses on reveal */
.loader-morph-overlay {
    position: absolute;
    inset: 0;
    background: #F0F4FF;
    clip-path: ellipse(100% 100% at 50% 0%);
    transition: clip-path 1.2s cubic-bezier(0.76, 0, 0.24, 1);
    pointer-events: none;
}

.loader-morph-overlay.reveal {
    clip-path: ellipse(0% 0% at 50% 0%);
}

/* ----- Keyframes ----- */
@keyframes ldr-spin-ring {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes ldr-spin-ring-reverse {
    from { transform: rotate(0deg); }
    to   { transform: rotate(-360deg); }
}
@keyframes ldr-pulse-logo {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.06); }
}
@keyframes ldr-blink-cursor {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}
@keyframes ldr-fade-dots {
    0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
    40%           { opacity: 1;   transform: scale(1); }
}
@keyframes ldr-draw-underline {
    0%   { stroke-dashoffset: 136; }
    100% { stroke-dashoffset: 0; }
}
@keyframes ldr-fade-in-text {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* =========================================
   AURORA BACKGROUND (Morphing Blobs)
   ========================================= */
.aurora-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
    animation: morphBlob linear infinite;
    will-change: transform, border-radius;
}

.blob-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, #3B82F6, #1D3557);
    top: -200px;
    left: -150px;
    animation-duration: 18s;
    animation-name: morphBlob1;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #60A5FA, #3B82F6);
    bottom: 10%;
    right: -100px;
    animation-duration: 22s;
    animation-name: morphBlob2;
    opacity: 0.12;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #1D3557, #0D1B2A);
    top: 40%;
    left: 40%;
    animation-duration: 28s;
    animation-name: morphBlob3;
    opacity: 0.1;
}

@keyframes morphBlob1 {
    0%   { transform: translate(0, 0)   scale(1);    border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%; }
    25%  { transform: translate(80px, 60px) scale(1.1); border-radius: 40% 60% 30% 70% / 60% 40% 60% 40%; }
    50%  { transform: translate(40px, 120px) scale(0.95); border-radius: 70% 30% 50% 50% / 40% 70% 30% 60%; }
    75%  { transform: translate(-40px, 60px) scale(1.05); border-radius: 30% 70% 60% 40% / 70% 30% 70% 30%; }
    100% { transform: translate(0, 0)   scale(1);    border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%; }
}

@keyframes morphBlob2 {
    0%   { transform: translate(0, 0)    scale(1);    border-radius: 40% 60% 30% 70% / 50% 40% 60% 50%; }
    33%  { transform: translate(-60px, -80px) scale(1.15); border-radius: 70% 30% 60% 40% / 30% 70% 40% 60%; }
    66%  { transform: translate(40px, -40px) scale(0.9);  border-radius: 50% 50% 40% 60% / 60% 50% 50% 40%; }
    100% { transform: translate(0, 0)    scale(1);    border-radius: 40% 60% 30% 70% / 50% 40% 60% 50%; }
}

@keyframes morphBlob3 {
    0%   { transform: translate(0, 0)     scale(1);    border-radius: 50% 50% 60% 40% / 60% 40% 60% 40%; }
    50%  { transform: translate(-80px, 100px) scale(1.2); border-radius: 30% 70% 40% 60% / 40% 60% 30% 70%; }
    100% { transform: translate(0, 0)     scale(1);    border-radius: 50% 50% 60% 40% / 60% 40% 60% 40%; }
}

/* =========================================
   CUSTOM CURSOR
   ========================================= */
.cursor-dot, .cursor-ring {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9000;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--color-azure);
}

.cursor-ring {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(59, 130, 246, 0.5);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, transform 0.08s ease;
}

.cursor-ring.hovering {
    width: 56px;
    height: 56px;
    border-color: var(--color-azure);
    background: rgba(59, 130, 246, 0.06);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--grid-2) var(--grid-4);
    border-radius: 99px;
    font-weight: 600;
    font-size: var(--font-base);
    transition: var(--transition-smooth);
    cursor: none;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.15);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    border-radius: inherit;
}

.btn:hover::after { transform: scaleX(1); }

.btn-primary {
    background-color: var(--color-azure);
    color: var(--color-white);
}

.btn-primary:hover { background-color: #2563EB; }

.glow-btn { box-shadow: var(--shadow-glow); }
.glow-btn:hover {
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.7);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-navy);
    box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
    box-shadow: 0 12px 24px rgba(29, 53, 87, 0.1);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-navy);
    border-color: rgba(29, 53, 87, 0.2);
}

.btn-outline:hover {
    border-color: var(--color-navy);
    background-color: rgba(29, 53, 87, 0.04);
}

.btn-full { width: 100%; }

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: linear-gradient(165deg, rgba(13, 27, 42, 0.8) 0%, rgba(29, 53, 87, 0.8) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    padding: var(--grid-2) 0;
}

.navbar.scrolled {
    background: rgba(13, 27, 42, 0.95);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    z-index: 200;
    position: relative;
    display: inline-flex;
    align-items: center;
}

.brand-logo-img {
    height: 56px;
    width: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.brand-logo:hover .brand-logo-img {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    border-color: var(--color-azure);
}

.nav-links {
    display: flex;
    gap: var(--grid-4);
}

.nav-links a {
    font-weight: 500;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-azure);
    transition: width 0.3s ease;
    border-radius: 99px;
}

.nav-links a:hover { color: var(--color-white); }
.nav-links a:hover::after { width: 100%; }

.nav-right {
    display: flex;
    align-items: center;
    gap: var(--grid-3);
}

.nav-right .btn-outline {
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.2);
    padding: 10px 24px;
}

.nav-right .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-white);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: none;
    padding: 4px;
    z-index: 200;
    position: relative;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-navy);
    border-radius: 99px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.hamburger.open span:nth-child(2) { transform: rotate(-45deg) translate(4px, -5px); }

/* Mobile nav overlay */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: var(--color-navy-dark);
    z-index: 150;
    display: flex;
    align-items: center;
    padding-left: 10vw;
    clip-path: circle(0% at calc(100% - 50px) 50px);
    transition: clip-path 0.8s cubic-bezier(0.76, 0, 0.24, 1);
    pointer-events: none;
}

.mobile-nav-overlay.open {
    clip-path: circle(150% at calc(100% - 50px) 50px);
    pointer-events: all;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--grid-3);
}

.mobile-nav-item {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    color: rgba(255,255,255,0.15);
    letter-spacing: -0.04em;
    transition: color 0.3s ease;
    display: flex;
    align-items: baseline;
    gap: var(--grid-3);
    line-height: 1.1;
}

.mobile-nav-item span {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,0.3);
}

.mobile-nav-item:hover { color: var(--color-azure-light); }

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: var(--grid-16);
    position: relative;
    overflow: hidden;
    background: linear-gradient(165deg, #0D1B2A 0%, #1D3557 45%, #122136 100%);
}

/* Subtle dot-grid overlay */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(59, 130, 246, 0.12) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

.hero-content-wrapper {
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: var(--grid-10);
}

/* Eyebrow tag */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: var(--grid-4);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 6px 16px;
    border-radius: 99px;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.04);
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    background: var(--color-azure);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    margin-bottom: var(--grid-2);
    z-index: 2;
    position: relative;
    font-size: var(--font-h1);
    line-height: 1.0;
    color: var(--color-white);
}

.gradient-text-blue {
    background: linear-gradient(135deg, #93C5FD 0%, #3B82F6 50%, #60A5FA 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* -------  MORPHING TEXT  ------- */
.hero-morph-text {
    font-size: clamp(24px, 4vw, 52px);
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: var(--grid-4);
    min-height: 1.3em;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.morph-word {
    display: block;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateY(0) scale(1);
    opacity: 1;
    filter: blur(0px);
}

.morph-word.out {
    transform: translateY(-40px) scale(0.9);
    opacity: 0;
    filter: blur(8px);
}

.morph-word.in {
    transform: translateY(40px) scale(0.9);
    opacity: 0;
    filter: blur(8px);
}

/* -------------------------------- */

.hero-subtitle {
    font-size: clamp(15px, 2vw, 20px);
    max-width: 560px;
    margin: 0 auto var(--grid-6);
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: var(--grid-2);
    justify-content: center;
    z-index: 2;
    position: relative;
    flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.scroll-indicator span {
    font-size: 11px;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    animation: fadeArrow 2.5s ease infinite;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(59,130,246,0.7), transparent);
    animation: scrollDown 2.5s ease infinite;
}

@keyframes scrollDown {
    0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
    50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
    100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

@keyframes fadeArrow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* SVG Morph Divider at hero bottom */
.hero-morph-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 5;
    line-height: 0;
}

.hero-morph-divider svg {
    width: 100%;
    height: auto;
    display: block;
}

.morph-path {
    animation: svgMorphPath 8s ease-in-out infinite alternate;
}

@keyframes svgMorphPath {
    0%   { d: path("M0,80 C360,140 1080,0 1440,80 L1440,120 L0,120 Z"); }
    33%  { d: path("M0,40 C480,120 960,20 1440,60 L1440,120 L0,120 Z"); }
    66%  { d: path("M0,100 C300,20 1140,110 1440,40 L1440,120 L0,120 Z"); }
    100% { d: path("M0,60 C480,0 960,120 1440,60 L1440,120 L0,120 Z"); }
}

/* =========================================
   TRUST BAR
   ========================================= */
.trust-bar {
    padding: var(--grid-5) 0;
    background: var(--color-white);
    overflow: hidden;
    position: relative;
    z-index: 5;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.scrolling-wrapper { width: 100%; display: flex; }

.scrolling-content {
    display: flex;
    animation: scrollLogos 30s linear infinite;
    gap: var(--grid-8);
    padding: 0 var(--grid-4);
    will-change: transform;
}

.trust-logo {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-navy);
    opacity: 0.2;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: opacity 0.3s;
}

.trust-logo:hover { opacity: 0.6; }

@keyframes scrollLogos {
    0%   { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - (var(--grid-8)/2))); }
}

/* =========================================
   SECTION COMMON
   ========================================= */
.section-header {
    max-width: 640px;
    margin: 0 auto var(--grid-8);
}

.section-eyebrow {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-azure);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: var(--grid-2);
}

.section-title { font-size: var(--font-h2); }
.section-desc { font-size: clamp(16px, 2vw, 20px); }

.grid { display: grid; gap: var(--grid-4); }

/* =========================================
   SERVICES
   ========================================= */
.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.service-card {
    background: var(--color-white);
    padding: var(--grid-6);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(59, 130, 246, 0.08);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.service-card-inner { position: relative; z-index: 2; }

/* Morphing blob on hover inside card */
.card-morph-blob {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59,130,246,0.15), transparent);
    border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
    bottom: -80px;
    right: -60px;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: 1;
}

.service-card:hover .card-morph-blob {
    border-radius: 40% 60% 30% 70% / 60% 40% 70% 30%;
    transform: scale(1.4) translate(-20px, -20px);
    opacity: 0.8;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dramatic);
    border-color: rgba(59, 130, 246, 0.2);
}

.service-icon {
    width: var(--grid-8);
    height: var(--grid-8);
    background: var(--color-light-blue);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--grid-4);
    color: var(--color-azure);
    transition: var(--transition-morph);
}

.service-card:hover .service-icon {
    background: var(--color-azure);
    color: var(--color-white);
    border-radius: 50%;
    transform: rotate(-8deg) scale(1.1);
}

.clean-list li {
    display: flex;
    align-items: center;
    margin-bottom: var(--grid-1);
    font-weight: 500;
    color: var(--color-text);
    font-size: 15px;
}

.clean-list span {
    color: var(--color-azure);
    margin-right: var(--grid-2);
    font-weight: bold;
}

/* =========================================
   PHILOSOPHY STRIP
   ========================================= */
.philosophy-strip {
    background: var(--color-navy-dark);
    position: relative;
    overflow: hidden;
}

.philosophy-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(59,130,246,0.15) 0%, transparent 60%);
}

.philosophy-inner {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: var(--grid-8);
    align-items: center;
    position: relative;
    z-index: 2;
}

.philosophy-quote {
    font-size: clamp(20px, 3vw, 36px);
    font-weight: 600;
    color: var(--color-white);
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 0;
}

.philosophy-quote em {
    color: var(--color-azure-light);
    font-style: italic;
}

.philosophy-line {
    background: rgba(255,255,255,0.1);
    height: 100%;
    min-height: 80px;
}

.philosophy-stats {
    display: flex;
    gap: var(--grid-6);
    justify-content: center;
}

.stat-item { text-align: center; }

.stat-number {
    display: block;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-number em {
    font-style: normal;
    color: var(--color-azure);
}

.stat-item p {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0;
}

/* =========================================
   PORTFOLIO SLIDER
   ========================================= */
.portfolio-slider-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 0 0 var(--grid-8);
    overflow: hidden;
    position: relative;
    z-index: 5;
    perspective: 1200px;
}

.portfolio-slider {
    display: flex;
    gap: var(--grid-6);
    padding: var(--grid-2) 20vw var(--grid-8);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
}

.portfolio-slider:active { cursor: grabbing; }
.portfolio-slider::-webkit-scrollbar { display: none; }

.slider-card {
    flex: 0 0 auto;
    width: clamp(280px, 30vw, 400px);
    height: clamp(400px, 48vh, 560px);
    border-radius: var(--radius-lg);
    background-color: var(--color-light-blue);
    background-size: cover;
    background-position: center;
    position: relative;
    scroll-snap-align: center;
    border: 1px solid rgba(255,255,255,0.3);
    transform-style: preserve-3d;
    transform: rotateY(-12deg) translateZ(-40px) scale(0.92);
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), border-radius 0.7s ease;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.slider-card:hover {
    transform: rotateY(0deg) translateZ(80px) scale(1.04);
    box-shadow: 0 40px 80px rgba(29, 53, 87, 0.3), 0 0 0 3px rgba(59,130,246,0.4);
    z-index: 10;
    border-radius: var(--radius-md); /* subtle morph of radius */
}

.slider-card-label {
    position: absolute;
    top: var(--grid-3);
    left: var(--grid-3);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.7);
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(8px);
    padding: 4px 12px;
    border-radius: 99px;
    border: 1px solid rgba(255,255,255,0.15);
    z-index: 5;
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.4s ease 0.1s;
}

.slider-card:hover .slider-card-label {
    opacity: 1;
    transform: translateY(0);
}

.slider-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--grid-4);
    background: linear-gradient(to top, rgba(13, 27, 42, 0.95) 0%, rgba(13, 27, 42, 0.5) 60%, transparent 100%);
    color: var(--color-white);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slider-card:hover .slider-card-content {
    opacity: 1;
    transform: translateY(0);
}

.slider-card-content h4 {
    color: var(--color-white);
    margin-bottom: 4px;
    font-size: var(--font-h4);
}

.slider-card-content p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 0;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Gradient masks */
.portfolio-slider-container::before,
.portfolio-slider-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 12vw;
    z-index: 10;
    pointer-events: none;
}

.portfolio-slider-container::before {
    left: 0;
    background: linear-gradient(to right, var(--color-off-white), transparent);
}

.portfolio-slider-container::after {
    right: 0;
    background: linear-gradient(to left, var(--color-off-white), transparent);
}

/* Slider dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: var(--grid-4);
    position: relative;
    z-index: 15;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: rgba(29,53,87,0.2);
    border: none;
    cursor: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dot.active {
    width: 24px;
    background: var(--color-azure);
}

/* Card Images */
.img-dashboard { background-image: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=1200&q=80'); }
.img-code      { background-image: url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?auto=format&fit=crop&w=800&q=80'); }
.img-mobile    { background-image: url('https://images.unsplash.com/photo-1615800098774-706f9478e58a?auto=format&fit=crop&w=800&q=80'); }
.img-4         { background-image: url('https://images.unsplash.com/photo-1507238692062-5a042e9eac88?auto=format&fit=crop&w=800&q=80'); }
.img-5         { background-image: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=800&q=80'); }

/* =========================================
   PRICING
   ========================================= */
.pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: center;
}

.pricing-card {
    background: var(--color-white);
    padding: var(--grid-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}

.pricing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at bottom right, rgba(59,130,246,0.07), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: inherit;
    pointer-events: none;
}

.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-dramatic); }
.pricing-card:hover::before { opacity: 1; }

.pricing-card.highlighted {
    border: 2px solid var(--color-azure);
    box-shadow: var(--shadow-glow);
    padding: var(--grid-8) var(--grid-6);
    z-index: 2;
}

.highlight-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-azure);
    color: var(--color-white);
    padding: 6px 18px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.pricing-header {
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: var(--grid-4);
    margin-bottom: var(--grid-4);
}

.price {
    font-size: var(--font-h2);
    font-weight: 700;
    color: var(--color-navy);
}

.price span {
    font-size: var(--font-base);
    color: var(--color-text-muted);
    font-weight: 400;
}

.pricing-card .clean-list { margin-bottom: var(--grid-6); }

/* =========================================
   FINAL CTA
   ========================================= */
.final-cta {
    background-color: var(--color-navy-dark);
    margin-top: var(--grid-12);
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.2), transparent 65%);
    border-radius: 50%;
    animation: morphBlob1 20s ease infinite;
}

.cta-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--grid-8);
    align-items: center;
    background: rgba(255,255,255,0.03);
    padding: var(--grid-8);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.06);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.sleek-form {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    padding: var(--grid-5);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.08);
}

.form-group {
    position: relative;
    margin-bottom: var(--grid-4);
}

.form-group input {
    width: 100%;
    padding: 16px 0 8px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: var(--color-white);
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.form-group input:focus {
    outline: none;
    border-bottom-color: var(--color-azure);
}

.form-group label {
    position: absolute;
    top: 16px;
    left: 0;
    color: rgba(255,255,255,0.4);
    font-size: 16px;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label {
    top: -4px;
    font-size: 12px;
    color: var(--color-azure);
}

/* =========================================
   FOOTER
   ========================================= */
.section-header {
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.footer {
    padding-top: var(--grid-8);
    position: relative;
    z-index: 2;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--grid-3);
    padding-top: var(--grid-4);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--grid-2);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-white);
    transition: var(--transition-smooth);
}

.footer-brand:hover {
    color: var(--color-azure-light);
}

.footer-logo-img {
    height: 36px;
    width: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.footer-brand:hover .footer-logo-img {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--color-azure-light);
}

.footer-copy {
    font-size: 13px;
    color: rgba(255,255,255,0.25);
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    gap: var(--grid-4);
}

.footer-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.3);
    transition: color 0.3s;
}

.footer-links a:hover { color: rgba(255,255,255,0.7); }

/* =========================================
   SCROLL REVEAL ANIMATIONS
   ========================================= */
.reveal-fade, .reveal-slide-up, .reveal-text, .reveal-scale {
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.9s ease;
    filter: blur(4px);
}

.reveal-slide-up  { transform: translateY(50px); }
.reveal-text      { transform: translateY(24px); }
.reveal-scale     { transform: scale(0.88); }

.active.reveal-fade,
.active.reveal-slide-up,
.active.reveal-text,
.active.reveal-scale {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
}

.active.reveal-scale { transform: scale(1); }

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.25s; }
.delay-3 { transition-delay: 0.4s; }
.delay-4 { transition-delay: 0.55s; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .philosophy-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .philosophy-line { display: none; }
    .philosophy-stats { justify-content: center; }
    .cta-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    
    .hero-title { font-size: clamp(42px, 12vw, 72px); }
    .hero-morph-text { font-size: clamp(20px, 6vw, 36px); }
    
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }

    body { cursor: auto; }
    .cursor-dot, .cursor-ring { display: none; }

    /* CTA Contact Section */
    .final-cta { margin-top: var(--grid-6); }

    .cta-wrapper {
        padding: var(--grid-4);
        gap: var(--grid-4);
    }

    .cta-content .section-title {
        font-size: clamp(24px, 7vw, 36px);
    }

    .cta-content .section-desc {
        font-size: 14px;
    }

    .sleek-form {
        padding: var(--grid-4);
    }

    .form-group input {
        font-size: 15px;
        padding: 14px 0 6px;
    }

    .form-group label {
        font-size: 14px;
    }

    .btn-full {
        padding: 14px 20px;
        font-size: 15px;
        white-space: nowrap;
    }
}
