:root {
    --primary-color: #00ff88;
    --secondary-color: #00ccff;
    --accent-color: #ff00ff;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --text-light: #ffffff;
    --text-dim: #888888;
}

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

html {
    height: -webkit-fill-available;
    background-color: var(--dark-bg);
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    min-height: -webkit-fill-available;
}


/* Smoke Effect Canvas */
.smoke-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(to bottom, 
        transparent 0%,
        rgba(0, 255, 136, 0.03) 50%, 
        rgba(0, 204, 255, 0.03) 100%);
}

#smoke-canvas {
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

/* Cursor Glow Effects */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    pointer-events: none;
    z-index: 999;
    opacity: 0.7;
    mix-blend-mode: screen;
}

/* Shadow Cursor */
.cursor-shadow {
    position: fixed;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 50%;
    pointer-events: none;
    z-index: 998;
    opacity: 0.9;
    filter: blur(6px);
    transition: transform 0.2s ease-out;
}

.cursor-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, 
        rgba(0, 255, 136, 0.2) 0%, 
        rgba(0, 204, 255, 0.15) 30%, 
        rgba(255, 0, 255, 0.08) 60%, 
        transparent 80%);
    filter: blur(80px);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
    }
}

/* Hero Logo */
.hero-logo {
    width: 400px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(15px 15px 12px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 40px var(--primary-color)) drop-shadow(0 0 160px var(--secondary-color));
    animation: float-logo 3s ease-in-out infinite;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

@keyframes float-logo {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Main Content */
main {
    position: relative;
    z-index: 2;
    width: 100vw;
    height: 100vh;
    height: -webkit-fill-available;
    overflow: visible;
}

/* Hero Section */
.hero-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: -webkit-fill-available;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.hero-content {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: -webkit-fill-available;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    overflow: visible;
}

.hero-title {
    font-size: 6rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 20px var(--primary-color));
    }
    to {
        filter: drop-shadow(0 0 30px var(--secondary-color));
    }
}

/* Glitch Effect */
.glitch {
    position: relative;
}

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

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: var(--primary-color);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: var(--accent-color);
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% {
        clip-path: inset(0 0 0 0);
        transform: translate(0);
    }
    20% {
        clip-path: inset(33% 0 0 0);
        transform: translate(-2px, 2px);
    }
    40% {
        clip-path: inset(0 0 67% 0);
        transform: translate(2px, -2px);
    }
}

@keyframes glitch-2 {
    0%, 100% {
        clip-path: inset(0 0 0 0);
        transform: translate(0);
    }
    30% {
        clip-path: inset(0 0 33% 0);
        transform: translate(2px, 2px);
    }
    60% {
        clip-path: inset(67% 0 0 0);
        transform: translate(-2px, -2px);
    }
}

.hero-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.45;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--dark-bg);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4);
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

/* Effect Container */
.effect-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.effect {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.effect.active {
    opacity: 1 !important;
}

/* Dot Pattern Effect */
.dot-pattern {
    background-image: radial-gradient(circle, var(--primary-color) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.15 !important;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
}

/* Circuit Board Effect */
.circuit-board {
    background: 
        linear-gradient(90deg, transparent 49%, var(--primary-color) 49%, var(--primary-color) 51%, transparent 51%),
        linear-gradient(0deg, transparent 49%, var(--primary-color) 49%, var(--primary-color) 51%, transparent 51%);
    background-size: 40px 40px;
    opacity: 0.1;
}

.circuit-board::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle, var(--secondary-color) 3px, transparent 3px),
        radial-gradient(circle, var(--primary-color) 2px, transparent 2px);
    background-size: 80px 80px, 40px 40px;
    background-position: 0 0, 20px 20px;
    animation: circuit-pulse 4s ease-in-out infinite;
}

@keyframes circuit-pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Grid Background Effect */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: -webkit-fill-available;
    pointer-events: none;
    opacity: 0.1;
    background-image: 
        linear-gradient(var(--primary-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--primary-color) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
}

/* Particle Network Effect */
.particle-network {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: -webkit-fill-available;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
}

.particle-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
    transform-origin: left center;
}

/* Effect Switcher */
.effect-switcher {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.effect-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.effect-option input[type="radio"] {
    display: none;
}

.effect-option span {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.effect-option input[type="radio"]:checked + span {
    background: var(--primary-color);
    color: var(--dark-bg);
    font-weight: 600;
    box-shadow: 0 0 20px var(--primary-color);
}

.effect-option:hover span {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Matrix Rain Effect */
.matrix-rain {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.matrix-column {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--primary-color);
    writing-mode: vertical-rl;
    text-orientation: upright;
    animation: matrix-fall linear infinite;
    text-shadow: 0 0 5px var(--primary-color);
}

@keyframes matrix-fall {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100vh);
    }
}

/* Sections */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Products Section */
.products-section {
    background: var(--darker-bg);
    position: relative;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 15px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

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

.product-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.product-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.product-card:hover .product-icon {
    transform: scale(1.1) rotate(5deg);
}

.product-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--text-dim);
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 5rem 0;
}

.about-text {
    text-align: center;
    font-size: 1.3rem;
    color: var(--text-dim);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-dim);
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    background: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    z-index: 10000;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.footer-left p,
.footer-right p {
    margin: 0;
    color: rgb(100 169 137 / 70%);
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
}

.footer-glow {
    position: absolute;
    bottom: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 200px;
    background: radial-gradient(ellipse at center, var(--primary-color), transparent);
    opacity: 0.2;
    filter: blur(100px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-logo {
        width: 300px;
        padding: 0 20px;
    }
    
    .footer-left p,
    .footer-right p {
        font-size: 0.75rem;
    }
    
    .footer-tagline {
        white-space: nowrap;
    }
    
    /* Safari mobile fixes */
    html {
        height: -webkit-fill-available;
    }
    
    body {
        min-height: -webkit-fill-available;
    }
    
    .hero-section {
        overflow: visible;
    }
    
    .hero-content {
        overflow: visible;
    }
}