/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00ff88;
    --secondary-color: #0066ff;
    --background-dark: #0a0a0a;
    --background-secondary: #111111;
    --background-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-accent: #888888;
    --border-color: #333333;
    --gradient-primary: linear-gradient(135deg, #00ff88 0%, #0066ff 100%);
    --gradient-secondary: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    --shadow-glow: 0 0 30px rgba(0, 255, 136, 0.3);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
    --font-primary: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

html {
    scroll-behavior: smooth;
    /* Remove 300ms click delay on mobile */
    touch-action: manipulation;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Fast click response for all interactive elements */
button, a, [role="button"], .nav-link, .btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loading Screen */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

#loading.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.nullora-logo {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    font-family: var(--font-mono);
    letter-spacing: 0.2em;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: var(--background-card);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loading-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: loading 2s ease-in-out forwards;
}

@keyframes loading {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
    touch-action: manipulation; /* Remove 300ms click delay on mobile */
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: var(--shadow-card);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-image {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px var(--primary-color));
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.15s ease; /* Faster transition for quicker feedback */
    position: relative;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:active {
    transform: scale(0.95);
    color: var(--primary-color);
}

/* Faster click response */
.nav-link:active::after {
    width: 100%;
    background: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* 3D Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-family: var(--font-mono);
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease-out forwards;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    animation: slideIn 1s ease-out 0.8s forwards;
    transform: scaleX(0);
    transform-origin: left;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    to {
        transform: scaleX(1);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.2s forwards;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease; /* Faster transition */
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.btn:active {
    transform: scale(0.95);
    transition: transform 0.1s ease; /* Very fast active response */
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--background-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.btn-accent {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    color: var(--text-primary);
    border: 2px solid transparent;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, #9333ea 0%, #c084fc 100%);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.4s forwards;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-mono);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 2px;
    height: 40px;
    background: var(--primary-color);
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -5px;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* About Section */
.about {
    background: var(--background-secondary);
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-card);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
}

.feature-icon {
    color: var(--primary-color);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.visual-container {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-card {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    animation: float 6s ease-in-out infinite;
    transform-style: preserve-3d;
    perspective: 1000px;
    position: relative;
    overflow: hidden;
}

.floating-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    opacity: 0;
    transition: all 0.6s ease;
    z-index: 0;
    animation: rotate 8s linear infinite;
}

.floating-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 0;
    border-radius: 20px;
}

.floating-card:hover::before {
    opacity: 0.3;
}

.floating-card:hover::after {
    opacity: 0.03;
}

.floating-card:hover {
    border-color: var(--primary-color);
    box-shadow: 
        var(--shadow-glow),
        0 30px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-10px) rotateX(10deg) rotateY(10deg) scale(1.05);
}

.floating-card * {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.floating-card:hover .card-content {
    transform: translateZ(20px);
}

.floating-card:hover .card-icon {
    transform: translateZ(30px) rotateY(180deg) scale(1.2);
}

.floating-card:hover .card-content h4 {
    transform: translateZ(25px);
    color: var(--primary-color);
}

.floating-card:hover .card-content p {
    transform: translateZ(20px);
    color: var(--text-primary);
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        filter: brightness(1);
    }
    25% { 
        transform: translateY(-15px) rotate(1deg);
        filter: brightness(1.05);
    }
    50% { 
        transform: translateY(-25px) rotate(2deg);
        filter: brightness(1.1);
    }
    75% { 
        transform: translateY(-15px) rotate(1deg);
        filter: brightness(1.05);
    }
}

.card-content {
    text-align: center;
}

.card-icon {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card-icon svg {
    width: 48px;
    height: 48px;
}

.card-content h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Features Section */
.features {
    padding: 6rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    opacity: 0;
    transform: translateY(50px) rotateX(-15deg);
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 0;
    transform: scale(0);
    border-radius: 20px;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: all 0.8s ease;
    z-index: -1;
    animation: rotate 4s linear infinite;
}

.feature-card:hover::before {
    opacity: 0.08;
    transform: scale(1);
}

.feature-card:hover::after {
    opacity: 0.3;
}

.feature-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg) scale(1.02);
    box-shadow: 
        var(--shadow-glow),
        0 25px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.feature-card * {
    position: relative;
    z-index: 1;
}

.feature-icon-wrapper {
    margin-bottom: 1.5rem;
    transform: translateZ(20px);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    transform: translateZ(30px) scale(1.1);
}

.feature-card .feature-icon {
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.3));
    color: var(--primary-color);
}

.feature-card .feature-icon svg {
    width: 48px;
    height: 48px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon svg {
    transform: rotateY(180deg) scale(1.1);
    filter: drop-shadow(0 0 20px var(--primary-color));
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    transform: translateZ(10px);
    transition: all 0.3s ease;
}

.feature-card:hover h3 {
    transform: translateZ(20px);
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    transform: translateZ(5px);
    transition: all 0.3s ease;
}

.feature-card:hover p {
    transform: translateZ(15px);
    color: var(--text-primary);
}

/* Technology Section */
.technology {
    background: var(--background-secondary);
    padding: 6rem 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.tech-category {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.tech-category:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.1);
}

.tech-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tech-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--background-secondary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: var(--background-dark);
    color: var(--primary-color);
}

.tech-icon {
    color: var(--primary-color);
}

.tech-icon svg {
    width: 24px;
    height: 24px;
}

.tech-visualization {
    height: 300px;
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.tech-network {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Mechanisms Section */
.mechanisms {
    padding: 6rem 0;
    background: var(--background-dark);
}

.mechanisms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
}

.mechanism-item {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    opacity: 0;
    transform: translateX(-100px) rotateY(-15deg);
}

.mechanism-item.animate-in {
    opacity: 1;
    transform: translateX(0) rotateY(0deg);
}

.mechanism-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: all 0.6s ease;
    z-index: 0;
    transform: skewX(-45deg) translateX(-100%);
}

.mechanism-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.mechanism-item:hover::before {
    opacity: 0.05;
    transform: skewX(-45deg) translateX(100%);
}

.mechanism-item:hover::after {
    opacity: 1;
}

.mechanism-item:hover {
    border-color: var(--primary-color);
    box-shadow: 
        var(--shadow-glow),
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-8px) rotateX(2deg) rotateY(2deg);
}

.mechanism-item * {
    position: relative;
    z-index: 1;
}

.mechanism-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    transform: translateZ(20px);
    transition: all 0.3s ease;
}

