/* ========================
   CSS Variables & Reset
   ======================== */
/* NOTE: Google Fonts are loaded via <link> in index.html — @import removed to avoid double request */

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

:root {
    /* Light Theme (Default) */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    --accent-cyan: #00ffff;
    --accent-magenta: #ff00ff;
    --accent-green: #00ff88;
    --accent-orange: #ff8800;
    --accent-blue: #0088ff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-1: linear-gradient(135deg, #00ffff, #ff00ff);
    --gradient-2: linear-gradient(135deg, #00ff88, #00ffff);
    --shadow-glow: 0 0 30px rgba(0, 255, 255, 0.3);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.5);
    --border-color: rgba(255, 255, 255, 0.15);
    --font-display: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

[data-theme="light"] {
    --bg-primary: #f0f2f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8eaf0;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5a;
    --text-muted: #8a8a9a;
    --glass-bg: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(0, 0, 0, 0.08);
    --border-color: rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-display);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    /* cursor:none is applied via JS only on non-touch devices */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
}

/* Accessibility: visually-hidden but screen-reader accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================
   Loader
   ======================== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.cyber-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid var(--glass-border);
    border-top-color: var(--accent-cyan);
    border-right-color: var(--accent-magenta);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loader-content p {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-cyan);
    letter-spacing: 2px;
}

/* ========================
   Custom Cursor
   ======================== */
.cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background: var(--accent-cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.1s;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 1px solid var(--accent-cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transition: transform 0.15s, opacity 0.15s;
    opacity: 0.5;
}

/* ========================
   Theme Toggle
   ======================== */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 80px;
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
}

.theme-toggle i {
    font-size: 20px;
    color: var(--text-primary);
    transition: all 0.3s;
}
/* Icon class is swapped by JS (fa-moon / fa-sun) — no CSS override needed */

/* ========================
   Matrix Rain
   ======================== */
#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}

/* ========================
   Navigation
   ======================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 50px;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    border-bottom: 1px solid var(--glass-border);
}

[data-theme="light"] .navbar {
    background: rgba(240, 242, 245, 0.9);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
}

.logo-icon {
    color: var(--accent-cyan);
    animation: pulse 2s infinite;
}

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

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

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: width 0.3s;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sound-toggle {
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    transition: all 0.3s;
}

.sound-toggle:hover {
    background: var(--accent-magenta);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

/* ========================
   Hero Section
   ======================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 50px 50px;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1400px;
    width: 100%;
    align-items: center;
}

.hero-text {
    z-index: 1;
}

.greeting {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: clamp(48px, 8vw, 100px);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 20px;
    position: relative;
}

.glitch {
    position: relative;
}

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

.glitch::before {
    color: var(--accent-cyan);
    animation: glitch-1 2s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch::after {
    color: var(--accent-magenta);
    animation: glitch-2 3s infinite linear alternate-reverse;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(3px, -3px); }
    40% { transform: translate(3px, 3px); }
    60% { transform: translate(-3px, -3px); }
    80% { transform: translate(-3px, 3px); }
}

.typing-text {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

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

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

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.btn {
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: var(--accent-cyan);
    color: var(--bg-primary);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-cyan);
    display: block;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ========================
   Hero Visual
   ======================== */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-container {
    position: relative;
    width: 350px;
    height: 350px;
}

.profile-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 350px;
    height: 350px;
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ring-rotate 10s linear infinite;
}

.profile-ring::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--accent-cyan);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px var(--accent-cyan);
}

@keyframes ring-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.profile-ring-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    border: 2px solid var(--accent-magenta);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ring-rotate 15s linear infinite reverse;
}

.profile-ring-2::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -10px;
    width: 15px;
    height: 15px;
    background: var(--accent-magenta);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 20px var(--accent-magenta);
}

.holo-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    animation: holo-float 3s ease-in-out infinite;
}

@keyframes holo-float {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-20px); }
}

.holo-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    color: white;
    animation: avatar-glow 2s ease-in-out infinite;
}

@keyframes avatar-glow {
    0%, 100% { box-shadow: 0 0 30px var(--accent-cyan); }
    50% { box-shadow: 0 0 50px var(--accent-magenta); }
}

.holo-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    opacity: 0.3;
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.5; }
}

