﻿/* ===== CSS RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --bg-primary: #0a0e27;
    --bg-secondary: #0f1420;
    --bg-card: #1a1f35;
    --bg-hover: #222844;
    
    --accent-cyan: #00d4ff;
    --accent-blue: #0066ff;
    --accent-violet: #7c3aed;
    --accent-pink: #ec4899;
    
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border-color: #1e293b;
    --glow-color: rgba(0, 212, 255, 0.3);
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", "Lucida Console", Monaco, monospace;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== TECHNICAL BACKGROUND ===== */
.tech-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

#particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet));
    z-index: 1000;
    transition: width 0.1s;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 14, 39, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-cyan);
}

.terminal-cursor::after {
    content: "_";
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    margin: 4px 0;
    transition: 0.3s;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-family: var(--font-mono);
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-cyan);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-resume-nav {
    padding: 8px 20px;
    background: transparent;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    text-decoration: none;
    font-size: 13px;
    font-family: var(--font-mono);
    transition: all 0.3s;
}

.btn-resume-nav:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 20px var(--glow-color);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 80px;
    position: relative;
}

.hero-container {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-left {
    z-index: 2;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    border-radius: 20px;
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-role {
    font-family: var(--font-mono);
    font-size: 24px;
    color: var(--accent-cyan);
    margin-bottom: 30px;
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.role-label {
    color: var(--text-secondary);
}

.typed-text {
    color: var(--accent-cyan);
}

.cursor-blink {
    animation: blink 0.7s infinite;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn {
    padding: 14px 32px;
    font-size: 14px;
    font-family: var(--font-mono);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    font-weight: 600;
}

.btn-primary:hover {
    box-shadow: 0 0 30px var(--glow-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 20px var(--glow-color);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.hero-social {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all 0.3s;
}

.social-icon:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 20px var(--glow-color);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-cyan);
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== HERO RIGHT - PHOTO ===== */
.hero-right {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-container {
    position: relative;
}

.photo-frame {
    position: relative;
    width: 400px;
    height: 500px;
    border: 2px solid var(--accent-cyan);
    padding: 8px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
    box-shadow: 0 0 40px var(--glow-color);
    transition: transform 0.3s ease;
}

.photo-frame::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid var(--accent-cyan);
    opacity: 0.3;
    pointer-events: none;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.status-panel {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--bg-card);
    border: 1px solid var(--accent-cyan);
    padding: 15px 20px;
    font-family: var(--font-mono);
    font-size: 11px;
    min-width: 200px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.panel-header {
    color: var(--accent-cyan);
    margin-bottom: 8px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

.panel-item {
    color: var(--text-secondary);
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
}

.btn-special {
    padding: 12px 24px;
    background: transparent;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-special:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 20px var(--glow-color);
    transform: translateY(-2px);
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--accent-cyan);
    padding: 40px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 0 40px var(--glow-color);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--accent-cyan);
}

.terminal-output {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-secondary);
}

.scanner-result {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid var(--accent-cyan);
    display: none;
}

.scanner-result.show {
    display: block;
}

.scanner-result h3 {
    color: var(--accent-cyan);
    margin-bottom: 15px;
}

.scanner-result .skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.scanner-result .skill-tag {
    padding: 5px 12px;
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid var(--accent-cyan);
    font-size: 11px;
    color: var(--accent-cyan);
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 40px;
    position: relative;
}

.section-dark {
    background: var(--bg-secondary);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
    font-size: 36px;
    font-weight: 700;
}

.title-number {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 24px;
}

.title-line {
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.terminal-command {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    padding: 15px 20px;
    background: rgba(0, 212, 255, 0.05);
    border-left: 3px solid var(--accent-cyan);
}

.prompt {
    color: var(--accent-cyan);
    margin-right: 10px;
}

/* ===== ABOUT SECTION ===== */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.about-content p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-content strong {
    color: var(--accent-cyan);
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    font-family: var(--font-mono);
}

.card-header {
    font-size: 14px;
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 10px;
}

.card-divider {
    height: 1px;
    background: var(--border-color);
    margin-bottom: 20px;
}

.profile-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 13px;
}

.profile-label {
    color: var(--text-muted);
}

.profile-value {
    color: var(--text-primary);
}

/* ===== SKILLS SECTION ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    transition: all 0.3s;
}

.skill-category:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px var(--glow-color);
}

.category-title {
    font-size: 18px;
    color: var(--accent-cyan);
    margin-bottom: 20px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.5s forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.skill-name {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
}

.skill-bar {
    height: 6px;
    background: var(--border-color);
    position: relative;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet));
    width: 0;
    transition: width 1s ease;
}

.skill-item[data-level="advanced"] .skill-fill {
    width: 85%;
}

.skill-item[data-level="intermediate"] .skill-fill {
    width: 70%;
}

.skill-item[data-level="working"] .skill-fill {
    width: 55%;
}

/* ===== PROJECTS SECTION ===== */
.project-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    font-family: var(--font-mono);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    position: relative;
    transition: all 0.3s;
    opacity: 1;
    transform: scale(1);
}

.project-card.hidden {
    display: none;
}

.project-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 30px var(--glow-color);
    transform: translateY(-5px);
}

.project-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: var(--font-mono);
    font-size: 48px;
    color: rgba(0, 212, 255, 0.1);
    font-weight: 700;
}

.project-category {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-cyan);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-title {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.project-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    padding: 5px 12px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-size: 11px;
    font-family: var(--font-mono);
}

.project-features {
    margin-bottom: 20px;
}

.feature {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 13px;
    font-family: var(--font-mono);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.project-link:hover {
    border-color: var(--accent-cyan);
}

/* ===== EXPERIENCE / TIMELINE ===== */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    left: -44px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--glow-color);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    position: relative;
    transition: all 0.3s;
}

