/* Brevo Custom Form Styles */
@font-face {
    font-display: block;
    font-family: Roboto;
    src: url(https://assets.brevo.com/font/Roboto/Latin/normal/normal/7529907e9eaf8ebb5220c5f9850e3811.woff2) format("woff2"), url(https://assets.brevo.com/font/Roboto/Latin/normal/normal/25c678feafdc175a70922a116c9be3e7.woff) format("woff")
}

/* Pre-loader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0516;
    /* Deep brand color */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    width: 40vw;
    max-width: 600px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(112, 0, 255, 0.6));
    animation: preloader-glitch 4s infinite, preloader-flicker 1.5s infinite;
}

/* Progress Bar */
.preloader-progress-container {
    width: 60%;
    max-width: 400px;
    margin-top: 40px;
    text-align: center;
}

.preloader-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.preloader-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-purple), var(--flare-blue), var(--neon-purple));
    background-size: 200% 100%;
    animation: progress-gradient 2s linear infinite;
    border-radius: 2px;
    transition: width 0.1s linear;
}

@keyframes progress-gradient {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.preloader-percentage {
    margin-top: 15px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 1.2rem;
    color: var(--flare-blue);
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 209, 255, 0.5);
}

@keyframes preloader-glitch {

    0%,
    100% {
        transform: translate(0);
        filter: drop-shadow(0 0 30px rgba(112, 0, 255, 0.6));
    }

    2% {
        transform: translate(-5px, 2px) skewX(2deg);
        filter: drop-shadow(5px 0 #00fff9);
    }

    4% {
        transform: translate(5px, -2px) skewX(-2deg);
        filter: drop-shadow(-5px 0 #ff00c1);
    }

    6% {
        transform: translate(0);
        filter: drop-shadow(0 0 30px rgba(112, 0, 255, 0.6));
    }

    90% {
        transform: translate(0);
    }

    92% {
        transform: translate(-10px, 5px) skewX(5deg);
        opacity: 0.8;
    }

    94% {
        transform: translate(10px, -5px) skewX(-5deg);
        opacity: 0.9;
    }

    96% {
        transform: translate(0);
        opacity: 1;
    }
}

@keyframes preloader-flicker {

    0%,
    19.999%,
    22%,
    62.999%,
    64%,
    64.999%,
    70%,
    100% {
        opacity: 1;
    }

    20%,
    21.999%,
    63%,
    63.999%,
    65%,
    69.999% {
        opacity: 0.7;
    }
}

@font-face {
    font-display: fallback;
    font-family: Roboto;
    font-weight: 600;
    src: url(https://assets.brevo.com/font/Roboto/Latin/medium/normal/6e9caeeafb1f3491be3e32744bc30440.woff2) format("woff2"), url(https://assets.brevo.com/font/Roboto/Latin/medium/normal/71501f0d8d5aa95960f6475d5487d4c2.woff) format("woff")
}

@font-face {
    font-display: fallback;
    font-family: Roboto;
    font-weight: 700;
    src: url(https://assets.brevo.com/font/Roboto/Latin/bold/normal/3ef7cf158f310cf752d5ad08cd0e7e60.woff2) format("woff2"), url(https://assets.brevo.com/font/Roboto/Latin/bold/normal/ece3a1d82f18b60bcce0211725c476aa.woff) format("woff")
}

/* Essential Brevo Reset to match site design */
#sib-container {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(112, 0, 255, 0.3) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
    border-radius: 20px !important;
    margin: 0 auto !important;
    padding: 40px !important;
}

.sib-form {
    background-color: transparent !important;
}

#sib-container h1,
#sib-container .sib-form-block p {
    color: #fff !important;
    font-family: 'Rajdhani', sans-serif !important;
}

#sib-container label,
#sib-container span,
#sib-container p {
    color: var(--text-dim) !important;
    font-family: 'Rajdhani', sans-serif !important;
}

#sib-container input:not([type="checkbox"]) {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 15px !important;
    padding: 12px !important;
    font-family: 'Rajdhani', sans-serif !important;
}

