@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
/* For the main title */

@font-face {
    font-family: 'Billabong';
    src: url('/assets/fonts/Billabong Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Nunito';
    src: url('/assets/fonts/Nunito-VariableFont_wght.ttf') format('truetype');
    /* Variable font supports broad weight range */
}

:root {
    /* Default Dark Theme */
    --bg-color: #000000;
    --card-bg: #121212;
    --primary-color: #0095f6;
    --text-primary: #ffffff;
    --text-secondary: #a8a8a8;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    --radius-lg: 32px;
    --radius-md: 20px;
    --radius-sm: 12px;
    --app-width: 900px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --ipad-screen-bg: #050505;
    --header-bg: #000000;
    --input-bg: rgba(255, 255, 255, 0.05);
    --status-color: rgba(255, 255, 255, 0.95);
    --nav-icon-color: #888;
    --nav-active-color: #ffffff;
    --dot-bg: rgba(255, 255, 255, 0.4);
    --home-bar-color: rgba(255, 255, 255, 0.3);
}

[data-theme="light"] {
    /* Light Theme Overrides */
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --text-primary: #000000;
    --text-secondary: #737373;
    --border-color: #dbdbdb;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.1);
    --ipad-screen-bg: #ffffff;
    --header-bg: #ffffff;
    --input-bg: #efefef;
    --status-color: #000000;
    --nav-icon-color: #262626;
    --nav-active-color: #000000;
    --dot-bg: rgba(0, 0, 0, 0.1);
    --home-bar-color: rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
    -webkit-tap-highlight-color: transparent;
    scrollbar-width: none;
    -ms-overflow-style: none;
    user-select: none;
    /* Prevent text selection */
    -webkit-user-select: none;
    /* Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* IE10+ */
}

*::-webkit-scrollbar {
    display: none;
}

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

/* Floating Background Orbs - Reference Style Refinement */
.background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    background: #f0f2f5;
    /* Light, bright base */
}



.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    /* Reduced blur slightly for more defined color pops */
    opacity: 1;
    /* Full vibrancy for the light background */
    animation: pulseGradient 15s infinite ease-in-out alternate;
}

/* Left side - Vibrant Pink/Red/Orange */
.orb-1 {
    width: 80vw;
    height: 80vh;
    background: linear-gradient(135deg, #ff0055, #ff5500);
    top: -20%;
    left: -20%;
    opacity: 0.8;
    animation-duration: 20s;
}

/* Right side - Soft Lavender/Purple/Blue */
.orb-2 {
    width: 90vw;
    height: 90vh;
    background: radial-gradient(circle, #e0c3fc 20%, #8ec5fc 60%, #0095f6 100%);
    bottom: -10%;
    right: -20%;
    opacity: 0.8;
    z-index: 2;
    animation-delay: -5s;
    animation-duration: 25s;
}

/* Center mix - subtle connection */
.orb-3 {
    width: 60vw;
    height: 60vh;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    top: 30%;
    left: 20%;
    opacity: 0.7;
    animation-delay: -8s;
}

@keyframes pulseGradient {
    0% {
        transform: scale(1) translate(0, 0);
    }

    50% {
        transform: scale(1.1) translate(20px, -20px);
    }

    100% {
        transform: scale(0.95) translate(-10px, 10px);
    }
}

/* iPad Style Frame */
.ipad-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    /* Equal padding for perfect vertical centering */
    perspective: 1000px;
    z-index: 5;
    position: relative;
}

/* Apple Pencil Removed */

.ipad-device {
    width: 86vw;
    max-width: 950px;
    aspect-ratio: 4 / 3;
    max-height: 90vh;
    /* Prevent vertical overflow */
    background: #000;
    border-radius: 28px;
    padding: 12px;
    /* Bezel thickness */
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.6),
        inset 0 0 0 2px rgba(255, 255, 255, 0.1);
    position: relative;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}





