:root {
    --color-bg: #030303;
    --color-text: #ffffff;
    --color-accent: #ffffff;
    --color-accent-glow: rgba(255, 255, 255, 0.3);
    --color-accent-dark: #1a1a1a;
    --font-en: 'Orbitron', sans-serif;
    --font-he: 'Heebo', sans-serif;
    --transition: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: auto;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-he);
}

/* Floating Action Buttons */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    right: auto;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 10000;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: white;
}

.a11y-toggle-btn {
    position: fixed;
    bottom: 100px;
    left: 30px;
    right: auto;
    width: 60px;
    height: 60px;
    background-color: var(--color-accent);
    color: var(--color-bg);
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    z-index: 10002 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: var(--transition);
}

.a11y-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.a11y-menu {
    position: fixed;
    bottom: 170px;
    left: 30px;
    right: auto;
    width: 320px;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: bottom left;
}

.a11y-menu.hidden-menu {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
}

.a11y-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.a11y-header h3 {
    font-size: 1.2rem;
    color: var(--color-text);
}

#a11y-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

#a11y-close:hover {
    color: var(--color-accent);
}

.a11y-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.a11y-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.a11y-label {
    font-size: 1rem;
}

.a11y-flex {
    display: flex;
    gap: 10px;
}

.a11y-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.a11y-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.a11y-btn-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
    transition: var(--transition);
}

.a11y-btn-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.a11y-btn-toggle.active {
    background: rgba(14, 165, 233, 0.2);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.a11y-btn-reset {
    background: #ff4d4d;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    transition: var(--transition);
}

.a11y-btn-reset:hover {
    background: #e60000;
}

/* Animations */
.slide-from-right {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.slide-from-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.slide-from-right.visible,
.slide-from-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(3, 3, 3, 0.9) 0%, rgba(3, 3, 3, 0) 100%);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    width: 100%;
    transition: var(--transition);
}

.navbar.scrolled .nav-container {
    padding: 10px 5%;
}

.logo-container {
    display: block;
    width: 70px;
    height: 70px;
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.15));
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.08) rotate(-3deg);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--color-accent);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 101;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    transition: var(--transition);
    border-radius: 3px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 0 5%;
}

.hero-background {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background: radial-gradient(circle at center, #151515 0%, #030303 60%);
    z-index: -2;
    transition: transform 0.2s ease-out;
}

/* Grid overlay effect */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(transparent 0,
            rgba(14, 165, 233, 0.08) 1px,
            transparent 2px);
    background-size: 100% 4px;
    animation: scanlines-scroll 10s linear infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes scanlines-scroll {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 100vh;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    transform: perspective(600px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: grid-move 15s linear infinite;
    opacity: 0.6;
}

.hero-content {
    z-index: 1;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.main-title {
    font-family: var(--font-en);
    font-size: clamp(2rem, 4.5vw, 4rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    margin-bottom: 25px;
    color: var(--color-text);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    line-height: 1.15;
    text-transform: uppercase;
    direction: ltr;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: cyber-reveal 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important;
}

.hero-title .main-text {
    background: linear-gradient(90deg, #ffffff 0%, #888888 50%, #ffffff 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: text-shine 4s linear infinite;
    display: inline-block;
}

.hero-title .accent {
    color: var(--color-accent);
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.8);
    animation: neon-pulse 2s infinite alternate;
    display: inline-block;
}

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

@keyframes neon-pulse {
    from {
        text-shadow: 0 0 5px rgba(14, 165, 233, 0.5), 0 0 10px rgba(14, 165, 233, 0.3);
    }

    to {
        text-shadow: 0 0 15px rgba(14, 165, 233, 1), 0 0 30px rgba(14, 165, 233, 0.8);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #e0e0e0;
    margin-bottom: 40px;
    max-width: 600px;
    animation: cyber-reveal 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important;
    animation-delay: 0.3s !important;
    opacity: 0;
}

@keyframes cyber-reveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
        letter-spacing: 10px;
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: normal;
        filter: blur(0);
    }
}

.slogan {
    font-size: clamp(1.3rem, 3vw, 2.2rem);
    font-weight: 300;
    color: var(--color-text-dim);
    margin-bottom: 30px;
    letter-spacing: 2px;
    animation: fade-in-up 1.5s ease 0.3s forwards;
    opacity: 0;
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.8);
}

/* Glowing Button */
.btn-container {
    position: relative;
    padding: 10px;
    display: inline-block;
}

.hero-buttons .cta-button {
    animation: pulse-glow 2.5s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(14, 165, 233, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
    }
}

.cta-button {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 50px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.cta-button .btn-text {
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--color-text);
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}

.cta-button:hover::after {
    width: 100%;
}

.cta-button:hover .btn-text {
    color: var(--color-bg);
}

.cta-button:hover {
    box-shadow: 0 0 25px var(--color-accent-glow);
    border-color: var(--color-text);
    transform: translateY(-5px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.8;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--color-accent);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--color-accent);
    border-radius: 2px;
    animation: scroll-wheel 2s ease-out infinite;
}

/* Placeholders for scrolling */
.placeholder-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: #080808;
}

