/* ==========================================================================
   RETRO NOTEBOOK SCRAPBOOK PORTFOLIO - MATHEW TOVAR
   Full Screen Lined Notebook Design with SVG Icons & Protected Admin System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;700&family=Instrument+Serif:ital@0;1&family=Press+Start+2P&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --paper-bg: #f9f8f3;
    --notebook-line: #e1decb;
    --notebook-margin: #f4b4b4;
    --text-primary: #18181b;
    --text-muted: #52525b;
    
    /* Tag & Accent Colors */
    --tag-green: #2fa36b;
    --tag-yellow: #f5c518;
    --tag-sand: #e6dac6;
    --tag-blue: #2555d4;
    --tag-pink: #ee4b7a;
    --tag-dark: #18181b;
    --tag-location: #9de0bf;
    --tag-purple: #8b5cf6;

    /* Fonts */
    --font-pixel: 'Press Start 2P', cursive, monospace;
    --font-hand: 'Caveat', cursive;
    --font-serif: 'Instrument Serif', serif;
    --font-sans: 'Space Grotesk', sans-serif;

    /* Transitions */
    --transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Reset & Global Full Screen Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    height: 100%;
}

body {
    background-color: var(--paper-bg);
    /* Notebook lined paper pattern spanning entire browser window */
    background-image: linear-gradient(var(--notebook-line) 1px, transparent 1px);
    background-size: 100% 32px;
    background-position: 0 16px;
    font-family: var(--font-sans);
    color: var(--text-primary);
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Red Margin Line spanning full screen height */
body::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 48px;
    width: 2px;
    background-color: var(--notebook-margin);
    opacity: 0.65;
    pointer-events: none;
    z-index: 1;
}

/* Desktop Full Width Canvas Wrapper */
.paper-wrapper {
    width: 100%;
    min-height: 100vh;
    position: relative;
    padding: 0 0 80px 0;
}

/* SVG Vector Icon Styling */
.svg-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.svg-icon.large {
    width: 22px;
    height: 22px;
}

/* ==========================================================================
   NAVIGATION BAR (Top Floating Pill Bar)
   ========================================================================== */
.navbar-container {
    padding: 20px 48px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(249, 248, 243, 0.95) 75%, rgba(249, 248, 243, 0));
    backdrop-filter: blur(5px);
}