.ipad-device:hover {
    transform: scale(1.02) translateY(-10px);
}

.ipad-bezel {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    padding: 12px;
}

.ipad-screen {
    width: 100%;
    height: 100%;
    background: var(--ipad-screen-bg);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}


.ipad-home-bar {
    width: 120px;
    height: 4px;
    background: var(--home-bar-color);
    border-radius: 10px;
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    cursor: grab;
    transition: bottom 0.3s ease, background 0.3s ease;
}

.ipad-home-bar:active {
    cursor: grabbing;
}

/* Lock Screen */
.lock-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 2000;
    cursor: default;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.lock-screen img {
    -webkit-mask-image: linear-gradient(to bottom, black 73%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 73%, transparent 100%);
}

/* --- Lock Screen Status Bar --- */
.lock-status-bar {
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 10;
    color: white;
}

.lock-status-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.lock-battery-icon {
    position: relative;
    width: 20px;
    height: 10px;
    border: 1.3px solid rgba(255, 255, 255, 0.5);
    border-radius: 3px;
}

.lock-battery-level {
    position: absolute;
    top: 1.3px;
    left: 1.3px;
    bottom: 1.3px;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1px;
}

.lock-battery-tip {
    position: absolute;
    top: 2.7px;
    right: -3.5px;
    width: 2px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0 1px 1px 0;
}

/* --- Date & Time --- */
.lock-center-content {
    text-align: center;
    position: relative;
    width: 100%;
    padding-top: 60px;
    z-index: 10;
    pointer-events: none;
}

#lock-date {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    opacity: 0.95;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

#lock-time {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    font-size: 96px;
    font-weight: 300;
    margin-top: 0;
    letter-spacing: -1px;
    line-height: 1;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5), 0 0 60px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* --- Home Indicator --- */
.lock-home-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 2px;
    z-index: 10;
}

/* --- Left Widgets Column --- */
.lock-widgets-left {
    position: absolute;
    top: 200px;
    left: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 148px;
    z-index: 10;
}

.lock-widget {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 18px;
    padding: 12px 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    font-size: 11px;
    color: white;
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* --- Lock Screen Status Bar --- */
.lock-status-bar {
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 10;
    color: white;
}

.lock-status-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.lock-battery-icon {
    position: relative;
    width: 20px;
    height: 10px;
    border: 1.3px solid rgba(255, 255, 255, 0.5);
    border-radius: 3px;
}

.lock-battery-level {
    position: absolute;
    top: 1.3px;
    left: 1.3px;
    bottom: 1.3px;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1px;
}

.lock-battery-tip {
    position: absolute;
    top: 2.7px;
    right: -3.5px;
    width: 2px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0 1px 1px 0;
}

/* --- Date & Time --- */
.lock-center-content {
    text-align: center;
    position: relative;
    width: 100%;
    padding-top: 60px;
    z-index: 10;
    pointer-events: none;
}

#lock-date {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    opacity: 0.95;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

#lock-time {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    font-size: 96px;
    font-weight: 300;
    margin-top: 0;
    letter-spacing: -1px;
    line-height: 1;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5), 0 0 60px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* --- Home Indicator --- */
.lock-home-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 2px;
    z-index: 10;
}

/* --- Left Widgets Column --- */
.lock-widgets-left {
    position: absolute;
    top: 200px;
    left: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 148px;
    z-index: 10;
}

