@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;600;700&display=swap');

:root {
    --neon-cyan: #00f3ff;
    --neon-pink: #ff006e;
    --neon-purple: #8b00ff;
    --neon-green: #39ff14;
    --dark-bg: #0a0e27;
    --darker-bg: #050816;
    --card-bg: rgba(20, 25, 50, 0.8);
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
}

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

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Scanline Effect */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 243, 255, 0.02) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9999;
    animation: scanline 10s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* Glitch Overlay */
.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    animation: glitch-overlay 8s infinite;
}

@keyframes glitch-overlay {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.05; background: var(--neon-cyan); }
}

/* Navigation */
.cyber-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--neon-cyan);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.nav-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.glitch {
    position: relative;
    display: inline-block;
}

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

.glitch::before {
    animation: glitch-1 2s infinite;
    color: var(--neon-pink);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 3s infinite;
    color: var(--neon-purple);
    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); }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 2px;
    position: relative;
    transition: all 0.3s ease;
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 4rem 4rem;
    position: relative;
    overflow: hidden;
}

.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--neon-cyan) 1px, transparent 1px),
        linear-gradient(90deg, var(--neon-cyan) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.05;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

.hero-content {
    flex: 1;
    z-index: 2;
    max-width: 700px;
}

.status-bar {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
}

.status-item {
    color: var(--text-secondary);
}

.online {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
    animation: pulse 2s infinite;
}

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

.neon-text {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.hero-title {
    margin-bottom: 2rem;
}

.glitch-title {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    color: var(--neon-cyan);
    text-shadow: 
        0 0 20px var(--neon-cyan),
        0 0 40px var(--neon-cyan);
    margin-bottom: 0.5rem;
}

.subtitle {
    display: block;
    font-size: 2rem;
    color: var(--neon-pink);
    text-shadow: 0 0 15px var(--neon-pink);
    letter-spacing: 5px;
}

.hero-description {
    margin-bottom: 3rem;
}

.terminal-text {
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    animation: typing 0.5s steps(20);
}

.prompt {
    color: var(--neon-green);
    margin-right: 10px;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cyber-button {
    position: relative;
    padding: 1rem 2.5rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    overflow: hidden;
    transition: all 0.3s ease;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.cyber-button.primary {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: #fff;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
}

.cyber-button.secondary {
    background: transparent;
    color: var(--neon-pink);
    border: 2px solid var(--neon-pink);
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.3);
}

.cyber-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 30px rgba(0, 243, 255, 0.8);
}

.cyber-button.secondary:hover {
    background: rgba(255, 0, 110, 0.1);
    box-shadow: 0 5px 30px rgba(255, 0, 110, 0.6);
}

/* Hero Visual - Cyber Profile */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.cyber-profile {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-hexagon {
    position: relative;
    width: 240px;
    height: 240px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.1), rgba(255, 0, 110, 0.1));
    padding: 8px;
}

.hex-border {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid;
    animation: border-pulse 3s ease-in-out infinite;
}

.hex-border-1 {
    width: 100%;
    height: 100%;
    border-color: var(--neon-cyan);
    box-shadow: 
        0 0 40px var(--neon-cyan),
        0 0 80px rgba(0, 243, 255, 0.3),
        inset 0 0 40px rgba(0, 243, 255, 0.2);
    animation: neon-rotate 8s linear infinite, border-pulse-cyan 2s ease-in-out infinite;
}

.hex-border-2 {
    width: 110%;
    height: 110%;
    border-color: var(--neon-pink);
    box-shadow: 
        0 0 35px var(--neon-pink),
        0 0 70px rgba(255, 0, 110, 0.3),
        inset 0 0 35px rgba(255, 0, 110, 0.2);
    animation: neon-rotate 6s linear infinite reverse, border-pulse-pink 2.5s ease-in-out infinite;
}

.hex-border-3 {
    width: 120%;
    height: 120%;
    border-color: var(--neon-purple);
    box-shadow: 
        0 0 30px var(--neon-purple),
        0 0 60px rgba(139, 0, 255, 0.3),
        inset 0 0 30px rgba(139, 0, 255, 0.2);
    animation: neon-rotate 10s linear infinite, border-pulse-purple 3s ease-in-out infinite;
}

.profile-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(0, 243, 255, 0.5);
    box-shadow: 
        0 0 30px rgba(0, 243, 255, 0.6),
        inset 0 0 30px rgba(0, 243, 255, 0.2);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    filter: brightness(1.1) contrast(1.2);
    transition: all 0.5s ease;
    transform: scale(1.20) translateY(35px);
}


