/* ==========================================
   MYLO VAN LOENEN — PORTFOLIO
   Apple-inspired design system
   ========================================== */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --white: #fbfbfd;
    --black: #1d1d1f;
    --gray-100: #f5f5f7;
    --gray-200: #e8e8ed;
    --gray-300: #d2d2d7;
    --gray-400: #86868b;
    --gray-500: #6e6e73;
    --gray-600: #424245;
    --blue: #0071e3;
    --blue-hover: #0077ED;
    --purple: #a855f7;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-dark: #161617;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --transition: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-slow: 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    background: var(--white);
    color: var(--black);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================
   CURSOR GLOW (desktop only)
   ========================================== */

.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}

.cursor-glow.visible {
    opacity: 1;
}

/* ==========================================
   NAVIGATION
   ========================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(251, 251, 253, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.nav.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--gray-500);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--blue);
    transition: width 0.3s var(--ease-out-expo);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--black);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--black);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    z-index: 99;
    background: rgba(251, 251, 253, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 24px;
    flex-direction: column;
    gap: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    font-size: 1rem;
    color: var(--gray-500);
    padding: 8px 0;
}

/* ==========================================
   HERO — Scroll zoom reveal
   ========================================== */

.hero-scroll {
    height: 250vh;
    position: relative;
}

.hero-scroll-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    overflow: hidden;
}

.hero-scroll-content {
    text-align: center;
    max-width: 720px;
    padding: 0 24px;
    position: relative;
    z-index: 3;
    will-change: transform, opacity;
}

/* Dome effect */
.hero-dome {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    z-index: 1;
    will-change: width, height;
    transition: none;
}

.dome-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(0, 113, 227, 0.15);
    pointer-events: none;
    will-change: width, height, opacity;
}

.dome-ring-1 {
    width: 100%;
    height: 100%;
}

.dome-ring-2 {
    width: 75%;
    height: 75%;
    border-color: rgba(0, 113, 227, 0.1);
}

.dome-ring-3 {
    width: 50%;
    height: 50%;
    border-color: rgba(0, 113, 227, 0.06);
}

.dome-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.06) 0%, rgba(168, 85, 247, 0.03) 40%, transparent 70%);
    pointer-events: none;
}

.hero-scroll-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-400);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0;
    transition: opacity 0.6s var(--ease-out-expo);
}

.hero-scroll-title {
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 28px;
    transform: scale(1.8);
    opacity: 1;
    transition: none;
    will-change: transform, opacity;
}

.dot {
    color: var(--blue);
}

.hero-scroll-subtitle {
    font-size: 1.2rem;
    color: var(--gray-500);
    max-width: 480px;
    margin: 0 auto 40px;
    line-height: 1.6;
    font-weight: 400;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out-expo);
}

.hero-scroll-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out-expo);
}

/* Floating orbs */
.hero-scroll-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    filter: blur(60px);
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(0, 113, 227, 0.07);
    top: 10%;
    left: 15%;
    animation: float-orb 8s ease-in-out infinite;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(168, 85, 247, 0.06);
    bottom: 15%;
    right: 10%;
    animation: float-orb 10s ease-in-out infinite reverse;
}

@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 980px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.4s var(--ease-out-expo);
    cursor: pointer;
    border: none;
    font-family: inherit;
    position: relative;
}

.btn-primary {
    background: var(--blue);
    color: white;
}

.btn-primary:hover {
    background: var(--blue-hover);
    transform: scale(1.04);
    box-shadow: 0 8px 30px rgba(0, 113, 227, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--blue);
    border: 1px solid var(--gray-300);
}

.btn-ghost:hover {
    background: var(--gray-100);
    border-color: var(--gray-200);
    transform: scale(1.04);
}

/* Magnetic button effect */
.magnetic {
    transition: transform 0.3s var(--ease-out-expo);
}

/* ==========================================
   SECTIONS
   ========================================== */

.section {
    padding: 120px 0;
}

.section-dark {
    background: var(--gray-100);
}

.section-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 56px;
    max-width: 560px;
}

.section-title-large {
    font-size: clamp(2.5rem, 6vw, 4rem);
    max-width: 640px;
}

/* ==========================================
   ABOUT
   ========================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-text .section-title {
    margin-bottom: 24px;
}

.about-description {
    font-size: 1.05rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-top: 48px;
}

.stat-card {
    background: var(--gray-100);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s var(--ease-out-expo);
    cursor: default;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-400);
    font-weight: 500;
}

/* ==========================================
   SKILLS
   ========================================== */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.skill-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: all 0.4s var(--ease-out-expo);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transform-style: preserve-3d;
    perspective: 800px;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 113, 227, 0.1);
}

