/* ==========================================
   DESIGN SYSTEM & VARIABLES (SYSTEMS THEME)
   ========================================== */
:root {
    /* Color System */
    --bg-deep: #07090e;
    --bg-dark: #0b0f17;
    --bg-card: rgba(16, 22, 34, 0.65);
    --bg-card-hover: rgba(22, 30, 47, 0.85);
    --border-color: rgba(255, 255, 255, 0.07);
    --border-glow: rgba(0, 242, 254, 0.3);
    
    --primary-cyan: #00f2fe;
    --secondary-blue: #4facfe;
    --accent-violet: #8e2de2;
    --accent-green: #00e676;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    
    /* Gradients */
    --cyan-blue-grad: linear-gradient(135deg, var(--primary-cyan) 0%, var(--secondary-blue) 100%);
    --dark-grad: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-dark) 100%);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-code: 'Fira Code', 'Courier New', monospace;
    
    /* Design Tokens */
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-subtle: 0 4px 30px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.12);
    
    /* Transitions */
    --trans-fast: 0.2s ease;
    --trans-normal: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Ambient Cybernetic Glows */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(160px);
    opacity: 0.06;
    pointer-events: none;
    z-index: -1;
}

.glow-primary {
    top: 5%;
    left: -150px;
    background-color: var(--primary-cyan);
}

.glow-secondary {
    top: 50%;
    right: -150px;
    background-color: var(--accent-violet);
}

.glow-tertiary {
    bottom: 5%;
    left: 15%;
    background-color: var(--secondary-blue);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--trans-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
}

/* ==========================================
   UTILITIES
   ========================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: var(--cyan-blue-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 500;
    cursor: pointer;
    transition: var(--trans-normal);
}

.btn-primary {
    background: var(--cyan-blue-grad);
    color: var(--bg-deep);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 242, 254, 0.35);
}

.btn-outline {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary-cyan);
    background: rgba(0, 242, 254, 0.04);
    transform: translateY(-2px);
}

.btn-glow {
    background: transparent;
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cyan-blue-grad);
    z-index: -1;
    opacity: 0;
    transition: var(--trans-normal);
}

.btn-glow:hover {
    color: var(--bg-deep);
    font-weight: 600;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.35);
    transform: translateY(-2px);
}

.btn-glow:hover::before {
    opacity: 1;
}

.btn-full {
    width: 100%;
}

/* ==========================================
   HEADER / NAVIGATION
   ========================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(7, 9, 14, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: var(--trans-normal);
}

.main-header.scrolled {
    height: 70px;
    background: rgba(7, 9, 14, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-dot {
    color: var(--primary-cyan);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
    animation: blinkLight 1.5s infinite alternate;
}

.nav-menu {
    display: block;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 8px 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyan-blue-grad);
    transition: var(--trans-normal);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: var(--trans-fast);
}

/* ==========================================
   MOBILE MENU DRAWER
   ========================================== */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 280px;
    height: 100vh;
    background: var(--bg-dark);
    border-left: 1px solid var(--border-color);
    padding: 32px 24px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    transition: var(--trans-normal);
}

.mobile-drawer.open {
    right: 0;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.drawer-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.drawer-close:hover {
    color: var(--primary-cyan);
}

.drawer-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: auto;
}

.drawer-link {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
    display: block;
    padding: 8px 0;
}

.drawer-link:hover, .drawer-link.active {
    color: var(--primary-cyan);
    padding-left: 8px;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: var(--trans-normal);
}

.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.badge-tech {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 242, 254, 0.06);
    border: 1px solid rgba(0, 242, 254, 0.15);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-cyan);
    animation: blinkLight 1s infinite alternate;
}

.badge-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-cyan);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

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

.hero-role-container {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.role-dynamic {
    color: var(--primary-cyan);
    font-family: var(--font-code);
    font-weight: 600;
}

.role-cursor {
    animation: blinkLight 0.8s infinite;
    color: var(--primary-cyan);
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 36px;
    max-width: 560px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* System Terminal Styling */
.hero-terminal {
    width: 100%;
}

.terminal-card {
    background: #06080c;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-subtle), 0 20px 50px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    font-family: var(--font-code);
    font-size: 0.85rem;
    width: 100%;
    transition: var(--trans-normal);
}

.terminal-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-subtle), 0 20px 50px rgba(0, 242, 254, 0.05);
}