.sib-form .input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-radius: 15px !important;
    padding: 15px !important;
}

#sib-container .sib-form-block__button {
    background: linear-gradient(90deg, var(--neon-purple), var(--flare-blue)) !important;
    border: none !important;
    box-shadow: 0 0 15px var(--flare-blue) !important;
    color: #fff !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    font-family: 'Rajdhani', sans-serif !important;
    letter-spacing: 1px !important;
    transition: 0.3s !important;
    cursor: pointer !important;
    padding: 15px 30px !important;
    border-radius: 15px !important;
    width: 100% !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

#sib-container .sib-form-block__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--flare-blue) !important;
}

#sib-container a {
    color: var(--flare-blue) !important;
    text-decoration: underline !important;
}

.sib-form-message-panel {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    max-width: 540px !important;
    margin: 0 auto 20px !important;
}

:root {
    --bg-deep: #0a0516;
    /* From brand palette */
    --neon-purple: #7000ff;
    /* From brand palette */
    --flare-blue: #00d1ff;
    /* From brand palette */
    --electric-purple: #9d00ff;
    --text-dim: #f9f9f9;
    --glass-purple: rgba(112, 0, 255, 0.15);
    --text-main: #f0f0f5;
    /* From brand palette */
}

* {
    box-sizing: border-box;
}

body,
html {
    margin: 0;
    padding: 0;
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
}

/* Animated Background Particles */
.particle-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: var(--bg-deep);
}

/* Global Animated Dark Rainbow Background */
.particle-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(112, 0, 255, 0.15) 0%,
            rgba(0, 209, 255, 0.1) 25%,
            rgba(0, 255, 127, 0.1) 50%,
            rgba(255, 215, 0, 0.1) 75%,
            rgba(255, 0, 193, 0.15) 100%);
    background-size: 400% 400%;
    animation: rainbow-sweep 15s ease infinite;
    z-index: -1;
}

@keyframes rainbow-sweep {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(60px);
    animation: float-particle 20s infinite ease-in-out;
}

.particle:nth-child(1) {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--neon-purple), transparent);
    top: 10%;
    left: 5%;
    animation-duration: 25s;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--flare-blue), transparent);
    top: 50%;
    right: 10%;
    animation-duration: 30s;
    animation-delay: 3s;
}

.particle:nth-child(3) {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--neon-purple), transparent);
    bottom: 15%;
    left: 15%;
    animation-duration: 28s;
    animation-delay: 5s;
}

.particle:nth-child(4) {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--neon-purple), transparent);
    top: 30%;
    right: 25%;
    animation-duration: 22s;
    animation-delay: 2s;
}

.particle:nth-child(5) {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, var(--flare-blue), transparent);
    bottom: 35%;
    right: 5%;
    animation-duration: 26s;
    animation-delay: 7s;
}

@keyframes float-particle {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -50px) scale(1.1);
    }

    50% {
        transform: translate(-20px, -80px) scale(0.9);
    }

    75% {
        transform: translate(40px, -30px) scale(1.05);
    }
}

/* Smoke Effect Styles */
.smoke {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.02), transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.35;
    pointer-events: none;
    animation: smoke-drift 40s infinite linear;
    will-change: transform, opacity;
}

.smoke:nth-child(6) {
    top: -10%;
    left: -10%;
    animation-duration: 45s;
    background: radial-gradient(circle, rgba(112, 0, 255, 0.05), transparent 70%);
}

.smoke:nth-child(7) {
    bottom: -10%;
    right: -10%;
    animation-duration: 55s;
    animation-delay: -5s;
    background: radial-gradient(circle, rgba(0, 209, 255, 0.05), transparent 70%);
}

.smoke:nth-child(8) {
    top: 40%;
    left: 50%;
    animation-duration: 50s;
    animation-delay: -10s;
}