.mechanism-item:hover .mechanism-header {
    transform: translateZ(30px);
}

.mechanism-icon {
    background: var(--gradient-primary);
    padding: 1rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 80px;
    transition: all 0.4s ease;
    transform: translateZ(10px);
    position: relative;
    overflow: hidden;
    color: var(--background-dark);
}

.mechanism-icon svg {
    width: 64px;
    height: 64px;
    transition: all 0.3s ease;
}

.mechanism-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.mechanism-item:hover .mechanism-icon {
    transform: translateZ(20px) rotateY(10deg) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.mechanism-item:hover .mechanism-icon::before {
    width: 120%;
    height: 120%;
}

.mechanism-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
    transform: translateZ(15px);
    transition: all 0.3s ease;
}

.mechanism-item:hover .mechanism-header h3 {
    transform: translateZ(25px);
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.mechanism-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    transform: translateZ(10px);
    transition: all 0.3s ease;
}

.mechanism-item:hover .mechanism-content p {
    transform: translateZ(20px);
    color: var(--text-primary);
}

.mechanism-features {
    list-style: none;
    padding: 0;
}

.mechanism-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.mechanism-features li:last-child {
    border-bottom: none;
}

.mechanism-features li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Platform Section */
.platform {
    padding: 6rem 0;
    background: var(--background-secondary);
}

.platform-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.ecosystem-diagram {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.ecosystem-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.center-node {
    background: var(--gradient-primary);
    color: var(--background-dark);
    padding: 1.5rem 2rem;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
    box-shadow: var(--shadow-glow);
    animation: pulse 3s infinite;
}

.ecosystem-rings {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ring {
    position: absolute;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.ring-1 {
    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    opacity: 0.7;
}

.ring-2 {
    top: 15%;
    left: 15%;
    width: 70%;
    height: 70%;
    opacity: 0.5;
    animation-duration: 30s;
    animation-direction: reverse;
}

.ring-3 {
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    opacity: 0.3;
    animation-duration: 40s;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ecosystem-nodes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.eco-node {
    position: absolute;
    background: var(--background-card);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.eco-node:hover {
    background: var(--primary-color);
    color: var(--background-dark);
    transform: scale(1.1);
}

.node-1 { top: 10%; left: 40%; }
.node-2 { top: 20%; right: 10%; }
.node-3 { bottom: 20%; right: 15%; }
.node-4 { bottom: 10%; left: 35%; }
.node-5 { bottom: 25%; left: 5%; }
.node-6 { top: 25%; left: 5%; }

.platform-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-section {
    padding: 1.5rem;
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.detail-section:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
}

.detail-section h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.detail-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.platform-advantages {
    text-align: center;
}

.platform-advantages h3 {
    font-size: 2rem;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.advantage-card {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem 1rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    perspective: 800px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
}

.advantage-card.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    transition: all 0.6s ease;
}

.advantage-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.advantage-card:hover::before {
    left: 100%;
}

.advantage-card:hover::after {
    width: 200%;
    height: 200%;
}

.advantage-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg) scale(1.05);
    box-shadow: 
        0 0 30px rgba(0, 255, 136, 0.2),
        0 15px 35px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.advantage-card * {
    position: relative;
    z-index: 1;
}

.advantage-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
    transform: translateZ(15px);
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.3));
    color: var(--primary-color);
}

.advantage-icon svg {
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
}

.advantage-card:hover .advantage-icon svg {
    transform: translateZ(25px) rotateY(360deg) scale(1.2);
    filter: drop-shadow(0 0 20px var(--primary-color));
}

.advantage-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    transform: translateZ(10px);
    transition: all 0.3s ease;
}

