/* === CSS VARIABLES === */
:root {
    --bg-main: #fffafb; 
    --pink-pastel: #ffe4e8;
    --pink-accent: #ff758f; 
    --lavender-light: #e6e0f8;
    --purple-accent: #8b78e6;
    --blue-pastel: #a0c4ff;
    --yellow-pastel: #ffd166;
    --white: #ffffff;
    --text-dark: #3a3335;
    --text-light: #6d6466;
    --solid-shadow: 6px 6px 0px rgba(255, 117, 143, 0.2);
    --solid-shadow-hover: 10px 10px 0px rgba(255, 117, 143, 0.4);
    --radius-cute: 24px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* === GLOBAL STYLES === */
* {
    margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    overflow-x: hidden;
    cursor: none; /* Hide default cursor for custom one */
}

h1, h2, h3, h4 { font-family: 'Quicksand', sans-serif; color: var(--text-dark); }
.section-title { text-align: center; font-size: 3rem; margin-bottom: 60px; font-weight: 800; position: relative; z-index: 2; color: var(--pink-accent); }
.section-title::after { content: ''; display: block; width: 60px; height: 8px; background: var(--yellow-pastel); margin: 15px auto 0; border-radius: 10px; transform: rotate(-2deg); }

section { padding: 120px 8%; position: relative; z-index: 2; }

/* === CUSTOM CURSOR === */
.cursor {
    position: fixed; top: 0; left: 0; width: 20px; height: 20px;
    background-color: var(--pink-accent); border-radius: 50%;
    pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%); transition: transform 0.1s ease;
    mix-blend-mode: multiply; opacity: 0.8;
}
@media (hover: none) and (pointer: coarse) { .cursor { display: none; } body { cursor: auto; } }

/* === SCROLL PROGRESS === */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 6px; width: 0%;
    background: linear-gradient(to right, var(--pink-accent), var(--purple-accent));
    z-index: 10000; border-radius: 0 4px 4px 0;
}

/* === BACKGROUND ELEMENTS === */
.bg-shapes { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 0; overflow: hidden; pointer-events: none; }
.shape { position: absolute; border-radius: 50%; filter: blur(80px); animation: floatOrb 20s ease-in-out infinite alternate; }
.shape-1 { width: 50vw; height: 50vw; background: rgba(255, 179, 198, 0.2); top: -10%; left: -10%; }
.shape-2 { width: 40vw; height: 40vw; background: rgba(160, 196, 255, 0.2); bottom: -10%; right: -10%; animation-delay: -5s; }
.floating-emoji { position: absolute; font-size: 2rem; opacity: 0.6; animation: floatUp 15s linear infinite; }
.e1 { left: 10%; animation-duration: 12s; }
.e2 { left: 80%; animation-duration: 18s; animation-delay: 2s; }
.e3 { left: 40%; animation-duration: 14s; animation-delay: 5s; }
.e4 { left: 60%; animation-duration: 20s; animation-delay: 8s; }

@keyframes floatOrb { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(100px, 50px) scale(1.2); } }
@keyframes floatUp { 0% { transform: translateY(110vh) rotate(0deg); opacity: 0; } 10% { opacity: 0.6; } 90% { opacity: 0.6; } 100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; } }