.lock-widget {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 18px;
    padding: 12px 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    font-size: 11px;
    color: white;
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Weather Widget */
.lock-weather-widget {
    padding: 12px 14px;
}

.lock-weather-location {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    font-size: 10px;
    font-weight: 600;
    opacity: 0.85;
    margin-bottom: 2px;
    letter-spacing: 0.1px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.lock-weather-location i {
    font-size: 8px;
    opacity: 0.7;
}

.lock-weather-temp {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    font-size: 36px;
    font-weight: 200;
    line-height: 1.1;
    margin-bottom: 1px;
    letter-spacing: -0.5px;
}

.lock-weather-icon {
    font-size: 14px;
    color: #ffd60a;
    margin-bottom: 1px;
    opacity: 0.95;
}

.lock-weather-desc {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    font-size: 10px;
    font-weight: 500;
    opacity: 0.75;
    margin-bottom: 1px;
}

.lock-weather-range {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    font-size: 10px;
    font-weight: 500;
    opacity: 0.65;
}

/* Toggle circles */
.lock-toggles-row {
    display: flex;
    gap: 10px;
}

.lock-toggle-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 0.5px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Smart Home widget */
.lock-home-widget {
    padding: 10px 14px;
}

.lock-home-title {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 3px;
    opacity: 0.9;
}

.lock-home-desc {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    font-size: 10px;
    font-weight: 500;
    opacity: 0.75;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lock-home-desc i {
    font-size: 9px;
    color: #ffd60a;
}

/* Schedule widget */
.lock-schedule-widget {
    padding: 10px 14px;
}

.lock-schedule-time {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    font-size: 10px;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 6px;
    letter-spacing: 0.1px;
}

.lock-schedule-bar {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 3px;
    overflow: hidden;
}

.lock-schedule-progress {
    width: 55%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 3px;
}

/* Sleep widget */
.lock-sleep-widget {
    padding: 10px 14px;
}

.lock-sleep-title {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.6px;
    opacity: 0.7;
    margin-bottom: 6px;
}

.lock-sleep-graph {
    display: flex;
    align-items: flex-end;
    gap: 1.5px;
    height: 18px;
}

.lock-sleep-graph span {
    display: block;
    width: 4px;
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.55);
}

.lock-sleep-graph span:nth-child(1) {
    height: 6px;
}

.lock-sleep-graph span:nth-child(2) {
    height: 10px;
}

.lock-sleep-graph span:nth-child(3) {
    height: 14px;
}

.lock-sleep-graph span:nth-child(4) {
    height: 18px;
}

.lock-sleep-graph span:nth-child(5) {
    height: 16px;
}

.lock-sleep-graph span:nth-child(6) {
    height: 12px;
}

.lock-sleep-graph span:nth-child(7) {
    height: 8px;
}

.lock-sleep-graph span:nth-child(8) {
    height: 14px;
}

.lock-sleep-graph span:nth-child(9) {
    height: 20px;
}

.lock-sleep-graph span:nth-child(10) {
    height: 16px;
}

.lock-sleep-graph span:nth-child(11) {
    height: 10px;
}

.lock-sleep-graph span:nth-child(12) {
    height: 6px;
}

.lock-sleep-graph span:nth-child(13) {
    height: 12px;
}

.lock-sleep-graph span:nth-child(14) {
    height: 18px;
}

.lock-sleep-graph span:nth-child(15) {
    height: 14px;
}

/* ==============================================
   NOW PLAYING MUSIC BAR (iOS style)
   ============================================== */
.lock-music-bar {
    position: absolute;
    bottom: 60px;
    right: 22px;
    width: 280px;
    background: rgba(40, 30, 50, 0.65);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 18px;
    padding: 16px 18px 14px;
    z-index: 12;
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
}

.lock-music-info {
    text-align: center;
    margin-bottom: 10px;
}

.lock-music-title {
    font-size: 14px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.2px;
}

.lock-music-artist {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
    margin-top: 1px;
}

/* Progress bar */
.lock-music-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.lock-music-elapsed,
.lock-music-remaining {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
    min-width: 26px;
    font-variant-numeric: tabular-nums;
}

.lock-music-elapsed {
    text-align: right;
}

.lock-music-remaining {
    text-align: left;
}

.lock-music-track {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    position: relative;
}

.lock-music-track-fill {
    width: 34%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
}

.lock-music-track-knob {
    position: absolute;
    top: 50%;
    left: 34%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

/* Controls */
.lock-music-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    color: white;
    font-size: 20px;
}

.lock-music-controls .fa-pause {
    font-size: 26px;
}

.lock-music-controls .fa-backward,
.lock-music-controls .fa-forward {
    font-size: 18px;
    opacity: 0.85;
}

/* --- Home Indicator Bar --- */
.lock-home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    z-index: 10;
}

/* App Container - Filling the iPad Screen */
.app-container {
    width: 100%;
    height: 100%;
    background-color: var(--ipad-screen-bg);
    position: relative;
    display: flex;
    flex-direction: row;
    z-index: 10;
    border-radius: inherit;
    /* Ensure inner content clips smoothly */
}

/* Main Content Area */
/* Main Content Area */
#main-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    padding: 0;
}

