/* =========================================
   CSS Variables & Reset (Light Mode Premium)
   ========================================= */
   :root {
    color-scheme: light only; /* Block mobile browser forced dark mode over our light theme */

    /* Bright crisp background */
    --bg-light: #f8f9fa;
    --bg-pure: #ffffff;
    
    /* High contrast text */
    --text-main: #111827;
    --text-muted: #4b5563;
    
    /* White & blue brand palette */
    --blob-1: #1d4ed8; /* Blue */
    --blob-2: #3b82f6; /* Medium blue */
    --blob-3: #60a5fa; /* Light blue */
    --blob-4: #93c5fd; /* Pale blue */
    
    /* Advanced Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.9);
    --glass-shadow: rgba(0, 0, 0, 0.05);
    --glass-highlight: rgba(255, 255, 255, 1);
    
    --font-heading: 'Outfit', sans-serif;
    --font-sans: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    max-width: 100vw;
    overflow-x: hidden;
    /* Hide default cursor on desktop since we have a custom animated one */
    cursor: none;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    /* subtle pattern over the background color */
    background-image: radial-gradient(#dbeafe 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Treat links and buttons with no pointer so custom cursor shows up well */
a, button, .btn {
    cursor: none;
}

.scrolled-header {
    padding: 0.5rem 0 !important;
}

.scrolled-header .nav-content {
    background: rgba(255, 255, 255, 0.7) !important;
}

/* =========================================
   Custom Cursor
   ========================================= */
.custom-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 8px; height: 8px;
    background: var(--blob-1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    will-change: transform;
}

.custom-cursor-follower {
    position: fixed;
    top: 0; left: 0;
    width: 40px; height: 40px;
    border: 1.5px solid var(--blob-1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, border-color 0.3s ease, background 0.3s ease;
    will-change: transform;
}

/* Cursor hidden on touch devices */
@media (any-pointer: coarse) {
    .custom-cursor, .custom-cursor-follower {
        display: none;
    }
    html, a, button, .btn {
        cursor: auto;
    }
}

/* =========================================
   Typography & Utilities
   ========================================= */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Multi-color energetic gradient */
.gradient-text {
    background: linear-gradient(135deg, var(--blob-1), var(--blob-2), var(--blob-4));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 5s ease infinite alternate;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 99px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--blob-1);
    color: #fff;
    box-shadow: 0 10px 20px rgba(29, 78, 216, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(29, 78, 216, 0.35);
    background: #1e40af;
}

.btn-secondary {
    color: var(--text-main);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
}

/* =========================================
   Glassmorphism (Light Mode) + Dynamic Glow
   ========================================= */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px var(--glass-shadow), 
                inset 0 0 0 1px var(--glass-highlight);
    border-radius: 24px;
    position: relative;
    overflow: hidden; /* Contains the internal glowing spot */
}

/* Everything natively inside the glass-effect gets mapped a z-index so it sits *above* the glow */
.glass-effect > * {
    position: relative;
    z-index: 2;
}

/* The sharp, direct glowing effect tightly following the cursor */
.global-glow {
    position: fixed;
    top: 0; left: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(37, 99, 235, 0.55) 40%, transparent 80%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998; /* Directly above page content, right under the cursor */
    filter: blur(40px); /* Very soft edges */
    will-change: transform;
}

/* Hide global glow on mobile too where there is no physical cursor */
@media (any-pointer: coarse) {
    .global-glow {
        display: none;
    }
}


/* =========================================
   Dynamic Moving Animation (Blobs)
   ========================================= */
.bg-blobs {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
    /* Extra blur applied container-wide for perfect blending */
    filter: blur(80px);
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    /* mix-blend-mode removed to preserve light, vibrant overlapping aesthetics */
    transition: translate 0.2s ease-out; /* For mouse trailing */
    will-change: translate;
}

/* Blob 1: Violet */
.blob1 {
    width: 600px;
    height: 600px;
    background: var(--blob-1);
    top: -100px; left: -100px;
    animation: morph 12s ease-in-out infinite alternate, spin 20s linear infinite;
}

/* Blob 2: Pink */
.blob2 {
    width: 500px;
    height: 500px;
    background: var(--blob-2);
    top: 30%; right: -50px;
    animation: morph 15s ease-in-out infinite alternate-reverse, spin 25s linear infinite reverse;
}

/* Blob 3: Cyan */
.blob3 {
    width: 700px;
    height: 700px;
    background: var(--blob-3);
    bottom: -150px; left: 20%;
    animation: morph 10s ease-in-out infinite alternate, floatUp 20s ease-in-out infinite alternate;
}

/* Blob 4: Amber */
.blob4 {
    width: 400px;
    height: 400px;
    background: var(--blob-4);
    bottom: 20%; right: 20%;
    animation: morph 18s ease-in-out infinite alternate-reverse, floatUp 15s ease-in-out infinite alternate-reverse;
}

@keyframes morph {
    0%   { border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%; }
    50%  { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    100% { border-radius: 30% 70% 40% 60% / 50% 60% 30% 40%; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes floatUp {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-150px) scale(1.1); }
}

/* =========================================
   Header Navbar
   ========================================= */
header {
    position: fixed;
    top: 24px;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 100px; /* pill shape */
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
    color: var(--text-main);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0px; left: 0; width: 0; height: 2px;
    background: var(--blob-1);
    transition: width 0.3s ease;
    border-radius: 2px;
}

nav a:hover::after {
    width: 100%;
}

/* =========================================
   Hero Section
   ========================================= */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    width: 100%;
}

.hero-badge {
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--blob-1);
    display: inline-block;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 3rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* =========================================
   Products Section (Creative Layout)
   ========================================= */
.products-section {
    padding: 8rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    align-items: start;
}

.product-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.offset-card {
    margin-top: 4rem; /* Asymmetrical grid step down */
}

/* Card hover glow effect (top right accent) */
.card-bg-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    top: -50px; right: -50px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.15;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 0;
}

.product-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.product-card:hover .card-bg-glow {
    opacity: 0.6;
    transform: scale(2);
}

.logo-wrapper {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    padding: 25px;
    position: relative;
    z-index: 2;
}

.logo-wrapper img {
    width: 100%; height: 100%;
    object-fit: contain;
}

.product-info {
    position: relative;
    z-index: 2;
    flex-grow: 1;
}

.product-card h3 {
    font-size: 1.7rem;
    margin-bottom: 1rem;
}

.product-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.card-arrow {
    margin-top: 2rem;
    font-size: 1.5rem;
    color: var(--blob-1);
    transform: translateX(0);
    transition: transform 0.3s ease;
    align-self: flex-start;
}

.product-card:hover .card-arrow {
    transform: translateX(10px);
}

/* =========================================
   Mission Section
   ========================================= */
.mission-section {
    padding: 8rem 0;
}

.mission-container {
    display: flex;
    align-items: center;
    padding: 5rem 4rem;
    gap: 5rem;
    border-radius: 40px;
}

.mission-visual {
    flex: 0 0 35%;
    display: flex;
    justify-content: center;
}

.rotating-shape {
    width: 100%;
    max-width: 300px;
    animation: spinPath 40s linear infinite;
    filter: drop-shadow(0 20px 40px rgba(139, 92, 246, 0.3));
}

@keyframes spinPath {
    to { transform: rotate(360deg); }
}

.mission-text {
    flex: 1;
}

.mission-text h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.mission-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* =========================================
   Team Section
   ========================================= */
.team-section {
    padding: 8rem 0 10rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.team-card {
    text-align: center;
    padding: 3rem 2rem;
    transition: transform 0.4s ease;
}

.team-card:hover {
    transform: translateY(-10px);
}

.avatar-ring {
    width: 160px;
    height: 160px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, var(--blob-1), var(--blob-3));
    position: relative;
    z-index: 2;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 4px solid #fff;
    pointer-events: none;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.team-card h4 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.team-card .role {
    color: var(--text-muted);
    font-weight: 500;
}

/* =========================================
   Footer
   ========================================= */
footer {
    padding: 0 0 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 4rem;
    width: 100%;
}

.footer-brand .logo {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links p {
    color: var(--text-muted);
    text-align: center;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.contact-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-links a:hover {
    color: var(--blob-1);
}

/* =========================================
   Animations Utilities (Scroll Reveal)
   ========================================= */
.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.show {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* =========================================
   Complete Mobile Responsiveness overrides
   ========================================= */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .offset-card {
        margin-top: 0;
    }
    .hero-title {
        font-size: 4.5rem;
    }
    header {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .mission-container {
        flex-direction: column;
        padding: 2rem 1.5rem;
        text-align: center;
        gap: 2rem;
        width: 100%;
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        padding: 2rem 1rem;
    }
    .contact-links {
        align-items: center;
    }
    .nav-content {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1.5rem;
        border-radius: 20px;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
    header {
        top: 10px;
    }
    .container {
        padding: 0 1rem;
    }
    .section-header h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .section-header h2, .mission-text h2 {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .team-card, .product-card {
        padding: 1.5rem;
    }
    nav a {
        font-size: 0.9rem;
    }
    .mission-visual .rotating-shape {
        max-width: 200px;
    }
    .nav-content {
        padding: 1rem;
    }
    .footer-content {
        padding: 2rem 0.5rem;
    }
}
