﻿/* ==============================
    PERSONA 3 RELOAD  DESIGN TOKENS
   Angular, geometric, bold blues
   ============================== */
:root {
    /* P3R Colors  deep blues, electric accents */
    --bg-primary: #04060e;
    --bg-secondary: #0a0f1e;
    --bg-tertiary: #111833;
    --surface: rgba(10, 20, 50, 0.6);
    --surface-hover: rgba(15, 30, 70, 0.7);
    --border: rgba(0, 180, 255, 0.12);
    --border-hover: rgba(0, 180, 255, 0.3);

    --text-primary: #e4eaf8;
    --text-secondary: #8899bb;
    --text-muted: #4a5a80;

    --accent-cyan: #00b4ff;
    --accent-blue: #2060ff;
    --accent-red: #ff2050;
    --accent-gold: #ffcc00;
    --accent-purple: #8040ff;

    --gradient-primary: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    --gradient-secondary: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    --gradient-accent: linear-gradient(135deg, var(--accent-red), var(--accent-gold));

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;

    /* Spacing */
    --section-padding: 120px 0;
    --container-width: 1100px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Angular radius */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 6px;
    --radius-xl: 8px;
}

/* ==============================
    RESET & BASE
   ============================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* P3R diagonal line pattern overlay */
    background-image:
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 80px,
            rgba(0, 180, 255, 0.015) 80px,
            rgba(0, 180, 255, 0.015) 81px
        );
}

body.loading {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding);
    position: relative;
}

/* P3R geometric accent lines on sections */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 180, 255, 0.2), transparent);
}

/* ==============================
    PAGE LOADER
   ============================== */
.loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-circle {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(0, 180, 255, 0.15);
    border-top-color: var(--accent-cyan);
    animation: spin 0.8s linear infinite;
    /* P3R angular spinner */
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 12px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--accent-cyan);
    animation: pulse-text 1.5s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse-text {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ==============================
    PARTICLE CANVAS
   ============================== */
#particle-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ==============================
    CURSOR GLOW
   ============================== */
#cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 180, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}

body:hover #cursor-glow {
    opacity: 1;
}

/* ==============================
    P3R TOP BAR  Minimal
   ============================== */
.p3r-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10060;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    transition: background var(--transition-base), box-shadow var(--transition-base), padding var(--transition-base);
}

.p3r-topbar.scrolled {
    background: rgba(4, 6, 14, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border);
    padding: 12px 40px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    z-index: 1001;
    position: relative;
}

.logo-bracket {
    color: var(--accent-cyan);
}

/* P3R Menu Trigger  now the hero content area */
.p3r-menu-trigger {
    display: none;
}

.trigger-line {
    display: none;
}

/* Mobile menu button (hidden on desktop) */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: rgba(4, 6, 14, 0.8);
    color: var(--text-primary);
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-direction: column;
    cursor: pointer;
    transition: all var(--transition-fast);
    clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.mobile-menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--accent-cyan);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.mobile-menu-btn.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 10040;
}
.mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ==============================
    P3R HERO NAVIGATION (inline)
   ============================== */

/* Left-side nav container */
.p3r-hero-nav {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    z-index: 3;
}

/* Menu list */
.p3r-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Menu item */
.p3r-menu-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 24px 6px 20px;
    cursor: pointer;
    outline: none;
    overflow: hidden;
    /* Staggered entrance on page load */
    animation: p3r-item-enter 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateX(-40px);
}

.p3r-menu-item:nth-child(1) { animation-delay: 0.6s; }
.p3r-menu-item:nth-child(2) { animation-delay: 0.7s; }
.p3r-menu-item:nth-child(3) { animation-delay: 0.8s; }
.p3r-menu-item:nth-child(4) { animation-delay: 0.9s; }
.p3r-menu-item:nth-child(5) { animation-delay: 1.0s; }
.p3r-menu-item:nth-child(6) { animation-delay: 1.1s; }

@keyframes p3r-item-enter {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Item index number */
.p3r-item-index {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    color: rgba(0, 180, 255, 0.3);
    letter-spacing: 2px;
    min-width: 24px;
    transition: color var(--transition-fast);
}

/* Item text */
.p3r-item-text {
    font-family: var(--font-heading);
    font-size: clamp(22px, 3.5vw, 32px);
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: color var(--transition-fast), text-shadow var(--transition-fast), transform var(--transition-fast);
    position: relative;
    z-index: 2;
}

/* Diagonal accent stripe behind item  P3R signature */
.p3r-item-stripe {
    position: absolute;
    top: 0;
    left: -20px;
    right: -20px;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 100, 255, 0.15) 0%,
        rgba(0, 180, 255, 0.25) 50%,
        rgba(0, 100, 255, 0.15) 100%
    );
    transform: skewX(-12deg) scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    border-left: 3px solid var(--accent-cyan);
}