/* === ANIMATIONS (Scroll Reveal) === */
.hidden { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.show { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* === BUTTONS === */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 32px; border-radius: 12px; font-weight: 800; font-size: 1.1rem;
    text-decoration: none; border: 3px solid var(--text-dark); cursor: pointer;
    transition: var(--transition); background: var(--white); color: var(--text-dark);
    box-shadow: 4px 4px 0px var(--text-dark); font-family: 'Quicksand', sans-serif;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0px var(--text-dark); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0px 0px 0px var(--text-dark); }
.primary-btn { background: var(--pink-accent); color: var(--white); border-color: var(--pink-accent); box-shadow: 4px 4px 0px rgba(0,0,0,0.1); }
.primary-btn:hover { background: #ff5c77; border-color: #ff5c77; box-shadow: 6px 6px 0px rgba(0,0,0,0.15); color: white; }

/* === NAVBAR === */
nav {
    position: fixed; top: 0; width: 100%; padding: 20px 8%; display: flex; justify-content: space-between; align-items: center;
    background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(12px); border-bottom: 2px solid rgba(255,255,255,0.5); z-index: 1000; transition: var(--transition);
}
nav.scrolled { padding: 15px 8%; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.logo { font-family: 'Quicksand', sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--text-dark); text-decoration: none; }
.logo .dot { color: var(--pink-accent); }
.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; transition: var(--transition); position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 3px; background: var(--pink-accent); border-radius: 2px; transition: width 0.3s ease; }
.nav-links a:hover { color: var(--pink-accent); }
.nav-links a:hover::after { width: 100%; }
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 6px; z-index: 1001; }
.bar { width: 32px; height: 4px; background: var(--text-dark); border-radius: 4px; transition: var(--transition); }
.hamburger.active .bar:nth-child(1) { transform: translateY(10px) rotate(45deg); background: var(--pink-accent); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { transform: translateY(-10px) rotate(-45deg); background: var(--pink-accent); }

/* === HERO SECTION === */
#home { min-height: 100vh; display: flex; align-items: center; justify-content: space-between; gap: 50px; padding-top: 120px; }
.hero-text { flex: 1.2; }
.hero-title .greeting { font-size: 1.8rem; color: var(--text-light); font-weight: 800; margin-bottom: 5px; }
.hero-title .name { font-size: clamp(3rem, 6vw, 5rem); line-height: 1.1; color: var(--pink-accent); font-weight: 800; margin-bottom: 10px; text-shadow: 3px 3px 0px var(--pink-pastel); }
.typing-container { font-size: 1.8rem; color: var(--purple-accent); font-weight: 700; margin-bottom: 25px; height: 40px; }
.cursor-blink { animation: blink 1s infinite; color: var(--text-dark); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero-text p { font-size: 1.25rem; line-height: 1.8; color: var(--text-light); margin-bottom: 40px; max-width: 90%; }
.hero-buttons { display: flex; gap: 20px; }

.hero-img { flex: 0.8; display: flex; justify-content: center; position: relative; }
.polaroid-hero {
    background: white; padding: 15px 15px 60px 15px; border-radius: 8px;
    box-shadow: 15px 15px 0px rgba(0,0,0,0.05), 0 0 0 2px var(--lavender-light);
    transform: rotate(3deg); transition: var(--transition);
    animation: float 6s ease-in-out infinite; width: 100%; max-width: 380px; position: relative;
}
.polaroid-hero:hover { transform: rotate(0deg) scale(1.02); }
.polaroid-hero img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: 4px; border: 2px solid #eee; }
.polaroid-caption { position: absolute; bottom: 20px; left: 0; width: 100%; text-align: center; font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 1.4rem; color: var(--text-dark); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(3deg); } 50% { transform: translateY(-15px) rotate(1deg); } }

/* === ABOUT SECTION === */
.about-container { display: flex; align-items: center; gap: 60px; }
.about-img { flex: 1; display: flex; justify-content: center; }
.blob-wrapper {
    width: 90%; aspect-ratio: 1; background: var(--lavender-light);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    overflow: hidden; animation: morph 8s ease-in-out infinite alternate;
    border: 4px solid var(--white); box-shadow: var(--solid-shadow);
}
@keyframes morph { 0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; } 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; } }
.blob-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.about-text { flex: 1.2; background: white; padding: 50px; border-radius: var(--radius-cute); border: 3px solid var(--pink-pastel); box-shadow: 10px 10px 0px var(--pink-pastel); position: relative; }
.about-text::before { content: '"'; position: absolute; top: -30px; left: 20px; font-size: 8rem; color: var(--pink-pastel); font-family: sans-serif; line-height: 1; z-index: -1; }
.about-text p { font-size: 1.15rem; line-height: 1.8; margin-bottom: 20px; color: var(--text-dark); }
.birthday-wrapper { margin-top: 30px; }
.birthday-tag { display: inline-flex; align-items: center; gap: 10px; background: var(--yellow-pastel); color: var(--text-dark); padding: 12px 25px; border-radius: 30px; font-weight: 800; font-size: 1.1rem; border: 2px solid var(--text-dark); box-shadow: 4px 4px 0px var(--text-dark); transition: var(--transition); }
.birthday-tag:hover { transform: translateY(-5px); box-shadow: 6px 6px 0px var(--text-dark); }