/* iPad Status Bar */
.status-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 36px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    color: var(--status-color);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -0.2px;
    background: transparent;
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.status-left {
    display: flex;
    gap: 4px;
}

.status-right {
    display: flex;
    gap: 6px;
    align-items: center;
}

.status-right i {
    font-size: 12px;
}

/* Custom iOS Battery Icon */
.battery-icon {
    width: 20px;
    height: 10px;
    border: 1px solid var(--status-color);
    opacity: 0.6;
    border-radius: 2px;
    position: relative;
    padding: 1px;
}

.battery-level {
    width: 100%;
    height: 100%;
    background: var(--status-color);
    border-radius: 1px;
}



.battery-tip {
    width: 1.5px;
    height: 4px;
    background: var(--status-color);
    opacity: 0.6;
    position: absolute;
    right: -3px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 0 1px 1px 0;
}

/* Top Header */
.top-header {
    padding: 12px 40px;
    padding-top: 32px;
    /* Optimized for status bar */
    border-bottom: none;
    margin-bottom: 10px;
    background: var(--header-bg);
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-header h1 {
    font-family: 'Billabong', cursive;
    font-size: 38px;
    font-weight: normal;
    letter-spacing: 0.5px;
    padding-top: 4px;
    /* Visual compensation: Shift left by half sidebar width to center on screen */
    transform: translateX(-30px);
}

/* Padding for content below header */
.view {
    padding: 0 40px 80px 40px;
}

#create.view {
    padding: 0;
}

/* Views Logic */
.view {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.view.active {
    display: block;
    /* Opacity handled by JS for fade-in, but default to 1 here just in case */
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Side Navigation (Desktop Default) */
.side-nav {
    width: 60px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Centered icons vertically */
    align-items: center;
    gap: 5px;
    /* Maximum grouping like IG */
    border-right: none;
    /* Removed subtle line */
    background: transparent;
    padding: 0;
    /* Removed padding to allow central centering */
    z-index: 50;
    flex-shrink: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nav-icon-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    width: 44px;
    height: 34px;
}

.nav-item i {
    font-size: 19px;
    opacity: 0.8;
    /* Slightly dimmed for a 'thinner' look */
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-item.active i {
    opacity: 1;
    transform: scale(1.1);
}

/* Tooltip Labels */
.nav-item span {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%) translateX(-10px) scale(0.8);
    background: #1a1a1a;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.2s ease;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-item span::after {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 4px 4px 4px 0;
    border-style: solid;
    border-color: transparent #1a1a1a transparent transparent;
}

.nav-item:hover span {
    opacity: 1;
    transform: translateY(-50%) translateX(0) scale(1);
}

.nav-item.active {
    color: var(--nav-active-color);
    /* White active state like IG */
}

.nav-item.active i {
    color: var(--nav-active-color);
    /* Pure white active state */
    transform: scale(1.1);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.nav-profile-img {
    width: 24px;
    /* Slightly smaller for a tighter fit */
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    margin-left: 0;
    /* Brought circle right to align with icons */
    object-position: 45% center;
}

.nav-item.active .nav-profile-img {
    border-color: var(--nav-active-color);
    box-shadow: 0 0 10px rgba(var(--nav-active-color), 0.2);
}

/* About Header Styles */
.about-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
}

.about-text {
    flex: 1;
}

.about-photo {
    flex-shrink: 0;
}

.about-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 45% center;
    border: 4px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}

.about-photo img:hover {
    transform: scale(1.05);
}

.about-header h1 {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 52px;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 12px;
    line-height: 1;
    letter-spacing: 2px;
}

.about-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 500px;

    line-height: 1.6;
    margin-bottom: 24px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    /* Dark glass */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    /* White text */
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.badge-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.resume-badge {
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.resume-badge:hover {
    background: rgba(0, 210, 210, 0.12);
    border-color: rgba(0, 210, 210, 0.3);
    transform: translateY(-1px);
}

.cyan-dot {
    background-color: #00d2d2 !important;
    box-shadow: 0 0 0 2px rgba(0, 210, 210, 0.2) !important;
    animation: pulseCyan 2s infinite !important;
}

@keyframes pulseCyan {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 210, 210, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(0, 210, 210, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 210, 210, 0);
    }
}

/* Moments Grid (Photos) */
.moments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}