@keyframes smoke-drift {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    33% {
        transform: translate(100px, -50px) rotate(120deg) scale(1.2);
    }

    66% {
        transform: translate(-50px, 100px) rotate(240deg) scale(0.8);
    }

    100% {
        transform: translate(0, 0) rotate(360deg) scale(1);
    }
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 5, 22, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(112, 0, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: var(--flare-blue);
    box-shadow: 0 0 20px var(--flare-blue), 0 0 40px var(--neon-purple);
    pointer-events: none;
}

.nav-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-img {
    max-height: 50px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(112, 0, 255, 0.4));
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-placeholder {
    width: 45px;
    height: 45px;
    background: linear-gradient(45deg, var(--neon-purple), var(--flare-blue));
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    font-family: 'Rajdhani';
    box-shadow: 0 0 15px var(--neon-purple);
}

.brand-name {
    font-family: 'Rajdhani';
    font-weight: 700;
    font-size: 1.4rem;
    color: #fff;
    letter-spacing: 1px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-family: 'Rajdhani';
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--flare-blue);
}

.lang-switch {
    display: flex;
    gap: 8px;
    font-family: 'Rajdhani';
    font-weight: 700;
    font-size: 0.8rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 20px;
}

.lang-btn {
    cursor: pointer;
    color: var(--text-dim);
    opacity: 0.6;
    transition: 0.3s;
    border-radius: 15px;
}

.lang-btn.active {
    color: var(--flare-blue);
    opacity: 1;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 5, 22, 0.95) 0%, rgba(112, 0, 255, 0.2) 50%, rgba(0, 209, 255, 0.1) 100%);
    z-index: 1;
}

