/**
 * Milk & White portfolio + Gazi-style experience
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --font-body: 'Outfit', sans-serif;
    --bg-color: #fdfbf7;
    --card-bg: #ffffff;
    --text-main: #2c3e50;
    --text-muted: #6c757d;
    --accent: #d4af37;
    --line-color: #e0e0e0;
}

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

body.game-mode-active { overflow: hidden; }
body.game-mode-active .main,
body.game-mode-active #header,
body.game-mode-active .mobile-nav-toggle,
body.game-mode-active .floating-icons { visibility: hidden; }

h1, h2, h3, h4, h5, h6 { font-weight: 600; color: var(--text-main); }
a { color: var(--accent); text-decoration: none; transition: 0.2s; }
a:hover { color: #bfa14f; }

/* ---- Game mode toggle ---- */
.game-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--card-bg);
    border: 1px solid var(--line-color);
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.25s;
}

.game-mode-toggle i { color: var(--accent); font-size: 16px; }

.game-mode-toggle:hover,
.game-mode-toggle.active {
    border-color: var(--accent);
    background: rgba(212, 175, 55, 0.08);
    color: var(--accent);
}

/* ---- Game overlay ---- */
.game-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: var(--bg-color);
}

.game-overlay canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.game-hud-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(255,255,255,0.92);
    border-bottom: 1px solid var(--line-color);
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.game-hud-hint { white-space: nowrap; }

.game-exit-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    font-family: var(--font-body);
}

.game-exit-btn:hover { background: #b59020; }

.game-zone-label {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    border: 1px solid var(--accent);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    box-shadow: 0 4px 20px rgba(212,175,55,0.2);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    text-align: center;
}

.game-zone-label.visible { opacity: 1; }
.game-zone-label kbd {
    display: inline-block;
    background: var(--bg-color);
    border: 1px solid var(--line-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 6px;
    color: var(--accent);
}

/* ---- Floating icons ---- */
.floating-icons {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.float-icon {
    position: absolute;
    color: var(--accent);
    opacity: 0.1;
    animation: floatDrift linear infinite;
}

.fi-1 { top: 12%; left: 8%;  font-size: 2rem;   animation-duration: 22s; }
.fi-2 { top: 25%; left: 85%; font-size: 1.6rem; animation-duration: 18s; animation-delay: -3s; }
.fi-3 { top: 55%; left: 5%;  font-size: 1.3rem; animation-duration: 25s; animation-delay: -7s; }
.fi-4 { top: 70%; left: 92%; font-size: 2.2rem; animation-duration: 20s; animation-delay: -2s; }
.fi-5 { top: 40%; left: 50%; font-size: 1.1rem; animation-duration: 16s; animation-delay: -5s; }
.fi-6 { top: 85%; left: 30%; font-size: 1.7rem; animation-duration: 24s; animation-delay: -9s; }

@keyframes floatDrift {
    0%   { transform: translate(0, 0) rotate(0deg); }
    25%  { transform: translate(30px, -40px) rotate(15deg); }
    50%  { transform: translate(-20px, -80px) rotate(-10deg); }
    75%  { transform: translate(40px, -30px) rotate(8deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* ---- Sidebar ---- */
#header {
    background: var(--card-bg);
    width: 280px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    border-right: 1px solid var(--line-color);
    padding: 30px;
    z-index: 997;
    transition: all 0.3s;
}

.profile-img img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid var(--accent);
}

.xp-widget {
    background: var(--bg-color);
    border: 1px solid var(--line-color);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 12px;
    color: var(--text-muted);
}

.xp-widget-top, .xp-widget-bottom {
    display: flex;
    justify-content: space-between;
}

.xp-widget-top strong, .xp-widget-bottom strong { color: var(--accent); }

.xp-bar-track {
    height: 6px;
    background: #eee;
    border-radius: 3px;
    margin: 8px 0;
    overflow: hidden;
}

.xp-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), #e8c547);
    transition: width 0.5s ease;
}

.navmenu ul { list-style: none; padding: 0; margin-top: 10px; }

.navmenu a {
    display: flex;
    align-items: center;
    padding: 12px 0;
    color: var(--text-muted);
    font-size: 15px;
}

.navmenu a:hover, .navmenu a.active { color: var(--accent); }

.navmenu a.quest-complete::after {
    content: '\F26B';
    font-family: 'bootstrap-icons';
    font-size: 12px;
    color: var(--accent);
    margin-left: auto;
}

.navmenu i { margin-right: 10px; width: 20px; }

.social-links a {
    color: var(--text-main);
    background: #f0f0f0;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 5px;
    font-size: 14px;
}

.social-links a:hover { background: var(--accent); color: #fff; }

.main {
    margin-left: 280px;
    position: relative;
    z-index: 1;
}

@media (max-width: 991px) {
    #header { left: -280px; }
    .main { margin-left: 0; }
    body.mobile-nav-active #header { left: 0; }
    .game-mode-toggle { top: 70px; }
}

.mobile-nav-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9990;
    background: var(--accent);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
}

@media (min-width: 992px) {
    .mobile-nav-toggle { display: none !important; }
}

/* ---- Hero (Gazi-style greeting) ---- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 60px;
    text-align: left;
    position: relative;
    background-size: cover;
    background-position: center;
}

#hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(253, 251, 247, 0.75);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.hero-greeting {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-name { color: var(--accent); }

.cursor-blink {
    color: var(--accent);
    animation: blink 1s step-end infinite;
}

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

.hero-bio {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.say-hi-link {
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 2px;
}

.say-hi-link:hover { border-color: #b59020; }

/* ---- Sections ---- */
section {
    padding: 80px 60px;
    max-width: 900px;
}

.slash-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.slash-heading span { color: var(--text-main); }

.slash-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-intro { margin-top: 1.5rem; color: var(--text-muted); }

.tech-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.tech-list li {
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
    color: var(--text-main);
}

.tech-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

.skill-tag {
    display: inline-block;
    background: #fff;
    border: 1px solid var(--line-color);
    padding: 6px 14px;
    border-radius: 20px;
    margin: 0 5px 8px 0;
    font-size: 13px;
    transition: all 0.2s;
}

.skill-tag.collected {
    border-color: var(--accent);
    background: rgba(212, 175, 55, 0.08);
    color: var(--accent);
}

/* ---- Experience tabs ---- */
.exp-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--line-color);
    padding-bottom: 12px;
}