/* Hover / Focus / Focused state */
.p3r-menu-item:hover .p3r-item-stripe,
.p3r-menu-item.focused .p3r-item-stripe {
    transform: skewX(-12deg) scaleX(1);
}

.p3r-menu-item:hover .p3r-item-text,
.p3r-menu-item.focused .p3r-item-text {
    color: #fff;
    text-shadow: 0 0 30px rgba(0, 180, 255, 0.6), 0 0 60px rgba(0, 180, 255, 0.3);
    transform: translateX(6px);
}

.p3r-menu-item:hover .p3r-item-index,
.p3r-menu-item.focused .p3r-item-index {
    color: var(--accent-cyan);
}

/* Active indicator (current section) */
.p3r-menu-item.active .p3r-item-text {
    color: var(--accent-cyan);
}

.p3r-menu-item.active .p3r-item-index {
    color: var(--accent-cyan);
}

/* Glowing dot for active */
.p3r-menu-item.active::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    transform: translateY(-50%);
    box-shadow: 0 0 12px var(--accent-cyan);
    z-index: 2;
}

/* Key hints footer */
.p3r-menu-footer {
    display: flex;
    gap: 24px;
    padding-left: 24px;
    opacity: 0;
    animation: p3r-item-enter 0.5s cubic-bezier(0.4, 0, 0.2, 1) 1.3s forwards;
}

.p3r-key-hint {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.p3r-key-hint kbd {
    font-family: var(--font-heading);
    font-size: 10px;
    padding: 3px 8px;
    background: rgba(0, 180, 255, 0.08);
    border: 1px solid rgba(0, 180, 255, 0.2);
    color: var(--accent-cyan);
    clip-path: polygon(3px 0%, 100% 0%, calc(100% - 3px) 100%, 0% 100%);
}

/* ==============================
    HERO SECTION
   ============================== */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 90px 40px 80px;
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 560px;
    text-align: right;
}

.hero-greeting {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 12px;
    position: relative;
    padding-right: 32px;
}

/* P3R accent bar after greeting (right-aligned) */
.hero-greeting::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 20px;
    height: 2px;
    background: var(--accent-cyan);
    transform: translateY(-50%);
}

.hero-greeting::before {
    display: none;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(52px, 8vw, 80px);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 500;
    margin-bottom: 24px;
    min-height: 36px;
}

.hero-prefix {
    color: var(--text-secondary);
}

.typed-text {
    color: var(--accent-cyan);
    font-family: var(--font-heading);
    font-weight: 700;
}

.cursor-blink {
    color: var(--accent-red);
    font-weight: 300;
    animation: blink 0.8s step-end infinite;
}

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

.hero-description {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 36px;
    margin-left: auto;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Hero socials  right-aligned */
.hero-socials {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* Menu hint */
.hero-menu-hint {
    display: block;
    margin-top: 20px;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    animation: p3r-hint-pulse 2s ease-in-out infinite;
}

@keyframes p3r-hint-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* ==============================
   P3R BUTTONS  Angular cut
   ============================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    /* P3R angular cut */
    clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
}

.btn-icon {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-base);
}

.btn:hover .btn-icon {
    transform: translateX(3px);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 180, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 180, 255, 0.5);
    transform: translateY(-2px);
    filter: brightness(1.15);
}

.btn-outline {
    background: transparent;
    color: var(--accent-cyan);
    border: 2px solid var(--accent-cyan);
    clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
}

.btn-outline:hover {
    background: rgba(0, 180, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 180, 255, 0.2);
}

/* Social links  P3R angular boxes */
.hero-socials {
    display: flex;
    gap: 8px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all var(--transition-base);
    /* P3R angular cut */
    clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
    background: var(--surface);
}

.social-link:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    background: rgba(0, 180, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 180, 255, 0.2);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* Hero Image  P3R angular frame */
.hero-image {
    position: relative;
    flex-shrink: 0;
}