.moment-card {
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.moment-card:hover {
    transform: translateY(-8px) scale(1.02);
    z-index: 2;
}

.moment-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.moment-card:hover img {
    transform: scale(1.1);
}

.moment-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Info Grid (Details) */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-card {
    background: var(--card-bg);
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.card-label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 600;
}

.card-desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header-flex i {
    font-size: 20px;
    color: var(--primary-color);
}

.theme-toggle-container {
    margin-top: 24px;
}

.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--border-color);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Status List (Currently) */
.status-list {
    list-style: none;
}

.status-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
}

.status-list li:last-child {
    border-bottom: none;
}

.status-time {
    color: var(--text-secondary);
    font-size: 13px;
}

/* Other Sections (Reuse Cards) */
.section-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    margin-bottom: 24px;
}

.scroll-container,
.projects-scroll {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.experience-card,
.project-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.experience-card:hover,
.project-card:hover {
    transform: translateY(-2px);
}

.exp-icon {
    width: 48px;
    height: 48px;
    background: transparent;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
    flex-shrink: 0;
    overflow: hidden;
}

.exp-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.exp-details {
    flex: 1;
}

.exp-details h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.exp-details .company {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 2px;
}

.exp-details .duration {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 12px;
}

.exp-desc {
    list-style: none;
    padding: 0;
    margin: 0;
}

.exp-desc li {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 8px;
    position: relative;
    padding-left: 18px;
}

.exp-desc li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .app-container {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        border: none;
        flex-direction: column;
        /* Stack top-down for mobile phone feel */
    }

    .side-nav {
        width: 100%;
        height: auto;
        flex-direction: row;
        /* Horizontal again */
        position: absolute;
        bottom: 0;
        left: 0;
        /* Reset position */
        border-right: none;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        border-radius: 24px 24px 0 0;
        padding: 12px 30px;
        justify-content: space-around;
        gap: 0;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
        z-index: 100;
        border-top: 1px solid rgba(255, 255, 255, 0.6);
    }

    .nav-item span {
        /* Hide tooltips on mobile or change to float above like before */
        display: none;
    }

    #main-content {
        padding: 24px;
        padding-bottom: 90px;
        /* Space for bottom nav */
    }

    .about-header {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 24px;
    }

    .about-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .about-photo img {
        width: 120px;
        height: 120px;
        object-position: 45% center;
    }
}

.contact-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    gap: 60px;
}

