/* --- Base System Styles & Tokens --- */
:root {
    --bg-color: #0b0f19;
    --bg-gradient: linear-gradient(135deg, #0b0f19 0%, #111827 100%);
    --card-bg: rgba(21, 30, 50, 0.7);
    --card-border: rgba(255, 255, 255, 0.08);
    --accent-color: #6366f1; /* Indigo */
    --accent-glow: rgba(99, 102, 241, 0.15);
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    
    /* Pixel 10 Pro Dimensions & Specs */
    --phone-width: 320px;
    --phone-height: 440px; /* Showing upper half */
    --phone-radius: 36px;
    --phone-bezel: #1e293b;
    --phone-screen-bg: #101420;
}

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

body {
    background-color: var(--bg-color);
    background-image: var(--bg-gradient);
    color: var(--text-primary);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Subtle Animated Background Stars */
.stars-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 100px 150px, #818cf8, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 200px 80px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 300px 300px, #38bdf8, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 400px 220px, #ffffff, rgba(0,0,0,0));
    background-size: 550px 550px;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
    animation: starsMove 90s linear infinite;
}

@keyframes starsMove {
    from { background-position: 0 0; }
    to { background-position: 550px 1100px; }
}

/* --- Layout Container --- */
.portfolio-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* --- Profile Header Section --- */
.profile-header {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 30px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.profile-header:hover {
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(99, 102, 241, 0.05);
}

.profile-avatar-container {
    position: relative;
    cursor: pointer;
    width: 110px;
    height: 110px;
    flex-shrink: 0;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-avatar-container:hover .profile-avatar {
    transform: scale(1.08) rotate(3deg);
}

.pulse-ring {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    opacity: 0.8;
    animation: pulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    pointer-events: none;
}

@keyframes pulseRing {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { opacity: 0.3; }
    100% { transform: scale(1.15); opacity: 0; }
}

.profile-info {
    flex-grow: 1;
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.wave-emoji {
    animation: waveHand 2.5s infinite;
    transform-origin: 70% 70%;
    display: inline-block;
}

@keyframes waveHand {
    0% { transform: rotate( 0.0deg) }
    10% { transform: rotate(14.0deg) }
    20% { transform: rotate(-8.0deg) }
    30% { transform: rotate(14.0deg) }
    40% { transform: rotate(-4.0deg) }
    50% { transform: rotate(10.0deg) }
    60% { transform: rotate( 0.0deg) }
    100% { transform: rotate( 0.0deg) }
}

.profile-title {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.profile-bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-pulse {
    position: relative;
    overflow: hidden;
}

.btn-pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}

.btn-pulse:active::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    transition: 0s;
}

.icon {
    width: 18px;
    height: 18px;
}

/* --- Showroom Section --- */
.showroom-section {
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px 20px 0 20px; /* Zero bottom padding so phone clips nicely */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 35px;
}

/* --- Android Pixel 10 Pro Chassis (Half display) --- */
.device-showcase-container {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.pixel-10-pro-frame {
    width: var(--phone-width);
    height: var(--phone-height);
    background: #0f172a;
    border: 8px solid var(--phone-bezel);
    border-bottom: none; /* Hide bottom bezel for clipping */
    border-top-left-radius: var(--phone-radius);
    border-top-right-radius: var(--phone-radius);
    position: relative;
    box-shadow: 
        0 -15px 40px rgba(0, 0, 0, 0.6),
        inset 0 4px 6px rgba(255, 255, 255, 0.1);
    z-index: 10;
    display: flex;
    flex-direction: column;
}

/* Adding metallic rim effect */
.pixel-10-pro-frame::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: 0;
    border: 2px solid #475569;
    border-bottom: none;
    border-top-left-radius: calc(var(--phone-radius) + 2px);
    border-top-right-radius: calc(var(--phone-radius) + 2px);
    pointer-events: none;
}

/* Fade out at the bottom of the device to make it blend into showroom floor */
.device-showcase-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, #111827 20%, rgba(17, 24, 39, 0) 100%);
    z-index: 20;
    pointer-events: none;
}

/* Pixel Camera Punch and Speaker */
.pixel-camera-punch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 11px;
    height: 11px;
    background: #000;
    border: 1px solid #334155;
    border-radius: 50%;
    z-index: 100;
}

.pixel-speaker-ear {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 3px;
    background: #1e293b;
    border-radius: 3px;
    z-index: 100;
}

/* Screen Wrapper */
.pixel-screen {
    width: 100%;
    height: 100%;
    background-color: var(--phone-screen-bg);
    border-top-left-radius: calc(var(--phone-radius) - 8px);
    border-top-right-radius: calc(var(--phone-radius) - 8px);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Status Bar */
.pixel-status-bar {
    height: 32px;
    padding: 10px 20px 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: #e2e8f0;
    z-index: 50;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 100%);
}

.status-icons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-icon {
    width: 12px;
    height: 12px;
}

/* Content Area */
.pixel-screen-content {
    flex-grow: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* --- Android Home Launcher --- */
.pixel-launcher {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 15px 0 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 15px;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.pixel-launcher.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

/* Widget */
.launcher-widget {
    text-align: center;
    padding: 15px 0;
    margin-top: 10px;
}

.widget-time {
    font-size: 2.2rem;
    font-weight: 300;
    color: #f8fafc;
    line-height: 1;
    letter-spacing: -1px;
}

.widget-date {
    font-size: 0.82rem;
    font-weight: 500;
    color: #cbd5e1;
    margin-top: 4px;
}

.widget-weather {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    color: var(--accent-light, #818cf8);
    margin-top: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 20px;
}

/* App Grid */
.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 15px;
    padding: 10px 0;
    justify-items: center;
}

.launcher-app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    width: 75px;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.launcher-app-item:hover {
    transform: scale(1.08);
}



/* App Icon style */
.app-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.app-label {
    font-size: 0.72rem;
    font-weight: 500;
    text-align: center;
    color: #e2e8f0;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    width: 100%;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Bottom Search Widget inside screen */
.launcher-search {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 0.75rem;
    margin-top: auto;
    margin-bottom: 20px;
}

.search-icon {
    width: 14px;
    height: 14px;
}

/* --- Android In-App View simulation --- */
.pixel-app-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
    background-color: #0d111a;
}

.pixel-app-container.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

/* Dynamic App UI classes */
.app-frame {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.app-header {
    height: 48px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    background: #151d30;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    gap: 8px;
}

.app-header-back-arrow {
    font-size: 1.2rem;
    cursor: pointer;
    margin-right: 4px;
}

.app-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 12px;
}

/* --- Android Navigation Bar (Virtual Button) --- */
.pixel-nav-bar {
    height: 24px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 60;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.nav-bar-handle {
    width: 80px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.nav-bar-handle:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* App-specific custom simulated interfaces (CSS-based mock screen graphics) */
.kana-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}
.kana-cell {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
}
.kana-cell span {
    font-size: 0.55rem;
    color: #94a3b8;
    font-weight: 400;
}
.kana-study-card {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}
.kana-study-kana {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}
.kana-study-romaji {
    font-size: 0.75rem;
    color: #cbd5e1;
}

/* Pizza design UI */
.pizza-banner {
    background: linear-gradient(to right, #ea580c, #f97316);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.pizza-banner img {
    width: 40px;
    height: 40px;
}
.pizza-card {
    background: #1e293b;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pizza-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pizza-title-mini {
    font-size: 0.75rem;
    font-weight: 600;
}
.pizza-price-mini {
    font-size: 0.75rem;
    color: #f97316;
    font-weight: 700;
}
.pizza-size-btn {
    font-size: 0.6rem;
    padding: 3px 8px;
    background: #334155;
    border-radius: 4px;
    color: #fff;
    border: none;
}
.pizza-size-btn.active {
    background: #f97316;
}

/* QRCraft design UI */
.qr-scanner-bg {
    background: #111827;
    border-radius: 12px;
    height: 130px;
    position: relative;
    overflow: hidden;
    border: 2px solid #3b82f6;
}
.qr-scanner-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: #3b82f6;
    box-shadow: 0 0 10px #3b82f6;
    animation: qrScan 2.5s linear infinite;
}
@keyframes qrScan {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}
.qr-scan-target {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 2px dashed #fff;
    border-radius: 8px;
    opacity: 0.7;
}
.qr-btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}
.qr-btn-mini {
    padding: 6px;
    font-size: 0.7rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #fff;
    text-align: center;
    cursor: pointer;
}
.qr-btn-mini.active {
    background: #2563eb;
    border-color: #3b82f6;
}

/* VibePlayer UI */
.music-cover-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
}
.music-cover {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, #312e81 0%, #030712 100%);
    border: 6px solid #1e1b4b;
    box-shadow: 0 8px 15px rgba(0,0,0,0.5);
    animation: albumSpin 12s linear infinite;
    animation-play-state: paused;
}
.music-cover.playing {
    animation-play-state: running;
}
@keyframes albumSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.music-info {
    text-align: center;
}
.music-title {
    font-size: 0.8rem;
    font-weight: 700;
}
.music-artist {
    font-size: 0.65rem;
    color: #94a3b8;
}
.music-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 8px;
}
.music-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}
.music-btn-play {
    background: #6366f1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.music-waves {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
    margin-top: 10px;
}
.music-wave-bar {
    width: 3px;
    background: #6366f1;
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
    height: 3px;
}
.music-cover.playing ~ .music-waves .music-wave-bar {
    animation: bounceWave 0.8s ease-in-out infinite alternate;
}
.music-cover.playing ~ .music-waves .music-wave-bar:nth-child(2) { animation-delay: 0.15s; }
.music-cover.playing ~ .music-waves .music-wave-bar:nth-child(3) { animation-delay: 0.3s; }
.music-cover.playing ~ .music-waves .music-wave-bar:nth-child(4) { animation-delay: 0.05s; }
.music-cover.playing ~ .music-waves .music-wave-bar:nth-child(5) { animation-delay: 0.2s; }
@keyframes bounceWave {
    from { height: 3px; }
    to { height: 18px; }
}

