:root {
    --bg-dark: #050b11;
    --cyan-primary: #00f0ff;
    --cyan-secondary: #00b4d8;
    --cyan-glow: rgba(0, 240, 255, 0.45);
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Ambient Radial Glows */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
}

.top-left-glow {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.12), transparent 70%);
    top: -100px;
    left: -100px;
}

.center-cyan-glow {
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.14) 0%, rgba(5, 11, 17, 0) 70%);
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.bottom-glow {
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.08), transparent 70%);
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
}

/* Sparks & Dust Particle Canvas */
#sparks-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Top Navbar */
.navbar {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 3.5rem;
    max-width: 1440px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--text-white);
}

.brand-logo {
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.5));
    animation: logoGlowPulse 4s infinite alternate ease-in-out;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    color: #ffffff;
}

.logo-sub {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--cyan-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.75rem;
}

.nav-item {
    font-size: 0.92rem;
    font-weight: 500;
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.25s ease, text-shadow 0.25s ease;
    position: relative;
    padding: 0.25rem 0;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyan-primary);
    box-shadow: 0 0 8px var(--cyan-primary);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item:hover,
.nav-item.active {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

.btn-cyan-header {
    background: transparent;
    border: 1.8px solid var(--cyan-primary);
    color: var(--cyan-primary);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.65rem 1.6rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.btn-cyan-header:hover {
    background: var(--cyan-primary);
    color: #04090e;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.55);
    transform: translateY(-2px);
}

/* Hero Container */
.hero-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1.5rem 3.5rem;
    min-height: calc(100vh - 100px);
    justify-content: flex-start;
}

/* Animated Crane Hanging Assembly */
.crane-assembly {
    position: relative;
    width: 130px;
    height: 280px;
    transform-origin: top center;
    animation: pendulumSway 5.5s infinite ease-in-out;
    margin-bottom: -50px;
    z-index: 15;
    pointer-events: none;
}

/* Vertical Steel Cables extending to top of screen */
.crane-cable {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 120px;
    background: repeating-linear-gradient(
        to bottom,
        #64748b 0px,
        #64748b 3px,
        #334155 3px,
        #334155 6px
    );
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

.crane-cable::before,
.crane-cable::after {
    content: '';
    position: absolute;
    width: 1.5px;
    height: 100%;
    top: 0;
    background: inherit;
}

.crane-cable::before {
    left: -6px;
}

.crane-cable::after {
    right: -6px;
}

.crane-head {
    position: relative;
    width: 130px;
    height: 175px;
}

.crane-svg {
    display: block;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.7));
}

/* Rigging Wires to letter D */
.rigging-lines {
    position: absolute;
    top: 154px;
    left: 65px;
    width: 0;
    height: 0;
}

.wire-left, .wire-right {
    position: absolute;
    top: 0;
    height: 48px;
    width: 1.5px;
    background: #94a3b8;
    transform-origin: top center;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}

.wire-left {
    transform: rotate(24deg);
    left: 0;
}

.wire-right {
    transform: rotate(-24deg);
    left: 0;
}

/* Suspended Letter D */
.suspended-d {
    position: absolute;
    top: 196px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: clamp(4.5rem, 9.5vw, 7.8rem);
    font-weight: 900;
    line-height: 0.9;
    color: #ffffff;
    user-select: none;
    transform-origin: top center;
    animation: letterDSway 5.5s infinite ease-in-out;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.8));
    display: flex;
    justify-content: center;
}

.d-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.25), transparent 70%);
    filter: blur(12px);
    z-index: -1;
}

/* Typography Stage: "UN [D] ER" + "CONSTRUCTION" */
.construction-typography {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 2rem;
    z-index: 10;
}

.under-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: clamp(4.5rem, 9.5vw, 7.8rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: 0.03em;
    color: #ffffff;
}

.letter-char {
    display: inline-block;
    position: relative;
    z-index: 5;
    text-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
}

/* Spacing slot reserved for the suspended swinging D */
.hanging-space-slot {
    width: clamp(3.4rem, 7.2vw, 5.8rem);
    height: 10px;
    display: inline-block;
}

