:root {
    /* IT Sector Light Theme */
    --bg-color: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #475569;
    --primary: #0ea5e9;
    --primary-op: rgba(14, 165, 233, 0.15);
    --card-bg: rgba(255, 255, 255, 0.85); /* Glassmorphism light */
    --border-color: rgba(15, 23, 42, 0.1);
    --bg-layer: rgba(255,255,255, 0.3);
}

[data-theme="dark"] {
    /* IT Sector Dark Theme */
    --bg-color: #0b0f19;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #38bdf8;
    --primary-op: rgba(56, 189, 248, 0.15);
    --card-bg: rgba(30, 41, 59, 0.7); /* Deep Glassmorphism */
    --border-color: rgba(255, 255, 255, 0.05);
    --bg-layer: rgba(11, 15, 25, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    transition: background-color 0.5s ease;
    overflow-x: hidden;
}

/* Background Parallax Appley Layers */
.parallax-bg {
    position: fixed;
    top: -5%; left: -5%; width: 110vw; height: 110vh;
    background-size: cover;
    background-position: center;
    z-index: -2;
    transition: transform 0.5s ease-out;
}
.bg-circuit {
    background-image: url('file:///C:/Users/gkhnz/.gemini/antigravity/brain/8a86ffb6-e710-4c46-96a2-fca531993a46/circuit_board_1775939494523.png');
    opacity: 0.15;
}
.bg-server {
    background-image: url('file:///C:/Users/gkhnz/.gemini/antigravity/brain/8a86ffb6-e710-4c46-96a2-fca531993a46/server_room_1775939508651.png');
    opacity: 0.05;
}
body::before {
    content: ""; /* Adds dramatic dark wash */
    position: fixed; width: 100vw; height: 100vh;
    background: var(--bg-layer); z-index: -1;
    backdrop-filter: blur(8px); /* The Apple Glass look */
}

/* Switches & Triggers Logic */
[data-lang="tr"] [data-en] { display: none; }
[data-lang="en"] [data-tr] { display: none; }

/* Top Nav */
.top-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
}
.left-nav { display: flex; align-items: center; gap: 15px; }
.logo { font-weight: 800; font-size: 1.5rem; color: var(--primary); background: var(--primary-op); padding: 5px 12px; border-radius: 8px; }
.logo-title { font-weight: 600; font-size: 1.2rem; }

.right-nav { display: flex; gap: 15px; align-items: center; }