.hero-image-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle, rgba(0, 180, 255, 0.12) 0%, rgba(32, 96, 255, 0.08) 40%, transparent 70%);
    animation: glow-pulse 4s ease-in-out infinite;
    filter: blur(20px);
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.profile-photo {
    width: 260px;
    height: 260px;
    object-fit: cover;
    object-position: top;
    position: relative;
    z-index: 2;
    /* P3R angular crop */
    clip-path: polygon(20px 0%, 100% 0%, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0% 100%, 0% 20px);
    border: 2px solid rgba(0, 180, 255, 0.3);
}

.hero-image-ring {
    position: absolute;
    inset: 10px;
    /* P3R hexagonal ring */
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: 1px solid rgba(0, 180, 255, 0.12);
    animation: ring-rotate 20s linear infinite;
}

.hero-image-ring::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    box-shadow: 0 0 12px var(--accent-cyan);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.ring-2 {
    inset: -5px;
    border-color: rgba(32, 96, 255, 0.1);
    animation-direction: reverse;
    animation-duration: 25s;
}

.ring-2::before {
    background: var(--accent-blue);
    box-shadow: 0 0 12px var(--accent-blue);
}

@keyframes ring-rotate {
    to { transform: rotate(360deg); }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    animation: float-y 2s ease-in-out infinite;
}

.scroll-mouse {
    width: 20px;
    height: 32px;
    border: 2px solid var(--text-muted);
    border-radius: 10px;
    position: relative;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 3px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-down 1.5s ease-in-out infinite;
}

@keyframes scroll-down {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

@keyframes float-y {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* ==============================
    SECTION TITLES  P3R Style
   ============================== */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 5vw, 38px);
    font-weight: 700;
    margin-bottom: 60px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-number {
    color: var(--accent-cyan);
    font-size: 14px;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
    letter-spacing: 4px;
}

/* ==============================
    GLASS CARD  P3R Angular
   ============================== */
.glass-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all var(--transition-base);
    position: relative;
}

.glass-card:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
}

/* P3R corner accent */
.glass-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--accent-cyan);
    border-left: 2px solid var(--accent-cyan);
    pointer-events: none;
    z-index: 1;
}

.glass-card::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--accent-cyan);
    border-right: 2px solid var(--accent-cyan);
    pointer-events: none;
    z-index: 1;
}

/* ==============================
    ABOUT SECTION
   ============================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.8;
}

.about-text strong {
    color: var(--accent-cyan);
    font-weight: 700;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-card {
    padding: 24px;
    text-align: center;
    /* P3R angular cut */
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
}

.stat-card::before, .stat-card::after { display: none; }

