* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00ffff;
    --secondary-color: #ff0080;
    --accent-color: #00ff41;
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --text-secondary: #b0b0b0;
    --gradient-primary: linear-gradient(135deg, #00ffff 0%, #0080ff 50%, #8000ff 100%);
    --gradient-secondary: linear-gradient(45deg, #ff0080 0%, #ff8000 100%);
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Particles Background */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #16213e 50%, #0a0a0a 100%);
}

/* Tech Grid Background */
.tech-grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 10, 0.8);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.3));
    transition: all 0.3s ease;
}

.logo-image:hover {
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.6));
    transform: scale(1.1);
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    overflow: hidden;
    animation: numbers-to-text 8s infinite;
}

@keyframes numbers-to-text {
    0%, 80%, 100% {
        font-family: 'Orbitron', monospace;
        letter-spacing: normal;
        transform: scale(1);
        filter: blur(0);
    }
    10%, 15% {
        font-family: 'Courier New', monospace;
        letter-spacing: 0.4em;
        transform: scale(1.1);
        filter: blur(0.5px);
        text-shadow: 0 0 15px var(--accent-color);
    }
    20%, 25% {
        font-family: 'Courier New', monospace;
        letter-spacing: 0.2em;
        transform: scale(0.95);
        filter: blur(1px);
    }
}

.logo-text::before {
    content: '01 01 93 18 04 92 20 17';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--accent-color);
    font-family: 'Courier New', monospace;
    font-size: 0.8em;
    opacity: 0;
    z-index: 1;
    animation: number-morph 8s infinite;
    letter-spacing: 0.1em;
}

@keyframes number-morph {
    0%, 85%, 100% { 
        opacity: 0;
        content: '01 01 93 18 04 92 20 17';
        transform: translateY(0) scale(1);
    }
    5% { 
        opacity: 1;
        content: '01 01 93 18 04 92 20 17';
        transform: translateY(-2px) scale(1.05);
        font-size: 0.7em;
    }
    10% { 
        opacity: 1;
        content: 'S3 M7 A6 R8 T8 E6 R8 A6';
        transform: translateY(0) scale(1);
        font-size: 0.8em;
    }
    15% { 
        opacity: 1;
        content: 'S3 M4 A1 R2 T5 E5 R2 A1';
        transform: translateY(2px) scale(0.95);
        font-size: 0.85em;
    }
    20% { 
        opacity: 1;
        content: 'SM AR TE RA';
        transform: translateY(0) scale(1);
        font-size: 0.9em;
    }
    25% { 
        opacity: 0.8;
        content: 'SMARTERA';
        transform: translateY(0) scale(1);
        font-size: 1em;
    }
}

.logo-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.8), transparent);
    animation: number-scan 8s infinite;
    z-index: 2;
}

@keyframes number-scan {
    0%, 80%, 100% { 
        left: -100%;
        opacity: 0;
    }
    5%, 25% { 
        left: 100%;
        opacity: 1;
    }
}

/* Digital Matrix Effect for Hero Title */
.glitch {
    font-family: 'Orbitron', monospace;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    position: relative;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    overflow: hidden;
    animation: hero-number-transform 12s infinite;
}

@keyframes hero-number-transform {
    0%, 88%, 100% {
        font-family: 'Orbitron', monospace;
        letter-spacing: normal;
        filter: blur(0);
    }
    3%, 8% {
        font-family: 'Courier New', monospace;
        letter-spacing: 0.3em;
        filter: blur(1px);
        text-shadow: 0 0 20px var(--accent-color);
    }
    10%, 15% {
        font-family: 'Courier New', monospace;
        letter-spacing: 0.1em;
        filter: blur(0.5px);
    }
}

.glitch::before {
    animation: glitch-1 2s infinite, hero-number-matrix 12s infinite;
    color: var(--secondary-color);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 2s infinite, hero-number-matrix-2 12s infinite;
    color: var(--accent-color);
    z-index: -2;
}