.terminal-header {
    background: #0f131a;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

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

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

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

.terminal-action-btn {
    color: var(--text-muted);
    opacity: 0.6;
}

.terminal-body {
    padding: 18px;
    height: 380px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.terminal-body::-webkit-scrollbar {
    width: 6px;
}
.terminal-body::-webkit-scrollbar-track {
    background: transparent;
}
.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.terminal-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.term-prompt {
    color: var(--accent-green);
    white-space: nowrap;
}

.term-command {
    color: var(--text-main);
}

.terminal-neofetch {
    display: flex;
    gap: 16px;
    color: var(--text-muted);
    line-height: 1.4;
}

.neofetch-logo {
    color: var(--primary-cyan);
    font-size: 0.75rem;
    font-weight: bold;
    white-space: pre;
    line-height: 1.15;
}

.neofetch-info {
    display: flex;
    flex-direction: column;
}

.info-title {
    color: var(--primary-cyan);
    font-weight: bold;
}

.info-divider {
    color: var(--text-muted);
    opacity: 0.3;
}

.info-key {
    color: var(--secondary-blue);
    font-weight: 500;
}

.terminal-output {
    color: var(--text-muted);
    line-height: 1.5;
}

.term-highlight {
    color: var(--primary-cyan);
}

.terminal-result-item {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid var(--primary-cyan);
    border-radius: 0 4px 4px 0;
    line-height: 1.5;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    flex: 1;
    font-family: var(--font-code);
    font-size: 0.85rem;
}

.terminal-footer {
    background: #06080c;
    border-top: 1px solid var(--border-color);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
}

.terminal-footer::-webkit-scrollbar {
    display: none;
}

.terminal-hint-title {
    color: var(--text-muted);
    font-size: 0.75rem;
    white-space: nowrap;
}

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

.term-hint-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-muted);
    padding: 4px 8px;
    font-size: 0.75rem;
    cursor: pointer;
    font-family: var(--font-code);
    transition: var(--trans-fast);
}

.term-hint-btn:hover {
    color: var(--primary-cyan);
    border-color: var(--primary-cyan);
    background: rgba(0, 242, 254, 0.05);
}

/* ==========================================
   CORE PHILOSOPHY SECTION
   ========================================== */
.about-section {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 64px;
}

.philosophy-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: var(--trans-normal);
}

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

.p-icon-box {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
}

.cyan-glow {
    color: var(--primary-cyan);
    border-color: rgba(0, 242, 254, 0.2);
    background: rgba(0, 242, 254, 0.03);
}

.blue-glow {
    color: var(--secondary-blue);
    border-color: rgba(79, 172, 254, 0.2);
    background: rgba(79, 172, 254, 0.03);
}

.violet-glow {
    color: var(--accent-violet);
    border-color: rgba(142, 45, 226, 0.2);
    background: rgba(142, 45, 226, 0.03);
}

.philosophy-card:hover .cyan-glow { box-shadow: 0 0 15px rgba(0, 242, 254, 0.2); border-color: var(--primary-cyan); }
.philosophy-card:hover .blue-glow { box-shadow: 0 0 15px rgba(79, 172, 254, 0.2); border-color: var(--secondary-blue); }
.philosophy-card:hover .violet-glow { box-shadow: 0 0 15px rgba(142, 45, 226, 0.2); border-color: var(--accent-violet); }

.p-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.p-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* About overview box */
.about-overview-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px;
    display: grid;
    grid-template-columns: 3.5fr 6.5fr;
    gap: 48px;
    align-items: center;
}

.about-img-col {
    position: relative;
    width: 100%;
}

.about-portrait-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.about-img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 1;
}

.img-glow-accent {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: inset 0 0 30px rgba(0, 242, 254, 0.25);
    pointer-events: none;
}

.about-text-col h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-cyan);
}

.about-text-col p {
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.7;
}

.metrics-row {
    display: flex;
    gap: 40px;
    margin-top: 32px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 6px;
}