.stat-number {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-plus {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ==============================
    SKILLS SECTION
   ============================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.skill-category-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.skill-cat-icon {
    width: 18px;
    height: 18px;
    color: var(--accent-cyan);
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-item {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    /* P3R angular cut */
    clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}

.skill-item::before, .skill-item::after { display: none; }

.skill-icon {
    width: 28px;
    height: 28px;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.skill-icon svg {
    width: 100%;
    height: 100%;
}

.skill-name {
    font-size: 13px;
    font-weight: 700;
    flex: 1;
    min-width: 80px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skill-bar {
    width: 100%;
    height: 3px;
    background: rgba(0, 180, 255, 0.08);
    overflow: hidden;
    flex-basis: 100%;
}

.skill-fill {
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.skill-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
    opacity: 0;
    transition: opacity 0.3s 1s;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.skill-fill.animated::after {
    opacity: 1;
}

/* ==============================
    PROJECTS SECTION  P3R Cards
   ============================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.project-card {
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    /* P3R angular cut */
    clip-path: polygon(16px 0%, 100% 0%, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0% 100%, 0% 16px);
}

.project-card::before, .project-card::after { display: none; }

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
}

.project-placeholder-icon {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    opacity: 0.4;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(4, 6, 14, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 16px;
}

.project-link-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    transform: translateY(16px);
    opacity: 0;
    background: rgba(0, 180, 255, 0.1);
    border: 1px solid var(--border);
    /* P3R angular */
    clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}

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

.project-card:hover .project-link-btn:nth-child(2) {
    transition-delay: 0.08s;
}

.project-link-btn:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border-color: var(--accent-cyan);
}

.project-link-btn svg {
    width: 20px;
    height: 20px;
}

.project-info {
    padding: 24px;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-tag {
    font-size: 11px;
    padding: 4px 14px;
    background: rgba(0, 180, 255, 0.08);
    color: var(--accent-cyan);
    font-weight: 700;
    border: 1px solid rgba(0, 180, 255, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* P3R angular */
    clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}

/* ==============================
    EXPERIENCE / TIMELINE  P3R
   ============================== */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-blue), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -40px;
    top: 24px;
    width: 16px;
    height: 16px;
    background: var(--bg-primary);
    border: 3px solid var(--accent-cyan);
    z-index: 1;
    box-shadow: 0 0 16px rgba(0, 180, 255, 0.3);
    /* P3R diamond */
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.timeline-content {
    padding: 28px;
}

.timeline-content::before, .timeline-content::after { display: none; }

.timeline-date {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin: 8px 0 10px;
    text-transform: uppercase;
}

.timeline-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==============================
    CONTACT SECTION
   ============================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    /* P3R angular */
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
}

.contact-link::before, .contact-link::after { display: none; }

.contact-icon {
    width: 22px;
    height: 22px;
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.contact-link-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.contact-link-value {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2px;
}

/* Contact Form */
.contact-form {
    padding: 32px;
}

.contact-form::before, .contact-form::after { display: none; }

.form-group {
    position: relative;
    margin-bottom: 28px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 0 10px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-primary);
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(0, 180, 255, 0.15);
    outline: none;
    transition: border-color var(--transition-base);
    resize: none;
}

.form-group label {
    position: absolute;
    top: 14px;
    left: 0;
    font-size: 13px;
    color: var(--text-muted);
    pointer-events: none;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--accent-cyan);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -8px;
    font-size: 10px;
    color: var(--accent-cyan);
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.form-group input:focus ~ .form-line,
.form-group textarea:focus ~ .form-line {
    width: 100%;
}

.btn-submit {
    width: 100%;
    justify-content: center;
}

/* ==============================
    FOOTER
   ============================== */
.footer {
    border-top: 1px solid var(--border);
    padding: 48px 0;
    position: relative;
    z-index: 2;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
}

.footer-socials {
    display: flex;
    gap: 8px;
}

.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.heart {
    color: var(--accent-red);
    animation: heartbeat 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
}

/* ==============================
    REVEAL ANIMATIONS
   ============================== */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

.reveal-up:nth-child(2) { transition-delay: 0.1s; }
.reveal-up:nth-child(3) { transition-delay: 0.2s; }
.reveal-up:nth-child(4) { transition-delay: 0.3s; }

/* ==============================
    RESPONSIVE
   ============================== */
@media (max-width: 1024px) {
    .hero {
        padding: 90px 24px 80px;
        gap: 40px;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .skills-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }

    .hero {
        flex-direction: column;
        z-index: auto;
    }
    .mobile-menu-btn {
        display: inline-flex;
    }
    .p3r-hero-nav {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 280px;
        padding: 100px 20px 40px;
        background: rgba(4, 6, 14, 0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        transform: translateX(-110%);
        transition: transform var(--transition-base);
        z-index: 10050;
        align-items: flex-start;
        gap: 20px;
        pointer-events: none;
    }
    .p3r-hero-nav.open {
        transform: translateX(0);
        pointer-events: auto;
    }
    .p3r-hero-nav.open .p3r-menu-list,
    .p3r-hero-nav.open .p3r-menu-item {
        pointer-events: auto;
    }
    .p3r-hero-nav {
        touch-action: pan-y;
    }
    .p3r-menu-list {
        width: 100%;
        max-width: 100%;
    }
    .p3r-menu-item {
        justify-content: flex-start;
        padding: 8px 12px;
    }
    .p3r-item-index {
        min-width: 24px;
    }
    .p3r-item-text {
        letter-spacing: 2px;
        text-align: left;
    }

    .p3r-menu-content {
        padding: 80px 24px 60px;
        align-items: center;
    }
    .p3r-menu-footer {
        padding-left: 12px;
        opacity: 1;
        animation: none;
    }
    .p3r-menu-overlay.open .p3r-menu-footer {
        transform: none;
    }
    .p3r-item-text {
        font-size: clamp(22px, 6vw, 32px);
    }
    .hero {
        justify-content: center;
        text-align: center;
        padding: 80px 20px 60px;
        gap: 40px;
    }
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .hero-greeting { padding-right: 0; }
    .hero-greeting::after { display: none; }
    .hero-title-wrapper { justify-content: center; }
    .hero-description { max-width: 100%; margin-left: 0; }
    .hero-cta { justify-content: center; }
    .hero-socials { justify-content: center; }
    .scroll-indicator { display: none; }
    .skills-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .projects-grid { grid-template-columns: 1fr; }
    .p3r-topbar { padding: 14px 20px; }
    .p3r-topbar.scrolled { padding: 12px 20px; }
    .timeline { padding-left: 32px; }
    .timeline-dot { left: -32px; }
}

@media (max-width: 480px) {
    .p3r-menu-list {
        max-width: 100%;
    }
    .p3r-menu-item {
        padding: 8px 10px;
    }
    .p3r-item-text {
        font-size: clamp(18px, 6vw, 24px);
        letter-spacing: 1.5px;
    }
    .hero-name { font-size: 40px; }
    .section-title { font-size: 24px; }
    .about-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 18px 12px; }
    .stat-number { font-size: 28px; }
    .btn { padding: 12px 22px; font-size: 12px; }
    .contact-form { padding: 24px 20px; }
}

/* ==============================
    INTERACTIVE OVERLAY CANVASES
   ============================== */
#lanyard-canvas,
#sparkle-canvas,
#gravity-canvas,
#audio-reactive-canvas,
#dvd-canvas,
#vortex-canvas {
    position: fixed;
    inset: 0;
    z-index: 9000;
    pointer-events: none;
    display: none;
}

#lanyard-canvas.active {
    display: block;
    pointer-events: auto;
}

#sparkle-canvas.active {
    display: block;
}

