/* ==========================================================================
   DCPL Tech - Common Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Base & Global Styles
   -------------------------------------------------------------------------- */
body {
    background: linear-gradient(to right, #0f172a, #1e293b);
    color: #e5e7eb;
}

svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* --------------------------------------------------------------------------
   2. Background Animations & Node Geometry
   -------------------------------------------------------------------------- */
#animated-lines,
#curve-lines,
#box-shapes {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    pointer-events: none;
    z-index: 1;
}

#connecting-blocks-bg {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    pointer-events: none;
    z-index: -10;
}

.block-line {
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 1.5;
    fill: none;
}

.block-node {
    fill: rgba(255, 255, 255, 0.15);
}

/* --------------------------------------------------------------------------
   3. Navigation
   -------------------------------------------------------------------------- */
.scrolled-nav {
    background-color: rgba(10, 16, 30, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* --------------------------------------------------------------------------
   4. Micro-Interactions (Sparkles)
   -------------------------------------------------------------------------- */
.sparkle-element {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   5. Cards & Containers
   -------------------------------------------------------------------------- */
.resource-card,
.offshore-card,
.info-card {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(173, 216, 230, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover,
.offshore-card:hover,
.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 25px rgba(173, 216, 230, 0.4);
}

.info-card {
    display: flex;
    flex-direction: column;
}

.process-box {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(173, 216, 230, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(173, 216, 230, 0.5);
}

.process-number {
    font-size: 2.5rem;
    font-weight: bold;
    background-image: linear-gradient(to right, #FFA500, #D946EF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* --------------------------------------------------------------------------
   6. Sections & Form Inputs
   -------------------------------------------------------------------------- */
.bg-section-transparent {
    background-color: rgba(15, 23, 42, 0.8);
}

.form-input {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    color: #e5e7eb;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #D946EF;
    box-shadow: 0 0 10px rgba(217, 70, 239, 0.5);
}

/* --------------------------------------------------------------------------
   7. Hero Full-Cover Background Video & Animation Blending
   -------------------------------------------------------------------------- */
.hero-bg-video-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 65%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 65%, rgba(0, 0, 0, 0) 100%);
}

.hero-video-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.08s linear;
    mix-blend-mode: screen;
    filter: brightness(0.95) contrast(1.15) saturate(1.1);
}

.hero-video-layer.active {
    opacity: 0.65;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 45%, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.55) 70%, rgba(15, 23, 42, 0.95) 100%),
                linear-gradient(to bottom, rgba(15, 23, 42, 0.25) 0%, transparent 40%, rgba(15, 23, 42, 0.92) 100%);
    mix-blend-mode: multiply;
    pointer-events: none;
}