.metric-item span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================
   MY EXPERTISE SECTION
   ========================================== */
.expertise-section {
    padding: 100px 0;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.exp-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 36px;
    transition: var(--trans-normal);
}

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

.exp-icon {
    color: var(--primary-cyan);
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: rgba(0, 242, 254, 0.03);
    border: 1px solid rgba(0, 242, 254, 0.1);
}

.exp-card:hover .exp-icon {
    background: var(--cyan-blue-grad);
    color: var(--bg-deep);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
}

.exp-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.exp-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ==========================================
   SELECTED LABS & SYSTEMS
   ========================================== */
.labs-section {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.labs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.lab-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    transition: var(--trans-normal);
    display: flex;
    flex-direction: column;
}

.lab-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.15);
    box-shadow: var(--shadow-subtle), 0 10px 40px rgba(0,0,0,0.3);
}

.lab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.lab-badge {
    background: rgba(0, 242, 254, 0.06);
    border: 1px solid rgba(0, 242, 254, 0.2);
    color: var(--primary-cyan);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lab-id {
    font-family: var(--font-code);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.lab-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.lab-meta-row {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.lab-problem-box, .lab-solution-box {
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.lab-problem-box {
    background: rgba(255, 95, 86, 0.03);
    border-left: 2px solid #ff5f56;
    color: var(--text-muted);
}

.lab-problem-box strong {
    color: #ff5f56;
}

.lab-solution-box {
    background: rgba(0, 230, 118, 0.03);
    border-left: 2px solid var(--accent-green);
    color: var(--text-main);
    flex: 1;
}

.lab-solution-box strong {
    color: var(--accent-green);
}

.lab-footer-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 28px;
}

.lab-footer-tech span {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 4px;
}

/* ==========================================
   LAB DETAIL MODAL
   ========================================== */
.project-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 960px;
    max-height: 85vh;
    background: var(--bg-dark);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.85);
    z-index: 300;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: var(--trans-normal);
    padding: 40px;
}

.project-modal.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary-cyan);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    z-index: 250;
    opacity: 0;
    visibility: hidden;
    transition: var(--trans-normal);
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-header-section {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.modal-cat {
    color: var(--primary-cyan);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 8px;
}

.modal-title-custom {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.25;
}

.modal-desc-para {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.modal-grid-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.modal-info-column {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 20px;
}

.modal-info-column h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.modal-info-column ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.modal-info-column li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.modal-info-column li::before {
    content: '▪';
    color: var(--primary-cyan);
}

.modal-actions {
    display: flex;
    gap: 16px;
}

/* ==========================================
   HOW I WORK (WAY OF WORKING)
   ========================================== */
.workflow-section {
    padding: 100px 0;
}

.workflow-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.workflow-step {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 32px;
    align-items: flex-start;
    position: relative;
}

.step-number-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.step-num {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #0b0f17;
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    transition: var(--trans-normal);
    z-index: 2;
}

.workflow-step:hover .step-num {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

.step-connector {
    width: 2px;
    flex: 1;
    background: var(--border-color);
    margin-top: 12px;
    z-index: 1;
    min-height: 100px;
}

.workflow-step:hover .step-connector {
    background: linear-gradient(180deg, var(--primary-cyan), var(--border-color));
}

.step-content-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--trans-normal);
}

.workflow-step:hover .step-content-card {
    border-color: var(--border-glow);
    transform: translateX(5px);
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.workflow-step:hover .step-title {
    color: var(--primary-cyan);
}

.step-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================
   PREMIUM CONTACT SECTION
   ========================================== */
.contact-section {
    padding: 100px 0;
}

.contact-card-box {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
}

.contact-grid {
    display: grid;
    grid-template-columns: 4.5fr 5.5fr;
}

.contact-info-panel {
    background: linear-gradient(135deg, rgba(7, 9, 14, 0.9) 0%, rgba(11, 15, 23, 0.9) 100%);
    border-right: 1px solid var(--border-color);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info-panel h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.25;
}

.contact-info-panel p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: center;
}

.c-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.1);
    color: var(--primary-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
}

.c-text span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.c-text strong {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 600;
}