/* Slide Image Glitch (Twitch style) */
.slide.active {
    animation: twitch-light 8s infinite, twitch-blur 10s infinite;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h1 {
    font-family: 'Rajdhani';
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    margin-bottom: 20px;
    color: #fff;
}

.hero-content p {
    color: #fff;
    letter-spacing: 6px;
    font-weight: 700;
    font-family: 'Rajdhani';
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 209, 255, 0.8), 0 0 20px rgba(0, 209, 255, 0.4);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(112, 0, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(112, 0, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--neon-purple);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: 0.3s;
    border-radius: 50%;
}

.slider-arrow:hover {
    background: rgba(123, 57, 208, 0.3);
    color: #fff;
    box-shadow: 0 0 25px var(--neon-purple);
}

.arrow-prev {
    left: 30px;
}

.arrow-next {
    right: 30px;
}

section {
    padding: 100px 40px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

#pentesting-cycle {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 20% 50%, rgba(112, 0, 255, 0.15), transparent 40%),
        radial-gradient(circle at 80% 30%, rgba(0, 209, 255, 0.1), transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(255, 0, 193, 0.1), transparent 40%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8);
}

#pentesting-cycle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, transparent 20%, #0a0516 120%);
    opacity: 0.8;
    animation: nebula-rotate 60s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes nebula-rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.title {
    font-family: 'Rajdhani';
    font-size: 3rem;
    margin-bottom: 50px;
    color: #fff;
    border-left: 5px solid var(--neon-purple);
    padding-left: 25px;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.card {
    flex: 0 1 calc(33.333% - 30px);
    /* 3 per row for 3-3-1 layout */
    min-width: 320px;
    background: rgba(10, 5, 22, 0.6);
    backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(112, 0, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    height: auto;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(112, 0, 255, 0.1);
    border-radius: 15px;
}

/* 
   Since there are 7 items, flex-justify: center will naturally center 
   the last item in the third row for a 3-3-1 layout.
*/

/* Card Hover (Glitch Removed) */
.card:hover {
    border-color: var(--flare-blue);
    box-shadow: 0 0 30px rgba(0, 209, 255, 0.3);
    transform: translateY(-10px) scale(1.02);
    background: rgba(17, 10, 37, 0.8);
}

.card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), rgba(0, 209, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: 0.8s;
    z-index: 2;
    pointer-events: none;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(112, 0, 255, 0.15), transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.card:hover::after {
    background: radial-gradient(circle at 80% 20%, rgba(0, 209, 255, 0.2), transparent 60%);
}

.card:hover::before {
    top: 100%;
    left: 100%;
}

.card-img-box {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(112, 0, 255, 0.3);
    border-radius: 15px 15px 0 0;
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) grayscale(30%);
    transition: 0.5s ease;
}

.card:hover img {
    filter: brightness(1.1) grayscale(0%);
    transform: scale(1.1);
}

.card-body {
    padding: 45px;
    /* Increased padding for better readability */
    z-index: 3;
    border-top: 1px solid rgba(112, 0, 255, 0.2);
    background: transparent;
    /* Rainbow moved to global bg */
}

.card-body h3 {
    font-family: 'Rajdhani';
    color: var(--flare-blue);
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.card-body p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.newsletter-container {
    margin-top: 80px;
    padding: 80px;
    background: rgba(112, 0, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(112, 0, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(112, 0, 255, 0.2);
}

.form-group {
    display: flex;
    max-width: 650px;
    margin: 0 auto;
    gap: 15px;
}

.form-group input {
    flex: 1;
    padding: 18px;
    border-radius: 8px;
    border: 1px solid rgba(112, 0, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(17, 10, 37, 0.4);
    backdrop-filter: blur(20px);
    color: #fff;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus {
    border-color: var(--flare-blue);
    box-shadow: 0 0 15px rgba(0, 209, 255, 0.3);
}

.particle {
    position: absolute;
    background: rgba(0, 209, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0, 209, 255, 0.2);
    will-change: transform, opacity;
}

.btn-cyber {
    background: linear-gradient(90deg, var(--neon-purple), var(--electric-purple), var(--neon-purple));
    background-size: 200% auto;
    color: #fff;
    border: none;
    padding: 18px 40px;
    border-radius: 15px;
    font-family: 'Rajdhani';
    font-weight: 700;
    cursor: pointer;
    transition: 0.5s;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 10px rgba(112, 0, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-cyber:hover {
    background-position: right center;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(112, 0, 255, 0.4), 0 0 15px var(--flare-blue);
}

footer {
    padding: 60px 40px;
    background: rgba(10, 5, 22, 0.9);
    border-top: 1px solid rgba(112, 0, 255, 0.3);
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    max-height: 100px;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--flare-blue);
}

.copyright {
    color: var(--text-dim);
    font-size: 0.8rem;
    opacity: 0.7;
}

.powered-by {
    margin-top: 10px;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.powered-by a {
    color: var(--neon-purple);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 1100px) {
    .card {
        flex: 0 1 calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .form-group {
        flex-direction: column;
    }

    .newsletter-container {
        padding: 40px 20px;
    }

    .nav-wrap {
        justify-content: center;
        padding: 15px 20px;
    }

    .nav-right {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        gap: 15px;
        font-size: 0.75rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .card.span-4,
    .card.span-3 {
        grid-column: auto;
    }
}

.cyber-glitch-title {
    position: relative;
    display: inline-block;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: cyber-flicker 3s infinite;
}

.cyber-glitch-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-purple), var(--flare-blue));
    box-shadow: 0 0 15px var(--flare-blue);
    animation: line-grow 2s forwards ease-in-out;
}

@keyframes line-grow {
    from {
        width: 0;
        left: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes cyber-flicker {

    0%,
    19.999%,
    22%,
    62.999%,
    64%,
    64.999%,
    70%,
    100% {
        opacity: 1;
        text-shadow: 0 0 10px var(--neon-purple), 0 0 20px var(--flare-blue);
    }

    20%,
    21.999%,
    63%,
    63.999%,
    65%,
    69.999% {
        opacity: 0.4;
        text-shadow: none;
    }
}

.cyber-glitch-title:hover {
    color: var(--flare-blue);
    cursor: default;
    transition: 0.3s;
}

/* Combined "Twitch" Style Retro Glitch Effect */
.glitch-text {
    position: relative;
    display: inline-block;
    color: #fff;
    mix-blend-mode: lighten;
    /* Subtler Twitch Operators */
    animation: twitch-light 8s infinite, twitch-blur 10s infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    opacity: 0.3;
    /* Softened opacity */
}

/* Twitch Color & Slide Operators (RGB Split) */
.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip-path: inset(0 0 0 0);
    animation: twitch-slide-1 3s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: 2px 0 #00fff9;
    clip-path: inset(0 0 0 0);
    animation: twitch-slide-2 1.5s infinite linear alternate-reverse;
}

/* Scale Operator: Random zoom jerks (Soften) */
@keyframes twitch-scale {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.01);
    }

    /* Less aggressive */
    100% {
        transform: scale(1);
    }
}

/* Light Operator: Random brightness/contrast flashes */
@keyframes twitch-light {

    0%,
    90%,
    100% {
        filter: brightness(1) contrast(1);
    }

    92% {
        filter: brightness(2) contrast(1.5);
    }

    94% {
        filter: brightness(0.8) contrast(2);
    }

    96% {
        filter: brightness(3) contrast(1.2);
    }
}

/* Blur Operator: Motion blur flicker */
@keyframes twitch-blur {

    0%,
    80%,
    100% {
        filter: blur(0px);
    }

    82% {
        filter: blur(2px);
    }

    85% {
        filter: blur(0px);
    }

    88% {
        filter: blur(4px);
    }
}

/* Scale Operator: Random zoom jerks */
@keyframes twitch-scale {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(0.98);
    }
}

@keyframes twitch-jitter {
    0% {
        transform: translate(0);
    }

    25% {
        transform: translate(-3px, 1px);
    }

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

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

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

/* Slide Operators with Clip-Path (ZonFire-style evolved) */
@keyframes twitch-slide-1 {
    0% {
        clip-path: inset(80% 0 1% 0);
        transform: translate(-10px);
    }

    10% {
        clip-path: inset(10% 0 85% 0);
        transform: translate(10px);
    }

    20% {
        clip-path: inset(40% 0 43% 0);
        transform: translate(-5px);
    }

    30% {
        clip-path: inset(0 0 95% 0);
        transform: translate(5px);
    }

    100% {
        clip-path: inset(100% 0 0 0);
        transform: translate(0);
    }
}

@keyframes twitch-slide-2 {
    0% {
        clip-path: inset(15% 0 15% 0);
        transform: translate(10px);
    }

    10% {
        clip-path: inset(85% 0 10% 0);
        transform: translate(-10px);
    }

    20% {
        clip-path: inset(43% 0 40% 0);
        transform: translate(5px);
    }

    30% {
        clip-path: inset(95% 0 0 0);
        transform: translate(-5px);
    }

    100% {
        clip-path: inset(0 0 100% 0);
        transform: translate(0);
    }
}

/* Combined Twitch for Interactive Objects - HOVER REMOVED */
.btn-cyber.glitch-hover:hover,
.logo-img.glitch-hover:hover {
    filter: brightness(1.2);
    transition: 0.3s;
}

.card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#how-we-do .card:nth-child(1) {
    animation-delay: 0.2s;
}

#how-we-do .card:nth-child(2) {
    animation-delay: 0.4s;
}

#how-we-do .card:nth-child(3) {
    animation-delay: 0.6s;
}

.card-body {
    padding: 45px;
    /* Consistent padding increase */
    border-top: 1px solid rgba(112, 0, 255, 0.2);
    background: transparent;
    /* Rainbow moved to global bg */
}

/* Footer Styling */
footer {
    margin-top: 100px;
    padding: 80px 40px;
    background: rgba(10, 5, 22, 0.8);
    backdrop-filter: blur(30px) saturate(180%);
    border-top: 1px solid rgba(112, 0, 255, 0.5);
    position: relative;
    z-index: 10;
    color: #fff;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: var(--flare-blue);
    box-shadow: 0 0 20px var(--flare-blue), 0 0 40px var(--neon-purple);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
}

.footer-logo {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(0, 209, 255, 0.4));
    margin-bottom: 20px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav a {
    color: var(--text-dim);
    font-family: 'Rajdhani';
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    transition: 0.3s;
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--flare-blue);
    text-shadow: 0 0 10px var(--flare-blue);
}

.footer-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    color: var(--text-dim);
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--flare-blue);
    margin-right: 8px;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

/* Pentesting Cycle Section */
#pentesting-cycle {
    position: relative;
    padding: 120px 40px;
    background: rgba(10, 5, 22, 0.4);
}

