/* Custom CSS for Apex Gate */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #001A1A; 
}
::-webkit-scrollbar-thumb {
    background: #004040; 
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4EBBC2; 
}

/* Nav Links Underline Animation */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4EBBC2;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.text-brand-gold::after {
    width: 100%;
}

/* Glassmorphism setup for sticky nav */
#navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    margin: 0 !important;
    transform: none !important;
}

.nav-scrolled {
    background: rgba(0, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Scroll Down Animation */
@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}
.animate-scroll-down {
    animation: scrollDown 2s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;
}

/* Loader Animation */
.loader-circle {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Glow effects */
.header-glow {
    text-shadow: 0 0 40px rgba(78, 187, 194, 0.4);
}

/* Premium 3D Metallic Logo Effect */
.logo-metallic-3d {
    position: relative;
    display: inline-block;
    color: transparent !important; /* Hide structural text */
}

/* Face - Gradient, Highlights & Shine Animation */
.logo-metallic-3d::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    background: linear-gradient(
        -45deg,
        #4EBBC2 0%, 
        #dffaff 15%, 
        #104044 48%,
        #ffffff 50%,
        #4A291A 52%,
        #B4795B 75%, 
        #fdebdc 90%, 
        #4EBBC2 100%
    );
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5); /* Outer highlight bevel */
    animation: metallicShine 5s linear infinite;
}

/* 3D Depth Block (Extrusion) */
.logo-metallic-3d::after {
    content: attr(data-text);
    position: absolute;
    left: 0px;
    top: 0px;
    z-index: 1;
    color: #2F170B; /* Deepest Copper Core */
    text-shadow: 
        1px 1px 0px #1A4648,
        2px 2px 0px #123132,
        3px 3px 0px #3A1F13,
        4px 4px 0px #28140B,
        5px 5px 0px #180B05,
        6px 6px 0px #0c0502,
        10px 10px 20px rgba(0,0,0,0.8);
}

.metallic-mix {
    background: linear-gradient(-45deg, #4EBBC2, #B4795B, #ffffff, #4EBBC2);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: metallicShine 5s linear infinite;
    filter: drop-shadow(0 0 10px rgba(78, 187, 194, 0.4));
}

@keyframes metallicShine {
    to { background-position: 200% center; }
}

@keyframes metallicShineReverse {
    to { background-position: -200% center; }
}

.metallic-reverse,
.metallic-reverse span {
    animation: metallicShineReverse 8s linear infinite !important;
}

/* Utility to ensure logo rendering looks good */
img.mix-blend-multiply {
    mix-blend-mode: multiply;
}

/* --- Premium Services Animations --- */
.service-item {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), 
                box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.6s ease;
}

.service-item:hover {
    transform: scale(1.05) translateY(-5px) !important; /* Scale up slightly and lift */
    border-color: #4EBBC2 !important; /* Blue Outer Glow base border */
    box-shadow: 0 0 30px rgba(78, 187, 194, 0.4), 
                0 15px 35px rgba(0, 0, 0, 0.5) !important; /* Blue inner/outer glow & soft dark shadow */
    z-index: 20;
}

.service-icon-circle {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), 
                color 0.4s ease;
}

.service-item:hover .service-icon-circle {
    transform: scale(1.15) rotate(15deg); /* Pulse and Rotation effect */
    color: #4EBBC2 !important; /* Change icon to blue */
}

/* --- Premium Metallic H1 & H2 --- */
h1:not(.no-metallic), h2:not(.no-metallic),
h1:not(.no-metallic) span:not(.logo-metallic-3d):not(.metallic-mix), 
h2:not(.no-metallic) span:not(.logo-metallic-3d):not(.metallic-mix) {
    background: linear-gradient(
        -45deg,
        #4EBBC2 0%, 
        #dffaff 15%, 
        #003333 48%,
        #ffffff 50%,
        #4A291A 52%,
        #B4795B 75%, 
        #fdebdc 90%, 
        #4EBBC2 100%
    );
    background-size: 200% auto;
    color: transparent !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    animation: metallicShine 5s linear infinite;
    filter: drop-shadow(0 0 10px rgba(78, 187, 194, 0.3));
    border-color: transparent !important; /* removes trailing underlines */
}