/* Hazard Diagonal Stripes Accent */
.hazard-stripes-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(260px, 45vw, 420px);
    height: clamp(100px, 16vw, 150px);
    z-index: 2;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.hazard-bar {
    width: 22px;
    height: 170%;
    background: var(--cyan-primary);
    transform: rotate(-32deg);
    border-radius: 4px;
    box-shadow: 
        0 0 20px var(--cyan-glow),
        0 0 40px rgba(0, 240, 255, 0.35);
    animation: hazardStripeShimmer 4s infinite alternate ease-in-out;
}

.hazard-bar.bar-2 {
    animation-delay: -1.5s;
}

/* CONSTRUCTION wordmark */
.construction-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5.6vw, 5.2rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    color: #ffffff;
    margin-top: 0.5rem;
    text-transform: uppercase;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 5;
}

/* Hero Description */
.hero-description {
    font-size: 1.22rem;
    line-height: 1.6;
    color: #e2e8f0;
    max-width: 680px;
    margin: 0.5rem auto 2.25rem;
    font-weight: 500;
    letter-spacing: 0.015em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
    z-index: 10;
    position: relative;
}

/* Hero CTA Button */
.hero-cta-group {
    position: relative;
    z-index: 10;
}

.btn-cyan-pill {
    background: var(--cyan-primary);
    color: #03080e;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 0.95rem 2.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 
        0 0 25px rgba(0, 240, 255, 0.55),
        0 10px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-cyan-pill:hover {
    background: #4df7ff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 0 35px rgba(0, 240, 255, 0.85),
        0 15px 30px rgba(0, 0, 0, 0.6);
}

.btn-cyan-pill:active {
    transform: translateY(-1px) scale(0.99);
}

/* Keyframe Animations */
@keyframes pendulumSway {
    0%, 100% {
        transform: rotate(-3.5deg);
    }
    50% {
        transform: rotate(3.5deg);
    }
}

@keyframes letterDSway {
    0%, 100% {
        transform: translateX(-50%) rotate(2.2deg);
    }
    50% {
        transform: translateX(-50%) rotate(-2.2deg);
    }
}

@keyframes hazardStripeShimmer {
    0% {
        opacity: 0.75;
        box-shadow: 0 0 15px var(--cyan-glow);
    }
    100% {
        opacity: 1;
        box-shadow: 0 0 30px var(--cyan-primary), 0 0 50px rgba(0, 240, 255, 0.5);
    }
}

@keyframes logoGlowPulse {
    0% {
        filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
    }
    100% {
        filter: drop-shadow(0 0 16px rgba(0, 240, 255, 0.8)) drop-shadow(0 0 24px rgba(123, 44, 191, 0.6));
    }
}

/* Modal Popup */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 12, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background: #09131d;
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 240, 255, 0.2);
    border-radius: 16px;
    padding: 2.75rem 2.25rem;
    max-width: 460px;
    width: 100%;
    position: relative;
    text-align: center;
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: #ffffff;
}

.modal-icon-ring {
    width: 56px;
    height: 56px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.35);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    color: #ffffff;
}

.modal-subtitle {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.8rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-input {
    width: 100%;
    padding: 0.95rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.modal-input:focus {
    border-color: var(--cyan-primary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.modal-submit-btn {
    width: 100%;
    padding: 0.95rem;
}

.modal-success-msg {
    display: none;
    margin-top: 1rem;
    color: #10b981;
    font-weight: 600;
    font-size: 0.95rem;
}

.modal-success-msg.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Styles */
@media (max-width: 900px) {
    .navbar {
        padding: 1.5rem 1.5rem;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 600px) {
    .crane-assembly {
        transform-origin: top center;
        height: 240px;
        margin-bottom: -45px;
    }

    .crane-svg {
        transform: scale(0.85);
        transform-origin: top center;
    }

    .rigging-lines {
        top: 135px;
    }

    .wire-left, .wire-right {
        height: 42px;
    }

    .suspended-d {
        top: 172px;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .btn-cyan-pill {
        padding: 0.85rem 2rem;
        font-size: 0.9rem;
    }
}