.cycle-container {
    display: flex;
    gap: 60px;
    margin-top: 60px;
    align-items: center;
    min-height: 500px;
}

.cycle-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.cycle-nav::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(112, 0, 255, 0.2);
    z-index: 0;
}

.nav-item {
    width: 50px;
    height: 50px;
    background: rgba(112, 0, 255, 0.1);
    border: 1px solid rgba(112, 0, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
    transition: 0.4s;
    font-family: 'Rajdhani';
    font-weight: 700;
    color: var(--text-dim);
    backdrop-filter: blur(10px);
    will-change: transform, background-color, border-color, box-shadow;
}

.nav-item.active {
    background: var(--neon-purple);
    border-color: var(--flare-blue);
    color: #fff;
    box-shadow: 0 0 20px var(--neon-purple);
    transform: scale(1.2);
}

.phase-display {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
}

.phase-content {
    position: absolute;
    inset: 0;
    display: flex;
    gap: 40px;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: 0.3s ease;
    will-change: transform, opacity;
}

.phase-content.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.phase-text {
    flex: 1;
}

.phase-text h3 {
    font-family: 'Rajdhani';
    font-size: 2.2rem;
    color: var(--flare-blue);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 209, 255, 0.3);
}

.phase-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dim);
}

.phase-visual {
    flex: 1.2;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(112, 0, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.phase-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 900px) {
    .cycle-container {
        flex-direction: column;
        gap: 40px;
    }

    .cycle-nav {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }

    .cycle-nav::before {
        display: none;
    }

    .phase-content {
        flex-direction: column;
        text-align: center;
    }

    .phase-display {
        height: auto;
    }
}

/* Tactical Terminal Section */
#tactical-terminal {
    padding: 80px 40px;
    position: relative;
}

