:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #0f1429;
    --bg-card: rgba(20, 25, 50, 0.6);
    --cyan: #00ffff;
    --blue: #00bfff;
    --purple: #8b00ff;
    --magenta: #ff00ff;
    --green: #00ff88;
    --text-primary: #ffffff;
    --text-secondary: #a8b2d1;
    --glow-cyan: 0 0 20px rgba(0, 255, 255, 0.5);
    --glow-purple: 0 0 20px rgba(139, 0, 255, 0.5);
    --glow-magenta: 0 0 20px rgba(255, 0, 255, 0.5);
}

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

body {
    font-family: 'IBM Plex Mono', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--cyan);
    text-decoration: none;
    text-shadow: var(--glow-cyan);
    letter-spacing: 3px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--cyan);
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    transition: width 0.3s ease;
}

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

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

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

.quantum-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bloch-sphere-container {
    position: absolute;
    top: 10%;
    right: 10%;
    opacity: 0.4;
}

#blochSphere {
    width: 300px;
    height: 300px;
}

.quantum-circuit {
    position: absolute;
    bottom: 10%;
    left: 5%;
    opacity: 0.3;
    width: 800px;
}

.gate {
    opacity: 0;
    animation: gateAppear 0.6s ease forwards;
}

@keyframes gateAppear {
    to {
        opacity: 1;
    }
}

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

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 7rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.glitch {
    position: relative;
    display: block;
    color: var(--cyan);
    text-shadow: var(--glow-cyan);
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 90%, 100% {
        transform: translate(0);
    }
    92% {
        transform: translate(-2px, 2px);
    }
    94% {
        transform: translate(2px, -2px);
    }
    96% {
        transform: translate(-2px, -2px);
    }
}

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

.glitch::before {
    animation: glitchBefore 3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    color: var(--purple);
}

.glitch::after {
    animation: glitchAfter 3s infinite;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    color: var(--magenta);
}

@keyframes glitchBefore {
    0%, 90%, 100% {
        transform: translate(0);
    }
    92% {
        transform: translate(-3px, 0);
    }
}

@keyframes glitchAfter {
    0%, 90%, 100% {
        transform: translate(0);
    }
    94% {
        transform: translate(3px, 0);
    }
}

.subtitle {
    display: block;
    font-size: 3rem;
    background: linear-gradient(90deg, var(--purple), var(--magenta), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
    background-size: 200% 100%;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 2rem auto 0;
    animation: fadeInUp 1s ease 0.5s backwards;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: var(--glow-cyan);
    animation: scrollBounce 2s ease infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(15px);
    }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Titles */
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Quantum Intro Section */
.quantum-intro {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
}

.quantum-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(139, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.intro-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.intro-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--cyan), var(--purple), var(--magenta));
    border-radius: 20px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.intro-card:hover::before {
    opacity: 1;
}

.intro-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.3);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    position: relative;
}

.superposition-icon {
    background: radial-gradient(circle, rgba(0, 191, 255, 0.3), transparent);
    border: 2px solid var(--blue);
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.5);
}

.superposition-icon::before,
.superposition-icon::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--blue);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.superposition-icon::before {
    left: 15px;
    animation: pulse 2s ease infinite;
}

.superposition-icon::after {
    right: 15px;
    animation: pulse 2s ease infinite 1s;
}

@keyframes pulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-50%) scale(1.3);
        opacity: 0.7;
    }
}

.entanglement-icon {
    background: radial-gradient(circle, rgba(139, 0, 255, 0.3), transparent);
    border: 2px solid var(--purple);
    box-shadow: 0 0 30px rgba(139, 0, 255, 0.5);
    position: relative;
}

.entanglement-icon::before,
.entanglement-icon::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--purple);
    border-radius: 50%;
}

.entanglement-icon::before {
    top: 20px;
    left: 20px;
}

.entanglement-icon::after {
    bottom: 20px;
    right: 20px;
}

.interference-icon {
    background: radial-gradient(circle, rgba(0, 255, 136, 0.3), transparent);
    border: 2px solid var(--green);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    position: relative;
}

