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

body {
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
    background: #050510;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, #0ff 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    pointer-events: none;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, rgba(0, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(rgba(0, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100px 100px;
    pointer-events: none;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid #0ff;
    margin-bottom: 1rem;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
}

/* Profile Photo */
.profile-photo {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #0ff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.photo-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    animation: photo-ring-pulse 3s ease-in-out infinite;
}

@keyframes photo-ring-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.pulse {
    width: 8px;
    height: 8px;
    background: #0ff;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px #0ff; }
    50% { opacity: 0.5; box-shadow: 0 0 20px #0ff; }
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    position: relative;
}

.glitch {
    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); }
    98% { transform: translate(2px, 2px); }
}

.roles {
    font-size: 0.8rem;
    color: #888;
    letter-spacing: 0.15em;
}

.separator {
    color: #0ff;
    margin: 0 0.5rem;
}

section {
    margin-bottom: 2.5rem;
}

h2 {
    font-size: 0.9rem;
    letter-spacing: 0.25em;
    margin-bottom: 1.5rem;
    text-align: center;
}

.bracket {
    color: #0ff;
}

/* Hero Statement */
.statement-box {
    position: relative;
    padding: 1.25rem;
    text-align: center;
    background: rgba(0, 255, 255, 0.02);
}

.corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: #0ff;
    border-style: solid;
}

.tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.statement-box p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.highlight {
    color: #0ff;
    font-weight: 600;
}

/* Capabilities */
.capability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.capability-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.hex-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.hex-icon span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0ff;
}

.capability-item h3 {
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
    letter-spacing: 0.1em;
}

.capability-item p {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 0.75rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
}

.progress-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #0ff, #f0f);
}

/* Tech Orbit */
.tech-orbit {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto;
}

.orbit-ring {
    position: absolute;
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.ring-1 {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.ring-2 {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    animation-direction: reverse;
    animation-duration: 15s;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.tech-node {
    position: absolute;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid #0ff;
    color: #0ff;
    white-space: nowrap;
    animation: counter-rotate 20s linear infinite;
}

.ring-2 .tech-node {
    animation-direction: reverse;
    animation-duration: 15s;
}

@keyframes counter-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* Position nodes on ring-1 (4 nodes) */
.ring-1 .tech-node:nth-child(1) { top: -12px; left: 50%; transform: translateX(-50%); }
.ring-1 .tech-node:nth-child(2) { top: 50%; right: -12px; transform: translateY(-50%); }
.ring-1 .tech-node:nth-child(3) { bottom: -12px; left: 50%; transform: translateX(-50%); }
.ring-1 .tech-node:nth-child(4) { top: 50%; left: -12px; transform: translateY(-50%); }

/* Position nodes on ring-2 (3 nodes) */
.ring-2 .tech-node:nth-child(1) { top: -12px; left: 50%; transform: translateX(-50%); }
.ring-2 .tech-node:nth-child(2) { bottom: 10%; right: -20px; }
.ring-2 .tech-node:nth-child(3) { bottom: 10%; left: -20px; }

.core-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid #0ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0ff;
    font-size: 0.75rem;
    animation: core-pulse 3s ease-in-out infinite;
}

@keyframes core-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 255, 0.3); }
    50% { box-shadow: 0 0 40px rgba(0, 255, 255, 0.6); }
}

/* Services Matrix */
.matrix-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.matrix-item {
    display: grid;
    grid-template-columns: 50px 1fr 70px;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid #0ff;
    font-size: 0.8rem;
}

.matrix-item .code {
    color: #0ff;
    font-family: monospace;
}

.matrix-item .name {
    font-family: 'Inter', sans-serif;
}

.status {
    text-align: right;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
}

.status.online {
    color: #0f0;
}

/* Connect */
.connect {
    text-align: center;
}

.connect-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid #0ff;
    color: #0ff;
    text-decoration: none;
    font-family: inherit;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    transition: all 0.3s ease;
}

.connect-btn:hover {
    background: #0ff;
    color: #050510;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

footer {
    text-align: center;
    padding-top: 2rem;
    color: #444;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.capability-item {
    transition: all 0.3s ease;
}

.capability-item:hover {
    transform: translateY(-5px);
    border-color: #0ff;
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
}

.matrix-item {
    transition: all 0.3s ease;
}

.matrix-item:hover {
    background: rgba(0, 255, 255, 0.05);
    transform: translateX(10px);
}

.progress {
    width: 0 !important;
    transition: width 1.5s ease-out;
}

.progress.animated {
    width: var(--target-width) !important;
}

/* Typing cursor */
.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: #0ff;
    margin-left: 5px;
    animation: blink-cursor 0.7s infinite;
}

@keyframes blink-cursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

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

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #f0f;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #0ff;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(51px, 9999px, 28px, 0); }
    20% { clip: rect(70px, 9999px, 63px, 0); }
    40% { clip: rect(26px, 9999px, 97px, 0); }
    60% { clip: rect(85px, 9999px, 42px, 0); }
    80% { clip: rect(64px, 9999px, 12px, 0); }
    100% { clip: rect(15px, 9999px, 72px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(79px, 9999px, 19px, 0); }
    20% { clip: rect(18px, 9999px, 58px, 0); }
    40% { clip: rect(92px, 9999px, 75px, 0); }
    60% { clip: rect(43px, 9999px, 21px, 0); }
    80% { clip: rect(31px, 9999px, 88px, 0); }
    100% { clip: rect(67px, 9999px, 34px, 0); }
}

@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    .profile-photo {
        width: 100px;
        height: 100px;
    }

    .capability-grid {
        grid-template-columns: 1fr;
    }

    .tech-orbit {
        width: 180px;
        height: 180px;
    }

    .glitch::before,
    .glitch::after {
        display: none;
    }
}