.timeline-content:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px var(--glow-color);
}

.timeline-badge {
    display: inline-block;
    padding: 5px 12px;
    font-family: var(--font-mono);
    font-size: 10px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-badge.ongoing {
    background: rgba(0, 212, 255, 0.2);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
}

.timeline-badge.completed {
    background: rgba(100, 116, 139, 0.2);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.timeline-content h3 {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 16px;
    color: var(--accent-cyan);
    margin-bottom: 15px;
    font-weight: 500;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.timeline-tech {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.timeline-tech span {
    padding: 4px 10px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-size: 11px;
    font-family: var(--font-mono);
}

/* ===== CERTIFICATIONS ===== */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
}

.cert-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px var(--glow-color);
    transform: translateY(-5px);
}

.cert-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.cert-category {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent-cyan);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cert-name {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.cert-org {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== ACHIEVEMENTS ===== */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.achievement-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    text-align: center;
    transition: all 0.3s;
}

.achievement-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 30px var(--glow-color);
    transform: translateY(-5px);
}

.achievement-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.achievement-rank {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-cyan);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.achievement-card h3 {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.achievement-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== GITHUB SECTION ===== */
.github-dashboard {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 50px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.github-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.github-header svg {
    color: var(--accent-cyan);
}

.github-header h3 {
    font-size: 28px;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.github-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.github-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 30px;
}

.github-stat {
    text-align: center;
}

.github-stat .stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
    font-family: var(--font-mono);
}

.github-stat .stat-value {
    font-size: 18px;
    color: var(--accent-cyan);
    font-weight: 600;
}

.github-btn {
    display: inline-block;
    margin-top: 10px;
}

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 50px 20px;
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-cyan);
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #10b981;
    font-size: 12px;
}

.footer-status .status-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.footer-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.footer-tagline {
    font-size: 13px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

.footer-links span {
    color: var(--text-muted);
}

.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ===== CODING INTRO SECTION ===== */
.coding-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Code Editor Panel */
.code-editor-panel,
.terminal-panel {
    background: #0d1117;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    transition: box-shadow 0.3s;
}

.code-editor-panel:hover,
.terminal-panel:hover {
    box-shadow: 0 8px 40px var(--glow-color);
    border-color: var(--accent-cyan);
}

.editor-titlebar,
.terminal-titlebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #161b22;
    border-bottom: 1px solid #21262d;
}

.editor-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red    { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #27c93f; }

.editor-filename {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    flex: 1;
}

.editor-lang {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    padding: 2px 8px;
    border: 1px solid #21262d;
}

.editor-body,
.terminal-body {
    padding: 24px;
    min-height: 380px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    overflow-x: auto;
}

/* Code syntax colors */
.code-lines {
    counter-reset: line;
}

.code-line {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.3s, transform 0.3s;
}

.code-line.visible {
    opacity: 1;
    transform: translateX(0);
}

.line-num {
    color: #3d4451;
    min-width: 22px;
    text-align: right;
    user-select: none;
    font-size: 12px;
}

.line-code {
    flex: 1;
}

/* Syntax highlight classes */
.kw  { color: #ff7b72; }   /* keyword: def, class, return */
.fn  { color: #d2a8ff; }   /* function name */
.st  { color: #a5d6ff; }   /* string */
.cm  { color: #8b949e; font-style: italic; } /* comment */
.nm  { color: #79c0ff; }   /* number / name */
.op  { color: #ff7b72; }   /* operator */
.pl  { color: #ffa657; }   /* plain / self */
.br  { color: #e6edf3; }   /* brackets, punctuation */

/* Terminal */
.terminal-body {
    background: #0d1117;
    min-height: 380px;
}

.terminal-prompt-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.t-prompt {
    color: #27c93f;
    font-size: 13px;
}

.t-cmd {
    color: var(--text-primary);
    font-size: 13px;
}

.t-cursor {
    color: var(--accent-cyan);
    animation: blink 0.8s infinite;
    font-size: 14px;
}

#terminalLines .t-line {
    font-size: 13px;
    margin-bottom: 6px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.25s, transform 0.25s;
}

#terminalLines .t-line.show {
    opacity: 1;
    transform: translateY(0);
}

.t-ok    { color: #27c93f; }
.t-info  { color: var(--accent-cyan); }
.t-warn  { color: #ffa657; }
.t-data  { color: var(--text-secondary); }
.t-head  { color: #d2a8ff; font-weight: 600; }
.t-val   { color: #a5d6ff; }

/* Connect Strip */
.connect-strip {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 25px 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.connect-label {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}

.connect-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    flex: 1;
}

.connect-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 12px;
    transition: all 0.3s;
    white-space: nowrap;
}

.connect-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 0 16px var(--glow-color);
}

.connect-btn-accent {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.08);
}

.connect-btn-accent:hover {
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 24px var(--glow-color);
}

/* Responsive for coding intro */
@media (max-width: 900px) {
    .coding-intro-grid {
        grid-template-columns: 1fr;
    }
    .connect-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .connect-links {
        width: 100%;
    }
    .connect-btn {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .editor-body,
    .terminal-body {
        padding: 16px;
        font-size: 11px;
    }
    .connect-btn {
        flex: 1 1 100%;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-container {
        gap: 50px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .photo-frame {
        width: 350px;
        height: 450px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 30px;
        border-left: 1px solid var(--border-color);
        transition: right 0.3s;
        align-items: flex-start;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .btn-resume-nav {
        margin-top: 20px;
    }
    
    .hero {
        padding: 100px 20px 60px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-role {
        font-size: 18px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .photo-frame {
        width: 280px;
        height: 350px;
    }
    
    .status-panel {
        right: 0;
        bottom: -20px;
        min-width: 180px;
        padding: 12px 15px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }
    
    .section {
        padding: 60px 20px;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .skills-grid,
    .projects-grid,
    .certifications-grid,
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .coding-intro-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        padding-left: 30px;
    }
    
    .timeline-dot {
        left: -34px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn-special {
        width: 100%;
    }
}

@media (max-width: 425px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-role {
        font-size: 16px;
    }
    
    .photo-frame {
        width: 240px;
        height: 300px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-value {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
        flex-wrap: wrap;
    }
    
    .title-line {
        display: none;
    }
    
    .modal-content {
        padding: 25px;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .github-stats {
        flex-direction: column;
        gap: 20px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== UTILITY ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
