:root {
    --desktop-bg: #636d8f; 
    --window-bg: linear-gradient(135deg, #242535 0%, #1a1a24 100%);
    --mac-bar: #1c1c24;
    --text-main: #ffffff;
    --text-muted: #8b8e9b;
    --accent-pink: #f265b4;
    --accent-purple: #c576f6;
    --btn-purple: #c59dfa;
    --card-bg: rgba(255, 255, 255, 0.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

body { background-color: var(--desktop-bg); height: 100vh; overflow: hidden; display: flex; justify-content: center; align-items: center; }

.desktop-container { position: relative; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; perspective: 1500px; }

/* Windows */
.window {
    position: absolute; width: 90%; max-width: 1100px; height: 75vh;
    background: var(--window-bg); border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    display: flex; flex-direction: column; overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
    transform-origin: bottom center;
}

/* Mac Header */
.title-bar { height: 40px; background: var(--mac-bar); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.mac-btns { display: flex; gap: 8px; width: 60px;}
.mac-btn { width: 12px; height: 12px; border-radius: 50%; border: none; cursor: pointer; transition: 0.2s;}
.mac-btn:hover { filter: brightness(1.2); }
.close-btn { background-color: #ff5f56; }
.min-btn { background-color: #ffbd2e; }
.max-btn { background-color: #27c93f; }

.address-bar { background: #14141a; border-radius: 6px; padding: 4px 16px; color: #a1a1aa; font-size: 12px; text-align: center; min-width: 200px;}
.mac-actions { width: 60px; }

/* Content Areas */
.window-content { flex: 1; overflow-y: auto; background: radial-gradient(circle at 90% 50%, rgba(242, 101, 180, 0.1) 0%, transparent 40%); }
.generic-content { padding: 50px; }

/* Inner Nav & Hero */
.inner-nav { display: flex; justify-content: space-between; align-items: center; padding: 30px 50px; }
.logo { font-size: 1.2rem; font-weight: 600; color: var(--text-main); }
.code-icon { color: var(--accent-purple); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--text-main); text-decoration: none; font-size: 0.85rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-pink); }

.hero-body { display: flex; height: calc(100% - 90px); padding: 0 50px; }
.social-sidebar { width: 40px; display: flex; flex-direction: column; align-items: center; padding-top: 40px; gap: 20px; }
.vertical-line { width: 2px; height: 50px; background: var(--text-muted); opacity: 0.3; margin-bottom: 10px; }
.social-icon { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: bold; transition: color 0.3s; }
.social-icon:hover { color: var(--text-main); }

.hero-text { flex: 1; padding-left: 20px; padding-top: 40px; z-index: 10; }
.hero-text h1 { font-size: 4.5rem; line-height: 1.1; color: var(--text-main); font-weight: 700; }
.highlight { background: linear-gradient(90deg, var(--accent-pink), var(--accent-purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.subtitle { color: var(--text-muted); margin-top: 15px; font-weight: 500; }

.btn-group { display: flex; gap: 15px; margin-top: 35px; }
.btn { padding: 12px 30px; border-radius: 25px; font-weight: 600; cursor: pointer; transition: all 0.3s; border: none; }
.btn-primary { background: var(--btn-purple); color: #1a1a24; }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text-main); border: 1px solid var(--text-muted); }
.btn-outline:hover { border-color: var(--text-main); }

/* 3D Visual */
.hero-visual { flex: 1; display: flex; justify-content: center; align-items: center; }
.floating-phone { width: 280px; height: 480px; background: rgba(20, 25, 40, 0.4); border: 1px solid rgba(255,255,255,0.05); border-radius: 30px; transform: rotate(-15deg) rotateY(-15deg); box-shadow: 20px 30px 40px rgba(0,0,0,0.3); padding: 30px; position: relative;}
.phone-header { color: #88c0d0; font-size: 1.2rem; font-weight: bold; margin-bottom: 10px; }
.phone-sub { color: #4c566a; font-size: 0.7rem; }
.glass-panel { position: absolute; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(8px); border-radius: 12px; }
.panel-1 { width: 140px; height: 80px; top: 100px; right: -40px; }
.panel-2 { width: 80px; height: 80px; top: 220px; left: -20px; color: rgba(255,255,255,0.3); font-size: 1.5rem; display: flex; align-items: center; justify-content: center; }
.panel-3 { width: 100px; height: 100px; bottom: 40px; right: 20px; border-radius: 50%; }

/* --- PREMIUM INTERIOR UX --- */
.content-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }

.premium-card { background: var(--card-bg); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 30px; transition: 0.3s; }
.premium-card:hover { transform: translateY(-5px); border-color: rgba(197, 118, 246, 0.4); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.card-title { color: #fff; font-size: 1.2rem; margin-bottom: 12px; }
.card-text { color: var(--text-muted); line-height: 1.6; }

/* Skills Bar */
.skills-container { display: flex; flex-direction: column; gap: 20px; max-width: 600px; }
.skill-info { display: flex; justify-content: space-between; color: #fff; margin-bottom: 8px; font-size: 0.95rem; }
.progress-bar { width: 100%; height: 8px; background: rgba(255,255,255,0.05); border-radius: 10px; overflow: hidden; }
.progress { height: 100%; background: var(--accent-purple); border-radius: 10px; }
.highlight-bg { background: var(--accent-pink); }

/* Projects */
.project-img { height: 150px; background: rgba(0,0,0,0.2); border-radius: 10px; display: flex; justify-content: center; align-items: center; color: var(--text-muted); margin-bottom: 20px; }
.tags { display: flex; gap: 10px; margin-top: 20px; }
.tag { font-size: 0.75rem; padding: 5px 12px; border-radius: 20px; background: rgba(197, 118, 246, 0.15); color: var(--accent-purple); }
.tag-pink { background: rgba(242, 101, 180, 0.15); color: var(--accent-pink); }

/* Timeline */
.timeline { border-left: 2px solid rgba(197, 118, 246, 0.3); padding-left: 25px; margin-left: 10px; }
.timeline-item { position: relative; margin-bottom: 35px; }
.timeline-item::before { content: ''; position: absolute; left: -32px; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-pink); border: 2px solid var(--mac-bar); }

/* Forms & Lists */
.contact-list { list-style: none; color: var(--text-muted); line-height: 2.2; }
.input-field { width: 100%; padding: 15px; margin-bottom: 15px; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; color: #fff; }
.input-field:focus { outline: none; border-color: var(--accent-purple); }

/* Minimized Window Logic */
.window-minimized { transform: translateY(110vh) scale(0.7) rotateX(15deg) !important; opacity: 0 !important; pointer-events: none; }

/* --- FLOATING NAVIGATION CONTROLS (NEW) --- */
.floating-nav {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 15px;
    z-index: 1000;
}

.nav-arrow {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(36, 37, 53, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.nav-arrow:hover {
    background: var(--btn-purple);
    color: #1a1a24;
    transform: translateY(-3px);
}