.skill-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--black);
    transition: all 0.4s var(--ease-out-expo);
}

.skill-card:hover .skill-icon {
    transform: scale(1.1) rotate(-3deg);
    background: rgba(0, 113, 227, 0.08);
}

.skill-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

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

.skill-tags span {
    font-size: 0.78rem;
    padding: 6px 12px;
    background: var(--gray-100);
    border-radius: 980px;
    color: var(--gray-500);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s var(--ease-out-expo);
}

.skill-tags span:hover {
    background: rgba(0, 113, 227, 0.08);
    color: var(--blue);
    transform: translateY(-2px);
}

.skill-tags span svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.project-tags span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.project-tags span svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* ==========================================
   PROJECTS
   ========================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.project-card {
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: 420px;
    transition: all 0.5s var(--ease-out-expo);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transform-style: preserve-3d;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.1);
}

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

.project-card:hover .project-icon-large {
    transform: scale(1.1) rotate(5deg);
}

.project-card:hover .project-mockup {
    transform: scale(1.05) translateY(-5px);
}

.project-card-featured {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    min-height: 480px;
}

.project-card-wide {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
}

.project-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.project-tags span {
    font-size: 0.72rem;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 980px;
    color: var(--gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.project-info h3 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.project-info p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--blue);
    transition: all 0.3s var(--ease-out-expo);
}

.project-link:hover {
    gap: 12px;
}

.project-link svg {
    transition: transform 0.3s var(--ease-out-expo);
}

.project-link:hover svg {
    transform: translate(2px, -2px);
}

/* Project visuals */
.project-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: transform 0.6s var(--ease-out-expo);
}

.project-visual-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-visual-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.project-visual-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.project-visual-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.project-visual-5 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.project-visual-6 {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

.project-visual-7 {
    background: linear-gradient(135deg, #3DDC84 0%, #7F52FF 100%);
}

.project-icon-large {
    width: 96px;
    height: 96px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.5s var(--ease-out-expo);
}

/* ==========================================
   APP MOCKUPS — Realistic project previews
   ========================================== */

/* Shared browser frame */
.app-mockup {
    width: 100%;
    max-width: 380px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.5s var(--ease-out-expo);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.project-card:hover .app-mockup {
    transform: scale(1.04) translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.small-mockup { max-width: 280px; }

.browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.1);
}

.browser-bar span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.browser-url {
    margin-left: auto;
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 10px;
    border-radius: 4px;
    font-family: 'Inter', monospace;
}

/* ---- D66 Dashboard ---- */
.app-ui { padding: 0; font-size: 0.55rem; color: rgba(255, 255, 255, 0.9); }

.app-ui-dashboard {
    display: grid;
    grid-template-columns: 60px 1fr;
    min-height: 220px;
}

.ui-sidebar {
    background: rgba(0, 0, 0, 0.15);
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ui-sidebar-logo { width: 24px; height: 24px; border-radius: 6px; background: rgba(255, 255, 255, 0.2); margin: 0 auto 6px; }
.ui-sidebar-item { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); }
.ui-sidebar-item.active { background: rgba(255, 255, 255, 0.3); }

.ui-main { padding: 10px; display: flex; flex-direction: column; gap: 8px; }

.ui-topbar { display: flex; justify-content: space-between; align-items: center; }
.ui-search { width: 80px; height: 14px; border-radius: 7px; background: rgba(255, 255, 255, 0.08); }
.ui-avatar { width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }

.ui-cards-row { display: flex; gap: 6px; }
.ui-stat-card { flex: 1; background: rgba(255, 255, 255, 0.1); border-radius: 6px; padding: 8px 6px; text-align: center; }
.ui-stat-num { font-size: 0.85rem; font-weight: 700; color: white; }
.ui-stat-text { font-size: 0.4rem; color: rgba(255, 255, 255, 0.5); margin-top: 2px; }

.ui-table { background: rgba(255, 255, 255, 0.05); border-radius: 6px; overflow: hidden; }
.ui-table-header { height: 14px; background: rgba(255, 255, 255, 0.08); }
.ui-table-row { height: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }

/* ---- Sakura Sentinel (upload) ---- */
.app-ui-upload { padding: 12px; display: flex; flex-direction: column; gap: 8px; }

.ui-upload-zone {
    border: 1.5px dashed rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.ui-upload-text { font-size: 0.55rem; color: rgba(255, 255, 255, 0.5); }

.ui-file-item { display: flex; gap: 8px; align-items: center; padding: 6px 0; }
.ui-file-icon { width: 20px; height: 20px; border-radius: 4px; background: rgba(255, 255, 255, 0.15); flex-shrink: 0; }
.ui-file-info { flex: 1; }
.ui-file-name { height: 6px; width: 60%; background: rgba(255, 255, 255, 0.2); border-radius: 3px; margin-bottom: 5px; }
.ui-progress-bar { height: 4px; background: rgba(255, 255, 255, 0.1); border-radius: 2px; overflow: hidden; }
.ui-progress-fill { height: 100%; background: rgba(255, 255, 255, 0.5); border-radius: 2px; transition: width 1s var(--ease-out-expo); }

.ui-send-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.55rem;
    font-weight: 600;
}

/* ---- Image Guardians (gallery) ---- */
.app-ui-gallery { padding: 10px; }

.ui-gallery-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.ui-gallery-tabs span { font-size: 0.5rem; padding: 3px 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.5); }
.ui-gallery-tabs span.active { background: rgba(255, 255, 255, 0.2); color: white; }

.ui-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ui-gallery-img { aspect-ratio: 1; border-radius: 4px; }
.img-1 { background: rgba(255, 255, 255, 0.25); }
.img-2 { background: rgba(255, 255, 255, 0.15); }
.img-3 { background: rgba(255, 255, 255, 0.2); }
.img-4 { background: rgba(255, 255, 255, 0.12); }
.img-5 { background: rgba(255, 255, 255, 0.22); }
.img-6 { background: rgba(255, 255, 255, 0.18); }

/* ---- Waar Is Dat Feestje ---- */
.app-ui-party { padding: 12px; }

.ui-party-header { font-size: 0.65rem; font-weight: 700; color: white; margin-bottom: 8px; }

.ui-event-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 6px;
}