.exp-tab {
    background: transparent;
    border: none;
    padding: 8px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.exp-tab:hover { color: var(--accent); background: rgba(212,175,55,0.06); }

.exp-tab.active {
    color: var(--accent);
    background: rgba(212, 175, 55, 0.12);
}

.exp-panel { display: none; animation: fadeIn 0.35s ease; }
.exp-panel.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.exp-panel h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.exp-date {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.exp-panel ul { padding-left: 1.2rem; color: var(--text-muted); }
.exp-panel ul li { padding-bottom: 8px; }

/* ---- Projects horizontal scroll ---- */
.view-all-btn {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--accent);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.projects-track-wrap {
    margin: 0 -60px;
    padding: 0 60px;
    overflow: hidden;
}

.projects-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

.projects-track::-webkit-scrollbar { height: 6px; }
.projects-track::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

.project-slide {
    flex: 0 0 min(320px, 85vw);
    scroll-snap-align: start;
    background: var(--card-bg);
    border: 1px solid var(--line-color);
    border-radius: 8px;
    padding: 24px;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    cursor: default;
}

.project-slide:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(212,175,55,0.12);
    border-color: rgba(212,175,55,0.35);
}

.featured-slide {
    border-color: rgba(212,175,55,0.45);
    background: linear-gradient(145deg, #fff, rgba(212,175,55,0.06));
}

.project-slide h3 {
    font-size: 1.25rem;
    text-transform: lowercase;
    margin-bottom: 12px;
    color: var(--text-main);
}

.project-slide p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    min-height: 72px;
}

.project-stack {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--accent);
    margin-bottom: 12px;
}

.project-link {
    font-size: 13px;
    word-break: break-all;
}

.project-archive { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line-color); }

/* ---- Timeline (archive) ---- */
.timeline { position: relative; padding-left: 30px; }

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--accent);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
    padding-left: 30px;
    cursor: pointer;
    transition: transform 0.2s;
}

.timeline-item:hover { transform: translateX(5px); }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--bg-color);
    border: 2px solid var(--accent);
    border-radius: 50%;
}

.folder-card {
    background: var(--card-bg);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    gap: 15px;
}

.folder-icon { font-size: 22px; color: var(--accent); }
.folder-info h4 { margin: 0; font-size: 16px; }
.folder-info span { font-size: 13px; color: var(--text-muted); }

/* ---- Contact ---- */
.contact-intro { color: var(--text-muted); margin-bottom: 1.5rem; }

.form-control {
    background: var(--card-bg);
    border: 1px solid #eee;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 4px;
    max-width: 480px;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--accent);
}

.btn-submit {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
}

.btn-submit:hover { background: #b59020; }

.site-footer {
    padding: 40px 60px;
    border-top: 1px solid var(--line-color);
    font-size: 13px;
    color: var(--text-muted);
    max-width: 900px;
}

/* ---- Achievement ---- */
.achievement-panel {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9990;
    background: var(--card-bg);
    border: 1px solid var(--accent);
    border-left: 4px solid var(--accent);
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 20px rgba(212,175,55,0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: achSlideIn 0.5s ease;
    max-width: 320px;
}

@keyframes achSlideIn {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

.achievement-icon { font-size: 1.75rem; color: var(--accent); }
.achievement-header { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--accent); }

/* ---- Modals ---- */
.modal-content { background: var(--bg-color); border: none; }
.modal-header { border-bottom: 1px solid var(--line-color); }

.project-list-item {
    background: var(--card-bg);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
    transition: all 0.2s;
}

.project-list-item:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-color: rgba(212,175,55,0.3);
    color: var(--text-main);
}

@media (max-width: 768px) {
    section, #hero { padding: 60px 24px; }
    .projects-track-wrap { margin: 0 -24px; padding: 0 24px; }
    .site-footer { padding: 40px 24px; }
    .game-mode-toggle { right: 16px; top: 16px; font-size: 13px; padding: 8px 14px; }
}