/* CSS Animations Classes */
.animate-fade-in-down {
    animation: fadeInDown 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.animate-slide-up-1 {
    opacity: 0;
    transform: translateY(40px);
    animation: slideUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
}

.animate-slide-up-2 {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s forwards;
}

.animate-slide-up-3 {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.9s forwards;
}

.animate-bounce {
    animation: bounce 2s infinite 2.5s;
}

/* Keyframes */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-15px) translateX(-50%);
    }

    60% {
        transform: translateY(-7px) translateX(-50%);
    }
}

@keyframes grid-move {
    0% {
        transform: perspective(600px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    }

    100% {
        transform: perspective(600px) rotateX(60deg) translateY(0px) translateZ(-200px);
    }
}

@keyframes scroll-wheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        gap: 40px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 100;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    /* Hamburger animation */
    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-container {
        padding: 15px 5%;
    }

    .navbar.scrolled .nav-container {
        padding: 15px 5%;
    }

    .logo-container {
        width: 50px;
        height: 50px;
    }


    .cta-button {
        padding: 15px 40px;
        font-size: 1.1rem;
    }
}

/* Services Section */
.services-section {
    padding: clamp(60px, 10vw, 100px) 20px;
    background-color: transparent;
    position: relative;
    z-index: 10;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(1.8rem, 6vw, 3rem);
    text-align: center;
    margin-bottom: clamp(40px, 8vw, 60px);
    position: relative;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.05);
}

.icon-container {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.01));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    font-size: 2rem;
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.service-card:hover .icon-container {
    transform: scale(1.1);
    color: #ffffff;
    box-shadow: 0 0 15px var(--color-accent-glow);
    border-color: rgba(255, 255, 255, 0.3);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.service-card p {
    color: #aaaaaa;
    line-height: 1.6;
    font-size: 1rem;
    font-weight: 300;
}

/* Observer Animation Classes */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery Section */
.gallery-section {
    padding: 100px 0;
    background-color: transparent;
    position: relative;
    z-index: 10;
    overflow: hidden;
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
}

.carousel-container {
    width: 100%;
    overflow-x: hidden; /* Changed to hidden to control via JS */
    overflow-y: hidden;
    position: relative;
    padding: 20px 0;
    scroll-behavior: auto; /* Auto for smoother JS control */
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    will-change: scroll-position;
}

.carousel-container.grabbing {
    cursor: grabbing;
}

.carousel-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: none;
    padding: 0;
    will-change: transform;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    width: 280px;
    height: 280px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes scroll-carousel {
    0% {
        transform: translateX(0);
    }

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: brightness(0.7) grayscale(20%);
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none; /* This ensures the click/drag goes to the container */
    will-change: transform, filter;
}

.carousel-container {
    user-select: none;
    -webkit-user-drag: none;
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1) grayscale(0%);
}

.gallery-item::after {
    content: '\f00e';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 2rem;
    opacity: 0;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 11000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1000;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--color-accent);
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