.advantage-card:hover h4 {
    transform: translateZ(20px);
    color: var(--primary-color);
}

.advantage-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    transform: translateZ(5px);
    transition: all 0.3s ease;
}

.advantage-card:hover p {
    transform: translateZ(15px);
    color: var(--text-primary);
}

/* Contact Section */
.contact {
    background: var(--background-secondary);
    padding: 6rem 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--background-card);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 
        var(--shadow-glow),
        0 30px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.5s ease-out;
}

@keyframes modalSlideIn {
    0% {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    margin-bottom: 2rem;
}

.success-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: successPulse 1s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header h3 {
    font-size: 2rem;
    margin: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-body {
    margin-bottom: 2rem;
}

.modal-body p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.modal-email-display {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    margin: 1.5rem 0;
    font-family: var(--font-mono);
}

.modal-email-display span:first-child {
    color: var(--text-accent);
}

.modal-email-display span:last-child {
    color: var(--primary-color);
    font-weight: 600;
}

.modal-footer {
    margin-top: 2rem;
}

.modal-footer .btn {
    min-width: 200px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
}

.method-icon {
    color: var(--primary-color);
}

.method-icon svg {
    width: 24px;
    height: 24px;
}

.contact-form {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--background-dark);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-image {
    width: 28px;
    height: 28px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-logo .logo-image:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-accent);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mechanisms-grid {
        grid-template-columns: 1fr;
    }
    
    .mechanism-item {
        padding: 2rem;
    }
    
    .mechanism-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .platform-overview {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .ecosystem-diagram {
        width: 300px;
        height: 300px;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .mechanisms-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mechanism-item {
        padding: 1.5rem;
    }
    
    .mechanism-icon {
        font-size: 2rem;
        min-width: 60px;
        height: 60px;
    }
    
    .ecosystem-diagram {
        width: 250px;
        height: 250px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .advantage-card {
        padding: 1.5rem 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes flipIn {
    0% {
        transform: perspective(400px) rotateY(-90deg);
        opacity: 0;
    }
    40% {
        transform: perspective(400px) rotateY(-10deg);
    }
    70% {
        transform: perspective(400px) rotateY(10deg);
    }
    100% {
        transform: perspective(400px) rotateY(0deg);
        opacity: 1;
    }
}

@keyframes slideInUp {
    0% {
        transform: translateY(100px) rotateX(-90deg);
        opacity: 0;
    }
    50% {
        transform: translateY(-10px) rotateX(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(0) rotateX(0deg);
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3) rotateZ(-10deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.05) rotateZ(5deg);
        opacity: 0.8;
    }
    70% {
        transform: scale(0.9) rotateZ(-2deg);
        opacity: 0.9;
    }
    100% {
        transform: scale(1) rotateZ(0deg);
        opacity: 1;
    }
}

@keyframes morphIn {
    0% {
        transform: scale(0) rotateZ(180deg);
        border-radius: 50%;
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotateZ(90deg);
        border-radius: 30%;
        opacity: 0.7;
    }
    100% {
        transform: scale(1) rotateZ(0deg);
        border-radius: 20px;
        opacity: 1;
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 255, 136, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.8), 0 0 30px rgba(0, 255, 136, 0.4);
    }
}

/* Utility Classes */
.fade-in { animation: fadeIn 1s ease-out; }
.slide-in-left { animation: slideInLeft 1s ease-out; }
.slide-in-right { animation: slideInRight 1s ease-out; }
.scale-in { animation: scaleIn 1s ease-out; }
.flip-in { animation: flipIn 0.8s ease-out; }
.slide-in-up { animation: slideInUp 0.8s ease-out; }
.bounce-in { animation: bounceIn 0.8s ease-out; }
.morph-in { animation: morphIn 1s ease-out; }
.glow-pulse { animation: glowPulse 2s ease-in-out infinite; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
} 