.lang-switch-wrapper {
    background: transparent; 
    border: 1px solid var(--border-color); 
    border-radius: 34px; 
    display: flex; 
    overflow: hidden;
    height: 34px;
    box-sizing: border-box;
    margin: 0;
}
.lang-btn { 
    background: transparent; 
    border: none; 
    padding: 0 14px; 
    font-weight: 700; 
    color: var(--text-muted); 
    cursor: pointer; 
    transition: 0.3s; 
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lang-btn.active { background-color: var(--primary); color: #fff; }

.theme-switch { display: flex; height: 34px; position: relative; width: 60px; margin: 0; align-items: center; }
.theme-switch input { display: none; }
.slider { background-color: transparent; border: 1px solid var(--border-color); bottom: 0; cursor: pointer; left: 0; position: absolute; right: 0; top: 0; transition: .4s; display: flex; align-items: center; justify-content: space-between; padding: 0 6px; border-radius: 34px; box-sizing: border-box; }
.slider .icon-sun { color: #f59e0b; font-size: 1.1rem; }
.slider .icon-moon { color: #a855f7; font-size: 1.1rem; }
.slider:before { background-color: var(--primary); bottom: 3px; content: ""; height: 26px; left: 3px; position: absolute; transition: .4s; width: 26px; border-radius: 50%; z-index: 2; }
input:checked + .slider:before { transform: translateX(26px); }


/* Main CV Layout (Kariyer.net Dense Format) */
.dashboard-container {
    max-width: 1300px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    align-items: start; /* don't stretch */
}

/* Utility classes */
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2rem; }
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

/* Sidebar Profile */
.sidebar {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 2rem;
    position: sticky;
    top: 90px;
    backdrop-filter: blur(10px);
}
.profile-header { text-align: center; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); }
.profile-pic-wrapper { position: relative; width: 140px; margin: 0 auto 1.5rem; }
.profile-pic { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 4px solid var(--card-bg); box-shadow: 0 0 0 3px var(--primary); transition: transform 0.3s; }
.profile-pic:hover { transform: scale(1.05); }
.status-indicator { position: absolute; bottom: 10px; right: 10px; width: 20px; height: 20px; background: #10b981; border-radius: 50%; border: 3px solid var(--card-bg); }

.name { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.title { font-size: 0.95rem; line-height: 1.5; color: var(--text-muted); }
.highlighted-text { color: var(--primary); font-weight: 600; }

.section-heading { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.1rem; margin-bottom: 1rem; color: var(--text-main); }
.section-heading ion-icon { color: var(--primary); font-size: 1.3rem; }

.sidebar-section { margin-bottom: 2rem; }
.sidebar-section:last-child { margin-bottom: 0; }

.dense-list { list-style: none; font-size: 0.9rem; }
.dense-list li { display: flex; justify-content: space-between; margin-bottom: 0.6rem; padding-bottom: 0.6rem; border-bottom: 1px dashed var(--border-color); }
.dense-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.dense-list .label { color: var(--text-muted); font-weight: 500; }
.dense-list .val { font-weight: 600; }
.text-shrink { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }

.flex-link { display: flex; align-items: center; gap: 8px; color: var(--text-main); text-decoration: none; font-weight: 600; transition: color 0.2s; }
.flex-link:hover { color: var(--primary); }
.linked-icon { color: #0077b5; font-size: 1.2rem; }

.hobby-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.h-tag { background: var(--primary-op); color: var(--primary); padding: 5px 10px; border-radius: 15px; font-size: 0.8rem; font-weight: 600; }

/* Main Content Area */
.content-area {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}

.card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 2rem; border-bottom: 2px solid var(--primary-op); padding-bottom: 1rem; }
.card-header ion-icon { font-size: 2rem; color: var(--primary); background: var(--primary-op); padding: 10px; border-radius: 12px; }
.card-header h2 { font-weight: 800; font-size: 1.6rem; }

.quote-style { padding: 1.5rem; border-left: 4px solid var(--primary); background: var(--border-color); border-radius: 0 10px 10px 0; font-size: 1.05rem; font-style: italic; color: var(--text-muted); line-height: 1.7; }
.info-box { background: transparent; padding: 1rem 0; }
.info-box h4 { display: flex; align-items: center; gap: 8px; color: var(--primary); margin-bottom: 1rem; font-size: 1.1rem; }
.info-box p { font-size: 0.95rem; margin-bottom: 0.8rem; color: var(--text-muted); line-height: 1.6; }
.info-box p strong { color: var(--text-main); }

/* Timeline Dense Structure */
.timeline-dense { position: relative; padding-left: 20px; }
.timeline-dense::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--border-color); }
.time-node { position: relative; margin-bottom: 2.5rem; }
.time-node:last-child { margin-bottom: 0; }
.time-marker { position: absolute; left: -26px; top: 4px; width: 14px; height: 14px; background: var(--primary); border: 3px solid var(--card-bg); border-radius: 50%; box-shadow: 0 0 0 4px var(--primary-op); }
.time-date { display: inline-block; font-size: 0.8rem; font-weight: 700; color: #fff; background: var(--primary); padding: 4px 10px; border-radius: 10px; margin-bottom: 0.8rem; }
.time-content h3 { font-size: 1.25rem; font-weight: 700; color: var(--text-main); margin-bottom: 0.3rem; }
.time-company { font-weight: 600; color: var(--primary); font-size: 0.95rem; margin-bottom: 0.8rem; }
.time-content p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* Skills Matrix */
.skill-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.s-info { display: flex; justify-content: space-between; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--text-main); }
.s-bar { width: 100%; height: 8px; background: var(--border-color); border-radius: 4px; overflow: hidden; position: relative; }
.s-fill { height: 100%; background: var(--primary); width: 0; /* Animated by JS */ transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1); }

.chip-container { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 6px 14px; background: var(--border-color); border: 1px solid rgba(255,255,255,0.05); border-radius: 20px; font-size: 0.85rem; font-weight: 500; }

.sub-heading { font-size: 1.2rem; display: flex; align-items: center; gap: 8px; margin-bottom: 1rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
.lang-box { display: flex; flex-direction: column; gap: 1rem; }
.l-item { display: flex; flex-direction: column; }
.l-name { font-weight: 700; font-size: 1rem; color: var(--primary); }
.l-level { font-size: 0.9rem; color: var(--text-muted); }

/* Edu & Certs */
.edu-block { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px dashed var(--border-color); }
.edu-block:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.e-date { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); margin-bottom: 0.5rem; }
.edu-block h4 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.e-type { font-size: 0.95rem; color: var(--primary); font-weight: 600; }
.e-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; border-left: 2px solid var(--border-color); padding-left: 8px; }

.cert-list { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; }
.cert-list li { position: relative; padding-left: 20px; }
.cert-list li::before { content: "★"; position: absolute; left: 0; top: 0; color: var(--primary); font-size: 1rem; }
.c-title { font-weight: 700; font-size: 1rem; margin-bottom: 0.3rem; }
.c-inst { font-size: 0.85rem; color: var(--text-muted); }

/* --- INTERSECTION OBSERVER ANIMATION CLASSES --- */
.reveal-top { opacity: 0; transform: translateY(-20px); transition: all 0.6s ease-out; }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: all 0.8s ease-out; }
.reveal-up { opacity: 0; transform: translateY(40px); transition: all 0.8s ease-out; }
.reveal-fade { opacity: 0; transition: all 0.8s ease-in; }
.reveal-up-delay { opacity: 0; transform: translateY(30px); transition: all 0.6s ease-out; }

.is-visible { opacity: 1 !important; transform: translate(0, 0) scale(1) !important; }


/* Responsive Rules */
@media (max-width: 992px) {
    .dashboard-container { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .grid-2-col { grid-template-columns: 1fr; }
    .skill-grid { grid-template-columns: 1fr; }
}
