/* --- 1. VARIABLES & SETUP --- */
:root {
    --bg-color: #ffffff; 
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --accent-primary: #374151;
    --glass-border: rgba(0, 0, 0, 0.08);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

::-webkit-scrollbar { width: 0px; background: transparent; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* --- 2. NAVIGATION & LOGO --- */
#network-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -5; background: #ffffff;
}

nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 8%; background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px); position: sticky;
    top: 0; z-index: 100; border-bottom: 1px solid var(--glass-border);
}

/* NEW: Image Logo Style for Nav */
.nav-logo-img {
    height: 40px; /* Adjust size as needed */
    width: auto;
    object-fit: contain;
    display: block;
}

/* Fallback text logo style (if needed) */
.logo { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; color: #000; }

.nav-links { display: flex; gap: 30px; list-style: none; align-items: center; }
.nav-links a { color: var(--text-main); text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: 0.3s; }
.nav-links a:hover { color: #000; text-decoration: underline; }

#lang-toggle {
    cursor: pointer; background: transparent; border: 1px solid #ccc;
    padding: 6px 18px; border-radius: 30px; font-weight: bold;
    color: var(--text-main); transition: 0.3s;
}
#lang-toggle:hover { background: #111; color: #fff; border-color: #111; }

/* --- 3. HERO & SECTIONS --- */
.hero { min-height: 85vh; display: flex; align-items: center; padding: 0 8%; }
.hero-content {
    background: rgba(255, 255, 255, 0.6); padding: 40px;
    border-radius: 20px; backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border); max-width: 800px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.hero h1 { font-family: var(--font-heading); font-size: 4.5rem; line-height: 1; margin: 20px 0; color: #111; }
.tagline { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 30px; }
.container { padding: 100px 8%; }
.section-title { font-family: var(--font-heading); font-size: 3rem; margin-bottom: 60px; color: #111; }

/* Skills Grid */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.skill-card {
    background: #fff; color: var(--text-main); padding: 25px;
    border-radius: 12px; border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02); text-align: left;
    transition: transform 0.3s;
    display: flex; flex-direction: column; align-items: flex-start;
}
.skill-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); border-color: #9ca3af; }
.skill-icon { font-size: 2rem; margin-bottom: 15px; color: var(--text-main); }
.skill-card h3 { font-size: 1.1rem; margin-bottom: 5px; font-weight: 700; }
.skill-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }

/* Projects Grid */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.project-card {
    background: #fff; border-radius: 16px; overflow: hidden;
    border: 1px solid #e5e7eb; transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); border-color: #9ca3af; }
.project-img { width: 100%; height: 220px; object-fit: cover; }
.card-content { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.project-card h3 { font-size: 1.5rem; margin-bottom: 10px; color: #111; }
.project-card p { margin-bottom: 25px; color: var(--text-muted); line-height: 1.6; font-size: 0.95rem; flex-grow: 1; }
.tech-stack { margin-bottom: 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.tech-stack span { 
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px;
    background: #f3f4f6; color: #374151; padding: 6px 12px;
    border-radius: 6px; border: 1px solid #e5e7eb;
}

/* Buttons & Footer */
.btn { padding: 15px 30px; border-radius: 6px; text-decoration: none; font-weight: bold; transition: 0.3s; display: inline-block; }
.primary-btn { background: #111; color: white; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.primary-btn:hover { background: #333; transform: translateY(-2px); box-shadow: 0 10px 15px rgba(0,0,0,0.1); }
.secondary-btn { background: #fff; color: #111; border: 1px solid #e5e7eb; margin-left: 15px; }
.secondary-btn:hover { background: #f9fafb; border-color: #d1d5db; }
.link-arrow { display: block; margin-top: auto; color: #111; font-weight: bold; text-decoration: none; }
footer { padding: 80px 8%; text-align: center; border-top: 1px solid #e5e7eb; background: #fff; }
.hidden { opacity: 0; transform: translateY(30px); transition: 0.8s; }
.show { opacity: 1; transform: translateY(0); }

/* --- COMMON EMULATOR STYLES --- */
.device-screen { background: #000; width: 100%; height: 100%; overflow: hidden; position: relative; border-radius: 4px; }
.app-poster { width: 100%; height: 100%; position: absolute; top:0; left:0; cursor: pointer; z-index: 20; }
.app-poster img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: 0.3s; }
.app-poster:hover img { opacity: 0.6; }
.play-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.launch-btn {
    background: #2563eb; color: white; border: none; padding: 15px 30px;
    font-size: 1.2rem; font-weight: bold; border-radius: 50px; cursor: pointer;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.4); transition: 0.2s; display: flex; align-items: center; gap: 10px;
}
.launch-btn:hover { transform: scale(1.05); background: #1d4ed8; }
#app-frame { width: 100%; height: 100%; display: none; background: #fff; border: none; }
.device-camera { width: 12px; height: 12px; background: #333; border-radius: 50%; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 5; }

/* --- DESK LAYOUT --- */
.desk-surface { display: flex; justify-content: center; align-items: flex-end; gap: 40px; padding-bottom: 0px; border-bottom: 4px solid #d1d5db; margin-bottom: 40px; width: 100%; }
.peripheral { position: relative; z-index: 2; }

/* 1. PRINTER */
.printer-unit { width: 160px; margin-bottom: 0; position: relative; flex-shrink: 0; }
.printer-body { width: 160px; height: 110px; background: linear-gradient(to bottom, #2d2d2d, #1a1a1a); border-radius: 12px 12px 0 0; position: relative; box-shadow: inset 0 1px 0 rgba(255,255,255,0.1); }
.paper-exit { width: 120px; height: 8px; background: #000; margin: 0 auto; border-radius: 0 0 4px 4px; }
.led-light { position: absolute; bottom: 15px; right: 15px; width: 6px; height: 6px; background: #00ff00; border-radius: 50%; box-shadow: 0 0 8px #00ff00; }
.brand-label { position: absolute; bottom: 15px; left: 15px; color: #555; font-weight: bold; font-size: 0.7rem; font-family: sans-serif; }
.receipt { width: 100px; background: #fff; margin: 0 auto; padding: 10px; font-family: 'Courier New', monospace; font-size: 0.55rem; color: #333; position: absolute; bottom: 110px; left: 30px; box-shadow: 0 -5px 15px rgba(0,0,0,0.1); transform: rotate(-1deg); z-index: 1; }
.jagged-edge { position: absolute; top: -5px; left: 0; width: 100%; height: 5px; background: radial-gradient(circle, transparent 50%, #fff 50%); background-size: 10px 10px; background-position: 0 5px; }

/* 2. POS SCREEN */
.frame-pos { width: 100%; max-width: 700px; aspect-ratio: 16 / 10; background: #111; border-radius: 16px; border: 1px solid #333; padding: 15px; position: relative; box-shadow: 0 10px 40px rgba(0,0,0,0.2); margin-bottom: 25px; flex-shrink: 0; overflow: hidden; }
.frame-pos .device-screen { width: 1280px; height: 800px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.508); transform-origin: center center; z-index: 10; }
.frame-pos::after { content: ''; position: absolute; bottom: -25px; left: 30%; width: 40%; height: 25px; background: linear-gradient(to right, #222, #111, #222); z-index: -1; transform: perspective(100px) rotateX(10deg); }
.frame-pos::before { content: ''; position: absolute; bottom: -25px; left: 25%; width: 50%; height: 5px; background: #000; border-radius: 10px; z-index: -1; }
.device-logo { position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); color: #444; font-weight: bold; font-size: 0.6rem; letter-spacing: 2px; z-index: 20; }

/* 3. SCANNER */
.scanner-unit { width: 100px; height: 160px; position: relative; margin-bottom: 0; flex-shrink: 0; }
.scanner-gun { position: relative; top: 10px; transform: rotate(-15deg); z-index: 5; }
.scanner-head { width: 70px; height: 50px; background: linear-gradient(to bottom, #333, #222); border-radius: 8px 15px 5px 8px; position: absolute; top: 0; left: 0; }
.scanner-glass { width: 10px; height: 36px; background: #111; position: absolute; right: -2px; top: 7px; border-left: 1px solid #444; }
.laser-beam { width: 100%; height: 2px; background: red; position: absolute; top: 50%; box-shadow: 0 0 5px red; opacity: 0.8; }
.scanner-handle { width: 32px; height: 80px; background: linear-gradient(to right, #2a2a2a, #1a1a1a); border-radius: 0 0 15px 15px; position: absolute; top: 45px; left: 10px; transform: rotate(15deg); }
.scanner-trigger { width: 8px; height: 20px; background: #000; position: absolute; top: 5px; right: -4px; border-radius: 2px; }
.scanner-neck { width: 40px; height: 20px; background: #222; position: absolute; top: 35px; left: 5px; border-radius: 5px; }
.scanner-base { width: 80px; height: 40px; background: #111; border-radius: 10px 10px 0 0; position: absolute; bottom: 0; left: 10px; z-index: 1; border-bottom: 2px solid #333; }
.base-slot { width: 50px; height: 10px; background: #000; margin: 5px auto; border-radius: 10px; }

/* --- 4. MOBILE FLAGSHIP (GROCERY) --- */
.frame-mobile { width: 360px; height: 740px; background: #1a1a1a; border-radius: 45px; padding: 12px; position: relative; box-shadow: 0 0 0 2px #333, 0 0 0 4px #555, 0 30px 60px rgba(0,0,0,0.4); margin: 0 auto; border: 1px solid #000; }
.frame-mobile .device-screen { width: 100%; height: 100%; background: #000; border-radius: 35px; overflow: hidden; position: relative; }
.frame-mobile .app-poster img { border-radius: 35px; }
.dynamic-island { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 100px; height: 28px; background: #000; border-radius: 20px; z-index: 50; box-shadow: 0 0 2px rgba(255,255,255,0.1); }
.side-btn { position: absolute; background: #2a2a2a; border-radius: 4px 0 0 4px; left: -6px; width: 4px; box-shadow: inset -1px 0 2px rgba(0,0,0,0.5); }
.btn-vol-up { top: 120px; height: 40px; }
.btn-vol-down { top: 170px; height: 40px; }
.btn-power { top: 140px; height: 60px; right: -6px; left: auto; border-radius: 0 4px 4px 0; }

/* --- 5. LANDSCAPE INDUSTRIAL KIOSK --- */
.frame-kiosk {
    width: 100%; max-width: 720px; height: 520px;
    background: #2d3748; border-radius: 24px; padding: 20px 20px 70px 20px;
    position: relative; box-shadow: 0 0 0 4px #1a202c, 0 20px 50px rgba(0,0,0,0.4);
    margin: 0 auto; border: 1px solid #4a5568; z-index: 10; flex-shrink: 0; overflow: hidden;
}
.frame-kiosk .device-screen {
    width: 1280px; height: 800px; background: #000; border-radius: 4px; border: 2px solid #1a202c;
    position: absolute; top: 45%; left: 50%;
    transform: translate(-50%, -50%) scale(0.53); transform-origin: center center; z-index: 10;
}
.kiosk-header { position: absolute; top: 8px; left: 0; width: 100%; display: flex; justify-content: center; gap: 20px; z-index: 20; }
.kiosk-camera { width: 8px; height: 8px; background: #1a202c; border-radius: 50%; }
.kiosk-sensor { width: 50px; height: 6px; background: #1a202c; border-radius: 4px; }
/* Kiosk Stand */
.frame-kiosk::after { content: ''; position: absolute; bottom: -60px; left: 50%; transform: translateX(-50%); width: 200px; height: 70px; background: linear-gradient(to right, #1a202c, #2d3748, #1a202c); z-index: -1; border-radius: 0 0 20px 20px; }
.frame-kiosk::before { content: ''; position: absolute; bottom: -80px; left: 50%; transform: translateX(-50%); width: 360px; height: 25px; background: #1a202c; border-radius: 50%; box-shadow: 0 10px 30px rgba(0,0,0,0.5); z-index: -2; border-top: 2px solid #4a5568; }
/* Kiosk Scanner */
.kiosk-scanner-module { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); text-align: center; width: 100%; z-index: 20; }
.scan-window { width: 140px; height: 25px; background: #000; margin: 0 auto 4px auto; border-radius: 4px; position: relative; border: 1px solid #444; overflow: hidden; box-shadow: inset 0 0 10px rgba(0,0,0,0.8); }
.scan-laser { position: absolute; top: 50%; left: 5%; width: 90%; height: 2px; background: red; box-shadow: 0 0 10px red; animation: scanPulse 2s infinite; }
.scan-label { font-size: 0.55rem; color: #718096; letter-spacing: 3px; font-weight: bold; text-transform: uppercase; }
/* Kiosk Branding Logo */
.kiosk-branding {
    position: absolute; bottom: 42px; left: 50%; transform: translateX(-50%);
    width: 60px; z-index: 20; display: flex; justify-content: center;
}
.kiosk-branding img { width: 100%; height: auto; opacity: 0.7; }

/* --- DOCUMENTATION STYLES --- */
.doc-container { max-width: 1000px; margin: 0 auto; padding-bottom: 100px; text-align: left; }
.credentials-card { background: #1f2937; color: #fff; padding: 30px; border-radius: 16px; margin: 40px 0 60px 0; box-shadow: 0 10px 30px rgba(0,0,0,0.15); border: 1px solid #374151; }
.cred-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: #60a5fa; }
.creds-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 20px; }
.cred-item { background: rgba(255,255,255,0.05); padding: 15px; border-radius: 8px; border-left: 3px solid #3b82f6; }
.cred-label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: #9ca3af; margin-bottom: 5px; }
.cred-value { font-family: 'Courier New', monospace; font-size: 1.1rem; font-weight: bold; color: #fff; letter-spacing: 1px; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 30px; margin-top: 40px; }
.doc-card { background: #fff; padding: 30px; border-radius: 12px; border: 1px solid #e5e7eb; transition: transform 0.3s ease; }
.doc-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.doc-icon { font-size: 2rem; color: #2563eb; margin-bottom: 20px; }
.doc-card h3 { font-size: 1.25rem; margin-bottom: 10px; color: #111; }
.doc-card p { color: #555; line-height: 1.6; font-size: 0.95rem; }
.text-left { text-align: left; }
.doc-section h2 { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 20px; color: #111; border-bottom: 2px solid #e5e7eb; padding-bottom: 10px; display: inline-block; }
.doc-section p { font-size: 1.1rem; line-height: 1.8; color: #4b5563; max-width: 900px; }
.tech-spec-list { list-style: none; padding: 0; }
.tech-spec-list li { padding: 12px 0; border-bottom: 1px solid #eee; color: #4b5563; font-size: 1.05rem; }
.tech-spec-list li strong { color: #111; margin-right: 10px; min-width: 100px; display: inline-block; }
@media (max-width: 768px) { .doc-grid { grid-template-columns: 1fr; } .creds-grid { grid-template-columns: 1fr; } }