@keyframes hero-number-matrix {
    0%, 92%, 100% { 
        content: attr(data-text);
        opacity: 0.8;
        font-family: 'Orbitron', monospace;
        font-size: 1em;
    }
    3% { 
        content: '01 01 93 18 04 92 20 17';
        font-size: 0.3em;
        line-height: 1.5;
        opacity: 1;
        font-family: 'Courier New', monospace;
    }
    6% { 
        content: '8877 6582 8469 8265';
        font-family: 'Courier New', monospace;
        opacity: 0.9;
        font-size: 0.4em;
    }
    9% { 
        content: 'S3M4 A1R2 T5E5 R2A1';
        font-family: 'Courier New', monospace;
        opacity: 0.8;
        font-size: 0.5em;
    }
    12% { 
        content: 'SM4RT3R4';
        font-family: 'Orbitron', monospace;
        opacity: 0.7;
        font-size: 0.8em;
    }
}

@keyframes hero-number-matrix-2 {
    0%, 90%, 100% { 
        content: attr(data-text);
        opacity: 0.6;
        font-family: 'Orbitron', monospace;
        font-size: 1em;
    }
    4% { 
        content: '①②③④⑤⑥⑦⑧';
        opacity: 1;
        font-size: 0.6em;
    }
    7% { 
        content: '𝟴𝟯 𝟳𝟳 𝟲𝟵 𝟴𝟮';
        opacity: 0.8;
        font-size: 0.4em;
    }
    10% { 
        content: '♦♠♣♥ ♦♠♣♥';
        opacity: 0.7;
        font-size: 0.7em;
    }
    13% { 
        content: 'ᏕᎷᏗᏒᏖᏋᏒᏗ';
        opacity: 0.6;
        font-size: 0.9em;
    }
}

/* Main Content */
.main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    margin-top: 80px;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

.hero-content {
    z-index: 10;
}

/* Glitch Effect */
.glitch {
    font-family: 'Orbitron', monospace;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    position: relative;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 2s infinite;
    color: var(--secondary-color);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 2s infinite;
    color: var(--accent-color);
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-2px, 2px); }
    80% { transform: translate(-2px, -2px); }
}

.subtitle-container {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.typing-cursor {
    width: 2px;
    height: 1.5rem;
    background: var(--primary-color);
    margin-left: 0.5rem;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    margin: 2rem 0;
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}

.btn-primary,
.btn-secondary {
    position: relative;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-color);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.3);
}

.btn-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover .btn-effect,
.btn-secondary:hover .btn-effect {
    left: 100%;
}

/* Tech Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.tech-circle {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-ring {
    position: absolute;
    border: 2px solid;
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

.ring-1 {
    width: 300px;
    height: 300px;
    border-color: var(--primary-color);
    opacity: 0.6;
}

.ring-2 {
    width: 250px;
    height: 250px;
    border-color: var(--secondary-color);
    opacity: 0.4;
    animation-direction: reverse;
    animation-duration: 8s;
}

.ring-3 {
    width: 200px;
    height: 200px;
    border-color: var(--accent-color);
    opacity: 0.3;
    animation-duration: 6s;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.tech-core {
    width: 150px;
    height: 150px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.core-pulse {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    border-radius: 50%;
    animation: core-pulse 3s infinite;
}

@keyframes core-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

/* Features */
.features {
    margin-top: 8rem;
    width: 100%;
    max-width: 1200px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(0, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Footer */
.footer {
    margin-top: 4rem;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .language-selector {
        flex-direction: column;
        width: 100%;
    }
    
    .lang-option {
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .tech-circle {
        width: 300px;
        height: 300px;
    }
    
    .ring-1 { width: 250px; height: 250px; }
    .ring-2 { width: 200px; height: 200px; }
    .ring-3 { width: 150px; height: 150px; }
    
    .logo-image {
        width: 32px;
        height: 32px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .logo-text::before {
        font-size: 0.7em;
    }
}

@media (max-width: 480px) {
    .logo {
        gap: 0.5rem;
    }
    
    .logo-image {
        width: 28px;
        height: 28px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .logo-text::before {
        font-size: 0.6em;
    }
}