/* About Section */
.about-section {
    padding: 100px 20px;
    background-color: transparent;
    position: relative;
    z-index: 10;
    content-visibility: auto;
    contain-intrinsic-size: 1px 600px;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: center;
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.text-right {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 40px;
}

.text-right::after {
    left: auto;
    right: 0;
    transform: none;
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #cccccc;
    margin-bottom: 20px;
}

.about-text strong {
    color: var(--color-text);
    font-weight: 700;
}

.counters-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.counter-box {
    background: rgba(255, 255, 255, 0.03);
    border-right: 3px solid var(--color-accent);
    padding: 20px;
    border-radius: 10px 0 0 10px;
    transition: var(--transition);
}

.counter-box:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.counter-value,
.counter-suffix {
    font-family: var(--font-en);
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-text);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.counter-label {
    display: block;
    font-size: 1.1rem;
    color: #aaaaaa;
    margin-top: 5px;
    font-weight: 700;
}

.about-image-wrapper {
    flex: 1;
    min-width: 300px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.animated-camera-svg {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.8));
}

.camera-head {
    transform-origin: 180px 200px;
    animation: camera-pan 12s ease-in-out infinite;
}

.camera-lens {
    transform-origin: 355px 200px;
    animation: lens-zoom 8s ease-in-out infinite;
}

.scanner-beam {
    transform-origin: 355px 200px;
    opacity: 0.15;
    mix-blend-mode: screen;
    animation: beam-sweep 4s ease-in-out infinite alternate;
}

@keyframes camera-pan {

    0%,
    100% {
        transform: rotate(0deg);
    }

    15% {
        transform: rotate(15deg);
    }

    30% {
        transform: rotate(15deg);
    }

    45% {
        transform: rotate(-5deg);
    }

    60% {
        transform: rotate(-20deg);
    }

    75% {
        transform: rotate(-20deg);
    }

    85% {
        transform: rotate(5deg);
    }
}

@keyframes lens-zoom {

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

    20% {
        transform: scale(1.2);
    }

    40% {
        transform: scale(1.2);
    }

    60% {
        transform: scale(0.9);
    }

    80% {
        transform: scale(0.9);
    }
}

@keyframes beam-sweep {
    0% {
        transform: scaleY(0.8);
        opacity: 0.1;
    }

    100% {
        transform: scaleY(1.5);
        opacity: 0.3;
    }
}

/* Responsive adjustments for about */
@media (max-width: 768px) {
    .counters-grid {
        grid-template-columns: 1fr;
    }

    .text-right {
        text-align: center;
    }

    .text-right::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .gallery-item {
        width: 220px;
        height: 220px;
    }
}