.profile-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

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

.particle:nth-child(1) {
    top: 10%;
    left: 10%;
    animation: float-particle 3s ease-in-out infinite;
}

.particle:nth-child(2) {
    top: 30%;
    right: 15%;
    animation: float-particle 4s ease-in-out infinite 0.5s;
    background: var(--neon-pink);
    box-shadow: 0 0 10px var(--neon-pink);
}

.particle:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation: float-particle 3.5s ease-in-out infinite 1s;
    background: var(--neon-purple);
    box-shadow: 0 0 10px var(--neon-purple);
}

.particle:nth-child(4) {
    bottom: 35%;
    right: 10%;
    animation: float-particle 4.5s ease-in-out infinite 1.5s;
}

.particle:nth-child(5) {
    top: 50%;
    left: 5%;
    animation: float-particle 3.8s ease-in-out infinite 2s;
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
}

@keyframes rotate-hex {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes neon-rotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.02); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes border-pulse-cyan {
    0%, 100% { 
        box-shadow: 
            0 0 40px var(--neon-cyan),
            0 0 80px rgba(0, 243, 255, 0.3),
            inset 0 0 40px rgba(0, 243, 255, 0.2);
    }
    50% { 
        box-shadow: 
            0 0 60px var(--neon-cyan),
            0 0 120px rgba(0, 243, 255, 0.5),
            inset 0 0 60px rgba(0, 243, 255, 0.3);
    }
}

@keyframes border-pulse-pink {
    0%, 100% { 
        box-shadow: 
            0 0 35px var(--neon-pink),
            0 0 70px rgba(255, 0, 110, 0.3),
            inset 0 0 35px rgba(255, 0, 110, 0.2);
    }
    50% { 
        box-shadow: 
            0 0 55px var(--neon-pink),
            0 0 110px rgba(255, 0, 110, 0.5),
            inset 0 0 55px rgba(255, 0, 110, 0.3);
    }
}

@keyframes border-pulse-purple {
    0%, 100% { 
        box-shadow: 
            0 0 30px var(--neon-purple),
            0 0 60px rgba(139, 0, 255, 0.3),
            inset 0 0 30px rgba(139, 0, 255, 0.2);
    }
    50% { 
        box-shadow: 
            0 0 50px var(--neon-purple),
            0 0 100px rgba(139, 0, 255, 0.5),
            inset 0 0 50px rgba(139, 0, 255, 0.3);
    }
}

@keyframes scan-down {
    0% { top: -100%; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@keyframes float-particle {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-10px) translateX(-10px); }
    75% { transform: translateY(-25px) translateX(5px); }
}

/* Features Section */
.features-section {
    padding: 4rem 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    background: rgba(5, 8, 22, 0.5);
}

.feature-card {
    background: var(--card-bg);
    border: 2px solid var(--neon-cyan);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 243, 255, 0.5);
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--neon-cyan));
}

.feature-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--neon-cyan);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Footer */
.cyber-footer {
    background: var(--darker-bg);
    border-top: 2px solid var(--neon-cyan);
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    box-shadow: 0 -5px 20px rgba(0, 243, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 6rem 2rem 2rem;
    }

    .glitch-title {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .cyber-profile {
        width: 300px;
        height: 300px;
        margin-top: 3rem;
    }

    .profile-hexagon {
        width: 250px;
        height: 250px;
    }
}