:root {
    --bg-dark: #050505;
    --bg-panel: rgba(255, 255, 255, 0.05);
    --primary-cyan: #00f3ff;
    --primary-purple: #bc13fe;
    --primary-green: #0aff0a;
    --primary-gold: #ffd700;
    --primary-red: #ff3333;
    --primary-blue: #0088ff;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;

    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Canvas Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
    /* Ensure clicks pass through */
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-cyan);
    color: #000;
    border: none;
}

.btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 20px var(--primary-cyan);
}

.btn-outline {
    background: transparent;
    color: var(--primary-cyan);
    border: 1px solid var(--primary-cyan);
}

.btn-outline:hover {
    background: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 15px var(--primary-cyan);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-white);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    background: linear-gradient(90deg, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.center-text {
    text-align: center;
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: var(--glass-border);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--text-white);
    text-decoration: none;
    letter-spacing: 2px;
}

.header-logo {
    height: 50px;
    /* Reduced from 80px */
    width: auto;
    object-fit: contain;
}

.logo-box {
    background: var(--text-white);
    color: #000;
    padding: 0 5px;
    margin-right: 5px;
}

.desktop-nav a {
    color: var(--text-gray);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: var(--primary-cyan);
    text-shadow: 0 0 8px var(--primary-cyan);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1rem;
    letter-spacing: 4px;
    color: var(--primary-cyan);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.typewriter {
    color: var(--primary-purple);
    border-right: 2px solid var(--primary-purple);
    /* Cursor */
    animation: blink 0.75s step-end infinite;
}

@keyframes blink {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--primary-purple);
    }
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

/* Glass Panel Utility */
.glass-panel {
    background: var(--bg-panel);
    border: var(--glass-border);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: var(--glass-shadow);
    border-color: rgba(255, 255, 255, 0.2);
}

/* About Section */
.section {
    padding: 6rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-card {
    position: absolute;
    width: 200px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tech-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-cyan);
}

/* Orbit Animation */
.orbit-ring {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    /* border: 1px dashed rgba(255, 255, 255, 0.1);  Optional: show orbit path */
    animation: orbitCW 20s linear infinite;
}

@keyframes orbitCW {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.about-image-wrapper .tech-card {
    /* Reset Previous Positioning */
    top: auto;
    left: auto;
    bottom: auto;
    right: auto;
    transform: none;

    position: absolute;
    width: 200px;
    margin-left: -100px;
    /* Center horizontally on pivot point */
    margin-top: -40px;
    /* Center vertically on pivot point */

    animation: orbitCCW 20s linear infinite;
}

@keyframes orbitCCW {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

/* Position cards on the ring (Radius ~150px) */
/* Card 1: Top (0 degrees) */
.about-image-wrapper .tech-card:first-child {
    top: 0;
    left: 50%;

    z-index: 2;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--primary-cyan);
}

/* Card 2: Bottom Right (~120 degrees) */
/* Approx coordinates for 120deg on 300px circle: top: 75%, left: 93% */
.about-image-wrapper .card-2 {
    top: 75%;
    left: 93%;

    z-index: 1;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--primary-purple);
}

/* Card 3: Bottom Left (~240 degrees) */
/* Approx coordinates for 240deg on 300px circle: top: 75%, left: 7% */
.about-image-wrapper .card-3 {
    top: 75%;
    left: 7%;

    z-index: 3;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--primary-green);
    box-shadow: 0 0 20px rgba(10, 255, 10, 0.2);
}

/* Specific icon colors need to be re-applied because specificity might change */
.card-2 .tech-icon {
    color: var(--primary-purple);
}

.card-3 .tech-icon {
    color: var(--primary-green);
}

.stats-row {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    border-top: 1px solid #222;
    padding-top: 2rem;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-white);
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    text-align: left;
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.neon-green {
    color: var(--primary-green);
    box-shadow: 0 0 10px rgba(10, 255, 10, 0.2);
}

.neon-cyan {
    color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.neon-purple {
    color: var(--primary-purple);
    box-shadow: 0 0 10px rgba(188, 19, 254, 0.2);
}

.neon-gold {
    color: var(--primary-gold);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.neon-red {
    color: var(--primary-red);
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.2);
}

.neon-blue {
    color: var(--primary-blue);
    box-shadow: 0 0 10px rgba(0, 136, 255, 0.2);
}

.service-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    min-height: 80px;
}