/* Contact Section */
.contact-section {
    padding: 100px 20px;
    background: radial-gradient(circle at bottom, rgba(17, 17, 17, 0.5) 0%, rgba(3, 3, 3, 0) 100%);
    position: relative;
    z-index: 10;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact-subtitle {
    color: #aaaaaa;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--color-text);
    margin-left: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.info-list li:hover .info-icon {
    background: var(--color-text);
    color: var(--color-bg);
    box-shadow: 0 0 15px var(--color-accent-glow);
}

.info-text strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.info-text span {
    color: #cccccc;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Contact Form */
.contact-form-wrapper {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.02);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #dddddd;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-family: var(--font-he);
    font-size: 1rem;
    transition: var(--transition);
    text-align: right;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 1px;
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.6);
}

a:focus-visible,
button:focus-visible {
    outline: 2px dashed var(--color-accent);
    outline-offset: 4px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    background: #dddddd;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}


/* Footer Section */
.footer {
    background-color: #030303;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: block;
    width: 80px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 100%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-desc {
    color: #aaaaaa;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--color-text);
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aaaaaa;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-right: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

/* Mobile Footer Fixes */
@media (max-width: 768px) {
    .footer {
        padding-top: 40px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .footer-col {
        align-items: center;
    }

    .footer-desc {
        max-width: 100%;
        margin: 0 auto;
    }

    .footer-title::after {
        right: 50%;
        transform: translateX(50%);
    }

    .social-links {
        justify-content: center;
    }

    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--color-text);
    color: #000;
    box-shadow: 0 0 15px var(--color-accent-glow);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: #000000;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: #888888;
    font-size: 0.9rem;
}

/* Dynamic Backgrounds */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

.cursor-glow {
    position: fixed;
    top: -150px;
    left: -150px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 99;
    transform: translate(0, 0);
    transition: transform 0.1s ease-out;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0px);
    }
}

.service-card {
    animation: floating 4s ease-in-out infinite;
}

.service-card:nth-child(even) {
    animation-delay: 2s;
}

.service-card:nth-child(3n) {
    animation-delay: 1s;
}

.service-card:hover {
    animation-play-state: paused;
    transform: translateY(-10px) scale(1.02);
}

/* Services Tabs Layout */
.services-tabs-container {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    background: rgba(10, 10, 10, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.services-tabs-menu {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 20px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--color-text-dim);
    font-size: 1.1rem;
    padding: 15px 20px;
    text-align: right;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.tab-btn i {
    width: 24px;
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.4);
    transition: var(--transition);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text);
}

.tab-btn:hover i {
    color: var(--color-text);
}

.tab-btn.active {
    background: rgba(14, 165, 233, 0.1);
    color: var(--color-text);
    box-shadow: inset -3px 0 0 var(--color-accent);
}

.tab-btn.active i {
    color: var(--color-accent);
}

.services-tabs-content {
    flex: 1;
    position: relative;
    min-height: 300px;
}

.tab-panel {
    display: none;
    animation: fade-in-up 0.5s ease-out forwards;
}

.tab-panel.active {
    display: block;
}

.panel-icon {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 20px;
    opacity: 0.8;
}

.tab-panel h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--color-text);
}

.tab-panel p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cccccc;
    margin-bottom: 25px;
}

.panel-features {
    list-style: none;
    padding: 0;
}

.panel-features li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 10px;
    color: #e0e0e0;
}

.panel-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 2px;
    color: var(--color-accent);
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .services-tabs-container {
        flex-direction: column;
        padding: 20px;
    }

    .services-tabs-menu {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-left: 0;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .services-tabs-menu .tab-btn {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 12px 5px;
        font-size: 0.9rem;
        gap: 8px;
        white-space: normal;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.02);
    }

    .services-tabs-menu .tab-btn i {
        font-size: 1.5rem;
        width: auto;
    }

    .services-tabs-menu .tab-btn.active {
        box-shadow: inset 0 -3px 0 var(--color-accent);
        background: rgba(14, 165, 233, 0.15);
    }
}


.mobile-only {
    display: none !important;
}

.ms-auto {
    margin-right: auto;
}

@media (max-width: 992px) {
    .desktop-only {
        display: none !important;
    }

    .services-tabs-container {
        padding: 10px;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .mobile-only {
        display: flex !important;
        width: 100%;
        border-radius: 12px;
        margin-bottom: 12px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
        padding: 18px 20px;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .tab-btn.mobile-only.active {
        border-radius: 12px 12px 0 0;
        margin-bottom: 0;
        background: rgba(14, 165, 233, 0.1);
        border-color: rgba(14, 165, 233, 0.3);
        color: #fff;
    }

    .tab-btn.mobile-only.active i {
        color: var(--color-accent);
    }

    .tab-panel {
        padding: 20px;
        background: rgba(14, 165, 233, 0.03);
        border: 1px solid rgba(14, 165, 233, 0.3);
        border-top: none;
        border-radius: 0 0 12px 12px;
        margin-bottom: 12px;
    }

    .tab-btn.mobile-only i.fa-chevron-down {
        transition: transform 0.3s;
        font-size: 1rem;
        opacity: 0.6;
    }

    .tab-btn.mobile-only.active i.fa-chevron-down {
        transform: rotate(180deg);
        opacity: 1;
    }

    .tab-panel h3 {
        display: none;
    }

    .panel-icon {
        display: none;
    }
}

/* Hero Content Wrapper & Dome Camera */
.hero-content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    padding-top: 80px;
    position: relative;
    z-index: 2;
    gap: 60px;
    margin: 0 auto;
}

.hero-text-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
    min-width: 0;
}

