/* =========================================
   QUANTUMX - ADVANCED ENGINEERING THEME
   ========================================= */

:root {
    --bg-main: #030305;
    --bg-darker: #010102;
    --neon-cyan: #00f3ff;
    --neon-purple: #bc13fe;
    --text-main: #ffffff;
    --text-muted: #8a8a93;
    --glass-bg: rgba(10, 10, 15, 0.6);
    --glass-border: rgba(0, 243, 255, 0.15);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Custom cursor */
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-cyan) var(--bg-main);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--neon-cyan), var(--neon-purple));
    border-radius: 10px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    font-size: 18px;
}

/* Custom Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-cyan);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--neon-purple);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
}

/* Typography */
h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    text-transform: uppercase;
}

p {
    line-height: 1.7;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Navbar */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid transparent;
}

nav.scrolled {
    background: rgba(3, 3, 5, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 5%;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.05);
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.logo span {
    color: var(--neon-cyan);
}

.fa-spin-slow {
    animation: spin 8s linear infinite;
    color: var(--neon-purple);
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 2px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--neon-cyan);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--neon-cyan);
}

.nav-links a:hover {
    color: var(--neon-cyan);
}

.nav-links a:hover::before {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

/* Glitch Effect */
.glitch-wrapper {
    margin-bottom: 10px;
}

.glitch {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 900;
    position: relative;
    color: white;
    letter-spacing: 5px;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-main);
}

.glitch::before {
    left: 3px;
    text-shadow: -2px 0 var(--neon-purple);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -3px;
    text-shadow: -2px 0 var(--neon-cyan);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip-path: inset(20% 0 80% 0);
    }

    20% {
        clip-path: inset(60% 0 10% 0);
    }

    40% {
        clip-path: inset(40% 0 50% 0);
    }

    60% {
        clip-path: inset(80% 0 5% 0);
    }

    80% {
        clip-path: inset(10% 0 70% 0);
    }

    100% {
        clip-path: inset(30% 0 20% 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip-path: inset(10% 0 60% 0);
    }

    20% {
        clip-path: inset(30% 0 20% 0);
    }

    40% {
        clip-path: inset(70% 0 10% 0);
    }

    60% {
        clip-path: inset(20% 0 50% 0);
    }

    80% {
        clip-path: inset(50% 0 30% 0);
    }

    100% {
        clip-path: inset(5% 0 80% 0);
    }
}

.subtitle {
    font-size: 1.5rem;
    color: var(--neon-cyan);
    margin-bottom: 1.5rem;
    height: 30px;
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero-desc {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #ccc;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.btn {
    padding: 15px 40px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}

.btn-neon {
    background: rgba(0, 243, 255, 0.1);
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    box-shadow: inset 0 0 10px rgba(0, 243, 255, 0.2), 0 0 20px rgba(0, 243, 255, 0.2);
}

.btn-neon:hover {
    background: var(--neon-cyan);
    color: var(--bg-main);
    box-shadow: 0 0 30px var(--neon-cyan);
}

.btn-outline {
    background: transparent;
    color: var(--neon-purple);
    border: 1px solid var(--neon-purple);
}

.btn-outline:hover {
    background: var(--neon-purple);
    color: var(--text-main);
    box-shadow: 0 0 30px var(--neon-purple);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--neon-cyan);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
    box-shadow: 0 0 10px var(--neon-cyan);
}

@keyframes scroll {
    0% {
        top: 10px;
        opacity: 1;
    }

    100% {
        top: 30px;
        opacity: 0;
    }
}

/* Sections */
.section {
    padding: 120px 5%;
    position: relative;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: 3rem;
    letter-spacing: 3px;
    display: inline-block;
    position: relative;
}

.title-line {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    margin: 15px auto 0;
    box-shadow: 0 0 15px var(--neon-cyan);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.highlight-text {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--neon-purple);
    padding-left: 15px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem 1rem;
    text-align: center;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, border-color 0.3s;
}

.stat-box i {
    font-size: 2rem;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
}