.ui-event-date { text-align: center; min-width: 32px; }
.ui-event-day { display: block; font-size: 0.8rem; font-weight: 700; color: white; line-height: 1; }
.ui-event-month { font-size: 0.4rem; color: rgba(255, 255, 255, 0.5); text-transform: uppercase; }
.ui-event-info { flex: 1; }
.ui-event-title { font-size: 0.6rem; font-weight: 600; color: white; }
.ui-event-meta { font-size: 0.45rem; color: rgba(255, 255, 255, 0.5); margin-top: 2px; }
.ui-weather-icon { font-size: 1rem; }

/* ---- 50 Projects mini browsers ---- */
.app-ui-50projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0;
}

.mini-project {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s var(--ease-out-expo);
}

.project-card:hover .mini-project {
    animation: pop-grid 0.4s var(--ease-out-expo) forwards;
}
.project-card:hover .mini-project:nth-child(1) { animation-delay: 0s; }
.project-card:hover .mini-project:nth-child(2) { animation-delay: 0.05s; }
.project-card:hover .mini-project:nth-child(3) { animation-delay: 0.1s; }
.project-card:hover .mini-project:nth-child(4) { animation-delay: 0.15s; }
.project-card:hover .mini-project:nth-child(5) { animation-delay: 0.2s; }
.project-card:hover .mini-project:nth-child(6) { animation-delay: 0.25s; }

@keyframes pop-grid {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); background: rgba(255, 255, 255, 0.2); }
    100% { transform: scale(1.03); background: rgba(255, 255, 255, 0.16); }
}

.mini-p-bar { height: 8px; background: rgba(255, 255, 255, 0.08); display: flex; align-items: center; padding: 0 4px; gap: 2px; }
.mini-p-bar::before, .mini-p-bar::after { content: ''; width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); }

.mini-p-body { padding: 6px; min-height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }

.mini-p-circle { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.2); }
.mini-p-card { height: 10px; width: 80%; background: rgba(255, 255, 255, 0.12); border-radius: 3px; }
.mini-p-progress { height: 4px; width: 80%; background: rgba(255, 255, 255, 0.1); border-radius: 2px; position: relative; overflow: hidden; }
.mini-p-progress::after { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 60%; background: rgba(255, 255, 255, 0.3); border-radius: 2px; }
.mini-p-toggle { width: 24px; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.3); position: relative; }
.mini-p-toggle::after { content: ''; position: absolute; right: 2px; top: 2px; width: 8px; height: 8px; border-radius: 50%; background: white; }
.mini-p-input { height: 12px; width: 80%; background: rgba(255, 255, 255, 0.08); border-radius: 3px; border: 1px solid rgba(255, 255, 255, 0.15); }

