:root {
    --bg-color: #fdfbf7;
    --text-color: #2c2c2c;
    --tape-1: rgba(244, 164, 96, 0.7);
    --tape-2: rgba(135, 206, 235, 0.7);
    --tape-3: rgba(144, 238, 144, 0.7);
    --tape-4: rgba(255, 182, 193, 0.7);
}

@font-face {
  font-family: 'Patrick Hand';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/PatrickHand-Regular.ttf') format('truetype');
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-color);
    /* Bullet journal dots background (Dotted Grid) */
    background-image: radial-gradient(#d3cbb8 1.5px, transparent 1.5px);
    background-size: 25px 25px;
    font-family: 'Patrick Hand', cursive;
    color: var(--text-color);
    font-size: 19px;
    line-height: 1.5;
    overflow-x: hidden;
    /* Block text selection & touch callouts */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Prevent image native behaviors */
img, svg {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

/* Allow text selection inside form inputs */
input, textarea {
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

h1, h2, h3 {
    font-family: 'Mali', cursive;
    font-weight: 700;
    margin-top: 0;
    color: #1a1a1a;
}
h1 { font-size: 4rem; margin-bottom: 0.2rem; line-height: 1;}
h2 { font-size: 2.5rem; margin-bottom: 1rem; border-bottom: 2px dashed rgba(0,0,0,0.1); padding-bottom: 5px;}
h3 { font-size: 1.8rem; margin-bottom: 0.5rem; }

.bullet-journal {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 40px;
    position: relative;
}

/* Header section with photo */
.header-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin-bottom: 100px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.title-block {
    text-align: center;
    background: #fff;
    padding: 20px 50px;
    border-radius: 2px 255px 3px 25px / 255px 5px 225px 3px;
    border: 3px solid #333;
    box-shadow: 6px 8px 0px rgba(0,0,0,0.8);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}
.title-block:hover {
    transform: rotate(0deg);
}

.title-block .hand-btn {
    display: inline-block;
    padding: 12px 25px;
    font-family: 'Mali', cursive;
    font-weight: 700;
    font-size: 1.3rem;
    color: #333;
    border: none;
    margin-bottom: 0;
}

.subtitle {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.3rem;
    color: #555;
    border: none;
    margin-bottom: 0;
}

/* Photo Sticker Effect (Pop-Art Layered Style) */
.photo-sticker {
    position: relative;
    transform: rotate(2deg);
    transition: transform 0.3s ease;
    cursor: pointer;
    z-index: 5;
}
.photo-sticker:hover {
    transform: rotate(-2deg) scale(1.05);
}
.photo-sticker img {
    max-width: 350px;
    display: block;
    /* 1. White border (4 sides) 
       2. Solid Pastel Blue retro offset shadow (cute layered pop-art effect)
       3. Subtle soft shadow for depth */
    filter: 
        drop-shadow(3px 3px 0 #fff) 
        drop-shadow(-3px -3px 0 #fff) 
        drop-shadow(3px -3px 0 #fff) 
        drop-shadow(-3px 3px 0 #fff) 
        drop-shadow(8px 8px 0 #a7c7e7)
        drop-shadow(10px 10px 15px rgba(0,0,0,0.15));
}
.photo-sparkle {
    position: absolute;
    z-index: -1;
    pointer-events: none;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(15deg); }
}

/* Scrapbook Masonry Layout */
.scrapbook {
    column-count: 2;
    column-gap: 50px;
}
@media (max-width: 900px) {
    .scrapbook { column-gap: 30px; }
}
@media (max-width: 768px) {
    .scrapbook { column-count: 1; column-gap: 0; }
    .header-section { flex-direction: column; text-align: center; gap: 20px; margin-bottom: 40px; }
    
    /* Mobile text & spacing adjustments */
    body { font-size: 17px; }
    .bullet-journal { padding: 30px 20px; overflow: hidden; }
    
    /* Header adjustments */
    .title-block { padding: 15px 20px; transform: rotate(0deg) !important; border-width: 2px; }
    .title-block h1 { font-size: 2.8rem; }
    .title-block .subtitle { font-size: 1.1rem; }
    
    .photo-sticker img { max-width: 180px; filter: drop-shadow(2px 2px 0 #fff) drop-shadow(-2px -2px 0 #fff) drop-shadow(2px -2px 0 #fff) drop-shadow(-2px 2px 0 #fff) drop-shadow(5px 5px 0 #a7c7e7) drop-shadow(5px 5px 10px rgba(0,0,0,0.15)); }
    .photo-sticker { transform: rotate(0deg) !important; }
    
    /* Prevent rotation clipping on small screens */
    .tilt-right, .tilt-left { transform: rotate(0deg) !important; }
    
    /* Paper items spacing */
    .paper-item { margin-bottom: 35px; box-sizing: border-box; width: 100%; }
    .lined-paper { padding: 25px 20px; }
    .kraft-paper, .grid-paper, .torn-paper, .notepad, .sticky-note { padding: 25px 20px; }
    
    /* Adjust tapes to not overflow as much */
    .tape { width: 80px; height: 25px; top: -12px; }
    .tape-3 { left: 50%; width: 80px; }
    
    /* Hide some background doodles and decorative items on mobile to avoid clutter and weird gaps */
    .doodle-bg { display: none; }
    .deco-item, .scrap-paper { display: none !important; }
}

.paper-item {
    break-inside: avoid;
    margin-bottom: 70px;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

/* Organic rotations */
.tilt-right { transform: rotate(1.5deg); }
.tilt-left { transform: rotate(-1.5deg); }

/* Paper Styles */
.lined-paper {
    background: #fff;
    /* Draw lines */
    background-image: linear-gradient(transparent 95%, #a5c8e4 5%);
    background-size: 100% 32px;
    background-position-y: 8px; /* Offset to align line with text baseline */
    line-height: 32px;
    padding: 32px 30px;
    box-shadow: 2px 4px 15px rgba(0,0,0,0.08);
    border-left: 3px solid #ff9999; /* Red margin line */
    border-radius: 3px;
}
.lined-paper h2 { 
    font-size: 32px; 
    line-height: 32px; 
    margin-top: 0; 
    padding-bottom: 0;
    margin-bottom: 30px; /* 30px margin + 2px border = 32px grid */
}
.lined-paper p {
    margin-top: 0;
    margin-bottom: 32px; /* strict 32px grid */
}

.kraft-paper {
    background: #d4b895; /* Kraft paper color */
    color: #3e2723;
    padding: 35px 30px;
    box-shadow: 3px 5px 15px rgba(0,0,0,0.15);
    border-radius: 2px;
}
.kraft-paper h2 { border-bottom-color: rgba(62, 39, 35, 0.2); }

.grid-paper {
    background: #fff;
    /* Blue grid lines */
    background-image: 
      linear-gradient(rgba(0,100,200,0.15) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0,100,200,0.15) 1px, transparent 1px);
    background-size: 20px 20px;
    padding: 35px 30px;
    box-shadow: 2px 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.torn-paper {
    background: #fafafa;
    padding: 35px 30px 50px 30px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    /* Torn bottom edge using clip-path */
    clip-path: polygon(0% 0%, 100% 0%, 100% 96%, 95% 100%, 90% 95%, 85% 100%, 80% 95%, 75% 100%, 70% 95%, 65% 100%, 60% 95%, 55% 100%, 50% 95%, 45% 100%, 40% 95%, 35% 100%, 30% 95%, 25% 100%, 20% 95%, 15% 100%, 10% 95%, 5% 100%, 0% 96%);
}

.sticky-note {
    padding: 30px;
    /* Hand-cut border radius */
    border-radius: 2px 255px 3px 25px / 255px 5px 225px 3px;
    box-shadow: 3px 5px 12px rgba(0,0,0,0.1);
}
.yellow-note { background: #fff3a3; }

/* Decoratives (Tapes and Pins) */
.tape {
    position: absolute;
    width: 120px;
    height: 35px;
    background-color: var(--tape-1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    top: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(-3deg);
    opacity: 0.85;
    /* Jagged edges for masking tape */
    clip-path: polygon(3% 0, 97% 2%, 100% 10%, 98% 30%, 100% 50%, 97% 70%, 100% 90%, 95% 100%, 4% 98%, 0 85%, 3% 70%, 0 45%, 2% 20%, 0 5%);
}
.tape-2 { background-color: var(--tape-2); transform: translateX(-50%) rotate(4deg); }
.tape-3 { background-color: var(--tape-3); transform: translateX(-50%) rotate(-2deg); width: 80px; left: 20%;}

.pin {
    width: 18px; 
    height: 18px; 
    border-radius: 50%;
    position: absolute; 
    top: 15px; 
    left: 50%; 
    transform: translateX(-50%);
    box-shadow: inset -3px -3px 5px rgba(0,0,0,0.3), 3px 3px 5px rgba(0,0,0,0.2);
    z-index: 5;
}
.pin::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 5px; height: 5px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
}
.pin-red { background: #ff5e5e; }
.pin-blue { background: #4a90e2; }
.pin-yellow { background: #f5a623; }

/* Project Cards */
.project-card {
    background: rgba(255,255,255,0.85);
    padding: 15px 20px;
    border: 2px dashed rgba(0,0,0,0.2);
    border-radius: 8px;
    margin-bottom: 20px;
}
.project-card h3 { margin-top: 0; }
.project-card p {
    font-size: 1rem;
    margin: 5px 0 10px 0;
    line-height: 1.4;
}

/* Links & Buttons */
.hand-link {
    color: #0056b3;
    text-decoration: none;
    border-bottom: 2px dotted #0056b3;
    font-weight: bold;
    transition: color 0.2s;
}
.hand-link:hover {
    color: #d11a2a;
    border-bottom-color: #d11a2a;
}

/* Timeline */
.timeline {
    list-style: none;
    padding-left: 15px;
    border-left: 3px solid rgba(0,0,0,0.2);
}
.timeline li {
    position: relative;
    margin-bottom: 25px;
    padding-left: 15px;
}
.timeline li::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 5px;
    width: 12px;
    height: 12px;
    border: 3px solid #333;
    background: #fff;
    border-radius: 50%;
}
.timeline p { margin-top: 5px; }

/* Skills (Sketched Tags) */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}
.skill-tag {
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(62, 39, 35, 0.5);
    padding: 6px 14px;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #3e2723;
    box-shadow: 2px 3px 0 rgba(62, 39, 35, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: default;
}
.skill-tag:hover, .skill-tag:active {
    transform: rotate(-3deg) scale(1.05);
    box-shadow: 4px 5px 0 rgba(62, 39, 35, 0.2);
    background: rgba(255, 255, 255, 0.9);
}

/* Form */
.hand-form input, .hand-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-family: 'Patrick Hand', cursive;
    font-size: 1.1rem;
    background: rgba(255,255,255,0.8);
    box-sizing: border-box;
}
.hand-form input:focus, .hand-form textarea:focus {
    outline: none;
    border-color: #333;
    background: #fff;
}

.hand-btn {
    display: inline-block;
    padding: 10px 25px;
    border: 2px solid #2c2c2c;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    color: #2c2c2c;
    font-weight: bold;
    font-family: 'Mali', cursive;
    font-size: 1.5rem;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}
.hand-btn:hover, .hand-btn:active {
    background: #2c2c2c;
    color: #fff;
    transform: translateY(-3px) rotate(-2deg);
}
.hand-btn:hover .icon-doodle, .hand-btn:active .icon-doodle {
    color: #fff;
}

/* Decorative Filler Elements */
.deco-item {
    box-shadow: none !important;
    background: transparent !important;
    pointer-events: none;
    border: none;
}

.scrap-paper {
    background: #fff;
    padding: 20px;
    width: 120px;
    margin: 0 auto 40px auto;
    text-align: center;
    border-radius: 2px 255px 3px 25px / 255px 5px 225px 3px;
    box-shadow: 2px 4px 10px rgba(0,0,0,0.1);
    transform: rotate(5deg);
}

.polaroid-deco {
    background: #fff;
    padding: 15px 15px 40px 15px;
    box-shadow: 3px 5px 15px rgba(0,0,0,0.15);
    width: 180px;
    margin: 0 auto 40px auto;
    text-align: center;
}
.polaroid-img-placeholder {
    background: #f0f0f0;
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}
.polaroid-deco p {
    font-family: 'Mali', cursive;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
    color: #333;
}

/* Inline Icon Doodles */
.icon-doodle, .doodle-bg, .deco-svg {
    /* Apply SVG Displacement Filter to make clean vectors look hand-drawn and wobbly */
    filter: url(#doodle-filter);
    overflow: visible !important;
}

.icon-doodle {
    width: 1.1em;
    height: 1.1em;
    vertical-align: -0.2em;
    margin-right: 4px;
    stroke: currentColor;
    color: rgba(0,0,0,0.7);
}

/* Floating SVG Doodles (Background) */
.doodle-bg {
    position: absolute;
    width: 60px;
    height: 60px;
    color: rgba(0,0,0,0.15); /* Pen sketch color */
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(15deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}