.navbar {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 2.5px solid #18181b;
    border-radius: 40px;
    padding: 8px 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo {
    width: 32px;
    height: 32px;
    background: var(--tag-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #18181b;
    font-weight: 800;
    font-size: 15px;
    margin-right: 4px;
    border: 2px solid #18181b;
    box-shadow: 1px 1px 0px #18181b;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 20px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.nav-link.active {
    background-color: var(--tag-yellow);
    border: 1.5px solid #18181b;
    box-shadow: 1.5px 1.5px 0px #18181b;
}

.nav-link:hover:not(.active) {
    background-color: #f0eee6;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Gmail Circle Icon Button */
.gmail-btn-nav {
    width: 34px;
    height: 34px;
    background: #ffffff;
    border: 2px solid #18181b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    color: #18181b;
    transition: var(--transition);
    box-shadow: 2px 2px 0px #18181b;
    flex-shrink: 0;
}

.gmail-btn-nav:hover {
    background-color: var(--tag-pink);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Admin Toggle Button */
.admin-toggle-btn {
    width: 34px;
    height: 34px;
    background: var(--tag-dark);
    color: #ffffff;
    border: 2px solid #18181b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 2px 2px 0px var(--tag-yellow);
    flex-shrink: 0;
    padding: 0;
}

.admin-toggle-btn:hover {
    background-color: var(--tag-yellow);
    color: #18181b;
    transform: translateY(-2px);
}

/* ==========================================================================
   HERO SECTION (Mathew Tovar Scrapbook Layout)
   ========================================================================== */
.hero-section {
    max-width: 1050px;
    margin: 0 auto;
    padding: 30px 48px 30px 48px;
    position: relative;
    z-index: 2;
}

/* Floating Top Tags */
.hero-tags-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.hero-annotation-center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 6px;
    text-align: center;
}

.tag-pill {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 6px 14px;
    border-radius: 14px;
    border: 2px solid #18181b;
    text-transform: uppercase;
    box-shadow: 2.5px 2.5px 0px #18181b;
}

.tag-pill.green { background-color: var(--tag-green); color: white; }
.tag-pill.sand { background-color: var(--tag-sand); color: #18181b; }
.tag-pill.yellow { background-color: var(--tag-yellow); color: #18181b; }
.tag-pill.location { background-color: var(--tag-location); color: #18181b; }

.handwritten-annotation {
    font-family: var(--font-hand);
    font-size: 28px;
    color: #18181b;
    position: relative;
    display: inline-block;
    font-weight: 700;
    text-align: center;
    margin: 0 auto;
}

.handwritten-annotation::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 10%;
    width: 80%;
    height: 3px;
    border-radius: 2px;
    background-color: #18181b;
}

/* Pixel Banner Header Box */
.pixel-banner-box {
    background-color: #ffffff;
    border: 4px solid #18181b;
    box-shadow: 8px 8px 0px #18181b;
    padding: 24px 20px;
    text-align: center;
    margin: 10px 0 24px 0;
    position: relative;
}

.pixel-banner-box h1 {
    font-family: var(--font-pixel);
    font-size: clamp(34px, 5vw, 64px);
    letter-spacing: 4px;
    color: #18181b;
    text-transform: uppercase;
    line-height: 1.1;
}

/* Sub-tags below pixel box */
.hero-tags-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 12px;
}

.arrow-annotation {
    font-family: var(--font-hand);
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Avatars & Main Serif Pitch */
.hero-pitch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 30px 0;
    position: relative;
}

.avatar-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #f95738;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: #e2e8f0;
}

.avatar-ring img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-serif-headline {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 46px);
    text-align: center;
    line-height: 1.25;
    color: #18181b;
    font-weight: 400;
    flex: 1;
}

.inline-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin: 0 4px;
}

.target-icon {
    width: 28px;
    height: 28px;
    background: #ffffff;
    border: 2px solid var(--tag-green);
    border-radius: 50%;
    color: var(--tag-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.flower-icon {
    color: var(--tag-pink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hero CTA Button */
.hero-cta-wrapper {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.hero-cta-btn {
    background-color: var(--tag-dark);
    color: #ffffff;
    border: 2.5px solid #18181b;
    border-radius: 4px;
    padding: 12px 28px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 4px 4px 0px var(--tag-blue);
    transition: var(--transition);
    text-transform: uppercase;
}

.hero-cta-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--tag-blue);
    background-color: var(--tag-blue);
}

/* Hand-drawn Page Divider */
.wavy-divider {
    max-width: 1050px;
    margin: 30px auto 10px auto;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 0 10 Q 30 0 60 10 T 120 10 T 180 10 T 240 10 T 300 10 T 360 10 T 420 10 T 480 10 T 540 10 T 600 10 T 660 10 T 720 10 T 780 10 T 840 10 T 900 10' stroke='%23c8c5b5' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    opacity: 0.85;
}

/* ==========================================================================
   ABOUT SECTION (Centered Title & Polaroid Scrapbook Layout)
   ========================================================================== */
.about-section {
    max-width: 1050px;
    margin: 0 auto;
    padding: 10px 48px 40px 48px;
    position: relative;
}

/* Centered About Me Heading */
.about-header-annotation {
    font-family: var(--font-hand);
    font-size: 32px;
    font-weight: 700;
    color: #18181b;
    margin-bottom: 24px;
    text-align: center;
}

.about-grid-layout {
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    gap: 24px;
    align-items: center;
    margin-top: 10px;
}

/* Polaroid Photo Styling */
.polaroid-card {
    background: #ffffff;
    padding: 12px 12px 20px 12px;
    border-radius: 2px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border: 2px solid #18181b;
    position: relative;
    transition: var(--transition);
}

.polaroid-card:hover {
    transform: scale(1.05) rotate(0deg) !important;
    z-index: 10;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.polaroid-card.left {
    transform: rotate(-4deg);
}

.polaroid-card.right {
    transform: rotate(3.5deg);
}

.polaroid-img-box {
    width: 100%;
    height: 210px;
    background-color: #2b303a;
    overflow: hidden;
    border-radius: 1px;
    border: 1px solid #18181b;
}

.polaroid-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.polaroid-caption {
    font-family: var(--font-hand);
    font-size: 18px;
    text-align: center;
    color: #18181b;
    font-weight: 700;
    margin-top: 10px;
}

/* Scotch Tape Sticker Effect */
.scotch-tape {
    position: absolute;
    width: 65px;
    height: 24px;
    background-color: rgba(235, 230, 200, 0.7);
    backdrop-filter: blur(2px);
    border-left: 1px dashed rgba(170, 160, 130, 0.5);
    border-right: 1px dashed rgba(170, 160, 130, 0.5);
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    z-index: 5;
}

.scotch-tape.top-center {
    top: -12px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
}

.scotch-tape.top-left {
    top: -10px;
    left: -12px;
    transform: rotate(-25deg);
}

.scotch-tape.top-right {
    top: -10px;
    right: -12px;
    transform: rotate(25deg);
}

.scotch-tape.blue-tape {
    background-color: rgba(180, 210, 245, 0.7);
}

/* Bio Text Center */
.about-center-content {
    text-align: center;
    padding: 0 10px;
}

.whats-up-badge {
    display: inline-block;
    background: #ffffff;
    border: 2px solid #18181b;
    padding: 4px 20px;
    font-size: 18px;
    font-family: var(--font-hand);
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 2px 2px 0px #18181b;
}

.bio-text {
    font-family: var(--font-hand);
    font-size: 23px;
    line-height: 1.45;
    color: #18181b;
    font-weight: 700;
    margin-bottom: 24px;
}

/* Wavy Stamp Skill Badges */
.skills-wavy-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.wavy-badge {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #18181b;
    position: relative;
    border: 2px solid #18181b;
    border-radius: 8px;
    box-shadow: 2.5px 2.5px 0px #18181b;
    font-family: var(--font-sans);
    text-transform: uppercase;
}

.wavy-badge.yellow { background-color: var(--tag-yellow); }
.wavy-badge.green { background-color: var(--tag-green); color: white; }
.wavy-badge.pink { background-color: var(--tag-pink); color: white; }
.wavy-badge.blue { background-color: var(--tag-blue); color: white; }
.wavy-badge.purple { background-color: var(--tag-purple); color: white; }

.badge-icon-box {
    width: 32px;
    height: 32px;
    background-color: var(--tag-yellow);
    border: 2px solid #18181b;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 0px #18181b;
}

/* ==========================================================================
   PROJECTS SECTION (Folder Notch Tabs Layout & Dynamic List)
   ========================================================================== */
.projects-section {
    max-width: 1050px;
    margin: 0 auto;
    padding: 20px 48px 20px 48px;
}

.folder-tabs-header {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.folder-tab-btn {
    border: 2.5px solid #18181b;
    border-bottom: none;
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    transition: var(--transition);
    border-top-left-radius: 8px;
    border-top-right-radius: 16px;
    background-color: #e2dfd5;
    color: #18181b;
}

.folder-tab-btn.active {
    background-color: var(--tag-dark);
    color: white;
    padding-top: 14px;
}

/* Project Card Stack Container */
.project-card-stack {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.project-card {
    border: 3px solid #18181b;
    border-radius: 4px;
    box-shadow: 8px 8px 0px #18181b;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    overflow: hidden;
    position: relative;
    background: #ffffff;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 10px 10px 0px #18181b;
}

/* Themes */
.project-card.theme-dark {
    background-color: #121316;
    color: #ffffff;
}

.project-card.theme-dark .project-notch-header {
    background-color: var(--tag-blue);
    color: white;
}

.project-card.theme-yellow {
    background-color: var(--tag-yellow);
    color: #18181b;
}

.project-card.theme-yellow .project-notch-header {
    background-color: #18181b;
    color: white;
}

.project-card.theme-green {
    background-color: #163629;
    color: white;
}

.project-card.theme-green .project-notch-header {
    background-color: var(--tag-green);
    color: white;
}

.project-notch-header {
    padding: 8px 18px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-block;
    width: fit-content;
    clip-path: polygon(0 0, 85% 0, 100% 100%, 0 100%);
    padding-right: 32px;
    margin-bottom: 12px;
}

.project-info-side {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-date {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.75;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.project-title {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.1;
}

.project-desc {
    font-size: 14px;
    line-height: 1.55;
    opacity: 0.9;
    margin-bottom: 24px;
}

.project-actions-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.project-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: inherit;
    border-bottom: 2.5px solid currentColor;
    padding-bottom: 4px;
    width: fit-content;
    transition: var(--transition);
}

.project-view-btn:hover {
    opacity: 0.7;
    transform: translateX(4px);
}

.delete-project-btn {
    background: #ef4444;
    color: white;
    border: 1.5px solid #18181b;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 2px 2px 0px #18181b;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.delete-project-btn:hover {
    background: #dc2626;
}

/* Project Visual Side */
.project-visual-side {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(0,0,0,0.04);
}

/* Ambient Blurred Background & Premium Canvas Showcase */
.project-mockup-frame,
.lightbox-frame-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 2px solid #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    background-color: #0b0b0e;
}

.project-mockup-frame {
    height: 250px;
}

.lightbox-frame-container {
    height: 520px;
    max-height: 75vh;
    border: 2.5px solid #18181b;
    margin-top: 15px;
}

.img-blur-bg {
    position: absolute;
    top: -15%;
    left: -15%;
    width: 130%;
    height: 130%;
    object-fit: cover;
    filter: blur(14px) brightness(0.45) saturate(1.3);
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    opacity: 0.85;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

.img-main-front {
    position: relative;
    z-index: 2;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.15);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s ease;
}

.project-card:hover .img-main-front {
    transform: scale(1.04);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   ADMIN MANAGEMENT & PASSCODE MODALS
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(20, 20, 25, 0.8);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--paper-bg);
    background-image: linear-gradient(var(--notebook-line) 1px, transparent 1px);
    background-size: 100% 32px;
    border: 4px solid #18181b;
    box-shadow: 12px 12px 0px #18181b;
    width: 92%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px 32px;
    position: relative;
    border-radius: 4px;
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    background: #18181b;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-title {
    font-family: var(--font-pixel);
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #18181b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-section-divider {
    border-top: 2px dashed #18181b;
    margin: 24px 0;
    padding-top: 20px;
}

.admin-subtitle {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

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

.cat-manage-pill {
    background: #ffffff;
    border: 1.5px solid #18181b;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cat-delete-btn {
    cursor: pointer;
    color: #ef4444;
    font-weight: bold;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #18181b;
    background-color: #ffffff;
    font-family: var(--font-sans);
    font-size: 14px;
    border-radius: 4px;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    box-shadow: 3px 3px 0px var(--tag-blue);
}

.form-submit-btn {
    background-color: var(--tag-blue);
    color: white;
    border: 2.5px solid #18181b;
    padding: 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 4px 4px 0px #18181b;
    transition: var(--transition);
}

.form-submit-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 6px 6px 0px #18181b;
    background-color: #1a42b8;
}

.reset-default-btn {
    background-color: #f3f4f6;
    color: #374151;
    border: 2px solid #18181b;
    padding: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 2px 2px 0px #18181b;
}

.reset-default-btn:hover {
    background-color: #e5e7eb;
}

/* Footer Section */
.footer-note {
    max-width: 1050px;
    margin: 40px auto 0 auto;
    text-align: center;
    padding: 20px 48px;
    font-family: var(--font-hand);
    font-size: 22px;
    font-weight: 700;
    color: #52525b;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Tablets & Smartphones)
   ========================================================================== */
@media (max-width: 860px) {
    body::before {
        left: 16px;
    }

    .navbar-container {
        padding: 8px 12px;
    }

    .navbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 6px;
        border-radius: 30px;
        padding: 5px 10px;
    }

    .nav-left, .nav-right {
        width: auto;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 4px;
    }

    .nav-logo {
        width: 26px;
        height: 26px;
        font-size: 13px;
        margin-right: 2px;
    }

    .nav-link {
        font-size: 9.5px;
        padding: 4px 8px;
        gap: 4px;
    }

    .gmail-btn-nav,
    .admin-toggle-btn {
        width: 28px;
        height: 28px;
    }



    .hero-section,
    .about-section,
    .projects-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero-tags-top {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .pixel-banner-box {
        padding: 16px 12px;
        margin: 10px 0 16px 0;
        box-shadow: 5px 5px 0px #18181b;
    }

    .pixel-banner-box h1 {
        font-size: clamp(24px, 7vw, 44px);
        letter-spacing: 2px;
    }

    .hero-tags-bottom {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

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

    .polaroid-card {
        max-width: 260px;
        margin: 0 auto;
    }

    .project-card {
        grid-template-columns: 1fr;
    }

    .hero-pitch-container {
        flex-direction: column;
        gap: 16px;
    }

    .folder-tabs-header {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        margin-bottom: 0;
    }

    .folder-tab-btn {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 8px 16px;
        font-size: 10px;
    }

    .footer-note {
        padding: 20px 16px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .nav-link {
        font-size: 10px;
        padding: 5px 8px;
    }

    .pixel-banner-box h1 {
        font-size: clamp(20px, 6.5vw, 32px);
        letter-spacing: 1px;
    }

    .hero-serif-headline {
        font-size: clamp(20px, 5.5vw, 28px);
    }

    .bio-text {
        font-size: 19px;
        line-height: 1.4;
    }

    .wavy-badge {
        padding: 6px 12px;
        font-size: 10px;
    }

    .project-title {
        font-size: 24px;
    }

    .project-info-side {
        padding: 20px 16px;
    }

    .project-visual-side {
        padding: 16px 12px;
    }

    .project-mockup-frame {
        height: 190px;
    }

    .modal-card {
        padding: 24px 16px;
        width: 95%;
    }
}

/* ==========================================================================
   PAGINATION CONTROLS & PERFORMANCE OPTIMIZATIONS
   ========================================================================== */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 20px;
    width: 100%;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--paper-bg);
    border: 2.5px solid #18181b;
    box-shadow: 4px 4px 0px #18181b;
    padding: 10px 18px;
    border-radius: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn, .pagination-num-btn {
    font-family: var(--font-pixel), sans-serif;
    font-size: 12px;
    background-color: #ffffff;
    border: 2px solid #18181b;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.pagination-btn:hover:not(:disabled),
.pagination-num-btn:hover:not(.active) {
    background-color: var(--tag-yellow);
    transform: translateY(-2px);
    box-shadow: 2px 2px 0px #18181b;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-num-btn.active {
    background-color: #18181b;
    color: #ffffff;
    border-color: #18181b;
    font-weight: bold;
}

/* Performance Optimizations for Smooth Rendering */
.project-card {
    contain: content;
    will-change: transform;
    transform: translateZ(0);
}

.project-mockup-frame {
    transform: translateZ(0);
    backface-visibility: hidden;
}

.img-blur-bg {
    will-change: filter, opacity;
    transform: translateZ(0);
}