.stat-box h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.stat-box p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hologram Animation */
.hologram-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hologram-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--neon-cyan);
    border-bottom-color: var(--neon-purple);
}

.ring-1 {
    width: 100%;
    height: 100%;
    animation: spin 10s linear infinite;
}

.ring-2 {
    width: 80%;
    height: 80%;
    animation: spin 7s linear infinite reverse;
    border-width: 3px;
    opacity: 0.7;
}

.ring-3 {
    width: 60%;
    height: 60%;
    animation: spin 5s linear infinite;
    border-top-color: var(--neon-purple);
    border-bottom-color: var(--neon-cyan);
}

.hologram-icon {
    font-size: 5rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 20px var(--neon-cyan);
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
        text-shadow: 0 0 40px var(--neon-cyan);
    }
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    justify-content: center;
}

.team-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(0, 243, 255, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.team-card:hover .card-glow {
    opacity: 1;
}

.member-img {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--neon-purple);
}

.member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s;
}

.team-card:hover .member-img img {
    transform: scale(1.1);
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 19, 254, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.team-card:hover .member-overlay {
    opacity: 1;
}

.member-overlay i {
    font-size: 3rem;
    color: #fff;
    text-shadow: 0 0 15px var(--neon-cyan);
    transform: translateZ(30px);
}

.member-info {
    padding: 2rem;
    position: relative;
    z-index: 1;
    transform: translateZ(20px);
}

.member-info h3 {
    font-size: 1.4rem;
    color: var(--neon-cyan);
    margin-bottom: 5px;
}

.role {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--neon-purple);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.member-info p {
    font-size: 0.95rem;
}

/* Robot Section */
.robot-showcase {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.robot-blueprint {
    position: relative;
    background: rgba(0, 243, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    overflow: hidden;
}

.blueprint-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 243, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
}

.robot-img {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 20px rgba(0, 243, 255, 0.3));
    mix-blend-mode: screen;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--neon-cyan);
    box-shadow: 0 0 20px var(--neon-cyan);
    z-index: 2;
    animation: scan 4s linear infinite;
    opacity: 0.5;
}

@keyframes scan {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

.hotspot {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hotspot-dot {
    width: 15px;
    height: 15px;
    background: var(--neon-purple);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--neon-purple);
    animation: pulse 2s infinite;
}

.hotspot-label {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--neon-purple);
    padding: 5px 10px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: #fff;
    border-radius: 4px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.hotspot:hover .hotspot-label {
    opacity: 1;
    transform: translateX(0);
}

.robot-specs {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.spec-item {
    display: flex;
    gap: 1.5rem;
    background: var(--glass-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--neon-cyan);
    transition: transform 0.3s, box-shadow 0.3s;
}

.spec-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 20px rgba(0, 243, 255, 0.1);
    border-left-color: var(--neon-purple);
}

.spec-icon {
    font-size: 2.5rem;
    color: var(--neon-cyan);
    display: flex;
    align-items: center;
}

.spec-details h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #fff;
}

/* Footer */
footer {
    position: relative;
    background: #000;
    padding: 4rem 5% 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    overflow: hidden;
}

.footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

.footer-logo {
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.footer-tagline {
    font-family: var(--font-heading);
    color: var(--neon-purple);
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.social-btn {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.5rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(var(--neon-cyan), var(--neon-purple));
    transition: top 0.3s;
    z-index: -1;
}

.social-btn:hover {
    color: #000;
    border-color: transparent;
    box-shadow: 0 0 20px var(--neon-cyan);
}

.social-btn:hover::before {
    top: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Mobile Responsive */
.burger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.burger div {
    width: 25px;
    height: 2px;
    background: #fff;
    margin: 6px;
    transition: all 0.3s;
}

@media (max-width: 992px) {

    .about-grid,
    .robot-showcase {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hologram-container {
        width: 300px;
        height: 300px;
    }

    .glitch {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 100%;
        background: rgba(1, 1, 2, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .burger {
        display: block;
    }

    .burger.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger.toggle .line2 {
        opacity: 0;
    }

    .burger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    /* Disable custom cursor on mobile */
    * {
        cursor: auto;
    }
}