/* ================================
   SOPHIA CASTOR PORTFOLIO
   Scattered Interactive Design
   ================================ */

/* CSS Variables */
:root {
    /* Colors - Light Mode */
    --bg-primary: #faf8f5;
    --bg-secondary: #f5f0e8;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --accent-coral: #e8a598;
    --accent-sage: #a8b5a0;
    --accent-lavender: #b8a9c9;
    --accent-butter: #f0e4b8;
    --accent-sky: #a8c5d9;

    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-mono: 'Space Mono', monospace;
    --font-handwritten: 'Caveat', cursive;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-medium: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-lifted: 0 20px 50px rgba(0,0,0,0.15);
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #252525;
    --text-primary: #f5f0e8;
    --text-secondary: #a0a0a0;
    --accent-coral: #c97a6d;
    --accent-sage: #7a8a72;
    --accent-lavender: #8a7a9a;
    --accent-butter: #c9bd8a;
    --accent-sky: #7a9aaa;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-serif);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    cursor: none;
    transition: background-color var(--transition-medium), color var(--transition-medium);
}

/* Custom Cursor */
.cursor {
    width: 12px;
    height: 12px;
    background: var(--text-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform var(--transition-fast);
}

.cursor.hover {
    transform: scale(2.5);
}

.cursor.dragging {
    transform: scale(0.8);
    background: var(--accent-coral);
}

.cursor-trail {
    width: 30px;
    height: 30px;
    border: 1px solid var(--text-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.3;
    transition: transform 0.1s ease-out, opacity var(--transition-fast);
}

/* Main Scattered Canvas */
.scattered-canvas {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.desk-welcome {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.9rem;
    color: var(--text-primary);
    letter-spacing: 0.01em;
    margin-bottom: var(--spacing-sm);
    text-align: center;
    transform: rotate(-1deg);
}

/* ================================
   HERO PHOTO SECTION
   ================================ */
.hero-photo {
    position: relative;
    z-index: 10;
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.photo-frame {
    position: relative;
    width: 280px;
    height: 340px;
    margin: 0 auto var(--spacing-md);
    background: white;
    padding: 12px 12px 50px;
    box-shadow: var(--shadow-medium);
    transform: rotate(-2deg);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.photo-frame:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: var(--shadow-lifted);
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-smile {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 50px;
    transition: opacity var(--transition-fast);
}

.photo-silly {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 50px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.photo-frame:hover .photo-smile {
    opacity: 0;
}

.photo-frame:hover .photo-silly {
    opacity: 1;
}

/* Photo Tape Decoration */
.photo-tape {
    position: absolute;
    width: 60px;
    height: 20px;
    background: rgba(255, 248, 220, 0.8);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.photo-tape-1 {
    top: -8px;
    left: 20px;
    transform: rotate(-15deg);
}

.photo-tape-2 {
    top: -8px;
    right: 20px;
    transform: rotate(12deg);
}

/* Name Title */
.name-title {
    font-size: 3.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin-bottom: var(--spacing-xs);
}

.name-first {
    font-style: italic;
    color: var(--accent-coral);
}

.name-last {
    font-family: var(--font-mono);
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.tagline {
    font-family: var(--font-handwritten);
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.role-tags {
    display: flex;
    gap: var(--spacing-xs);
    justify-content: center;
    flex-wrap: wrap;
}

.role-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 4px 12px;
    background: var(--bg-secondary);
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ================================
   SCATTERED OBJECTS
   ================================ */
.scattered-object {
    position: absolute;
    cursor: pointer;
    transition: transform var(--transition-medium), filter var(--transition-medium);
    z-index: 5;
}

.scattered-object:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2));
    z-index: 20;
}

/* Vinyl Record */
.vinyl-record {
    top: 15%;
    right: 12%;
    width: 140px;
    height: 140px;
}

.vinyl-outer {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 50%, #1a1a1a 100%);
    border-radius: 50%;
    position: relative;
    box-shadow: var(--shadow-medium);
    transition: transform 0.8s ease;
}

.vinyl-record:hover .vinyl-outer {
    transform: rotate(180deg);
}

.vinyl-grooves {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: repeating-radial-gradient(
        circle at center,
        transparent 0px,
        transparent 2px,
        rgba(255,255,255,0.03) 3px,
        transparent 4px
    );
}

.vinyl-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--accent-coral);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.vinyl-text {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    color: white;
}

.vinyl-subtext {
    font-size: 0.5rem;
    color: rgba(255,255,255,0.7);
}

/* Folder Icon */
.folder-icon {
    top: 20%;
    left: 10%;
    width: 100px;
    height: 80px;
    transform: rotate(-5deg);
}

.folder-back {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
    background: var(--accent-sky);
    border-radius: 0 8px 8px 8px;
}

.folder-front {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 55px;
    background: linear-gradient(180deg, #8fb5cc 0%, var(--accent-sky) 100%);
    border-radius: 0 8px 8px 8px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
    transition: transform var(--transition-medium);
}

.folder-icon:hover .folder-front {
    transform: translateY(-10px) rotate(-3deg);
}

.folder-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: white;
    text-transform: lowercase;
}

.folder-papers {
    position: absolute;
    top: 5px;
    left: 10px;
    right: 10px;
}

.paper {
    position: absolute;
    width: 80%;
    height: 50px;
    background: white;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.paper-1 { transform: rotate(-2deg); }
.paper-2 { transform: rotate(1deg) translateY(3px); }
.paper-3 { transform: rotate(-1deg) translateY(6px); }

/* Book Stack */
.book-stack {
    bottom: 25%;
    left: 8%;
    width: 90px;
    height: 120px;
    transform: rotate(3deg);
}

.book {
    position: absolute;
    width: 80px;
    height: 25px;
    border-radius: 2px 4px 4px 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: transform var(--transition-fast);
}

.book::after {
    content: attr(data-title);
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 0.5rem;
    color: white;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.book:hover::after {
    opacity: 1;
}

.book-1 {
    background: var(--accent-coral);
    bottom: 0;
}
.book-2 {
    background: var(--accent-sage);
    bottom: 28px;
    left: 5px;
}
.book-3 {
    background: var(--accent-lavender);
    bottom: 56px;
    left: 2px;
}

.book-stack:hover .book-1 { transform: translateX(10px); }
.book-stack:hover .book-2 { transform: translateX(-5px); }
.book-stack:hover .book-3 { transform: translateX(5px); }

.book-spine {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: rgba(0,0,0,0.2);
    border-radius: 2px 0 0 2px;
}

.book-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-handwritten);
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Pencil */
.pencil {
    bottom: 30%;
    right: 15%;
    width: 120px;
    height: 20px;
    transform: rotate(35deg);
}

.pencil-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #f4d03f 0%, #d4a017 100%);
    border-radius: 2px;
    position: relative;
    display: flex;
    align-items: center;
}

.pencil-tip {
    position: absolute;
    left: -15px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 18px solid #d4a017;
}

.pencil-tip::after {
    content: '';
    position: absolute;
    right: -18px;
    top: -5px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 8px solid #2a2a2a;
}

.pencil-eraser {
    position: absolute;
    right: -8px;
    width: 12px;
    height: 100%;
    background: #e8a598;
    border-radius: 0 3px 3px 0;
}

.pencil-label {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) rotate(-35deg);
    font-family: var(--font-handwritten);
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Polaroid */
.polaroid {
    top: 50%;
    right: 8%;
    transform: rotate(8deg);
}

.polaroid-frame {
    width: 100px;
    height: 120px;
    background: white;
    padding: 8px 8px 30px;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-medium);
}

.polaroid:hover .polaroid-frame {
    transform: rotateY(180deg);
}

.polaroid-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-lavender) 0%, var(--accent-sky) 100%);
}

.polaroid-caption {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: var(--font-handwritten);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Game Cartridge */
.game-cartridge {
    bottom: 15%;
    left: 20%;
    transform: rotate(-8deg);
}

.cartridge-body {
    width: 70px;
    height: 90px;
    background: #2a2a2a;
    border-radius: 8px 8px 4px 4px;
    position: relative;
    overflow: hidden;
}

.cartridge-label {
    position: absolute;
    top: 10px;
    left: 8px;
    right: 8px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-coral) 0%, #c97a6d 100%);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cartridge-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
}

.cartridge-screen {
    width: 30px;
    height: 20px;
    background: #1a1a1a;
    margin-top: 5px;
    border-radius: 2px;
    animation: screenFlicker 2s infinite;
}

@keyframes screenFlicker {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.cartridge-pins {
    position: absolute;
    bottom: 5px;
    left: 15px;
    right: 15px;
    height: 15px;
    background: repeating-linear-gradient(
        90deg,
        #gold 0px,
        gold 3px,
        transparent 3px,
        transparent 5px
    );
}

.game-cartridge:hover .cartridge-body {
    animation: cartridgeGlow 0.5s ease infinite alternate;
}

@keyframes cartridgeGlow {
    from { box-shadow: 0 0 10px var(--accent-coral); }
    to { box-shadow: 0 0 25px var(--accent-coral); }
}

/* Coffee Cup */
.coffee-cup {
    top: 70%;
    left: 15%;
    transform: rotate(-5deg);
}

.cup-body {
    width: 50px;
    height: 45px;
    background: white;
    border-radius: 0 0 25px 25px;
    position: relative;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.cup-handle {
    position: absolute;
    right: -12px;
    top: 8px;
    width: 15px;
    height: 25px;
    border: 4px solid white;
    border-left: none;
    border-radius: 0 10px 10px 0;
}

.coffee-liquid {
    position: absolute;
    bottom: 5px;
    left: 5px;
    right: 5px;
    height: 30px;
    background: linear-gradient(180deg, #6f4e37 0%, #3c2415 100%);
    border-radius: 0 0 20px 20px;
}

.steam {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.steam-wave {
    width: 8px;
    height: 20px;
    background: transparent;
    border-left: 2px solid rgba(150,150,150,0.3);
    position: absolute;
    animation: steamRise 2s ease-in-out infinite;
}

.steam-1 { left: -8px; animation-delay: 0s; }
.steam-2 { left: 0; animation-delay: 0.3s; }
.steam-3 { left: 8px; animation-delay: 0.6s; }

@keyframes steamRise {
    0% { transform: translateY(0) scaleX(1); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: translateY(-15px) scaleX(1.5); opacity: 0; }
}

/* Lamp */
.lamp {
    top: 10%;
    left: 25%;
}

.lamp-shade {
    width: 60px;
    height: 40px;
    background: var(--accent-butter);
    clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
    position: relative;
}

.lamp-neck {
    width: 8px;
    height: 30px;
    background: #2a2a2a;
    margin: 0 auto;
}

.lamp-base {
    width: 40px;
    height: 10px;
    background: #2a2a2a;
    margin: 0 auto;
    border-radius: 0 0 5px 5px;
}

.lamp-light {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,248,220,0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

[data-theme="dark"] .lamp-light {
    opacity: 1;
}

/* Plant */
.plant {
    bottom: 12%;
    left: 12%;
}

.plant-pot {
    width: 40px;
    height: 35px;
    background: var(--accent-coral);
    clip-path: polygon(5% 0%, 95% 0%, 85% 100%, 15% 100%);
}

.plant-stem {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 30px;
    background: var(--accent-sage);
    transition: height var(--transition-slow);
}

.plant-leaves {
    position: absolute;
    bottom: 55px;
    left: 50%;
    transform: translateX(-50%);
}

.leaf {
    position: absolute;
    width: 20px;
    height: 12px;
    background: var(--accent-sage);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    transform-origin: bottom center;
    transition: transform var(--transition-slow);
}

.leaf-1 { transform: rotate(-45deg) translateY(-5px); }
.leaf-2 { transform: rotate(45deg) translateY(-5px); }
.leaf-3 { transform: rotate(0deg) translateY(-15px); }

.plant:hover .leaf-1 { transform: rotate(-60deg) translateY(-10px); }
.plant:hover .leaf-2 { transform: rotate(60deg) translateY(-10px); }
.plant:hover .leaf-3 { transform: rotate(0deg) translateY(-25px); }

/* Crystal Ball */
.crystal-ball {
    top: 45%;
    left: 5%;
}

.ball-stand {
    width: 50px;
    height: 15px;
    background: #2a2a2a;
    border-radius: 0 0 10px 10px;
    margin: 0 auto;
}

.ball-sphere {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8) 0%, rgba(184,169,201,0.6) 50%, rgba(168,197,217,0.4) 100%);
    border-radius: 50%;
    position: relative;
    margin: 0 auto -5px;
    box-shadow: inset 0 -10px 30px rgba(0,0,0,0.2), 0 5px 20px rgba(184,169,201,0.5);
    overflow: hidden;
}

.ball-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.5) 0%, transparent 60%);
    animation: ballGlow 3s ease-in-out infinite;
}

@keyframes ballGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.fortune-text {
    position: absolute;
    inset: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    text-align: center;
    color: var(--text-primary);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.crystal-ball:hover .fortune-text {
    opacity: 1;
}

/* Cassette */
.cassette {
    top: 75%;
    right: 20%;
    transform: rotate(-3deg);
}

.cassette-body {
    width: 100px;
    height: 65px;
    background: #2a2a2a;
    border-radius: 5px;
    padding: 8px;
    box-shadow: var(--shadow-soft);
}

.cassette-window {
    width: 100%;
    height: 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 15px;
}

.cassette-reel {
    width: 18px;
    height: 18px;
    background: #1a1a1a;
    border-radius: 50%;
    border: 2px solid #444;
}

.cassette.playing .cassette-reel {
    animation: reelSpin 1s linear infinite;
}

@keyframes reelSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cassette-label {
    font-family: var(--font-handwritten);
    font-size: 0.8rem;
    color: white;
    text-align: center;
    margin-top: 5px;
}

/* Stickers - Draggable Pills */
.sticker {
    position: absolute;
    padding: 8px 16px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 20px;
    cursor: grab;
    transition: box-shadow var(--transition-fast), filter var(--transition-fast);
    z-index: 15;
    user-select: none;
}

.sticker:active {
    cursor: grabbing;
}

.sticker:hover {
    box-shadow: var(--shadow-medium);
    filter: brightness(1.1);
}

.sticker.dragging {
    z-index: 100;
    box-shadow: var(--shadow-lifted);
    cursor: grabbing;
}

.sticker[data-sticker="python"] {
    background: #3776ab;
    color: white;
    top: 22%;
    left: 22%;
}

.sticker[data-sticker="rust"] {
    background: #dea584;
    color: #1a1a1a;
    top: 32%;
    right: 18%;
}

.sticker[data-sticker="pytorch"] {
    background: #ee4c2c;
    color: white;
    bottom: 42%;
    left: 18%;
}

.sticker[data-sticker="react"] {
    background: #61dafb;
    color: #1a1a1a;
    top: 48%;
    right: 15%;
}

.sticker[data-sticker="privacy"] {
    background: var(--accent-lavender);
    color: white;
    bottom: 38%;
    right: 22%;
}

.sticker[data-sticker="neuro"] {
    background: var(--accent-sage);
    color: white;
    top: 35%;
    left: 18%;
}

.sticker[data-sticker="gnn"] {
    background: var(--accent-coral);
    color: white;
    bottom: 52%;
    left: 22%;
}

.sticker[data-sticker="llm"] {
    background: var(--accent-butter);
    color: #1a1a1a;
    top: 52%;
    left: 20%;
}

/* Sticky Notes */
.sticky-note {
    position: absolute;
    width: 100px;
    padding: 15px 10px;
    font-family: var(--font-handwritten);
    font-size: 0.9rem;
    line-height: 1.3;
    box-shadow: 2px 3px 8px rgba(0,0,0,0.15);
    transform: rotate(var(--rotation, 0deg));
    z-index: 5;
    transition: transform var(--transition-medium);
}

.sticky-note:hover {
    transform: rotate(0deg) scale(1.1);
    z-index: 25;
}

/* Graduation Cap Icon */
.grad-cap {
    top: 38%;
    right: 6%;
    transform: rotate(-3deg);
}

.grad-cap-icon {
    position: relative;
    width: 80px;
    height: 60px;
}

.cap-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 55px;
    height: 55px;
    background: #1a1a1a;
    border-radius: 5px;
}

.cap-band {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 18px;
    background: #2a2a2a;
    border-radius: 3px 3px 8px 8px;
}

.cap-tassel {
    position: absolute;
    top: 22px;
    right: 8px;
    z-index: 2;
}

.tassel-knot {
    width: 8px;
    height: 8px;
    background: var(--accent-butter);
    border-radius: 50%;
}

.tassel-string {
    width: 3px;
    height: 20px;
    background: var(--accent-butter);
    margin-left: 2.5px;
}

.tassel-end {
    width: 12px;
    height: 15px;
    background: var(--accent-butter);
    margin-left: -2px;
    border-radius: 0 0 3px 3px;
    position: relative;
}

.tassel-end::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1px;
    right: 1px;
    height: 8px;
    background: repeating-linear-gradient(
        180deg,
        var(--accent-butter) 0px,
        var(--accent-butter) 2px,
        transparent 2px,
        transparent 4px
    );
}