/* ---- Phone mockups (iOS / Android) ---- */
.phone-mockup {
    width: 160px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    padding: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.5s var(--ease-out-expo);
}

.project-card:hover .phone-mockup {
    transform: scale(1.06) translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.phone-notch {
    width: 60px;
    height: 14px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 0 0 10px 10px;
    margin: 0 auto;
}

.phone-screen {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    min-height: 260px;
    display: flex;
    flex-direction: column;
}

.phone-status-bar {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px 4px;
    font-size: 0.45rem;
    color: rgba(255, 255, 255, 0.6);
}

.phone-content {
    flex: 1;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.phone-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
}

.phone-card.accent-green { border-left-color: #3DDC84; }
.phone-card.accent-purple { border-left-color: #7F52FF; }
.phone-card.accent-orange { border-left-color: #FFCA28; }

.phone-card-title { font-size: 0.55rem; font-weight: 600; color: white; }
.phone-card-subtitle { font-size: 0.4rem; color: rgba(255, 255, 255, 0.5); margin-top: 2px; }

.phone-tab-bar {
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    background: rgba(0, 0, 0, 0.1);
}

.phone-tab-bar span {
    width: 16px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.15);
}

.phone-tab-bar span.active {
    background: rgba(255, 255, 255, 0.5);
    width: 24px;
}

.android-mockup {
    border-radius: 16px;
}

.android-mockup .phone-screen {
    border-radius: 12px;
}

/* ==========================================
   SCROLL HIGHLIGHT TEXT
   ========================================== */

.scroll-text-section {
    padding: 160px 0;
    background: var(--white);
}

.scroll-text {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -0.02em;
    color: var(--gray-300);
    max-width: 800px;
    transition: color 0.3s;
}

.scroll-text span {
    color: var(--gray-300);
    transition: color 0.5s var(--ease-out-expo);
}

.scroll-text span.highlighted {
    color: var(--black);
}

/* ==========================================
   ZOOM TEXT (before contact)
   ========================================== */

.zoom-text-section {
    height: 200vh;
    position: relative;
}

.zoom-text-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.zoom-text {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    text-align: center;
    color: var(--black);
    transform: scale(0.6);
    opacity: 0;
    transition: none;
    will-change: transform, opacity;
}

/* ==========================================
   SLIDE IN animations
   ========================================== */

.slide-in-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s var(--ease-out-expo),
                transform 0.8s var(--ease-out-expo);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s var(--ease-out-expo),
                transform 0.8s var(--ease-out-expo);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Horizontal scroll line between sections */
.scroll-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-300), transparent);
    transform: scaleX(0);
    transition: transform 1.2s var(--ease-out-expo);
    margin: 0 auto;
    max-width: 600px;
}

.scroll-line.visible {
    transform: scaleX(1);
}

/* ==========================================
   CONTACT
   ========================================== */

.contact-container {
    text-align: center;
    max-width: 640px;
}

.contact-text {
    font-size: 1.15rem;
    color: var(--gray-500);
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    padding: 24px 0;
    border-top: 1px solid var(--gray-200);
}

.footer-inner {
    text-align: center;
}

.footer p {
    font-size: 0.82rem;
    color: var(--gray-400);
}

/* ==========================================
   SCROLL ANIMATIONS
   ========================================== */

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo),
                transform 0.8s var(--ease-out-expo);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax layers - Apple style depth on scroll */
.parallax-layer {
    transition: transform 0.1s linear;
    will-change: transform;
}

/* Scale-in animation for project cards */
.scale-in {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.8s var(--ease-out-expo),
                transform 0.8s var(--ease-out-expo);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children animation */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out-expo),
                transform 0.6s var(--ease-out-expo);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.08s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.16s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.24s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.32s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.48s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.56s; opacity: 1; transform: translateY(0); }

/* ==========================================
   3D TILT on project cards
   ========================================== */

.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.tilt-card .project-visual {
    transform-style: preserve-3d;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 24px 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: clamp(3rem, 12vw, 5rem);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        padding-top: 0;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card-featured,
    .project-card-wide {
        grid-column: 1;
        grid-template-columns: 1fr;
    }

    .project-card {
        min-height: auto;
    }

    .project-visual {
        min-height: 200px;
    }

    .section {
        padding: 80px 0;
    }

    .cursor-glow {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-subtitle {
        font-size: 1rem;
    }

    .project-info {
        padding: 28px;
    }

    .project-info h3 {
        font-size: 1.3rem;
    }

    .section-title {
        margin-bottom: 40px;
    }
}
