:root {
    --glass-border: rgba(255, 255, 255, 1);
    --glass-shadow: 0 10px 40px -5px rgba(0, 0, 0, 0.05);
}

html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    margin: 0;
    background-color: #f8fafc;
    color: #334155;
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}


nav,
section,
footer,
.glass-panel {
    position: relative;
    z-index: 10;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* --- CANVASES --- */
canvas {
    display: block;
}

#canvas-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    /* Same level as background canvases */
    pointer-events: none;
    /* Let clicks pass through */
    opacity: 1 !important;
    /* Always visible */
}

#canvas-index {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    pointer-events: auto;
    transition: opacity 0.6s ease;
}

#canvas-services,
#canvas-projects,
#canvas-team,
#canvas-community,
#canvas-contact {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

/* Increase height for Products canvas on mobile only */
@media (max-width: 768px) {
    #canvas-projects {
        height: 130vh !important;
        /* Increases height to 130% of viewport */
        position: fixed;
        /* Keeps it in background */
        top: 0;
        left: 0;
        z-index: 0;
    }
}

/* UI Content Layer */
.ui-layer {
    position: relative;
    z-index: 10;
    pointer-events: none;
    width: 100%;
}


/* Navigation */
.nav-glass {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    z-index: 50;
    top: 0;
}

.nav-link {
    position: relative;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    transition: color 0.3s;
    padding-bottom: 4px;
    display: inline-block;
    text-decoration: none;
}

.nav-link:hover {
    color: #0f172a;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, #ec4899, #8b5cf6);
    transition: width 0.3s ease;
}

.nav-link.active-page {
    color: #0f172a;
    font-weight: 800;
}

.nav-link.active-page::after {
    width: 100%;
}

.contact-btn {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%) !important;
    color: white !important;
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4);
    transform: translateY(-2px);
}

.contact-btn.active-page {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

/* Mobile Menu */
#mobile-menu {
    transition: all 0.3s ease-in-out;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    margin-top: 0;
    padding-bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#mobile-menu.open {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
    margin-top: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Global Section Styling */
section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    pointer-events: none;
}

#metrics-section,
#team,
#testimonials {
    min-height: auto !important;
    display: block !important;
}

.content-wrapper {
    pointer-events: auto;
    width: 100%;
}

.hero-content {
    max-width: 700px;
    padding: 4rem 2rem;
    margin-top: auto;
    margin-bottom: auto;
}

@media (max-width: 1023px) {
    .hero-content {
        text-align: center;
        margin: 0 auto;
        padding-top: 8rem;
    }

    .hero-content h1 {
        font-size: 3rem;
        line-height: 1.1;
    }

    .hero-btn-group {
        justify-content: center;
    }
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 1);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 40px -5px rgba(0, 0, 0, 0.08);
    color: #334155;
}

.card-prism,
.card-prism-team {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.9);
    padding: 2rem;
    transition: all 0.4s ease;
    color: #334155;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 10px -1px rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
}

.card-prism-team {
    background: rgba(255, 255, 255, 0.6);
}

.card-prism:hover,
.card-prism-team:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.05);
    border-radius: 1.5rem;
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.95);
}

/* "View Services" / "Company Profile" (Outline) */
.btn-glass {
    display: inline-block;
    padding: 0.875rem 2rem;
    /* Gradient border using background-clip: padding-box for the fill and border-box for the gradient */
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)) padding-box, 
                linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%) border-box;
    border: 2px solid transparent;
    border-radius: 9999px;
    color: #334155;
    font-weight: 700;
    backdrop-filter: blur(12px);
    transition: all 0.3s;
}

.btn-glass:hover {
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)) padding-box, 
                linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%) border-box;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.15);
}

/* "Our Work" / "Contact" / "Send" (Solid Gradient) */
.btn-vibrant {
    background-image: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: white;
    padding: 0.875rem 2rem;
    font-weight: 700;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-vibrant:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.5);
    filter: brightness(1.1);
}

.input-prism {
    width: 100%;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    padding: 1rem;
    color: #1e293b;
    transition: all 0.3s;
}

.input-prism:focus {
    outline: none;
    background: rgba(255, 255, 255, 1);
    border-color: #ec4899;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.15);
}

.text-gradient {
    background: linear-gradient(to right, #be185d, #7c3aed, #0891b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Products Page */
.project-image-container {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}


/* Careers Page */
.job-row {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.job-row:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: #ec4899;
    transform: scale(1.01);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.1);
}

/* Specific content styling for privacy page */
.policy-content h2 {
    margin-top: 2rem;
}

.policy-content p {
    margin-bottom: 1rem;
}

.policy-content ul {
    margin-bottom: 1.5rem;
}

/* project pages */
.hero-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.4) 50%, rgba(15, 23, 42, 0.1) 100%);
}