.floating-badges {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-badge {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: var(--accent-cyan);
    animation: float-badge 3s ease-in-out infinite;
}

.floating-badge.b1 { top: 10%; left: 10%; animation-delay: 0s; }
.floating-badge.b2 { top: 10%; right: 10%; animation-delay: 0.5s; }
.floating-badge.b3 { bottom: 10%; left: 10%; animation-delay: 1s; }
.floating-badge.b4 { bottom: 10%; right: 10%; animation-delay: 1.5s; }

@keyframes float-badge {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(10deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 12px;
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ========================
   Three.js Scene
   ======================== */
.three-scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ========================
   Sections
   ======================== */
.section {
    padding: 100px 50px;
    min-height: 100vh;
}

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

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.title-number {
    font-family: var(--font-mono);
    font-size: 18px;
    color: var(--accent-cyan);
    opacity: 0.5;
}

/* ========================
   About Section
   ======================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.about-card:hover {
    border-color: var(--accent-cyan);
    transform: translateX(10px);
}

.card-icon {
    font-size: 30px;
    color: var(--accent-cyan);
    margin-bottom: 15px;
}

.about-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

.about-code {
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.code-header {
    background: var(--bg-tertiary);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red { background: #ff5f56; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green { background: #27ca40; }

.code-title {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.code-block {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 2;
    overflow-x: auto;
}

.code-block .keyword { color: var(--accent-magenta); }
.code-block .string { color: var(--accent-green); }
.code-block .function { color: var(--accent-orange); }

/* ========================
   Skills Section
   ======================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.skill-category {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.skill-category h3 {
    font-size: 18px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category h3 i {
    color: var(--accent-cyan);
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-bar {
    position: relative;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.bar-fill {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--percentage, 0%);
    background: var(--gradient-1);
    border-radius: 10px;
    transition: width 1s ease-out;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.tech-tag {
    padding: 10px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 14px;
    font-family: var(--font-mono);
    transition: all 0.3s;
}

.tech-tag:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* ========================
   Experience Timeline
   ======================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--glass-border);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    padding: 30px 0;
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 30px);
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 30px);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--accent-cyan);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px var(--accent-cyan);
}

.timeline-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    transition: all 0.3s;
}

.timeline-content:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-cyan);
}

.timeline-content h3 {
    font-size: 20px;
    margin: 10px 0 5px;
}

.timeline-content h4 {
    font-size: 16px;
    color: var(--accent-magenta);
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
}

.timeline-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.timeline-tags span {
    font-size: 12px;
    padding: 5px 12px;
    background: var(--bg-tertiary);
    border-radius: 50px;
    color: var(--text-muted);
}

/* ========================
   Projects
   ======================== */
.project-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    justify-content: center;
}

.filter-btn {
    padding: 10px 25px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border-color: var(--accent-cyan);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card);
}

.project-image {
    height: 200px;
    background: var(--bg-tertiary);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.project-icon {
    font-size: 60px;
    color: var(--text-muted);
    transition: all 0.3s;
}

.project-card:hover .project-icon {
    color: var(--accent-cyan);
    transform: scale(1.2);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    width: 50px;
    height: 50px;
    background: var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: var(--bg-primary);
    transition: all 0.3s;
}

.project-link:hover {
    transform: scale(1.1);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-tags span {
    font-size: 12px;
    padding: 5px 12px;
    background: var(--bg-tertiary);
    border-radius: 50px;
    color: var(--accent-cyan);
    font-family: var(--font-mono);
}

/* ========================
   Articles
   ======================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.article-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
}

.article-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
}

.article-image {
    height: 150px;
    background: var(--bg-tertiary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 15px;
    background: var(--accent-magenta);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.article-image i {
    font-size: 50px;
    color: var(--text-muted);
}

.article-content {
    padding: 25px;
}

.article-date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.article-content h3 {
    font-size: 18px;
    margin: 10px 0;
    line-height: 1.4;
}

.article-content p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #0a0a0f;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.article-link:hover::before {
    left: 100%;
}

.article-link:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 255, 255, 0.5), 0 0 20px rgba(255, 0, 255, 0.3);
}

.article-link:active {
    transform: translateY(-1px) scale(1);
}

.article-link i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.article-link:hover i {
    transform: translateX(4px);
}

.article-link .btn-text {
    position: relative;
    z-index: 1;
}

/* Animated dots for loading state */
.article-link.loading .btn-text::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Different color variants */
.article-link.security {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}

.article-link.security:hover {
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.5), 0 0 20px rgba(254, 202, 87, 0.3);
}

.article-link.ai {
    background: linear-gradient(135deg, #a29bfe, #74b9ff);
    box-shadow: 0 4px 20px rgba(162, 155, 254, 0.3);
}

.article-link.ai:hover {
    box-shadow: 0 8px 30px rgba(162, 155, 254, 0.5), 0 0 20px rgba(116, 185, 255, 0.3);
}

.article-link.bugbounty {
    background: linear-gradient(135deg, #00ff88, #00ffff);
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
}

.article-link.bugbounty:hover {
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.5), 0 0 20px rgba(0, 255, 255, 0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .article-link {
        padding: 10px 22px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .article-link {
        padding: 8px 18px;
        font-size: 12px;
        gap: 8px;
    }
}

/* ========================
   Achievements Game
   ======================== */
.achievements-game {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 50px;
}

.game-info {
    text-align: center;
    margin-bottom: 40px;
}

.game-info h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.game-info p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.level-display {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 15px;
}

.level-display span {
    font-family: var(--font-mono);
}

.level-display strong {
    color: var(--accent-cyan);
}

.xp-bar {
    height: 10px;
    background: var(--bg-tertiary);
    border-radius: 50px;
    max-width: 400px;
    margin: 0 auto;
    overflow: hidden;
}

.xp-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-1);
    border-radius: 50px;
    transition: width 0.5s ease-out;
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.challenge-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
}

.challenge-card:hover {
    border-color: var(--accent-cyan);
}

.challenge-card[data-unlocked="true"] {
    border-color: var(--accent-green);
    background: rgba(0, 255, 136, 0.1);
}

.challenge-icon {
    font-size: 30px;
    color: var(--accent-cyan);
    margin-bottom: 15px;
}

.challenge-card[data-unlocked="true"] .challenge-icon {
    color: var(--accent-green);
}

.challenge-card h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.challenge-card p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.claim-btn {
    padding: 8px 20px;
    background: var(--accent-cyan);
    border: none;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--bg-primary);
    transition: all 0.3s;
}

.claim-btn:hover {
    box-shadow: var(--shadow-glow);
}

.challenge-card[data-unlocked="true"] .claim-btn {
    background: var(--accent-green);
    pointer-events: none;
}

.challenge-card[data-unlocked="true"] .claim-btn::before {
    content: '✓ ';
}

.badges-display {
    text-align: center;
}

.badges-display h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.badges-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    width: 60px;
    height: 60px;
    background: var(--bg-tertiary);
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: var(--text-muted);
    transition: all 0.3s;
}

.badge.unlocked {
    border-color: var(--accent-green);
    color: var(--accent-green);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    animation: badge-unlock 0.5s ease-out;
}

@keyframes badge-unlock {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.badge.locked {
    opacity: 0.5;
}

/* ========================
   Certifications
   ======================== */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cert-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.cert-card:hover {
    transform: translateY(-5px);
}

.cert-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.cert-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    padding-right: 80px;
}

.cert-content p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 5px;
}

