:root {
    --paper-bg: #fef9f3;
    --paper-dark: #f5ebe0;
    --ink-black: #2b2b2b;
    --ink-blue: #4a5c8f;
    --ink-red: #d4564c;
    --ink-green: #6b9080;
    --ink-purple: #9b7cb5;
    --ink-orange: #e8a87c;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Caveat', cursive;
    background: var(--paper-bg);
    color: var(--ink-black);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

.handwriting {
    font-family: 'Caveat', cursive;
}

/* Paper overlay */
.paper-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(139, 89, 42, 0.03) 2px,
            rgba(139, 89, 42, 0.03) 4px
        );
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

/* Notebook lines background */
.notebook-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
        transparent,
        transparent 31px,
        rgba(74, 92, 143, 0.15) 31px,
        rgba(74, 92, 143, 0.15) 32px
    );
    pointer-events: none;
    z-index: 0;
}

.notebook-bg::before {
    content: '';
    position: absolute;
    left: 80px;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(212, 86, 76, 0.3);
    box-shadow: 2px 0 0 rgba(212, 86, 76, 0.2);
}

/* Container */
.container {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 100px 40px 120px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px) rotate(-2deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
}

.main-title {
    font-family: 'Permanent Marker', cursive;
    font-size: 6rem;
    line-height: 0.9;
    color: var(--ink-black);
    position: relative;
    display: inline-block;
    transform: rotate(-2deg);
    margin-bottom: 20px;
}

.title-line {
    display: block;
    animation: bounceIn 0.6s ease-out backwards;
}

.line-1 {
    color: var(--ink-purple);
    text-shadow: 3px 3px 0 var(--ink-orange);
    animation-delay: 0.2s;
}

.line-2 {
    color: var(--ink-orange);
    text-shadow: -3px 3px 0 var(--ink-green);
    margin-left: 100px;
    animation-delay: 0.4s;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-15deg);
    }
    50% {
        transform: scale(1.05) rotate(3deg);
    }
    70% {
        transform: scale(0.9) rotate(-1deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.title-underline {
    height: 4px;
    width: 300px;
    margin: 10px auto;
    background: var(--ink-blue);
    border-radius: 50%;
    transform: rotate(-1deg);
    position: relative;
    animation: drawLine 1s ease-out 0.6s backwards;
}

@keyframes drawLine {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 300px;
        opacity: 1;
    }
}

.title-underline::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -10px;
    right: -10px;
    height: 8px;
    background: var(--ink-blue);
    border-radius: 50%;
    opacity: 0.3;
    transform: rotate(2deg);
}

/* Header doodles */
.header-doodles {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    font-size: 2rem;
}

.flower-doodle,
.heart-doodle {
    animation: float 3s ease-in-out infinite;
    display: inline-block;
    color: var(--ink-red);
}

.flower-doodle {
    animation-delay: 0.5s;
    color: var(--ink-green);
}

.heart-doodle {
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

/* Doodles */
.doodle {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    animation: spin 10s linear infinite;
}

.doodle-star::before {
    content: '★';
    color: var(--ink-orange);
}

.doodle-circle::before {
    content: '◯';
    color: var(--ink-blue);
}

.doodle-zigzag::before {
    content: '〰';
    color: var(--ink-purple);
}

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

/* Main content */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 60px;
    animation: fadeIn 1s ease-out 0.4s backwards;
}

/* Left Column */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Polaroid image */
.polaroid {
    position: relative;
    background: white;
    padding: 15px 15px 50px 15px;
    box-shadow: 
        0 4px 6px var(--shadow),
        0 10px 20px var(--shadow-dark);
    transform: rotate(-3deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: slideInLeft 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s backwards;
    align-self: start;
    margin-top: 40px;
    width: 100%;
    max-width: 350px;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px) rotate(-8deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(-3deg);
    }
}

.polaroid:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 
        0 8px 12px var(--shadow),
        0 15px 30px var(--shadow-dark);
}

.polaroid-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: var(--paper-dark);
    overflow: hidden;
}

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

/* Tape effect */
.tape {
    position: absolute;
    background: rgba(255, 248, 220, 0.7);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 0 20px rgba(0, 0, 0, 0.05);
}

.tape-1 {
    width: 60px;
    height: 25px;
    top: -10px;
    left: 20%;
    transform: rotate(-15deg);
}

.tape-2 {
    width: 60px;
    height: 25px;
    top: -10px;
    right: 20%;
    transform: rotate(12deg);
}

.polaroid-caption {
    margin-top: 10px;
    text-align: center;
}

.polaroid-caption p {
    font-size: 1.4rem;
    color: var(--ink-blue);
}

/* Stickers */
.sticker {
    position: absolute;
    font-size: 2rem;
    animation: wiggle 2s ease-in-out infinite;
}