.grad-cap:hover .cap-tassel {
    animation: tasselSwing 0.5s ease-in-out;
}

@keyframes tasselSwing {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}

.grad-cap-label {
    display: block;
    text-align: center;
    margin-top: 8px;
    font-family: var(--font-handwritten);
    font-size: 1rem;
    color: var(--text-primary);
}

/* Grad Cap Dark Mode Fix */
[data-theme="dark"] .cap-top {
    background: #4a4a4a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .cap-band {
    background: #5a5a5a;
}

[data-theme="dark"] .cap-button {
    background: #d4af37;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

[data-theme="dark"] .tassel-string {
    background: #d4af37;
}

[data-theme="dark"] .tassel-end {
    background: linear-gradient(to bottom, #d4af37, #b8962e);
}

/* Admin Social Link */
.social-link.admin {
    opacity: 0.5;
    transition: opacity var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
}

.social-link.admin:hover {
    opacity: 1;
    transform: translateY(-5px);
    background: var(--accent-lavender);
    color: white;
}

.sticky-note-2 {
    --rotation: 3deg;
    background: var(--accent-coral);
    color: white;
    bottom: 45%;
    left: 3%;
}

.sticky-note-3 {
    --rotation: -2deg;
    background: var(--accent-sky);
    bottom: 10%;
    right: 10%;
}

/* Paint Tube */
.paint-tube {
    top: 80%;
    left: 35%;
    transform: rotate(25deg);
}

.tube-body {
    width: 70px;
    height: 25px;
    background: linear-gradient(180deg, #e8e8e8 0%, #ccc 100%);
    border-radius: 0 15px 15px 0;
    position: relative;
}

.tube-body::after {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 15px;
    background: repeating-linear-gradient(
        0deg,
        #ddd 0px,
        #ddd 2px,
        #bbb 2px,
        #bbb 4px
    );
}

.tube-cap {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 12px;
    background: var(--accent-coral);
    border-radius: 0 5px 5px 0;
}

/* Social Links */
.social-links {
    position: fixed;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-sm);
    z-index: 100;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 50%;
    color: var(--text-primary);
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.social-link:hover {
    transform: translateY(-5px);
    background: var(--accent-coral);
    color: white;
}

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

/* Easter Egg Hint */
.easter-egg-hint {
    position: fixed;
    bottom: var(--spacing-sm);
    right: var(--spacing-sm);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-secondary);
    opacity: 0.3;
    transition: opacity var(--transition-medium);
}

.easter-egg-hint:hover {
    opacity: 1;
}

/* Secret Message */
.secret-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: var(--spacing-lg);
    border-radius: 10px;
    box-shadow: var(--shadow-lifted);
    text-align: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-medium), visibility var(--transition-medium);
}