.interference-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
    top: 50%;
    left: 0;
    animation: wave 2s ease infinite;
}

@keyframes wave {
    0%, 100% {
        transform: translateY(-50%) scaleX(1);
    }
    50% {
        transform: translateY(-50%) scaleX(0.7);
    }
}

.intro-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--cyan);
    margin-bottom: 1rem;
}

.intro-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Pillars Section */
.pillars {
    padding: 8rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.pillars::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--cyan), transparent);
    opacity: 0.3;
}

.pillars-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 4rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem;
    margin-top: 4rem;
}

.pillar-card {
    text-align: center;
    padding: 2rem;
    transition: all 0.4s ease;
}

.pillar-card:hover {
    transform: scale(1.05);
}

.orbital-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto 2rem;
}

.orbital-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pillar-nucleus {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.6));
}

.pillar-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--cyan);
    text-shadow: var(--glow-cyan);
}

.pillar-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.pillar-link {
    display: inline-block;
    color: var(--purple);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.pillar-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--purple);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.pillar-link:hover {
    color: var(--magenta);
    text-shadow: var(--glow-magenta);
}

.pillar-link:hover::after {
    transform: scaleX(1);
    background: var(--magenta);
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(139, 0, 255, 0.1), rgba(0, 255, 255, 0.1));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 50%, rgba(255, 0, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(0, 255, 255, 0.15) 0%, transparent 50%);
    animation: ctaGlow 8s ease infinite;
}

@keyframes ctaGlow {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.cta h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.cta p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn {
    padding: 1rem 2.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    color: var(--text-primary);
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 15px 40px rgba(0, 255, 255, 0.5);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--cyan);
    border-color: var(--cyan);
}

.btn-secondary:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    padding: 3rem 0;
    background: var(--bg-primary);
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    text-align: center;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Design */

/* Tablets and smaller laptops */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 5.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .orbital-container {
        width: 200px;
        height: 200px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 1.5rem;
        position: relative;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 2rem;
        padding: 6rem 2rem 2rem;
        border-left: 1px solid rgba(0, 255, 255, 0.2);
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 0.5rem 0;
    }
    
    .nav-link::after {
        bottom: 0;
    }
    
    .hero {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .quantum-circuit {
        display: none;
    }
    
    .bloch-sphere-container {
        top: 15%;
        right: 5%;
    }
    
    #blochSphere {
        width: 200px;
        height: 200px;
    }
    
    .quantum-intro,
    .pillars {
        padding: 5rem 0;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .intro-card {
        padding: 2rem;
    }
    
    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .orbital-container {
        width: 180px;
        height: 180px;
    }
    
    .pillar-card h3 {
        font-size: 1.5rem;
    }
    
    .cta {
        padding: 4rem 0;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
    
    .cta p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 80%;
        max-width: 300px;
    }
}

/* Mobile devices */
@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }
    
    .logo {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }
    
    .nav-links {
        width: 80%;
        padding: 5rem 1.5rem 2rem;
    }
    
    .nav-link {
        font-size: 0.95rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .bloch-sphere-container {
        opacity: 0.2;
    }
    
    #blochSphere {
        width: 150px;
        height: 150px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .pillars-intro {
        font-size: 0.95rem;
    }
    
    .intro-card,
    .pillar-card {
        padding: 1.5rem;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
    }
    
    .intro-card h3,
    .pillar-card h3 {
        font-size: 1.3rem;
    }
    
    .intro-card p,
    .pillar-card p {
        font-size: 0.9rem;
    }
    
    .orbital-container {
        width: 150px;
        height: 150px;
    }
    
    .pillar-nucleus svg {
        width: 50px;
        height: 50px;
    }
    
    .cta h2 {
        font-size: 1.8rem;
    }
    
    .cta p {
        font-size: 0.95rem;
    }
    
    .btn {
        width: 90%;
        padding: 0.9rem 2rem;
        font-size: 0.9rem;
    }
    
    .footer p {
        font-size: 0.8rem;
    }
}

/* Very small devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .nav-links {
        font-size: 0.75rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }
}