/* MoneyManager UI */
.money-dashboard {
    background: #111827;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 10px;
}
.money-dashboard-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: #10b981;
}
.money-dashboard-lbl {
    font-size: 0.6rem;
    color: #94a3b8;
}
.money-bar-chart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 60px;
    background: rgba(255,255,255,0.03);
    padding: 6px;
    border-radius: 8px;
    margin-bottom: 10px;
}
.money-chart-bar {
    width: 15px;
    background: #3b82f6;
    border-radius: 3px 3px 0 0;
}
.money-chart-bar.expense {
    background: #ef4444;
}
.money-chart-bar.income {
    background: #10b981;
}
.money-list-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* --- Details Section Style --- */
.details-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 30px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    min-height: 250px;
    transition: border-color 0.3s;
}

.app-icon-wrapper {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.details-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-secondary);
    height: 180px;
    gap: 12px;
}

.placeholder-icon {
    font-size: 2.5rem;
    animation: pulseIcon 2s ease-in-out infinite alternate;
}

@keyframes pulseIcon {
    from { transform: scale(1); filter: drop-shadow(0 0 0 rgba(99,102,241,0)); }
    to { transform: scale(1.05); filter: drop-shadow(0 0 10px rgba(99,102,241,0.3)); }
}

.details-placeholder h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.details-placeholder p {
    font-size: 0.88rem;
    max-width: 400px;
    line-height: 1.5;
}