.contact-socials {
    display: flex;
    gap: 16px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--trans-fast);
}

.social-btn:hover {
    color: var(--primary-cyan);
    border-color: var(--primary-cyan);
    background: rgba(0, 242, 254, 0.05);
    transform: translateY(-2px);
}

/* Contact Form Panel */
.contact-form-panel {
    padding: 48px;
    background: rgba(7, 9, 14, 0.4);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.required {
    color: #ff5f56;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 16px;
    color: var(--text-main);
    outline: none;
    transition: var(--trans-fast);
    width: 100%;
}

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

.form-group select option {
    background-color: var(--bg-dark);
    color: var(--text-main);
}

.submit-btn {
    position: relative;
    font-size: 1rem;
    display: flex;
    gap: 12px;
}

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0,0,0,0.1);
    border-top: 2px solid var(--bg-deep);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.form-alert {
    font-size: 0.88rem;
    margin-top: -12px;
    display: none;
}

.form-alert.success { color: var(--accent-green); display: block; }
.form-alert.error { color: #ff5f56; display: block; }

/* ==========================================
   SUCCESS CONFIRMATION MODAL
   ========================================== */
.success-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 450px;
    background: var(--bg-dark);
    border: 1px solid var(--accent-green);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.7);
    z-index: 300;
    padding: 40px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--trans-normal);
}

.success-modal.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: rgba(0, 230, 118, 0.08);
    border: 2px solid var(--accent-green);
    color: var(--accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.2);
}

.success-modal h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.success-modal p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 28px;
    line-height: 1.5;
}

.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    z-index: 250;
    opacity: 0;
    visibility: hidden;
    transition: var(--trans-normal);
}

.success-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ==========================================
   FOOTER
   ========================================== */
.main-footer {
    background-color: var(--bg-deep);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 40px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-left {
    max-width: 400px;
}

.footer-left .logo {
    margin-bottom: 16px;
}

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

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

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

.footer-nav a {
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-nav a:hover {
    color: var(--primary-cyan);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: right;
    margin-top: 12px;
}

/* ==========================================
   KEYFRAME ANIMATIONS
   ========================================== */
@keyframes blinkLight {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

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

/* ==========================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .hero-content {
        text-align: center;
        max-width: 700px;
        margin: 0 auto;
    }
    
    .hero-role-container {
        justify-content: center;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .about-overview-box {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-img-col {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .labs-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info-panel {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        gap: 32px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .section-title {
        font-size: 2.1rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .cta-header {
        display: none;
    }
    
    .workflow-step {
        grid-template-columns: 60px 1fr;
        gap: 16px;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-right {
        align-items: center;
    }
    
    .footer-nav {
        justify-content: center;
    }
    
    .copyright {
        text-align: center;
    }
    
    .neofetch-logo {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .contact-info-panel, .contact-form-panel {
        padding: 32px 20px;
    }
}

/* ==========================================
   LAB ANATOMY MODAL CUSTOM PREMIUM STYLES
   ========================================== */
.modal-detail-header {
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 18px;
}
.modal-badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}
.m-badge {
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.25);
    color: var(--primary-cyan);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.m-role {
    font-size: 0.82rem;
    color: var(--text-muted);
}
.m-role strong {
    color: var(--text-main);
}
.modal-detail-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
}
.modal-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
@media (max-width: 768px) {
    .modal-detail-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .project-modal {
        padding: 30px 20px;
    }
}
.modal-block {
    margin-bottom: 24px;
}
.block-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-cyan);
    display: flex;
    align-items: center;
    gap: 8px;
}
.block-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}
.modal-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.modal-tech-list span {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.78rem;
    padding: 5px 12px;
    border-radius: 4px;
    transition: var(--trans-fast);
}
.modal-tech-list span:hover {
    color: var(--primary-cyan);
    border-color: var(--primary-cyan);
    background: rgba(0, 242, 254, 0.05);
}
.architecture-ascii {
    background: #06080c;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: var(--text-muted);
    overflow-x: auto;
    white-space: pre;
    line-height: 1.4;
    margin-top: 8px;
}
.spinner.active {
    display: block;
}