.secret-message.visible {
    opacity: 1;
    visibility: visible;
}

.secret-message p {
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-handwritten);
    font-size: 1.5rem;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    padding: var(--spacing-sm);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 100;
}

.mobile-nav-item {
    flex: 1;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-decoration: none;
    color: var(--text-primary);
    padding: var(--spacing-xs);
}

/* Game Overlay */
.game-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-medium), visibility var(--transition-medium);
}

.game-overlay.active {
    opacity: 1;
    visibility: visible;
}

.game-container {
    background: #1a1a1a;
    padding: var(--spacing-md);
    border-radius: 10px;
    border: 4px solid var(--accent-coral);
    box-shadow: 0 0 50px var(--accent-coral);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.game-header h2 {
    font-family: var(--font-mono);
    color: var(--accent-coral);
    font-size: 1.2rem;
}

.game-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

#game-canvas {
    background: #000;
    border: 2px solid #333;
    display: block;
    image-rendering: pixelated;
}

.game-controls {
    display: flex;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
}

.game-btn {
    flex: 1;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    background: #333;
    border: 2px solid #555;
    color: white;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.game-btn:hover {
    background: var(--accent-coral);
    border-color: var(--accent-coral);
}

.game-score {
    text-align: center;
    font-family: var(--font-mono);
    color: white;
    margin-top: var(--spacing-sm);
}

/* Fortune Popup */
.fortune-popup {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-medium), visibility var(--transition-medium);
    background: rgba(10, 5, 30, 0.85);
    cursor: pointer;
}