.cert-date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-cyan);
}

.cert-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, var(--accent-cyan) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
}

.cert-card:hover .cert-glow {
    opacity: 0.1;
}

/* ========================
   Terminal
   ======================== */
.terminal-window {
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    max-width: 900px;
    margin: 0 auto;
}

.terminal-header {
    background: var(--bg-tertiary);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27ca40; }

.terminal-title {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.terminal-body {
    padding: 20px;
    min-height: 400px;
    font-family: var(--font-mono);
    font-size: 14px;
}

.terminal-line {
    margin-bottom: 5px;
}

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

.terminal-input-line {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

#terminalInput {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 14px;
    margin-left: 10px;
}

#terminalOutput .terminal-line {
    animation: fade-in 0.3s ease-out;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================
   Contact
   ======================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info h3 {
    font-size: 32px;
    margin-bottom: 15px;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    transition: all 0.3s;
}

.contact-link:hover {
    border-color: var(--accent-cyan);
    transform: translateX(10px);
}

.contact-link i {
    font-size: 20px;
    color: var(--accent-cyan);
    width: 30px;
}

.contact-form {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.form-group label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
    transition: all 0.3s;
}

.form-group textarea ~ label {
    top: 20px;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    background: var(--bg-secondary);
    padding: 0 5px;
    color: var(--accent-cyan);
}

.form-group select {
    cursor: pointer;
}

/* ========================
   Footer
   ======================== */
.footer {
    background: var(--bg-secondary);
    padding: 50px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

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

.footer-content > p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--text-secondary);
    transition: all 0.3s;
}

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

.footer-social {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
}