.details-content {
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.details-content.hidden {
    display: none;
}

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

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 18px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.details-app-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.details-repo-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent-light, #818cf8);
    background: rgba(99, 102, 241, 0.1);
    padding: 3px 8px;
    border-radius: 6px;
    margin-top: 4px;
    display: inline-block;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
}

.details-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.details-subtitle {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    transition: background-color 0.2s, border-color 0.2s;
}

.tech-tag:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
}

.details-preview-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    position: relative;
    overflow: hidden;
}

/* App visual display mock inside detail panel */
.details-mockup-screenshot {
    width: 200px;
    background: #0f172a;
    border: 6px solid #1e293b;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* --- Resume Modal Styles --- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 13, 22, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #0f172a;
    border: 1px solid var(--card-border);
    border-radius: 24px;
    max-width: 650px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.modal-backdrop.active .modal-card {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
    z-index: 10;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.modal-header {
    padding: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
}

.modal-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
}

.modal-header-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-name {
    font-size: 1.4rem;
    font-weight: 700;
}

.modal-role {
    font-size: 0.95rem;
    color: var(--accent-color);
    font-weight: 600;
}

.modal-location {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.modal-sec {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-sec-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    border-left: 3px solid var(--accent-color);
    padding-left: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Timeline Layout for CV */
.timeline {
    position: relative;
    border-left: 2px solid rgba(255, 255, 255, 0.08);
    padding-left: 20px;
    margin-left: 5px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -27px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 2px solid #0f172a;
}

.timeline-time {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-light, #818cf8);
    margin-bottom: 2px;
}

.timeline-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.timeline-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.timeline-list {
    margin-left: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Skills grid inside Resume */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.skill-category h4 {
    font-size: 0.88rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.skill-tags span {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: flex-end;
}

/* --- Footer --- */
.portfolio-footer {
    text-align: center;
    padding: 10px 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* --- Media Queries --- */
@media (max-width: 600px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    
    .profile-actions {
        justify-content: center;
    }
}

.details-screenshot-img {
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
    border-radius: 18px;
    border: 4px solid #1e293b;
    box-shadow: var(--shadow-md);
    background: #0d111a;
    transition: transform 0.3s ease;
}

.details-screenshot-img:hover {
    transform: scale(1.02);
}

/* --- Language Switcher Styling --- */
.lang-switcher {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: -15px;
    z-index: 100;
    position: relative;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: var(--text-primary);
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}