/* Service Card Animation */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card span {
    position: absolute;
    display: block;
}

.service-card span:nth-child(1) {
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-purple));
    animation: btn-anim1 2s linear infinite;
}

@keyframes btn-anim1 {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

.service-card span:nth-child(2) {
    top: -100%;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--primary-purple));
    animation: btn-anim2 2s linear infinite;
    animation-delay: .5s
}

@keyframes btn-anim2 {
    0% {
        top: -100%;
    }

    50%,
    100% {
        top: 100%;
    }
}

.service-card span:nth-child(3) {
    bottom: 0;
    right: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg, transparent, var(--primary-purple));
    animation: btn-anim3 2s linear infinite;
    animation-delay: 1s
}

@keyframes btn-anim3 {
    0% {
        right: -100%;
    }

    50%,
    100% {
        right: 100%;
    }
}

.service-card span:nth-child(4) {
    bottom: -100%;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(360deg, transparent, var(--primary-purple));
    animation: btn-anim4 2s linear infinite;
    animation-delay: 1.5s
}

@keyframes btn-anim4 {
    0% {
        bottom: -100%;
    }

    50%,
    100% {
        bottom: 100%;
    }
}

.service-card:hover {
    background: #03e9f4;
    color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 5px #03e9f4, 0 0 25px #03e9f4, 0 0 50px #03e9f4, 0 0 100px #03e9f4;
}

.service-card:hover .icon-box,
.service-card:hover h4,
.service-card:hover p,
.service-card:hover a {
    /* keep text readable on hover if needed, or adjust hover effect */
    z-index: 1;
    position: relative;
    color: #000;
}

/* Reset specific hover that might conflict */
.service-card:hover .icon-box {
    background: transparent;
    box-shadow: none;
    color: #000;
}


.learn-more {
    text-decoration: none;
    color: var(--text-white);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: gap 0.3s;
}

.learn-more:hover {
    gap: 1rem;
    color: var(--primary-cyan);
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.contact-info p {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    padding: 1rem;
    color: #fff;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-cyan);
}

/* Footer */
footer {
    border-top: 1px solid #111;
    padding: 3rem 0;
    margin-top: 4rem;
    background: #000;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left p {
    color: #555;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #555;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #fff;
}

/* Mobile */
.mobile-toggle {
    display: none;
    color: #fff;
    cursor: pointer;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .desktop-nav {
        display: none;
        /* Implement JS toggle later if needed */
    }

    .mobile-toggle {
        display: block;
    }
}

/* Team Carousel 3D */
.carousel-container {
    perspective: 1000px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.carousel-ring {
    width: 200px;
    height: 300px;
    position: absolute;
    transform-style: preserve-3d;
    animation: rotateRing 15s linear infinite;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes rotateRing {
    0% {
        transform: translateY(-50%) rotateY(0deg);
    }

    100% {
        transform: translateY(-50%) rotateY(360deg);
    }
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: center;
    transform: rotateY(calc(var(--i) * 90deg)) translateZ(300px);
    backface-visibility: hidden;
    -webkit-box-reflect: below 5px linear-gradient(transparent, transparent, rgba(0, 0, 0, 0.2));
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.5));
    transition: transform 0.3s;
}

.carousel-item:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(188, 19, 254, 0.8));
}

.carousel-container:hover .carousel-ring {
    animation-play-state: paused;
}

/* Specific sizing for Team Section (Reverted to Original) */
.team-section .carousel-container {
    height: 400px;
}

.team-section .carousel-ring {
    width: 200px;
    height: 300px;
}

.team-section .carousel-item {
    transform: rotateY(calc(var(--i) * 90deg)) translateZ(300px);
}

/* 7-item spacing (360 / 7 ~= 51.43deg) */
.client-ring .carousel-item {
    transform: rotateY(calc(var(--i) * 51.43deg)) translateZ(300px);
}



.team-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 1rem auto 2rem;
    flex-wrap: wrap;
}

.partner-logo {
    max-width: 150px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    transition: transform 0.3s;
}

.partner-logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px var(--primary-cyan));
}

/* Partner Float */
.partner-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.partner-label {
    color: var(--primary-purple);
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    max-width: 200px;
    /* Ensure content can expand */
    animation: typing 4s steps(40, end) infinite;
    /* Smoother steps */
    margin-bottom: -5px;
}