#gravity-canvas.active {
    display: block;
    pointer-events: auto;
}
#audio-reactive-canvas.active {
    display: block;
}
#dvd-canvas.active {
    display: block;
    pointer-events: auto;
}
#vortex-canvas.active {
    display: block;
    pointer-events: auto;
}

/* ==============================
    INTERACTIVE TOGGLE PANEL  P3R
   ============================== */
/* ==============================
    PHONE UI
   ============================== */

/* Backdrop */
.phone-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9400;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.phone-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Panel container */
.phone-panel {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9500;
}

/* Trigger button  phone icon */
.phone-trigger {
    width: 50px;
    height: 50px;
    border: 2px solid var(--accent-cyan);
    background: rgba(4, 6, 14, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--accent-cyan);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    box-shadow: 0 0 20px rgba(0, 180, 255, 0.2);
    position: relative;
    z-index: 2;
    border-radius: 14px;
}
.phone-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 180, 255, 0.4);
    background: rgba(0, 180, 255, 0.1);
}
.phone-trigger.active {
    background: var(--accent-cyan);
    color: var(--bg-primary);
}

/* Phone frame  slides up from bottom-right */
.phone-frame {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 300px;
    background: linear-gradient(145deg, #0a0e1a 0%, #0d1220 50%, #080c16 100%);
    border: 1.5px solid rgba(0, 180, 255, 0.2);
    border-radius: 28px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(0, 180, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) scale(0.92);
    transform-origin: bottom right;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.35s,
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.phone-frame.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Status bar */
.phone-statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}
.phone-notch {
    width: 80px;
    height: 18px;
    background: #000;
    border-radius: 0 0 14px 14px;
    position: relative;
}
.phone-notch::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 14px;
    width: 6px;
    height: 6px;
    background: rgba(0, 180, 255, 0.4);
    border-radius: 50%;
}
.phone-status-icons {
    display: flex;
    gap: 4px;
    color: var(--text-muted);
}
.phone-time {
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

/* Phone content */
.phone-content {
    padding: 12px 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Home bar */
.phone-home-bar {
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 8px auto 10px;
}

/* ---- MEDIA PLAYER WIDGET ---- */
.media-widget {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(0, 100, 255, 0.08) 0%, rgba(0, 180, 255, 0.04) 100%);
    border: 1px solid rgba(0, 180, 255, 0.15);
    border-radius: 16px;
    padding: 12px;
    position: relative;
    overflow: hidden;
    min-height: 140px;
}
.media-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue), transparent);
}

/* Album art  circular */
.media-widget-art {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(0, 180, 255, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    position: relative;
}
.media-widget-art.spinning {
    animation: media-spin 8s linear infinite;
}
@keyframes media-spin {
    to { transform: rotate(360deg); }
}
.media-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Song info */
.media-widget-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.media-song-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}
.media-song-title.marquee {
    text-overflow: clip;
}
.media-song-title.marquee .marquee-inner {
    display: inline-block;
    padding-right: 40px;
    animation: marquee-scroll 8s linear infinite;
}
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.media-song-artist {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
}
.media-song-artist.marquee {
    text-overflow: clip;
}
.media-song-artist.marquee .marquee-inner {
    display: inline-block;
    padding-right: 32px;
    animation: marquee-scroll 10s linear infinite;
}