.fortune-popup.active {
    opacity: 1;
    visibility: visible;
}

.fortune-content {
    background: linear-gradient(145deg, #2a1f4e 0%, #1a1535 50%, #0f0a20 100%);
    padding: var(--spacing-xl);
    border-radius: 20px;
    text-align: center;
    max-width: 340px;
    box-shadow:
        0 0 60px rgba(138, 122, 154, 0.3),
        0 0 100px rgba(138, 122, 154, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    cursor: default;
    position: relative;
    border: 1px solid rgba(138, 122, 154, 0.3);
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.fortune-popup.active .fortune-content {
    transform: scale(1);
}

.fortune-content.revealing {
    animation: mysticPulse 0.8s ease;
}

@keyframes mysticPulse {
    0% { box-shadow: 0 0 60px rgba(138, 122, 154, 0.3); }
    50% { box-shadow: 0 0 100px rgba(138, 122, 154, 0.6), 0 0 150px rgba(168, 181, 160, 0.3); }
    100% { box-shadow: 0 0 60px rgba(138, 122, 154, 0.3); }
}

.fortune-content::before {
    content: '🔮';
    display: block;
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    animation: float 3s ease-in-out infinite;
}

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

.fortune-content p {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-style: italic;
    margin-bottom: var(--spacing-md);
    color: #e8e0f0;
    min-height: 3em;
    line-height: 1.6;
    text-shadow: 0 0 20px rgba(138, 122, 154, 0.5);
}

.fortune-close {
    background: linear-gradient(135deg, var(--accent-lavender) 0%, var(--accent-sage) 100%);
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    color: white;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.fortune-close:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(138, 122, 154, 0.4);
}

/* Confetti Container */
#confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 3000;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 1200px) {
    .scattered-object {
        transform: scale(0.9);
    }

    .vinyl-record { right: 5%; }
    .folder-icon { left: 5%; }
    .pencil { right: 5%; }
    .polaroid { right: 3%; }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor, .cursor-trail {
        display: none;
    }

    .scattered-canvas {
        padding: var(--spacing-md);
        padding-bottom: 100px;
    }

    .scattered-object {
        position: relative;
        display: none;
    }

    .hero-photo {
        margin-bottom: var(--spacing-lg);
    }

    .photo-frame {
        width: 220px;
        height: 280px;
    }

    .name-title {
        font-size: 2.5rem;
    }

    .name-last {
        font-size: 2rem;
    }

    .sticker {
        position: relative;
        display: inline-block;
        margin: 5px;
    }

    .sticky-note {
        display: none;
    }

    .mobile-nav {
        display: flex;
    }

    .social-links {
        bottom: 80px;
    }

    .easter-egg-hint {
        display: none;
    }

    /* Mobile scroll sections */
    .mobile-sections {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-lg);
        width: 100%;
    }
}

@media (max-width: 480px) {
    .photo-frame {
        width: 180px;
        height: 230px;
    }

    .name-title {
        font-size: 2rem;
    }

    .name-last {
        font-size: 1.6rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .role-tags {
        gap: 5px;
    }

    .role-tag {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
}

/* Print Styles */
@media print {
    .scattered-object,
    .sticker,
    .sticky-note,
    .social-links,
    .mobile-nav,
    .cursor,
    .cursor-trail {
        display: none !important;
    }
}
