/* ==========================================================================
   DESIGN SYSTEM & CSS VARIABLES
   ========================================================================== */
:root {
    --bg-dark: #080c14;
    --bg-darker: #05080d;
    --bg-card: rgba(13, 20, 35, 0.6);
    --border-color: rgba(0, 242, 254, 0.15);
    --border-color-glow: rgba(189, 0, 255, 0.3);
    
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --cyan-glow: #00f2fe;
    --purple-glow: #bd00ff;
    --orange-glow: #ff7b00;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-quick: all 0.2s ease;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 242, 254, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 242, 254, 0.5);
}

/* ==========================================================================
   BACKGROUND CANVAS & GRID
   ========================================================================== */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, #0c152b 0%, var(--bg-darker) 100%);
}

.glowing-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(0, 242, 254, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 242, 254, 0.03) 1px, transparent 1px);
    z-index: -1;
    mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 80%);
    pointer-events: none;
}

/* ==========================================================================
   BILINGUAL DISPLAY CONTROLS
   ========================================================================== */
body.lang-zh .lang-en {
    display: none !important;
}

body.lang-en .lang-zh {
    display: none !important;
}

/* ==========================================================================
   COMMON UI COMPONENTS (BUTTONS & BADGES)
   ========================================================================== */
.btn-primary {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    color: #040814;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

.text-glow-cyan {
    color: var(--cyan-glow);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.text-glow-purple {
    color: #d846ff;
    text-shadow: 0 0 10px rgba(189, 0, 255, 0.4);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 5%;
    background: rgba(8, 12, 20, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 2px;
}

.logo-icon i {
    color: var(--cyan-glow);
    filter: drop-shadow(0 0 5px var(--cyan-glow));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.nav-links a:hover {
    color: var(--cyan-glow);
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.4);
}

.btn-primary-nav {
    border: 1px solid rgba(0, 242, 254, 0.3) !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 20px !important;
    background: rgba(0, 242, 254, 0.03) !important;
}

.btn-primary-nav:hover {
    background: rgba(0, 242, 254, 0.1) !important;
    border-color: var(--cyan-glow) !important;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

/* Language Switcher */
.lang-switch-container {
    margin-left: 1rem;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-quick);
}

.lang-btn:hover {
    border-color: var(--cyan-glow);
    background: rgba(0, 242, 254, 0.05);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

/* Mobile Navigation Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav {
    display: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 8% 50px 8%;
    position: relative;
    gap: 4rem;
}

.hero-content {
    flex: 1.2;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 30px;
    padding: 0.4rem 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--cyan-glow);
    margin-bottom: 1.8rem;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.08);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--cyan-glow);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--cyan-glow);
}

.animate-pulse {
    animation: pulse 1.8s infinite;
}

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

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
}

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

.photo-glow-container {
    width: 320px;
    height: 440px;
    border-radius: 24px;
    position: relative;
    padding: 6px;
    background: linear-gradient(135deg, var(--border-color) 0%, var(--border-color-glow) 100%);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    overflow: hidden;
}

.david-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    filter: saturate(1.05) contrast(1.02);
    position: relative;
    z-index: 2;
}

.glow-ring {
    position: absolute;
    width: 130%;
    height: 130%;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
    animation: rotateGlow 15s linear infinite;
}

.glow-ring.glow-cyan {
    top: -15%;
    left: -15%;
    background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
}

.glow-ring.glow-purple {
    bottom: -15%;
    right: -15%;
    background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
    animation-delay: -7.5s;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   CORE VALUE SECTION
   ========================================================================== */
.about-section {
    padding: 100px 5%;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 3.5rem;
    position: relative;
}

.section-title.text-center {
    text-align: center;
}

.section-subtitle {
    color: var(--text-secondary);
    margin-top: -2.5rem;
    margin-bottom: 4rem;
    font-size: 1.05rem;
}

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

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: var(--transition-quick);
}

.value-card:hover {
    transform: translateY(-8px);
    background: rgba(16, 26, 48, 0.75);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.value-card.border-glow {
    border-color: rgba(189, 0, 255, 0.2);
}

.value-card.border-glow::before {
    background: linear-gradient(90deg, var(--cyan-glow), var(--purple-glow));
}

.value-icon {
    font-size: 2rem;
    color: var(--cyan-glow);
    margin-bottom: 1.5rem;
}

.value-card.border-glow .value-icon {
    color: var(--purple-glow);
}

.value-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.value-card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   AI TERMINAL CONSOLE SECTION
   ========================================================================== */
.console-section {
    padding: 100px 5%;
    background: var(--bg-darker);
}

.terminal-window {
    max-width: 900px;
    margin: 0 auto;
    background: #060910;
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 242, 254, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 480px;
}

.terminal-header {
    background: #0c101b;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.t-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.t-btn.red { background-color: #ff5f56; }
.t-btn.yellow { background-color: #ffbd2e; }
.t-btn.green { background-color: #27c93f; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.terminal-status {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--cyan-glow);
    display: flex;
    align-items: center;
    gap: 4px;
}

.terminal-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #e2e8f0;
}

.terminal-line {
    margin-bottom: 1rem;
    white-space: pre-wrap;
    word-break: break-all;
}

.terminal-line.system {
    color: var(--text-muted);
    font-style: italic;
}

.terminal-line.prompt {
    display: flex;
    gap: 8px;
    color: #f8fafc;
}

.terminal-path {
    color: var(--purple-glow);
    font-weight: 600;
}

.terminal-line.response {
    color: #a5f3fc;
    line-height: 1.7;
    background: rgba(0, 242, 254, 0.02);
    border-left: 2px solid var(--cyan-glow);
    padding: 0.75rem 1rem;
    border-radius: 0 8px 8px 0;
}

.typed-text {
    color: var(--cyan-glow);
}

/* Terminal Input Bar */
.terminal-input-bar {
    background: #0b0f19;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-input-bar input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.terminal-send-btn {
    background: none;
    border: none;
    color: var(--cyan-glow);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition-quick);
}

.terminal-send-btn:hover {
    color: var(--purple-glow);
    transform: scale(1.1);
}

/* Terminal shortcuts / quick questions */
.terminal-shortcuts {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.shortcut-btn {
    background: rgba(16, 22, 37, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.shortcut-btn:hover {
    border-color: var(--cyan-glow);
    color: var(--cyan-glow);
    background: rgba(0, 242, 254, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.15);
}

.shortcut-btn i {
    font-size: 0.9rem;
}

/* ==========================================================================
   PROJECTS PORTFOLIO SECTION
   ========================================================================== */
.projects-section {
    padding: 100px 5%;
    background: var(--bg-dark);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-quick);
}

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

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 242, 254, 0.02) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 242, 254, 0.25);
    box-shadow: 0 15px 30px rgba(0, 242, 254, 0.05);
}

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

.project-header {
    margin-bottom: 1.25rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.proj-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.75rem;
    border-radius: 12px;
}

.tag-ai {
    background: rgba(0, 242, 254, 0.1);
    color: var(--cyan-glow);
}

.tag-iot {
    background: rgba(255, 123, 0, 0.1);
    color: var(--orange-glow);
}

.tag-consulting {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
}

.proj-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.project-card-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
}

.project-org {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1rem;
}

.project-org i {
    color: var(--text-muted);
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.project-features li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.project-features li i {
    font-size: 0.75rem;
}

.text-cyan { color: var(--cyan-glow); }
.text-purple { color: #d846ff; }
.text-orange { color: var(--orange-glow); }

.project-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.25rem;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

/* ==========================================================================
   CAREER TIMELINE SECTION
   ========================================================================== */
.timeline-section {
    padding: 100px 5%;
    background: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.timeline-container {
    max-width: 900px;
    margin: 4rem auto 0 auto;
    position: relative;
    padding-left: 3rem;
}

.timeline-progress-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 15px;
    width: 2px;
    background: linear-gradient(to bottom, 
        rgba(0, 242, 254, 0.1) 0%, 
        var(--cyan-glow) 50%, 
        var(--purple-glow) 100%
    );
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.15);
}

.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -3rem;
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: var(--bg-darker);
    border: 2px solid var(--cyan-glow);
    border-radius: 50%;
    transform: translateX(10px);
    box-shadow: 0 0 5px var(--cyan-glow);
    z-index: 5;
}

.timeline-dot-active {
    position: absolute;
    left: -3rem;
    top: 2px;
    width: 18px;
    height: 18px;
    background-color: var(--purple-glow);
    border: 3px solid #fff;
    border-radius: 50%;
    transform: translateX(7px);
    box-shadow: 0 0 15px var(--purple-glow);
    z-index: 5;
}

.timeline-date {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--cyan-glow);
    margin-bottom: 0.5rem;
}

.glow-text {
    color: #e879f9;
    text-shadow: 0 0 10px rgba(189, 0, 255, 0.5);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 1.8rem;
    backdrop-filter: blur(10px);
    transition: var(--transition-quick);
}

.timeline-content h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.timeline-content h5 {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1rem;
}

.timeline-content p {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.highlight-content {
    border-color: rgba(189, 0, 255, 0.25);
    background: rgba(189, 0, 255, 0.03);
    box-shadow: 0 10px 30px rgba(189, 0, 255, 0.05);
}

/* ==========================================================================
   SKILLS GRID SECTION
   ========================================================================== */
.skills-section {
    padding: 100px 5%;
    background: var(--bg-dark);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.skill-category-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 2.2rem;
    backdrop-filter: blur(10px);
    transition: var(--transition-quick);
}

.skill-category-card:hover {
    background: rgba(16, 24, 40, 0.7);
    border-color: rgba(0, 242, 254, 0.15);
}

.skill-category-icon {
    font-size: 1.8rem;
    color: var(--cyan-glow);
    margin-bottom: 1.25rem;
}

.skill-category-icon i.animate-glow {
    animation: textGlowPulse 3s infinite;
}

@keyframes textGlowPulse {
    0%, 100% { filter: drop-shadow(0 0 2px var(--cyan-glow)); }
    50% { filter: drop-shadow(0 0 10px var(--cyan-glow)); }
}

.skill-category-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0.9rem;
    border-radius: 12px;
    transition: var(--transition-quick);
}

.skill-tag:hover {
    border-color: var(--cyan-glow);
    background: rgba(0, 242, 254, 0.05);
    color: var(--cyan-glow);
}

.skills-disclaimer {
    max-width: 800px;
    margin: 3.5rem auto 0 auto;
    padding: 1rem 1.5rem;
    background: rgba(234, 179, 8, 0.03);
    border: 1px solid rgba(234, 179, 8, 0.15);
    border-radius: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.text-yellow {
    color: #eab308;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
    padding: 100px 5%;
    background: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
    max-width: 1100px;
    margin: 4rem auto 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.info-icon {
    font-size: 1.4rem;
    color: var(--cyan-glow);
    background: rgba(0, 242, 254, 0.05);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.05);
}

.info-text h5 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.info-text a, .info-text p {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-primary);
}

.info-text a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form-container {
    background: #0b0f19;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.form-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
}

.form-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--cyan-glow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input, .form-group textarea {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.92rem;
    outline: none;
    transition: var(--transition-quick);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--cyan-glow);
    background: rgba(0, 242, 254, 0.02);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.form-submit-btn {
    align-self: flex-start;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
}

/* Feedback Overlay */
.form-feedback-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.95);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.feedback-spinner {
    width: 35px;
    height: 35px;
    border: 3px solid rgba(0, 242, 254, 0.15);
    border-top-color: var(--cyan-glow);
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

.feedback-text {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--cyan-glow);
    text-align: center;
}

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

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: #05080c;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 2rem 5%;
}

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

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

.footer-right {
    display: flex;
    gap: 0.8rem;
}

.badge-fde {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-fde i {
    font-size: 0.75rem;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column-reverse;
        padding-top: 120px;
        gap: 2.5rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .value-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Mobile Overlay Open */
    .mobile-nav.active {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(5, 8, 13, 0.98);
        backdrop-filter: blur(15px);
        z-index: 999;
        gap: 2rem;
    }
    
    .mobile-link {
        font-family: var(--font-heading);
        font-size: 1.5rem;
        color: var(--text-secondary);
        text-decoration: none;
        font-weight: 600;
        transition: var(--transition-quick);
    }
    
    .mobile-link:hover {
        color: var(--cyan-glow);
    }
    
    .photo-glow-container {
        width: 260px;
        height: 350px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .timeline-container {
        padding-left: 2rem;
    }
    
    .timeline-progress-bar {
        left: 10px;
    }
    
    .timeline-dot, .timeline-dot-active {
        left: -2rem;
    }
    
    .timeline-dot {
        transform: translateX(4px);
    }
    
    .timeline-dot-active {
        transform: translateX(1px);
    }
}
