/* 
    ISP Security - Professional Services
    External Stylesheet
*/

:root {
    --brand-red: #ff0000;
    --brand-red-dark: #cc0000;
    --brand-dark: #0a0a0f;
    --brand-gray: #1a1a24;
    --brand-light: #f2f2f2;
    --cyber-grid: linear-gradient(rgba(255, 0, 0, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 0, 0, 0.05) 1px, transparent 1px);
}

body {
    background-color: var(--brand-dark);
    color: var(--brand-light);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--brand-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--brand-red);
    border-radius: 4px;
}

/* Dropdown styling */
select option {
    background-color: var(--brand-gray) !important;
    color: #ffffff !important;
    font-weight: 500;
}

select option:hover,
select option:focus {
    background-color: var(--brand-red) !important;
    color: #ffffff !important;
}

/* Glitch Effect */
.glitch-wrapper {
    position: relative;
}

.glitch-wrapper::before,
.glitch-wrapper::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-wrapper::before {
    left: 2px;
    text-shadow: -1px 0 #00ffff;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch-wrapper::after {
    left: -2px;
    text-shadow: -1px 0 #ff4d4d;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(14px, 9999px, 121px, 0);
    }

    20% {
        clip: rect(84px, 9999px, 28px, 0);
    }

    40% {
        clip: rect(12px, 9999px, 89px, 0);
    }

    60% {
        clip: rect(56px, 9999px, 12px, 0);
    }

    80% {
        clip: rect(89px, 9999px, 45px, 0);
    }

    100% {
        clip: rect(23px, 9999px, 67px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
    }

    20% {
        clip: rect(12px, 9999px, 5px, 0);
    }

    40% {
        clip: rect(87px, 9999px, 140px, 0);
    }

    60% {
        clip: rect(10px, 9999px, 78px, 0);
    }

    80% {
        clip: rect(45px, 9999px, 12px, 0);
    }

    100% {
        clip: rect(23px, 9999px, 98px, 0);
    }
}

/* Scanline */
.scanline {
    width: 100%;
    height: 100px;
    z-index: 10;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(255, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.1;
    position: absolute;
    bottom: 100%;
    animation: scanline 10s linear infinite;
    pointer-events: none;
}

@keyframes scanline {
    0% {
        bottom: 100%;
    }

    100% {
        bottom: -100%;
    }
}

/* Card Hover Effects */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 0, 0, 0.1);
    background: linear-gradient(135deg, rgba(26, 26, 36, 0.5), rgba(10, 10, 15, 0.5));
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 0, 0, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.service-card:hover::before {
    transform: translateX(100%);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--brand-red);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 0, 0, 0.1);
}

/* Button Premium Styles */
.btn-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-premium::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.btn-premium:hover::after {
    opacity: 1;
}

/* Advanced Glitch text hover */
.glitch-hover:hover {
    animation: glitch-text 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
}

@keyframes glitch-text {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

/* Navigation Dropdown Premium */
.nav-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.98);
    transform-origin: top;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(15px);
    background: rgba(10, 10, 15, 0.98);
    pointer-events: none;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

/* Bridging the gap between trigger and menu */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -30px;
    /* Adjust based on mt-7 gap */
    left: 0;
    width: 100%;
    height: 30px;
    background: transparent;
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.nav-dropdown a:hover {
    background: rgba(255, 0, 0, 0.1);
    border-left: 3px solid var(--brand-red);
}


/* Scroll Reveal Animation */
.scroll-reveal {
    transform: translateY(50px);
    opacity: 0;
    transition: transform 1s ease, opacity 1s ease;
}

.scroll-reveal.reveal {
    transform: translateY(0);
    opacity: 1;
}

/* Partners Scroll Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.animate-scroll {
    animation: scroll 30s linear infinite;
}

/* Shimmer Animation for buttons */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Marquee Animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-container {
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    position: relative;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee 40s linear infinite;
    width: max-content;
}

.marquee-content:hover {
    animation-play-state: paused;
}

/* Premium Partner Card */
.partner-card {
    display: flex !important;
    flex-direction: column !important; /* Forces vertical stack */
    align-items: center !important;
    justify-content: center !important;
    min-width: 220px;
    height: 140px;
    background: rgba(26, 26, 36, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin: 0 1rem;
    padding: 1.5rem 1rem 1rem 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.partner-name {
    margin-top: auto; /* Push to bottom */
    font-size: 0.75rem; /* Slightly smaller for elegance */
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.partner-card:hover .partner-name {
    color: var(--brand-red, #ff0000);
    transform: translateY(2px);
}

.partner-card:hover {
    filter: grayscale(0%) opacity(1);
    border-color: rgba(255, 0, 0, 0.4);
    background: rgba(255, 0, 0, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(255, 0, 0, 0.3);
}

.logo-blend {
    max-width: 170px !important;
    max-height: 55px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    filter: opacity(0.7);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-square {
    max-height: 65px !important;
}

.partner-card:hover .logo-blend {
    transform: scale(1.1);
    filter: opacity(1);
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background-color: rgba(26, 26, 36, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    margin: 0 1rem;
    transition: all 0.3s ease;
}

.cert-badge:hover {
    border-color: rgba(255, 0, 0, 0.5);
    background-color: rgba(255, 0, 0, 0.05);
}

.cert-badge img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Grid background utility */
.bg-cyber-grid {
    background-image: var(--cyber-grid);
}

/* Form Validation Styles */
.input-field {
    transition: all 0.3s ease;
}

.input-valid {
    border-color: #10b981 !important;
    /* Success Green */
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2) !important;
}

.input-invalid {
    border-color: var(--brand-red) !important;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2) !important;
}

.validation-msg {
    font-size: 0.7rem;
    margin-top: 0.25rem;
    transition: all 0.3s ease;
    opacity: 0;
    color: var(--brand-red);
    height: 0;
    overflow: hidden;
}

.validation-msg.show {
    opacity: 1;
    height: auto;
}