/* === CARDS GRID (Skills & Hobbies) === */
.wave-bg { background: linear-gradient(180deg, var(--bg-main) 0%, var(--pink-pastel) 100%); }
.wave-bg-alt { background: linear-gradient(180deg, var(--pink-pastel) 0%, var(--lavender-light) 100%); }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.card { background: white; padding: 40px 30px; border-radius: 20px; border: 3px solid var(--text-dark); box-shadow: 6px 6px 0px var(--text-dark); transition: var(--transition); text-align: center; display: flex; flex-direction: column; align-items: center; }
.card-tilt:nth-child(odd) { transform: rotate(-2deg); }
.card-tilt:nth-child(even) { transform: rotate(2deg); }
.card:hover { transform: translateY(-10px) rotate(0deg) !important; box-shadow: 10px 10px 0px var(--text-dark); }
.card-icon { width: 70px; height: 70px; background: var(--pink-pastel); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--pink-accent); margin-bottom: 20px; border: 2px solid var(--text-dark); }
.c-blue { background: var(--blue-pastel); color: #2b6cb0; }
.c-yellow { background: var(--yellow-pastel); color: #b7791f; }
.c-purple { background: var(--lavender-light); color: var(--purple-accent); }
.card h3 { font-size: 1.6rem; margin-bottom: 15px; font-weight: 800; }
.card p { font-size: 1.1rem; line-height: 1.6; color: var(--text-light); }

/* === GALLERY === */
.polaroid-gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; padding: 20px; }
.polaroid { background: white; padding: 12px 12px 50px 12px; border-radius: 4px; box-shadow: 5px 5px 15px rgba(0,0,0,0.1); width: calc(33.333% - 30px); min-width: 250px; max-width: 320px; transition: var(--transition); position: relative; cursor: pointer; border: 1px solid #eaeaea; }
.polaroid::before { content: ''; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 80px; height: 25px; background: rgba(255, 255, 255, 0.6); border: 1px solid #ddd; z-index: 10; transform: translateX(-50%) rotate(-3deg); opacity: 0.8; }
.polaroid:nth-child(2n) { transform: rotate(4deg); }
.polaroid:nth-child(3n) { transform: rotate(-3deg); }
.polaroid:nth-child(4n) { transform: rotate(2deg); }
.polaroid:hover { transform: scale(1.05) rotate(0deg) !important; z-index: 10; box-shadow: 10px 10px 25px rgba(0,0,0,0.15); }
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }

/* Lightbox */
.lightbox, .popup-overlay { display: none; position: fixed; z-index: 99999; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.85); backdrop-filter: blur(5px); justify-content: center; align-items: center; }
.lightbox-img { max-width: 90%; max-height: 85vh; border-radius: 8px; border: 15px solid white; box-shadow: 0 10px 40px rgba(0,0,0,0.5); animation: zoom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes zoom { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.close-lightbox { position: absolute; top: 20px; right: 40px; color: white; font-size: 50px; cursor: pointer; transition: 0.3s; }
.close-lightbox:hover { color: var(--pink-accent); transform: rotate(90deg); }

/* === QUOTE === */
#quote { text-align: center; background: var(--purple-accent); padding: 80px 10%; margin: 50px 0; }
.quote-box { max-width: 800px; margin: 0 auto; }
.quote-icon { font-size: 3.5rem; color: var(--yellow-pastel); margin-bottom: 20px; opacity: 0.8; }
#quote h2 { font-size: 2.8rem; font-style: italic; color: white; line-height: 1.5; font-weight: 700; }
.quote-stars { font-size: 1.5rem; margin-top: 20px; color: var(--yellow-pastel); letter-spacing: 10px; }

/* === CONTACT === */
#contact { display: flex; flex-direction: column; align-items: center; background: var(--bg-main); }
.social-icons { display: flex; gap: 20px; margin-bottom: 40px; }
.social-icons a { width: 60px; height: 60px; border-radius: 50%; background: white; border: 3px solid var(--text-dark); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--text-dark); text-decoration: none; box-shadow: 4px 4px 0px var(--text-dark); transition: var(--transition); }
.social-icons a:hover { background: var(--pink-accent); color: white; transform: translateY(-5px); box-shadow: 6px 6px 0px var(--text-dark); }
.contact-form { width: 100%; max-width: 650px; background: white; padding: 40px; border-radius: var(--radius-cute); border: 3px solid var(--text-dark); box-shadow: 10px 10px 0px var(--pink-pastel); }
.form-header h3 { text-align: center; font-size: 2rem; margin-bottom: 30px; color: var(--pink-accent); }
.input-group { margin-bottom: 25px; }
.input-group input, .input-group textarea { width: 100%; padding: 18px 20px; border: 2px solid #ddd; border-radius: 12px; font-family: 'Nunito', sans-serif; font-size: 1.1rem; background: #fafafa; transition: var(--transition); outline: none; }
.input-group input:focus, .input-group textarea:focus { border-color: var(--pink-accent); background: white; box-shadow: 0 0 0 4px rgba(255, 117, 143, 0.1); }
.input-group textarea { resize: vertical; min-height: 150px; }
.submit-btn { width: 100%; font-size: 1.3rem; padding: 18px; background: var(--purple-accent); color: white; border-color: var(--text-dark); }
.submit-btn:hover { background: #7a66d6; }

/* Custom Popup */
.popup-box { background: white; padding: 50px 40px; border-radius: 20px; border: 4px solid var(--text-dark); text-align: center; max-width: 400px; width: 90%; transform: scale(0.8); transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 10px 10px 0px var(--purple-accent); }
.popup-overlay.active { display: flex; }
.popup-overlay.active .popup-box { transform: scale(1); }
.popup-box i { font-size: 4rem; margin-bottom: 20px; }
.popup-box.success i { color: #4ecdc4; }
.popup-box.error i { color: #ff6b6b; }
.popup-box h2 { font-size: 2rem; margin-bottom: 10px; }
.popup-box p { font-size: 1.1rem; color: var(--text-light); margin-bottom: 30px; }

/* === FOOTER === */
footer { background: var(--text-dark); color: white; text-align: center; padding: 40px 20px; font-family: 'Quicksand', sans-serif; }
footer p { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
.credits a { color: var(--pink-accent); text-decoration: none; font-weight: 700; transition: color 0.3s; }
.credits a:hover { color: var(--yellow-pastel); }

/* === RESPONSIVE STYLES === */
@media (max-width: 992px) {
    section { padding: 80px 5%; }
    .section-title { font-size: 2.5rem; }
    #home { flex-direction: column-reverse; text-align: center; padding-top: 130px; gap: 30px; }
    .hero-buttons { justify-content: center; }
    .hero-text p { max-width: 100%; }
    .about-container { flex-direction: column; }
    .polaroid { width: calc(50% - 15px); }
}

@media (max-width: 768px) {
    .nav-links { position: fixed; top: 0; left: -100%; width: 100%; height: 100vh; background: rgba(255, 255, 255, 0.98); flex-direction: column; justify-content: center; align-items: center; transition: 0.5s ease; gap: 40px; }
    .nav-links.active { left: 0; }
    .nav-links a { font-size: 1.5rem; }
    .hamburger { display: flex; }
    .hero-title .name { font-size: 2.8rem; }
    #quote h2 { font-size: 1.8rem; }
    .polaroid { width: 100%; max-width: 350px; }
    .contact-form { padding: 30px 20px; }
}