.scroll-top {
    width: 50px;
    height: 50px;
    background: var(--accent-cyan);
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: var(--bg-primary);
    margin: 0 auto 20px;
    transition: all 0.3s;
}

.scroll-top:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

.copyright {
    font-size: 14px;
    color: var(--text-muted);
}

/* ========================
   Responsive
   ======================== */
@media (max-width: 1200px) {
    .projects-grid,
    .articles-grid,
    .cert-grid,
    .challenges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .profile-container {
        width: 280px;
        height: 280px;
    }
    
    .profile-ring,
    .profile-ring-2 {
        width: 280px;
        height: 280px;
    }
    
    .holo-card {
        width: 160px;
        height: 160px;
    }
    
    .holo-avatar {
        width: 80px;
        height: 80px;
        font-size: 30px;
    }
    
    .floating-badge {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 60px;
        padding-right: 0;
        justify-content: flex-start;
    }
    
    .timeline-dot {
        left: 20px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 100px 30px 30px;
        gap: 20px;
        transition: right 0.3s;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 32px;
    }
    
    .projects-grid,
    .articles-grid,
    .cert-grid,
    .challenges-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .tech-tags {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .navbar,
    .section {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hero {
        padding: 100px 20px 50px;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
    
    .typing-text {
        font-size: 16px;
    }
    
    .hero-desc {
        font-size: 14px;
    }
    
    .theme-toggle {
        top: 10px;
        right: 60px;
        width: 35px;
        height: 35px;
    }
    
    .section {
        padding: 60px 20px;
        min-height: auto;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .projects-grid,
    .articles-grid,
    .cert-grid,
    .challenges-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-card,
    .article-card,
    .cert-card {
        margin-bottom: 0;
    }
    
    .profile-container {
        width: 200px;
        height: 200px;
    }
    
    .profile-ring,
    .profile-ring-2 {
        width: 200px;
        height: 200px;
    }
    
    .holo-card {
        width: 120px;
        height: 120px;
    }
    
    .holo-avatar {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .floating-badge {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .nav-links {
        width: 100%;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .terminal-window {
        font-size: 12px;
    }
    
    .terminal-body {
        min-height: 300px;
    }
    
    .achievements-game {
        padding: 30px 20px;
    }
    
    .game-info h3 {
        font-size: 22px;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .wave-container svg {
        height: 40px;
    }
}

/* ========================
   Wave Background
   ======================== */
.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-container svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-container .shape-fill {
    fill: var(--bg-secondary);
}

/* ========================
   Animations
   ======================== */
.fade-in {
    animation: fade-in 0.5s ease-out;
}

.slide-up {
    animation: slide-up 0.5s ease-out;
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================
   Article Modal
   ======================== */
.article-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.modal-content.animate-in {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    transform: rotate(90deg);
}

.modal-body {
    padding: 40px;
    overflow-y: auto;
    max-height: 85vh;
}

.modal-body .article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-body .article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.modal-body .article-category {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.modal-body .article-date,
.modal-body .article-read-time {
    color: var(--text-muted);
    font-size: 14px;
}

.modal-body .article-header h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-primary);
    line-height: 1.3;
}

.modal-body .article-body {
    color: var(--text-primary);
    line-height: 1.8;
}

.modal-body .article-body h2 {
    color: var(--accent-cyan);
    font-size: 1.5rem;
    margin: 30px 0 15px;
}

.modal-body .article-body h3 {
    color: var(--accent-magenta);
    font-size: 1.2rem;
    margin: 25px 0 10px;
}

.modal-body .article-body h4 {
    color: var(--accent-green);
    font-size: 1rem;
    margin: 20px 0 10px;
}

.modal-body .article-body p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.modal-body .article-body ul,
.modal-body .article-body ol {
    margin: 15px 0;
    padding-left: 25px;
}

.modal-body .article-body li {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.modal-body .article-body li strong {
    color: var(--accent-cyan);
}

.modal-body .article-body pre {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
}

.modal-body .article-body code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--accent-green);
    line-height: 1.6;
}

.modal-body .article-body .article-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.modal-body .article-footer .tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.modal-body .article-footer .tag {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-muted);
}

.modal-body .article-footer .share {
    display: flex;
    gap: 10px;
}

.modal-body .article-footer .share button {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.modal-body .article-footer .share button:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border-color: var(--accent-cyan);
}

/* Scrollbar for modal */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 4px;
}

/* Mobile modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
        border-radius: 15px;
    }

    .modal-body {
        padding: 25px;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
    }
}