/* 
   hugme.lk - Premium Identity
   Palette: Soft Blues, Deep Navy, Warm Accents
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --color-navy: #1B2A4A;      /* Deep Navy */
    --color-primary: #3B71CA;   /* Soft/Professional Blue */
    --color-primary-subtle: rgba(59, 113, 202, 0.1);
    --color-accent: #FFA900;    /* Warm Accent (Amber/Gold) */
    --color-bg-light: #F8FAFC;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-light);
    color: #334155;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

/* Typography & Utility classes */
.text-navy {
    color: var(--color-navy) !important;
}

.bg-navy {
    background-color: var(--color-navy) !important;
}

.text-accent {
    color: var(--color-accent) !important;
}

.bg-accent {
    background-color: var(--color-accent) !important;
}

.text-primary {
    color: var(--color-primary) !important;
}

.bg-primary-subtle {
    background-color: var(--color-primary-subtle) !important;
}

/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

.slide-up-delay {
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.2s forwards;
}

.slide-up-delay-2 {
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.4s forwards;
}

/* Navbar Layering */
.app-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: all 0.3s ease;
}

.brand-logo {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

/* Hero Section with Video Overlay Mock */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    padding-top: 80px; /* Offset nav */
    overflow: hidden;
}

/* Simulated Video Background */
.hero-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    background: url('https://images.unsplash.com/photo-1544367567-0f2fcb046eeb?auto=format&fit=crop&q=80&w=1920') no-repeat center center;
    background-size: cover;
    z-index: 0;
    filter: blur(2px) contrast(1.1); /* Mocking subtle video movement base */
}

/* Darkening Overlay for High Impact Contrast */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(27, 42, 74, 0.85) 0%, rgba(27, 42, 74, 0.6) 100%);
    z-index: 1;
}

/* Custom Core Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.1) !important;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-card:hover .icon-circle {
    background-color: var(--color-primary) !important;
    color: white !important;
}

/* Forms & Inputs */
.form-control, .form-select {
    border: 1px solid #E2E8F0;
    padding: 0.75rem 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px var(--color-primary-subtle);
}

/* Divider component */
.divider {
    height: 4px;
    width: 60px;
    border-radius: 4px;
    margin-top: 1rem;
}

/* Utility to ensure z-indices play nice */
.z-1 { z-index: 1; }

.step-number {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    font-weight: 700;
}

/* ========================================================
   WOW EFFECTS (PREMIUM UPGRADES)
   ======================================================== */

/* 1. Glassmorphism */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.glass-dark {
    background: rgba(27, 42, 74, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 2. Floating / Tilting Micro-Animations for Cards */
.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(59, 113, 202, 0.2) !important;
}

.service-card .icon-circle {
    transition: all 0.5s ease;
}

.service-card:hover .icon-circle {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(59, 113, 202, 0.4);
}

/* 3. Glowing Buttons */
.btn-primary {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 113, 202, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 113, 202, 0.5);
    background-color: #2F5AA3;
    border-color: #2F5AA3;
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-navy);
    box-shadow: 0 4px 15px rgba(255, 169, 0, 0.3);
    border: none;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 169, 0, 0.5);
    background-color: #E69800;
}

/* 4. Mesh Gradient Backgrounds */
.mesh-bg-navy {
    background-color: var(--color-navy);
    background-image: 
        radial-gradient(at 0% 0%, rgba(59, 113, 202, 0.3) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(255, 169, 0, 0.15) 0px, transparent 50%);
}

.mesh-bg-light {
    background-color: var(--color-bg-light);
    background-image: 
        radial-gradient(at 100% 0%, rgba(59, 113, 202, 0.05) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(255, 169, 0, 0.05) 0px, transparent 50%);
}

/* 5. Scroll Reveal Animations (Intersection Observer Targets) */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* 6. Impact Counter Styling */
.impact-counter-section {
    background: linear-gradient(to right, var(--color-navy), #0F172A);
    border-top: 4px solid var(--color-accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    z-index: 10;
}

.counter-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(45deg, #FFF, #E2E8F0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

/* 7. Parallax Section */
.parallax-section {
    background-image: url('../images/site_bg.webp');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.parallax-overlay {
    background: linear-gradient(135deg, rgba(27, 42, 74, 0.9) 0%, rgba(59, 113, 202, 0.75) 100%);
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
}