/* Gyro parallax helpers */
body.gyro-enabled #particle-canvas,
body.gyro-enabled #phone-panel,
body.gyro-enabled .hero {
    will-change: transform;
    transition: transform 0.08s linear;
}

/* Progress bar */
.media-progress-wrap {
    margin-top: 4px;
}
.media-progress {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.media-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    background: var(--accent-cyan);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 180, 255, 0.5);
}
.media-progress::-moz-range-thumb {
    width: 10px;
    height: 10px;
    background: var(--accent-cyan);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 180, 255, 0.5);
}
.media-progress::-webkit-slider-runnable-track {
    background: linear-gradient(to right, var(--accent-cyan) 0%, var(--accent-cyan) var(--progress, 0%), rgba(255,255,255,0.08) var(--progress, 0%));
    border-radius: 2px;
    height: 4px;
}
.media-time-row {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: var(--text-muted);
    margin-top: 2px;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

/* Controls */
.media-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 2px;
}
.media-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
}
.media-btn:hover {
    color: var(--accent-cyan);
    background: rgba(0, 180, 255, 0.1);
}
.media-btn.shuffle-active {
    color: var(--accent-cyan);
}
.media-btn-sm {
    width: 26px;
    height: 26px;
}
.media-btn-play {
    width: 40px;
    height: 40px;
    background: rgba(0, 180, 255, 0.12);
    border: 1.5px solid rgba(0, 180, 255, 0.3);
    color: var(--accent-cyan);
}
.media-btn-play:hover {
    background: rgba(0, 180, 255, 0.25);
    box-shadow: 0 0 16px rgba(0, 180, 255, 0.3);
}

/* ---- TOGGLE GRID (small tiles) ---- */
.phone-toggles-pager {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scroll-snap-stop: always;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
}
.phone-toggles-pager::-webkit-scrollbar {
    display: none;
}
.phone-toggles-page {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    scroll-snap-align: start;
}
.phone-toggles-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
}
.phone-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(0, 180, 255, 0.35);
    background: rgba(0, 180, 255, 0.12);
    cursor: pointer;
    transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}
.phone-dot.active {
    background: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 180, 255, 0.6);
    transform: scale(1.1);
}
.phone-toggle-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}
.phone-toggle-tile:hover {
    background: rgba(0, 180, 255, 0.06);
    border-color: rgba(0, 180, 255, 0.15);
}
.phone-toggle-tile.active {
    background: rgba(0, 180, 255, 0.12);
    border-color: rgba(0, 180, 255, 0.35);
    box-shadow: 0 0 16px rgba(0, 180, 255, 0.1);
}
.phone-toggle-tile.active .tile-label {
    color: var(--accent-cyan);
}
.tile-icon {
    font-size: 22px;
}
.tile-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

/* ---- Mobile overrides ---- */
@media (max-width: 480px) {
    .phone-panel { bottom: 16px; right: 16px; }
    .phone-trigger { width: 44px; height: 44px; }
    .phone-frame {
        width: min(92vw, 300px);
        max-height: 72vh;
    }
    .phone-content {
        padding: 10px 12px 6px;
        gap: 10px;
        overflow-y: auto;
        max-height: calc(72vh - 70px);
    }
    .media-widget {
        min-height: 120px;
        padding: 10px;
        gap: 10px;
    }
    .media-widget-art {
        width: 60px;
        height: 60px;
    }
    .media-controls {
        gap: 6px;
    }
    .media-btn {
        width: 28px;
        height: 28px;
    }
    .media-btn-play {
        width: 36px;
        height: 36px;
    }
    .phone-toggles-pager {
        gap: 10px;
    }
    .phone-toggles-page {
        gap: 6px;
    }
    .phone-dot {
        width: 7px;
        height: 7px;
    }
    .phone-toggle-tile {
        padding: 10px 4px;
        gap: 2px;
    }
    .tile-icon {
        font-size: 20px;
    }
    .tile-label {
        font-size: 8px;
        letter-spacing: 0.4px;
    }
}
/* Reduced motion */
.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
}


