/* Custom Styles for Holkas Group ApS */

:root {
    --midnight-navy: #001F3F;
    --slate-grey: #708090;
    --electric-blue: #7DF9FF;
    --cyan-web: #00FFFF;
    --forest-green: #228B22;
    --golden-amber: #FFBF00;
}

body {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Node Group Desktop Positioning - Maximum Expansion */
@media (min-width: 1024px) {
    .node-group {
        position: absolute;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 30;
    }

    /* Top Center */
    #node-revision {
        top: calc(50% - clamp(260px, 30vh, 370px));
        left: 50%;
        transform: translate(-50%, -50%);
    }

    /* Top Right */
    #node-apps {
        top: calc(50% - clamp(150px, 18vh, 250px));
        left: calc(50% + clamp(300px, 35vw, 650px));
        transform: translate(-50%, -50%);
    }

    /* Bottom Right */
    #node-projects {
        top: calc(50% + clamp(150px, 18vh, 250px));
        left: calc(50% + clamp(300px, 35vw, 650px));
        transform: translate(-50%, -50%);
    }

    /* Bottom Left */
    #node-web {
        top: calc(50% + clamp(150px, 18vh, 250px));
        left: calc(50% - clamp(300px, 35vw, 650px));
        transform: translate(-50%, -50%);
    }

    /* Top Left */
    #node-consultant {
        top: calc(50% - clamp(150px, 18vh, 250px));
        left: calc(50% - clamp(300px, 35vw, 650px));
        transform: translate(-50%, -50%);
    }

    .node-group:hover {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Utility Classes */
.force-hide { display: none !important; }

.mobile-services {
    display: none;
    width: 100%;
    margin-top: 20px;
    position: relative;
    z-index: 50;
}

.mobile-service-link {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--midnight-navy);
    padding: 12px 20px;
    border-left: 4px solid var(--brand-color);
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.02);
    width: 80%;
    text-align: left;
}

/* Mobile Adjustments */
@media (max-width: 1023px) {
    #hero-diagram {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding-top: 80px;
        position: relative !important;
        height: auto !important;
        min-height: 100vh;
    }

    .node-group { display: none !important; }

    .mobile-services {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    #hero-core {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        margin: 0 0 40px 0 !important;
        width: 160px !important;
        height: 160px !important;
        transform: none !important;
    }

    svg#connector-svg { display: none !important; }
}

/* Watermark Mode */
.watermark-mode #hero-core {
    opacity: 0.15 !important;
    transform: scale(0.8) !important;
}

.watermark-mode .node-group {
    opacity: 0.1 !important;
    pointer-events: none;
}

.watermark-mode #hero-diagram { z-index: -1; }

main { position: relative; z-index: 10; }
section { background-color: transparent !important; }

/* Dropdown Menu Item Styling */
.dropdown-item {
    border-left-width: 4px;
    border-left-style: solid;
    transition: all 0.3s ease;
}

.item-revision { border-color: #800000 !important; }
.item-apps { border-color: #00D2FF !important; }
.item-web { border-color: #001F3F !important; }
.item-projects { border-color: #228B22 !important; }
.item-consultant { border-color: #FFBF00 !important; }

/* Connector Lines */
.connector-line {
    stroke-linecap: round;
    transition: all 0.3s ease-in-out;
    opacity: 0.3;
    pointer-events: none;
    z-index: 6;
}

.glow-active {
    opacity: 1 !important;
    stroke-width: 2;
    filter: drop-shadow(0 0 10px currentColor);
}

footer {
    position: relative;
    z-index: 20;
    background: white;
    border-top: 1px solid #f1f5f9;
}

.modal-open {
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 100 !important;
}

/* Mobile Menu Styles */
#mobile-menu.menu-open {
    transform: translateX(0);
}

.mobile-nav-link {
    transition: color 0.3s ease;
}

.mobile-nav-link:active {
    color: var(--golden-amber);
}

body.no-scroll { overflow: hidden; }