.sticker-1 {
    bottom: 10px;
    right: -15px;
    color: var(--ink-orange);
    animation-delay: 0.3s;
}

.sticker-2 {
    top: -15px;
    left: -15px;
    color: var(--ink-red);
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

/* About section */
.about-section {
    animation: slideInRight 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s backwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.paper-note {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--ink-blue);
    border-radius: 2px;
    padding: 30px;
    box-shadow: 
        5px 5px 0 rgba(74, 92, 143, 0.2),
        0 4px 8px var(--shadow);
    position: relative;
    margin-bottom: 30px;
    transform: rotate(1deg);
    transition: transform 0.3s ease;
}

.paper-note:hover {
    transform: rotate(0deg) translateY(-5px);
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.note-date {
    font-size: 1rem;
    color: var(--ink-blue);
    opacity: 0.7;
}

.note-pin {
    width: 20px;
    height: 20px;
    background: var(--ink-red);
    border-radius: 50%;
    position: relative;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 2px 4px var(--shadow);
}

.note-pin::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.section-title {
    font-family: 'Permanent Marker', cursive;
    font-size: 2.5rem;
    color: var(--ink-purple);
    margin-bottom: 15px;
    transform: rotate(-1deg);
}

.description {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--ink-black);
}

.doodle-corner {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    border-bottom: 3px dashed var(--ink-orange);
    border-right: 3px dashed var(--ink-orange);
    opacity: 0.4;
    border-radius: 0 0 10px 0;
}

/* Info cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.info-card {
    background: white;
    border: 2px solid var(--ink-black);
    padding: 20px 15px;
    text-align: center;
    box-shadow: 4px 4px 0 var(--shadow);
    transform: rotate(-1deg);
    transition: all 0.3s ease;
    cursor: default;
}

.info-card:hover {
    transform: rotate(0deg) translateY(-5px);
    box-shadow: 6px 6px 0 var(--shadow-dark);
}

.card-1 {
    border-color: var(--ink-red);
    animation: popIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1s both;
}

.card-2 {
    border-color: var(--ink-green);
    animation: popIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.2s both;
}

.card-3 {
    border-color: var(--ink-purple);
    animation: popIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.4s both;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(-1deg);
    }
}

.card-emoji {
    display: block;
    font-size: 2rem;
    margin-bottom: 5px;
}

.card-label {
    display: block;
    font-size: 0.9rem;
    color: var(--ink-blue);
    text-transform: uppercase;
    margin-bottom: 5px;
    font-family: 'Indie Flower', cursive;
}

.card-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ink-black);
}

.info-card.wobbling {
    animation: wobble 0.5s ease-in-out;
}

@keyframes wobble {
    0%, 100% { transform: rotate(-1deg) translateY(-5px); }
    25% { transform: rotate(2deg) translateY(-7px); }
    50% { transform: rotate(-2deg) translateY(-5px); }
    75% { transform: rotate(1deg) translateY(-7px); }
}

/* Hobbies Section */
.hobbies-section {
    display: block !important;
    width: 100%;
    animation: slideInLeftHobbies 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.4s both;
}

@keyframes slideInLeftHobbies {
    from {
        opacity: 0;
        transform: translateX(-50px) rotate(-6deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(0deg);
    }
}

.hobbies-title {
    font-family: 'Permanent Marker', cursive;
    font-size: 1.8rem;
    color: var(--ink-purple);
    margin-bottom: 15px;
    transform: rotate(-1deg);
    display: inline-block;
}

.hobbies-list {
    display: block !important;
    background: white;
    border: 3px solid var(--ink-purple);
    border-radius: 2px;
    padding: 20px;
    box-shadow: 5px 5px 0 rgba(155, 124, 181, 0.3);
    transform: rotate(1deg);
    transition: all 0.3s ease;
}

.hobbies-list:hover {
    transform: rotate(0deg) translateY(-3px);
    box-shadow: 7px 7px 0 rgba(155, 124, 181, 0.4);
}

.hobby-item {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 1.3rem;
    color: var(--ink-black);
    font-weight: 500;
    animation: fadeIn 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
}

.hobby-item:nth-child(1) { animation-delay: 1.6s; }
.hobby-item:nth-child(2) { animation-delay: 1.7s; }
.hobby-item:nth-child(3) { animation-delay: 1.8s; }
.hobby-item:nth-child(4) { animation-delay: 1.9s; }
.hobby-item:nth-child(5) { animation-delay: 2s; }

.hobby-bullet {
    color: var(--ink-purple);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.hobby-item:hover .hobby-bullet {
    transform: scale(1.3) rotate(180deg);
}

.hobby-text {
    flex: 1;
}

/* Spotify Section */
.spotify-section {
    margin-top: 30px;
    animation: slideInRight 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.6s backwards;
}

.spotify-title {
    font-family: 'Permanent Marker', cursive;
    font-size: 1.8rem;
    color: var(--ink-green);
    margin-bottom: 15px;
    transform: rotate(-1deg);
    display: inline-block;
}

.spotify-container {
    background: white;
    border: 3px solid var(--ink-green);
    padding: 15px;
    box-shadow: 5px 5px 0 rgba(107, 144, 128, 0.3);
    transform: rotate(1deg);
    transition: all 0.3s ease;
}

.spotify-container:hover {
    transform: rotate(0deg) translateY(-3px);
    box-shadow: 7px 7px 0 rgba(107, 144, 128, 0.4);
}

.spotify-container iframe {
    display: block;
    width: 100%;
}

/* Navigation */
.navigation {
    margin-bottom: 40px;
    animation: fadeIn 1s ease-out 1.2s backwards;
}

.nav-title {
    font-family: 'Permanent Marker', cursive;
    font-size: 2rem;
    color: var(--ink-blue);
    margin-bottom: 20px;
    transform: rotate(-1deg);
    display: inline-block;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.nav-button {
    background: white;
    border: 3px solid var(--ink-black);
    padding: 20px 25px;
    text-decoration: none;
    color: var(--ink-black);
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    transform: rotate(-1deg);
}

.nav-button:hover {
    background: var(--ink-orange);
    color: white;
    transform: rotate(0deg) translateX(5px);
    box-shadow: 5px 5px 0 var(--shadow-dark);
}

.nav-button:hover .button-scribble {
    opacity: 1;
}

.nav-icon {
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.nav-button:hover .nav-icon {
    transform: translateX(5px);
}

.button-scribble {
    position: absolute;
    bottom: 5px;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--ink-red);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    animation: fadeIn 1s ease-out 1.4s backwards;
}

.footer-doodles {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.doodle-elem {
    animation: bounce 2s ease-in-out infinite;
    display: inline-block;
}

.doodle-elem:nth-child(1) { animation-delay: 0s; color: var(--ink-orange); }
.doodle-elem:nth-child(2) { animation-delay: 0.2s; color: var(--ink-red); }
.doodle-elem:nth-child(3) { animation-delay: 0.4s; color: var(--ink-green); }
.doodle-elem:nth-child(4) { animation-delay: 0.6s; color: var(--ink-purple); }
.doodle-elem:nth-child(5) { animation-delay: 0.8s; color: var(--ink-blue); }

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

.footer-text {
    font-size: 1.3rem;
    color: var(--ink-blue);
}

.footer-text {
    font-size: 1.3rem;
    color: var(--ink-blue);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 43, 43, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-2deg) scale(0.8);
    z-index: 1001;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    background: var(--paper-bg);
    border: 3px solid var(--ink-black);
    box-shadow: 
        10px 10px 0 rgba(0, 0, 0, 0.2),
        15px 15px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: var(--ink-red);
    border: 2px solid var(--ink-black);
    border-radius: 50%;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    font-family: 'Caveat', cursive;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: var(--ink-orange);
    box-shadow: 0 0 15px var(--ink-red);
}

.modal-content {
    padding: 50px 40px;
    overflow-y: auto;
    max-height: 80vh;
    background-image: repeating-linear-gradient(
        transparent,
        transparent 31px,
        rgba(74, 92, 143, 0.1) 31px,
        rgba(74, 92, 143, 0.1) 32px
    );
}

.modal-title {
    font-family: 'Permanent Marker', cursive;
    font-size: 2.5rem;
    color: var(--ink-purple);
    margin-bottom: 25px;
    transform: rotate(-1deg);
    display: inline-block;
    text-shadow: 2px 2px 0 var(--ink-orange);
}

.modal-body {
    font-size: 1.4rem;
    line-height: 1.4;
    color: var(--ink-black);
}

.modal-body p {
    margin-bottom: 12px;
}

/* Add doodle decorations to modals */
.modal::before {
    content: '★';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2rem;
    color: var(--ink-orange);
    opacity: 0.6;
    animation: spin 10s linear infinite;
}

.modal::after {
    content: '♡';
    position: absolute;
    bottom: 20px;
    right: 50px;
    font-size: 2rem;
    color: var(--ink-red);
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
    }

    .notebook-bg::before {
        left: 20px;
    }

    .main-title {
        font-size: 4rem;
    }

    .line-2 {
        margin-left: 50px;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .left-column {
        gap: 30px;
    }

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

    .info-cards {
        grid-template-columns: 1fr;
    }

    .nav-grid {
        grid-template-columns: 1fr;
    }
    
    .modal {
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-content {
        padding: 40px 25px;
    }
    
    .modal-title {
        font-size: 2rem;
    }
}