@keyframes typing {
    0% {
        width: 0;
    }

    50% {
        width: 100%;
    }

    90% {
        width: 100%;
    }

    /* Pause at full width */
    100% {
        width: 0;
    }

    /* Optional: delete cycle or just reset */
}

.partner-btn {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 8px;
    /* Match img border radius */
    padding: 2px;
    /* Space for border */
    background: transparent;
}

.partner-btn img {
    width: 100px;
    /* Reduced from 150px */
    height: auto;
    /* Background removed for transparency */
    padding: 0;
    border-radius: 0;
    /* Let container handle radius if needed, or keep slightly smaller */
    display: block;
    position: relative;
    z-index: 2;
    /* Content above border */
}

/* Animated Border Spans */
.partner-btn span {
    position: absolute;
    display: block;
}

.partner-btn span:nth-child(1) {
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-purple));
    animation: btn-anim1 2s linear infinite;
}

.partner-btn span:nth-child(2) {
    top: -100%;
    right: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--primary-purple));
    animation: btn-anim2 2s linear infinite;
    animation-delay: 0.5s;
}

.partner-btn span:nth-child(3) {
    bottom: 0;
    right: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(270deg, transparent, var(--primary-purple));
    animation: btn-anim3 2s linear infinite;
    animation-delay: 1s;
}

.partner-btn span:nth-child(4) {
    bottom: -100%;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(360deg, transparent, var(--primary-purple));
    animation: btn-anim4 2s linear infinite;
    animation-delay: 1.5s;
}

.partner-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(188, 19, 254, 0.4);
    /* Purple glow on hover */
}

.partner-btn:hover span {
    background: linear-gradient(90deg, transparent, var(--primary-cyan));
    /* Switch to Cyan on hover for effect */
}

/* Adjust span directions for generic hover override if needed */
.partner-btn:hover span:nth-child(2) {
    background: linear-gradient(180deg, transparent, var(--primary-cyan));
}

.partner-btn:hover span:nth-child(3) {
    background: linear-gradient(270deg, transparent, var(--primary-cyan));
}

.partner-btn:hover span:nth-child(4) {
    background: linear-gradient(360deg, transparent, var(--primary-cyan));
}

@keyframes btn-anim1 {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

@keyframes btn-anim2 {
    0% {
        top: -100%;
    }

    50%,
    100% {
        top: 100%;
    }
}

@keyframes btn-anim3 {
    0% {
        right: -100%;
    }

    50%,
    100% {
        right: 100%;
    }
}

@keyframes btn-anim4 {
    0% {
        bottom: -100%;
    }

    50%,
    100% {
        bottom: 100%;
    }
}

@media (max-width: 768px) {
    .partner-float {
        bottom: 80px;
        /* Above WhatsApp button if overlapping, or adjust */
        left: 15px;
        gap: 10px;
    }

    .partner-btn img {
        width: 100px;
        padding: 5px;
    }
}



.margin-top-header {
    margin-top: 100px;
}

.table-container {
    overflow-x: auto;
    padding: 2rem;
}

.consultant-table {
    width: 100%;
    border-collapse: collapse;
    background: #000;
    border: 1px solid var(--primary-purple);
    color: #fff;
    font-family: var(--font-body);
}

.consultant-table th,
.consultant-table td {
    padding: 1rem;
    border: 1px solid var(--primary-purple);
    text-align: left;
}

.consultant-table th {
    background: rgba(188, 19, 254, 0.1);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1rem;
    color: var(--primary-purple);
}

.consultant-table tr:hover {
    background: rgba(188, 19, 254, 0.05);
}

/* Cyber Marquee */
.cyber-marquee-container {
    position: fixed;
    top: 112px;
    left: 0;
    width: 100%;
    z-index: 900;
    background: #000;
    border-bottom: 1px solid var(--primary-cyan);
    border-top: 1px solid var(--primary-cyan);
    overflow: hidden;
    padding: 0.4rem 0;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.cyber-marquee-content {
    display: inline-block;
    white-space: nowrap;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 0 2px var(--primary-cyan);

    /* Animation: Right to Left */
    padding-left: 100%;
    animation: marquee-rl 20s linear infinite;
}

@keyframes marquee-rl {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}

/* WhatsApp Float */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    width: 60px;
    height: 60px;
    background: transparent;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.wa-float img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wa-float:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(0, 243, 255, 0.4));
}