.contact-left {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-left h3 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.gradient-text {
    background: linear-gradient(90deg, #e47361 0%, #db5088 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.contact-left p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 60px;
}

.contact-left .find-me-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 12px;
}

.social-links-landscape {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    /* Increased for FontAwesome icons */
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
}

.social-btn:hover {
    border-color: transparent;
    color: #fff;
    transform: translateY(-4px) scale(1.1);
}

/* LinkedIn Blue */
.social-links-landscape .social-btn:nth-child(1):hover {
    background: #0077b5;
    box-shadow: 0 15px 30px rgba(0, 119, 181, 0.4);
}

/* GitHub Black/Grey */
.social-links-landscape .social-btn:nth-child(2):hover {
    background: #24292e;
    box-shadow: 0 15px 30px rgba(36, 41, 46, 0.4);
}

/* Instagram Gradient */
.social-links-landscape .social-btn:nth-child(3):hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    background-size: 110% 110%;
    background-position: center;
    box-shadow: 0 15px 30px rgba(214, 36, 159, 0.4);
}

/* Email/Other */
.social-links-landscape .social-btn:nth-child(4):hover {
    background: #ea4335;
    box-shadow: 0 15px 30px rgba(234, 67, 53, 0.4);
}

.contact-right {
    flex: 1.2;
    width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    position: relative;
    width: 100%;
}

.contact-input {
    width: 100%;
    padding: 16px 18px;
    background: #1f1f1f;
    border: 1px solid #333;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.contact-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.contact-input:focus {
    border-color: #555;
    background: #252525;
}

textarea.contact-input {
    resize: vertical;
    min-height: 120px;
}

.btn-landscape {
    width: 100%;
    padding: 16px;
    background: #0f0f0f;
    color: white;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-landscape:hover {
    background: #1a1a1a;
    border-color: #444;
}

/* Instagram Feed Styles */
.feed-header {
    margin-top: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.ig-logo {
    font-family: 'Satisfy', cursive !important;
    /* Elegant handwriting font */
    font-size: 32px !important;
    font-weight: 400 !important;
    color: white;
    letter-spacing: 1px;
}

.stories-rail {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    padding: 20px 0;
    overflow-x: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin: 0 auto 20px auto;
    width: 100%;
    max-width: 470px;
    /* Adjusted manually to align exactly with the profile picture below it */
    transform: translateX(-30px);
}

.stories-rail::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for a clean look */
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 75px;
    cursor: pointer;
}

.story-item span {
    font-size: 11px;
    color: var(--text-secondary);
    max-width: 65px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.story-avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    padding: 2px;
    position: relative;
    background: transparent;
}

.story-avatar.ring {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.story-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ipad-screen-bg);
}

[data-theme="light"] .story-avatar img {
    border: 2px solid var(--ipad-screen-bg);
}

.your-story .story-avatar img {
    object-position: 45% center;
}

.your-story .plus-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: #0095f6;
    border: 2px solid var(--ipad-screen-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
}

/* Feed Post */
.feed-container {
    max-width: 470px;
    margin: 0 auto;
    padding-bottom: 40px;
    /* Center on screen by compensating for sidebar */
    transform: translateX(-30px);
}

.feed-post {
    margin-bottom: 40px;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.post-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 45% center;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.username {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.location {
    font-size: 12px;
    color: var(--text-secondary);
}

.post-more {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 18px;
}

/* Carousel Styles */
.post-carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.post-carousel {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Disable manual scrolling */
    scroll-behavior: smooth;
}

.post-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    /* Ensure slide fills container height */
    scroll-snap-align: start;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    /* Fill the fixed aspect-ratio container */
    display: block;
    object-fit: cover;
    /* Cover ensures no black bars inside the container */
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 12px 0;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--dot-bg);
    /* Increased visibility for inactive dots */
    transition: all 0.3s ease;
}

.dot.active {
    background: #0095f6;
    transform: scale(1.3);
}

.post-actions {
    display: flex;
    justify-content: space-between;
    padding: 15px 0 10px 0;
}

.action-left {
    display: flex;
    gap: 15px;
}

.post-actions i {
    font-size: 22px;
    cursor: pointer;
    color: var(--text-primary);
    transition: transform 0.2s ease;
}