.terminal-container {
    max-width: 900px;
    margin: 40px auto;
    background: rgba(5, 5, 10, 0.9);
    border: 1px solid var(--neon-purple);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(112, 0, 255, 0.15);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.terminal-header {
    background: rgba(20, 20, 30, 0.8);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.terminal-title {
    flex: 1;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
    opacity: 0.7;
}

.terminal-body {
    padding: 25px;
    height: 350px;
    overflow-y: auto;
    color: #00ff9d;
    font-size: 0.95rem;
    line-height: 1.6;
    text-shadow: 0 0 5px rgba(0, 255, 157, 0.3);
}

.terminal-line {
    margin-bottom: 8px;
}

.prompt {
    color: var(--flare-blue);
    font-weight: 700;
    margin-right: 10px;
}

.terminal-body::-webkit-scrollbar {
    width: 6px;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(112, 0, 255, 0.3);
    border-radius: 10px;
}

/* Data Descrambler Classes */
.descrambling {
    font-family: 'JetBrains Mono', monospace;
    color: var(--flare-blue);
    letter-spacing: 2px;
}

/* Custom Contact Form (Glassmorphism) */
.custom-contact-form {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

.form-group {
    width: 100%;
}

.form-group input,
.form-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    transition: 0.3s;
    box-sizing: border-box;
    /* Ensure padding doesn't overflow width */
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--flare-blue);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 209, 255, 0.2);
}

.form-group select {
    appearance: none;
    cursor: pointer;
}

.form-group select option {
    background: #0a0516;
    color: #fff;
}

.btn-cyber {
    background: linear-gradient(90deg, var(--neon-purple), var(--flare-blue));
    border: none;
    border-radius: 12px;
    padding: 15px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(112, 0, 255, 0.4);
}

.btn-cyber:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--flare-blue);
}

/* Footer Socials & Podcast */
.footer-socials {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    justify-content: center;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(251, 110, 110, 0.1);
    transition: 0.3s;
}