.hero-visual-side {
    flex: 0 0 380px;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 380px;
}

.dome-camera-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 60px rgba(14, 165, 233, 0.15));
}

.dome-camera-head {
    transform-origin: 250px 200px;
    animation: dome-pan-tilt 14s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.dome-lens-zoom {
    transform-origin: 250px 270px;
    animation: dome-lens-zoom 10s infinite ease-in-out;
}

.dome-recording-led {
    animation: dome-led-blink 2s infinite;
}

@keyframes dome-pan-tilt {
    0%, 100% { transform: translate(0, 0); }
    15% { transform: translate(30px, -10px); }
    35% { transform: translate(-30px, 15px); }
    55% { transform: translate(0px, 20px); }
    75% { transform: translate(-20px, -10px); }
    85% { transform: translate(25px, 10px); }
}

@keyframes dome-lens-zoom {
    0%, 100% { transform: scale(1); }
    30% { transform: scale(1.15); }
    60% { transform: scale(0.92); }
    80% { transform: scale(1.1); }
}

@keyframes dome-led-blink {
    0%, 50%, 100% { opacity: 1; filter: drop-shadow(0 0 5px red); }
    25%, 75% { opacity: 0.3; filter: none; }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.main-title {
    animation: fade-in-up 1.5s ease forwards !important;
    opacity: 0;
}

.slogan {
    animation: fade-in-up 1.5s ease 0.3s forwards !important;
    opacity: 0;
}

@media (max-width: 992px) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-content-wrapper {
        flex-direction: column-reverse; /* Put visual first on mobile sometimes, or keep text first? Text first usually better for SEO/UX. Let's keep column but adjust gaps */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding-top: 60px;
        padding-bottom: 40px;
        gap: 40px;
    }

    .hero-text-side {
        align-items: center;
        text-align: center;
        order: 1;
    }

    .hero-visual-side {
        flex: 0 0 auto;
        width: 280px;
        max-width: 80%;
        margin: 0 auto;
        order: 2;
    }

    .main-title {
        font-size: clamp(1.8rem, 8vw, 3rem) !important;
        margin-bottom: 15px;
        line-height: 1.2;
    }

    .slogan {
        font-size: clamp(1rem, 4vw, 1.4rem) !important;
        margin-bottom: 25px !important;
    }

    .dome-camera-svg {
        width: 100%;
        height: auto;
    }
}


/* Global A11y Classes */
body.a11y-readable-font * {
    font-family: Arial, Helvetica, sans-serif !important;
}

body.a11y-high-contrast {
    background-color: #000 !important;
    color: #ffeb3b !important;
}

body.a11y-high-contrast * {
    background-color: #000 !important;
    color: #ffeb3b !important;
    border-color: #ffeb3b !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

body.a11y-high-contrast img, 
body.a11y-high-contrast svg {
    filter: grayscale(100%) contrast(120%) brightness(120%) !important;
}

body.a11y-high-contrast .a11y-menu, 
body.a11y-high-contrast .a11y-menu * {
    background-color: #111 !important;
    color: #ffeb3b !important;
    border-color: #ffeb3b !important;
}

body.a11y-highlight-links a {
    text-decoration: underline !important;
    text-decoration-thickness: 3px !important;
    color: #ffeb3b !important;
    background-color: #000 !important;
    padding: 2px !important;
}

body.a11y-no-animations * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

/* Guarantee Mobile Button Stacking on Left */
@media (max-width: 768px) {
    .whatsapp-btn {
        right: auto !important;
        left: 20px !important;
        bottom: 20px !important;
    }

    .a11y-toggle-btn {
        right: auto !important;
        left: 20px !important;
        bottom: 90px !important;
    }

    .a11y-menu {
        bottom: 160px !important;
        right: auto !important;
        left: 20px !important;
        width: 320px !important;
        max-width: calc(100vw - 40px) !important;
        transform-origin: bottom left !important;
    }
}