/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
    /* Colors */
    --primary-bg: #0a0e27;
    --secondary-bg: #0f1629;
    --card-bg: rgba(15, 22, 41, 0.7);
    --accent-cyan: #00ffff;
    --accent-blue: #0066ff;
    --accent-green:  #00ff88;
    --accent-purple:  #9d4edd;
    --accent-red: #ff0055;
    --text-primary: #e8f0f2;
    --text-secondary:  #9ca3af;
    --border-color: rgba(0, 255, 255, 0.2);
    
    /* Typography */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;
    
    /* Effects */
    --glow-cyan: 0 0 20px rgba(0, 255, 255, 0.5);
    --glow-blue: 0 0 20px rgba(0, 102, 255, 0.5);
    --glow-green:  0 0 20px rgba(0, 255, 136, 0.5);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height:  100%;
    background: 
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

. container {
    max-width: 1200px;
    margin:  0 auto;
    padding: var(--container-padding);
}

/* ===========================
   Navigation
   =========================== */
. navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background:  rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 14, 39, 0.95);
    box-shadow: 0 5px 30px rgba(0, 255, 255, 0.1);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent-cyan);
    cursor: pointer;
}

.nav-logo i {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

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

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link:: before {
    content: '';
    position: absolute;
    bottom:  -5px;
    left:  0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link. active {
    color: var(--accent-cyan);
}

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

. nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width:  25px;
    height:  3px;
    background:  var(--accent-cyan);
    transition: var(--transition);
}

/* ===========================
   Hero Section
   =========================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 20px 80px;
}

.cyber-grid {
    position: absolute;
    top: 0;
    left:  0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#gridCanvas {
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 255, 136, 0.1);
    border:  1px solid var(--accent-green);
    padding: 8px 20px;
    border-radius:  20px;
    margin-bottom: 30px;
    animation: fadeInDown 1s ease;
}

. status-dot {
    width: 10px;
    height: 10px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: var(--glow-green);
    animation: blink 2s infinite;
}

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

.status-text {
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: var(--accent-green);
    font-weight: 600;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease 0.3s both;
}

. glitch {
    position: relative;
    display: inline-block;
    color: var(--accent-cyan);
    text-shadow: var(--glow-cyan);
}

.typing-container {
    font-family: var(--font-code);
    font-size: 1.2rem;
    color: var(--accent-green);
    margin: 20px 0;
    animation: fadeInUp 1s ease 0.6s both;
}

. terminal-prompt {
    color: var(--accent-cyan);
}

.cursor {
    animation: blink 1s infinite;
}

. hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.9s both;
}

. hero-subtitle i {
    color: var(--accent-cyan);
    margin-right: 5px;
}

.separator {
    margin: 0 15px;
    color: var(--accent-cyan);
}

.hero-buttons {
    display: flex;
    gap:  20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 1.2s both;
}

. btn {
    display: inline-flex;
    align-items:  center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight:  600;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow:  hidden;
    z-index: 1;
}

.btn:: before {
    content: '';
    position: absolute;
    top: 0;
    left:  -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    left:  100%;
}

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

.btn-primary:hover {
    background:  transparent;
    color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-cyan);
    border: 2px solid var(--accent-cyan);
}

.btn-secondary:hover {
    background:  var(--accent-cyan);
    color: var(--primary-bg);
    box-shadow: var(--glow-cyan);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: fadeInUp 1s ease 1.5s both;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--accent-cyan);
    border-radius: 15px;
    position: relative;
    margin: 0 auto 10px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { top: 8px; opacity: 1; }
    100% { top: 24px; opacity: 0; }
}

.scroll-indicator p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

. hero-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 60px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 1.8s both;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px 30px;
    text-align:  center;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
    transform: translateY(-5px);
}

.stat-card i {
    font-size:  2rem;
    color: var(--accent-cyan);
    margin-bottom: 10px;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 5px;
}

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

/* ===========================
   Animations
   =========================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform:  translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===========================
   Section Styles
   =========================== */
section {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

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

.section-tag {
    font-family: var(--font-code);
    color: var(--accent-cyan);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--accent-cyan);
    margin: 0 auto;
    box-shadow: var(--glow-cyan);
}

.section-subtitle {
    color: var(--text-secondary);
    margin-top: 15px;
}

/* ===========================
   About Section
   =========================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items:  center;
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    border: 2px solid var(--accent-cyan);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--glow-cyan);
}

.image-frame img {
    width: 100%;
    display: block;
    filter: grayscale(30%);
    transition: var(--transition);
}

.image-frame:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height:  2px;
    background:  var(--accent-cyan);
    box-shadow: var(--glow-cyan);
    animation: scan 3s infinite;
}

@keyframes scan {
    0%, 100% { top: 0; }
    50% { top: 100%; }
}

.image-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.security-badge {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    border-radius: 20px;
    padding: 8px 15px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size:  0.85rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

.about-intro {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.highlight {
    color: var(--accent-cyan);
    font-weight: 600;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin:  30px 0;
}

. highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.highlight-item i {
    color: var(--accent-green);
    font-size: 1.1rem;
}

/* ===========================
   Skills Section
   =========================== */
.skills-section {
    background: var(--secondary-bg);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

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

.skill-category:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);