.social-icon i {
    font-size: 1.2rem;
    color: var(--flare-blue) !important;
    /* #00d1ff */
    transition: 0.3s;
}

.social-icon:hover {
    background: var(--neon-purple);
    border-color: var(--flare-blue);
    box-shadow: 0 0 15px var(--neon-purple);
    transform: translateY(-3px);
}

.podcast-teaser {
    margin: 20px 0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    color: var(--flare-blue);
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: pulse-podcast 2s infinite;
}

@keyframes pulse-podcast {

    0%,
    100% {
        opacity: 0.7;
        text-shadow: 0 0 5px rgba(0, 209, 255, 0.5);
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 15px rgba(0, 209, 255, 0.8);
    }
}

/* Brevo Button Accessibility + Style Match */
/* Brevo Button Accessibility + Style Match */
#sib-container .sib-form-block__button {
    background: linear-gradient(90deg, var(--neon-purple), var(--flare-blue)) !important;
    border: none !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    /* Forces high contrast white text */
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 700 !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8) !important;
    /* Subtle white glow */
    box-shadow: 0 0 15px rgba(0, 209, 255, 0.8) !important;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* =========================================
   Mobile Responsiveness & Hamburger Menu
   ========================================= */

/* Hide Mobile Elements on Desktop */
.menu-toggle,
.mobile-nav-overlay,
.mobile-nav-content {
    display: none;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    font-size: 2rem;
    color: var(--flare-blue);
    cursor: pointer;
    margin-left: 20px;
    transition: 0.3s;
}

.menu-toggle:hover {
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--neon-purple);
}

/* Mobile Navigation Panel */
.mobile-nav-content {
    display: block;
    /* Hidden via transform normally */
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: rgba(10, 5, 22, 0.95);
    backdrop-filter: blur(15px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10000;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    /* Slide out by default */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-nav-content.active {
    transform: translateX(0);
}

.mobile-nav-overlay {
    display: block;
    /* Hidden via opacity normally */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.mobile-logo {
    height: 40px;
}

.close-menu {
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
    transition: 0.3s;
}

.close-menu:hover {
    color: var(--flare-blue);
    transform: rotate(90deg);
}

.mobile-nav-links {
    list-style: none;
    /* Remove bullets */
    padding: 0;
    margin: 0;
    /* Reset margin */
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mobile-nav-links li {
    list-style: none;
    /* Double check */
}

.mobile-nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s;
    display: block;
}

.mobile-nav-links a:hover {
    color: var(--flare-blue);
    padding-left: 10px;
    text-shadow: 0 0 10px var(--flare-blue);
}

.mobile-lang-switch {
    margin-top: auto;
    display: flex;
    gap: 20px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.2rem;
    color: var(--text-main);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* =========================================
   Media Queries for Mobile Devices
   ========================================= */

@media (max-width: 900px) {

    /* Header Changes */
    .nav-links,
    .lang-switch {
        display: none;
        /* Hide Desktop Nav */
    }

    .menu-toggle {
        display: block;
        /* Show Hamburger */
    }

    /* Hero Section Adjustment */
    .hero-content h1 {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1rem !important;
    }

    /* Stack Service Cards */
    .services-grid {
        display: flex;
        /* Switch grid to flex column for easier stacking */
        flex-direction: column;
        gap: 20px;
    }

    .card.span-4,
    .card.span-12 {
        grid-column: auto;
        width: 100%;
    }

    /* Pentesting Cycle Mobile */
    .cycle-container {
        flex-direction: column;
    }

    .cycle-nav {
        flex-direction: row;
        justify-content: center;
        width: 100%;
        margin-bottom: 30px;
    }

    .phase-display {
        width: 100%;
    }

    .phase-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .phase-visual img {
        max-width: 80%;
        margin-bottom: 20px;
    }

    /* Terminal Adjustments */
    .terminal-body {
        font-size: 0.8rem;
    }

    /* General Padding */
    section {
        padding: 60px 20px;
    }

    .card {
        padding: 20px !important;
    }
}