:root {
    --bg-main: #0a0d14;
    --bg-card: rgba(16, 22, 36, 0.75);
    --bg-card-hover: rgba(22, 32, 54, 0.9);
    --border-card: rgba(0, 180, 255, 0.15);
    --border-card-hover: rgba(0, 210, 255, 0.5);
    --accent-blue: #0088cc;
    --accent-cyan: #00d2ff;
    --accent-purple: #9d4edd;
    --text-primary: #f0f4f8;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-heading);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    line-height: 1.6;
}

/* Background Glow Effects */
.bg-glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(0, 136, 204, 0.25) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.18) 0%, transparent 70%);
    bottom: 10%;
    left: -150px;
}

.grid-overlay {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 13, 20, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-bracket {
    color: var(--accent-cyan);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent-cyan);
}

.nav-btn-tg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--accent-blue), #00a8ff);
    color: #fff;
    text-decoration: none;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.35);
    transition: all 0.25s ease;
}

.nav-btn-tg:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 136, 204, 0.55);
}

/* HERO */
.hero-section {
    position: relative;
    z-index: 1;
    padding: 90px 24px 70px;
    text-align: center;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    background: rgba(0, 180, 255, 0.08);
    border: 1px solid rgba(0, 210, 255, 0.25);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--accent-cyan);
    margin-bottom: 24px;
}

.status-ping {
    width: 6px;
    height: 6px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-cyan);
}

.hero-title {
    font-size: clamp(2.3rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, #00d2ff 0%, #0088cc 50%, #9d4edd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 36px;
}

.hero-subtitle strong {
    color: var(--accent-cyan);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.btn-main-tg {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: linear-gradient(135deg, #0088cc, #00b4d8);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 136, 204, 0.45);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-main-tg:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 40px rgba(0, 136, 204, 0.65);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 16px 28px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.metrics-bar {
    display: inline-flex;
    align-items: center;
    background: rgba(16, 22, 36, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 32px;
    gap: 32px;
}

.metric-item {
    text-align: center;
}

.metric-value {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.metric-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
}

/* SECTION COMMONS */
.projects-section, .terminal-section, .cta-section {
    position: relative;
    z-index: 1;
    padding: 80px 24px;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* FILTER TABS */
.filter-tabs {
    display: inline-flex;
    gap: 8px;
    margin-top: 24px;
    background: rgba(16, 22, 36, 0.8);
    padding: 6px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn.active, .filter-btn:hover {
    background: rgba(0, 180, 255, 0.15);
    color: var(--accent-cyan);
}

/* PROJECTS GRID */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.project-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-card-hover);
    box-shadow: 0 16px 40px rgba(0, 180, 255, 0.15);
    background: var(--bg-card-hover);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.project-icon {
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
}

.badge-active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-online {
    background: rgba(0, 210, 255, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 210, 255, 0.3);
}

.badge-dev {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-done {
    background: rgba(157, 78, 221, 0.15);
    color: #c77dff;
    border: 1px solid rgba(157, 78, 221, 0.3);
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.card-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: #93c5fd;
}

/* TERMINAL */
.terminal-wrapper {
    background: #0d1117;
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    font-family: var(--font-mono);
}

.terminal-bar {
    background: #161b22;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.term-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.term-close { background: #ff5f56; }
.term-min { background: #ffbd2e; }
.term-max { background: #27c93f; }

.terminal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 24px;
    font-size: 0.9rem;
    min-height: 280px;
    line-height: 1.7;
    color: #e6edf3;
    overflow-y: auto;
    max-height: 450px;
}

.term-line {
    margin-bottom: 8px;
}

.term-prompt {
    color: #38bdf8;
    font-weight: 700;
}

.term-cmd {
    color: #facc15;
}

.term-link {
    color: var(--accent-cyan);
    text-decoration: underline;
}

.ascii-art {
    color: #00d2ff;
    font-size: 0.75rem;
    line-height: 1.15;
    margin: 10px 0;
    overflow-x: auto;
}

.cursor {
    color: var(--accent-cyan);
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.terminal-quick-actions {
    background: #161b22;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.term-cmd-btn {
    background: rgba(0, 180, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.25);
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.term-cmd-btn:hover {
    background: rgba(0, 180, 255, 0.25);
    border-color: var(--accent-cyan);
    color: #fff;
}

/* CTA */
.cta-card {
    background: radial-gradient(circle at top right, rgba(0, 136, 204, 0.25) 0%, rgba(16, 22, 36, 0.85) 60%);
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: 28px;
    padding: 60px 30px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 136, 204, 0.2);
}

.cta-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 36px;
}

.btn-giant-tg {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 20px 48px;
    background: linear-gradient(135deg, #0088cc, #00c3ff);
    color: #fff;
    text-decoration: none;
    border-radius: 16px;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 12px 36px rgba(0, 136, 204, 0.5);
    transition: all 0.3s ease;
}

.btn-giant-tg:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 18px 50px rgba(0, 136, 204, 0.7);
}

/* FOOTER */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 13, 20, 0.95);
    padding: 36px 24px;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-brand {
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .metrics-bar { flex-direction: column; gap: 16px; width: 100%; }
    .metric-divider { display: none; }
    .projects-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .btn-main-tg, .btn-secondary, .btn-giant-tg { width: 100%; justify-content: center; }
}