.post-actions i:hover {
    transform: scale(1.1);
    color: var(--primary-color);
}

.likes-count {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.caption {
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.caption .username {
    margin-right: 5px;
}

.view-comments {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 5px;
    cursor: pointer;
}

.post-time {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.create-container {
    padding: 0;
    height: 100%;
    margin-top: 0;
    /* Removed top margin */
}

.f1-car-scroll-wrapper {
    position: relative;
    width: 100%;
    height: 40px;
    margin-bottom: -25px;
    /* PULL GAME UP */
    background: transparent;
    overflow: visible;
    display: flex;
    align-items: center;
    border: none;
    pointer-events: none;
}

#scrolling-f1-car {
    position: absolute;
    height: 100px;
    width: auto;
    object-fit: contain;
    left: 0;
    top: -30px;
    filter: none;
    /* REMOVED GLOW/GREEN artifacts */
    will-change: transform;
    opacity: 1;
    z-index: 5;
    transition: transform 0.1s linear;
    mix-blend-mode: screen;
    content: url('/assets/f1-car-final-v2.png');
}

[data-theme="light"] #scrolling-f1-car {
    content: url('/assets/f1-car-light.png');
    mix-blend-mode: multiply;
    /* ENSURE PURE MERGING FOR WHITE BG */
    filter: none;
    /* REMOVED GREY STRIP/SHADOW artifacts */
    opacity: 1;
}

[data-theme="light"] .f1-car-scroll-wrapper {
    background: transparent !important;
    border: none !important;
    margin-bottom: -15px;
}

/* Edge Fades DELETED */

.game-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.game-iframe {
    width: 100%;
    height: 850px;
    border: none;
    display: block;
    overflow: hidden;
}

.game-iframe::-webkit-scrollbar {
    display: none;
}

.game-iframe {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ── 3D Skills Graph ──────────────────────────────────────── */
.skills-graph-section {
    margin-bottom: 40px;
}

.skills-graph-wrapper {
    position: relative;
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .skills-graph-wrapper {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#skills-3d-graph {
    width: 100%;
    height: 380px;
    cursor: grab;
}

#skills-3d-graph:active {
    cursor: grabbing;
}

#skills-3d-graph canvas {
    display: block;
    border-radius: var(--radius-md);
}

/* Tooltip */
.graph-tooltip {
    position: absolute;
    pointer-events: none;
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px 16px;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 100;
    min-width: 140px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.tooltip-name {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.tooltip-category {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.tooltip-bar-wrap {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}

.tooltip-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.tooltip-prof {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
}

/* Legend */
.graph-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 10px 16px 14px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.graph-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.graph-legend-item:hover {
    opacity: 1;
    color: #ffffff;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px currentColor;
}

/* Instagram Splash Screen */
#insta-splash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 1900;
    /* Below Lock Screen (2000), Above Content */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
}

#insta-splash.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.insta-logo-container i {
    font-size: 80px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: pulseLogo 2.5s infinite;
}

.meta-footer {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.from-text {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

.meta-logo-text {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

@keyframes pulseLogo {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Micro-Animations & Reveal Elements */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Tactile Click & Hover Micro-Interactions */
.nav-item,
.view-all-btn,
.btn-primary,
.story-item,
.project-card,
.post-card {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, color 0.3s ease !important;
}

.nav-item:active,
.view-all-btn:active,
.btn-primary:active,
.story-item:active {
    transform: scale(0.94) !important;
}

.story-avatar {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.story-item:hover .story-avatar {
    transform: scale(1.05) !important;
}

/* ── Project Screenshots ──────────────────────────────────── */
.project-screenshot {
    margin-top: 16px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-screenshot img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-screenshot {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.2);
}

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

/* Link button styling inside projects */
.project-links {
    margin-top: 14px;
    display: flex;
    gap: 16px;
}

.project-link-btn {
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.project-link-btn:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.project-link-btn i {
    font-size: 14px;
}