/* Custom Styles for Yoon's Portfolio */

/* Performance Optimizations */
* {
    box-sizing: border-box;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* GPU Acceleration for Animations */
.animate-float,
.animate-float-delayed,
.animate-bounce-slow,
.animate-pulse-slow,
.floating-shape,
.profile-glow {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Content Visibility for Performance */
section {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

/* Optimize Image Rendering */
img {
    content-visibility: auto;
}

/* Custom Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(5deg);
    }
    50% {
        transform: translateY(-20px) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) rotate(-5deg);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.1);
    }
}

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

@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(-3deg);
    }
    25% {
        transform: rotate(3deg) scale(1.02);
    }
    50% {
        transform: rotate(-3deg);
    }
    75% {
        transform: rotate(3deg) scale(1.02);
    }
}

@keyframes jelly {
    0%, 100% {
        transform: scale(1, 1);
    }
    25% {
        transform: scale(0.95, 1.05);
    }
    50% {
        transform: scale(1.05, 0.95);
    }
    75% {
        transform: scale(0.95, 1.05);
    }
}

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

@keyframes pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 107, 157, 0.5), 0 0 10px rgba(255, 107, 157, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 107, 157, 0.8), 0 0 30px rgba(255, 107, 157, 0.5);
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Animation Classes */
.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 4s ease-in-out infinite;
    animation-delay: 1s;
}

.animate-bounce-slow {
    animation: bounce-slow 2s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

.animate-wiggle {
    animation: wiggle 1s ease-in-out infinite;
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-scaleIn {
    animation: scaleIn 0.6s ease-out forwards;
}

.animate-slideDown {
    animation: slideDown 0.5s ease-out forwards;
}

/* Floating Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 { top: 10%; left: 5%; animation-delay: 0s; }
.shape-2 { top: 20%; right: 10%; animation-delay: 1s; }
.shape-3 { top: 50%; left: 3%; animation-delay: 2s; }
.shape-4 { top: 70%; right: 5%; animation-delay: 3s; }
.shape-5 { top: 85%; left: 15%; animation-delay: 4s; }
.shape-6 { top: 40%; right: 2%; animation-delay: 5s; }

/* Navigation Styles */
.nav-link {
    @apply text-gray-600 font-medium hover:text-primary transition-colors duration-300 relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FF6B9D, #FFD93D);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #FF6B9D, #FF8FAB);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
    transition: all 0.3s ease;
}

.nav-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

/* ============================================
   BEAUTIFUL MOBILE HAMBURGER MENU
   Kid-Friendly Teacher Theme with Catchy Animations
   ============================================ */

/* Animated Hamburger Button */
.mobile-hamburger-btn {
    position: relative;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FF6B9D, #FF8FAB);
    border: 3px solid #FFD93D;
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 12px;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.4);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
}

.mobile-hamburger-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 107, 157, 0.5);
}

.mobile-hamburger-btn:active {
    transform: scale(0.95);
}

/* Hamburger Lines */
.hamburger-line {
    display: block;
    width: 22px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Hamburger Animation - Open State */
.mobile-hamburger-btn.active {
    background: linear-gradient(135deg, #6BCB77, #4ade80);
    border-color: #FF6B9D;
    border-radius: 50%;
}

.mobile-hamburger-btn.active .line-1 {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-hamburger-btn.active .line-2 {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-hamburger-btn.active .line-3 {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Menu Container */
.mobile-menu-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #FFF5F7 0%, #FFFBEB 50%, #E8FFF3 100%);
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    box-shadow: 0 20px 60px rgba(255, 107, 157, 0.2);
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
    opacity: 0;
    z-index: 999;
}

.mobile-menu-container.active {
    max-height: 600px;
    opacity: 1;
}

/* Menu Background Pattern */
.mobile-menu-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 107, 157, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(107, 203, 119, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 217, 61, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* Menu Content */
.mobile-menu-content {
    position: relative;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2;
}

/* Menu Items */
.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: white;
    border-radius: 20px;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: #4a5568;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    transform: translateX(-30px);
}

.mobile-menu-container.active .mobile-menu-item {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered Animations */
.mobile-menu-container.active .mobile-menu-item:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu-container.active .mobile-menu-item:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu-container.active .mobile-menu-item:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu-container.active .mobile-menu-item:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu-container.active .mobile-menu-item:nth-child(5) { transition-delay: 0.25s; }

/* Menu Item Hover */
.mobile-menu-item:hover,
.mobile-menu-item:active {
    background: linear-gradient(135deg, #FFF5F7, #FFE8F0);
    border-color: #FF6B9D;
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.2);
}

.mobile-menu-item:active {
    transform: scale(0.98);
}

/* Emoji Icon */
.menu-item-emoji {
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #FFF5F7, #FFFBEB);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-menu-item:hover .menu-item-emoji {
    transform: scale(1.2) rotate(-10deg);
    animation: emojiWiggle 0.5s ease;
}

@keyframes emojiWiggle {
    0%, 100% { transform: scale(1.2) rotate(-10deg); }
    25% { transform: scale(1.3) rotate(5deg); }
    50% { transform: scale(1.1) rotate(-5deg); }
    75% { transform: scale(1.25) rotate(3deg); }
}

/* Menu Item Text */
.menu-item-text {
    flex: 1;
    font-family: 'Nunito', sans-serif;
}

/* Arrow Icon */
.menu-item-arrow {
    font-size: 1.2rem;
    color: #FF6B9D;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.mobile-menu-item:hover .menu-item-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* CTA Button */
.mobile-menu-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 24px;
    margin-top: 10px;
    background: linear-gradient(135deg, #FF6B9D, #FF8FAB);
    border-radius: 25px;
    border: 3px solid #FFD93D;
    color: white;
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(255, 107, 157, 0.4);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    overflow: hidden;
}

.mobile-menu-container.active .mobile-menu-cta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.35s;
}

.mobile-menu-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 107, 157, 0.5);
    background: linear-gradient(135deg, #FF8FAB, #FF6B9D);
}

.mobile-menu-cta:active {
    transform: scale(0.98);
}

/* CTA Sparkles */
.cta-sparkle {
    font-size: 1.2rem;
    animation: sparkleFloat 1.5s ease-in-out infinite;
}

.cta-sparkle:last-child {
    animation-delay: 0.75s;
}

@keyframes sparkleFloat {
    0%, 100% { 
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% { 
        transform: translateY(-5px) scale(1.2);
        opacity: 0.8;
    }
}

/* Decorative Elements */
.mobile-menu-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.deco-item {
    position: absolute;
    font-size: 1.8rem;
    opacity: 0.15;
    animation: floatAround 6s ease-in-out infinite;
}

.deco-1 { top: 10%; right: 10%; animation-delay: 0s; }
.deco-2 { top: 30%; left: 5%; animation-delay: 1s; }
.deco-3 { bottom: 30%; right: 8%; animation-delay: 2s; }
.deco-4 { bottom: 15%; left: 15%; animation-delay: 3s; }
.deco-5 { top: 50%; right: 20%; animation-delay: 4s; }

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

/* Hide decorations when menu is closed */
.mobile-menu-container:not(.active) .mobile-menu-decorations {
    display: none;
}

/* Mobile Menu Responsive Adjustments */
@media (max-width: 480px) {
    .mobile-hamburger-btn {
        width: 45px;
        height: 45px;
    }
    
    .hamburger-line {
        width: 20px;
        height: 2.5px;
    }
    
    .mobile-menu-item {
        padding: 14px 16px;
        gap: 12px;
    }
    
    .menu-item-emoji {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }
    
    .mobile-menu-cta {
        padding: 15px 20px;
        font-size: 1.05rem;
    }
}

@media (max-width: 360px) {
    .mobile-menu-content {
        padding: 15px 12px;
        gap: 8px;
    }
    
    .mobile-menu-item {
        padding: 12px 14px;
        font-size: 0.95rem;
    }
    
    .menu-item-emoji {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
    
    .mobile-menu-cta {
        padding: 14px 18px;
        font-size: 1rem;
    }
    
    .deco-item {
        font-size: 1.4rem;
    }
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF6B9D, #FF8FAB);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #FF6B9D;
    border: 2px solid #FF6B9D;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #FF6B9D;
    color: white;
    transform: translateY(-4px);
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.hover-lift:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(255, 107, 157, 0.15), 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(107, 203, 119, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item img {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 3rem 1.5rem 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery Masonry */
.gallery-masonry {
    animation: fadeInUp 0.8s ease-out;
}

.gallery-masonry .gallery-item {
    animation: pop 0.5s ease-out backwards;
}

.gallery-masonry .gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-masonry .gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-masonry .gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-masonry .gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-masonry .gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-masonry .gallery-item:nth-child(6) { animation-delay: 0.6s; }

/* Education Cards */
.education-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.education-card:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    pointer-events: none;
}

/* Skill Cards */
.skill-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skill-card:hover {
    animation: jelly 0.5s ease;
}

.skill-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: rotate(45deg);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.skill-card:hover::after {
    transform: rotate(45deg) translate(50%, 50%);
}

/* Form Styles */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.2);
}

/* Back to Top Button */
#back-to-top {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    display: flex;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FF6B9D, #FFD93D);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #e55a8a, #e6c235);
}

/* Selection Color */
::selection {
    background: #FF6B9D;
    color: white;
}

/* Loading Animation */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .floating-shape {
        font-size: 1.5rem;
        opacity: 0.05;
    }
    
    .gallery-overlay {
        opacity: 1;
        transform: translateY(0);
        background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.7));
    }
}

/* Print Styles */
@media print {
    .floating-elements,
    #back-to-top,
    nav {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    /* Can be expanded for dark mode support */
}

/* Cute Rainbow Border Animation */
.rainbow-border {
    position: relative;
}

.rainbow-border::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #FF6B9D, #FFD93D, #6BCB77, #4D96FF, #FF6B9D);
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    animation: rainbow 3s ease infinite;
}

@keyframes rainbow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Sparkle Effect */
.sparkle {
    position: relative;
}

.sparkle::before,
.sparkle::after {
    content: '✨';
    position: absolute;
    font-size: 1rem;
    animation: sparkle 2s ease-in-out infinite;
}

.sparkle::before {
    top: -10px;
    left: -10px;
}

.sparkle::after {
    bottom: -10px;
    right: -10px;
    animation-delay: 1s;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #FF6B9D, #FFD93D, #6BCB77);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Heart Pulse Animation */
.heart-pulse {
    animation: heart-pulse 1s ease-in-out infinite;
}

@keyframes heart-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Profile Glow Effect */
.profile-glow {
    position: relative;
    box-shadow: 
        0 0 30px rgba(255, 107, 157, 0.4),
        0 0 60px rgba(255, 107, 157, 0.2),
        0 20px 40px rgba(0, 0, 0, 0.15);
    animation: profileGlow 3s ease-in-out infinite;
}

.profile-glow::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B9D, #FFD93D, #6BCB77, #4D96FF);
    z-index: -1;
    opacity: 0.6;
}

@keyframes profileGlow {
    0%, 100% {
        box-shadow: 
            0 0 30px rgba(255, 107, 157, 0.4),
            0 0 60px rgba(255, 107, 157, 0.2),
            0 20px 40px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 
            0 0 40px rgba(255, 107, 157, 0.5),
            0 0 80px rgba(255, 107, 157, 0.3),
            0 25px 50px rgba(0, 0, 0, 0.2);
    }
}

/* Cute Bubble Animation */
@keyframes bubble {
    0% {
        transform: translateY(100%) scale(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* Shake Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px) rotate(-5deg); }
    75% { transform: translateX(5px) rotate(5deg); }
}

.animate-shake:hover {
    animation: shake 0.5s ease;
}

/* Bounce In Animation */
@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-bounceIn {
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Cute Tag Pills */
.cute-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cute-tag:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Image Frame Effects */
.frame-doodle {
    position: relative;
}

.frame-doodle::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 4px dashed rgba(255, 107, 157, 0.3);
    border-radius: inherit;
    animation: rotate 20s linear infinite;
}

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

/* Sticker Effect */
.sticker {
    position: relative;
    display: inline-block;
}

.sticker::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 5%;
    width: 90%;
    height: 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    filter: blur(3px);
}

/* Typewriter cursor */
.typewriter-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Ribbon Badge */
.ribbon {
    position: absolute;
    top: 20px;
    right: -10px;
    background: linear-gradient(135deg, #FF6B9D, #FF8FAB);
    color: white;
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(255, 107, 157, 0.3);
}

.ribbon::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: -10px;
    border: 5px solid transparent;
    border-top-color: #c9507a;
    border-right-color: #c9507a;
}

/* Smooth Image Loading */
img {
    transition: opacity 0.3s ease;
}

img[loading] {
    opacity: 0;
}

img:not([loading]) {
    opacity: 1;
}

/* Fun Scroll Animation */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Emoji Spin on Hover */
.emoji-spin:hover {
    display: inline-block;
    animation: spin 0.5s ease;
}

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

/* ============================================
   LIGHTBOX STYLES - Full Image View
   ============================================ */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

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

.lightbox-overlay img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(255, 107, 157, 0.3);
    border: 4px solid white;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 50px;
    color: white;
    background: rgba(255, 107, 157, 0.8);
    border: none;
    cursor: pointer;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: #FF6B9D;
    transform: rotate(90deg) scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    background: rgba(255, 107, 157, 0.8);
    border: none;
    cursor: pointer;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: #FF6B9D;
    transform: translateY(-50%) scale(1.15);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.9), rgba(255, 143, 171, 0.9));
    padding: 15px 30px;
    border-radius: 30px;
    max-width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

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

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

/* ============================================
   KID-FRIENDLY CUTE ANIMATIONS
   ============================================ */

/* Social Icon Bounce */
.social-icon-bounce {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.social-icon-bounce:hover {
    transform: translateY(-8px) scale(1.1);
    animation: wiggle 0.5s ease;
}

/* Floating Bubbles Animation */
@keyframes bubbleFloat {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Rainbow Text Animation */
.rainbow-text {
    background: linear-gradient(
        90deg,
        #FF6B9D, #FFD93D, #6BCB77, #4D96FF, #FF6B9D
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowText 3s linear infinite;
}

@keyframes rainbowText {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Cute Wobble on Cards */
.philosophy-card:hover,
.stat-card:hover {
    animation: cuteWobble 0.5s ease;
}

@keyframes cuteWobble {
    0%, 100% { transform: translateY(-8px) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(2deg); }
    75% { transform: translateY(-8px) rotate(-2deg); }
}

/* View Button in Gallery - Themed Style */
.view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    background: linear-gradient(135deg, #FF6B9D, #FF8FAB);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover .view-btn,
.about-photo-item:hover .view-btn {
    background: linear-gradient(135deg, #FFD93D, #FFC107);
    color: #333;
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 217, 61, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

.view-btn:active {
    transform: scale(0.95);
}

/* About Section Photo Items */
.about-photo-item {
    position: relative;
    overflow: hidden;
}

.about-photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 2rem 1rem 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-photo-item:hover .about-photo-overlay {
    opacity: 1;
    transform: translateY(0);
}

.about-photo-overlay .view-btn {
    margin-top: 0;
}

/* Mobile: Always show overlay on about photos */
@media (max-width: 768px) {
    .about-photo-overlay {
        opacity: 1;
        transform: translateY(0);
        padding: 1rem 0.5rem 0.5rem;
    }
    
    .about-photo-overlay .view-btn {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
}

/* Mobile Gallery Improvements */
@media (max-width: 768px) {
    .view-btn {
        padding: 8px 16px;
        font-size: 0.75rem;
        margin-top: 8px;
        border-radius: 20px;
    }
    
    .gallery-overlay {
        padding: 1.5rem 1rem 1rem;
    }
    
    .gallery-overlay span {
        font-size: 0.9rem;
    }
    
    .gallery-overlay p {
        font-size: 0.75rem;
    }
    
    .gallery-item {
        border-radius: 1.5rem;
    }
    
    .gallery-item img {
        min-height: 180px;
    }
}

@media (max-width: 480px) {
    .view-btn {
        padding: 6px 12px;
        font-size: 0.7rem;
        gap: 4px;
    }
    
    .gallery-overlay span {
        font-size: 0.8rem;
    }
}

/* Bouncy Buttons */
.btn-primary:active,
.btn-secondary:active {
    transform: scale(0.95);
}

/* Cute Cursor Trail (optional) */
.cursor-sparkle {
    position: fixed;
    pointer-events: none;
    font-size: 1rem;
    z-index: 9999;
    animation: sparkleTrail 0.8s ease-out forwards;
}

@keyframes sparkleTrail {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.3) translateY(-30px);
    }
}

/* Mobile Responsive Lightbox */
@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 50px;
        height: 50px;
        font-size: 35px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 25px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-caption {
        font-size: 0.9rem;
        padding: 10px 20px;
        bottom: 20px;
    }
    
    .lightbox-overlay img {
        max-width: 95%;
        max-height: 70vh;
    }
}

/* Extra floating shapes */
.shape-7 { top: 30%; left: 85%; animation-delay: 2.5s; }
.shape-8 { top: 60%; left: 8%; animation-delay: 3.5s; }
.shape-9 { top: 5%; left: 50%; animation-delay: 1.5s; }
.shape-10 { top: 95%; left: 70%; animation-delay: 4.5s; }

/* ============================================
   MOBILE MENU ADDITIONAL RESPONSIVE STYLES
   ============================================ */

/* Tablet Portrait (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .mobile-menu-content {
        padding: 24px 20px;
        gap: 12px;
    }
    
    .mobile-menu-item {
        padding: 18px 24px;
        gap: 18px;
        font-size: 1.1rem;
        border-radius: 24px;
    }
    
    .menu-item-emoji {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
        border-radius: 14px;
    }
    
    .mobile-menu-cta {
        padding: 20px 28px;
        font-size: 1.2rem;
        border-radius: 30px;
    }
}

/* Landscape Mode Adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .mobile-menu-container.active {
        max-height: 100vh;
        overflow-y: auto;
    }
    
    .mobile-menu-content {
        padding: 12px;
        gap: 6px;
    }
    
    .mobile-menu-item {
        padding: 10px 14px;
    }
    
    .menu-item-emoji {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .mobile-menu-cta {
        padding: 12px 18px;
        margin-top: 6px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .mobile-menu-item:hover {
        transform: none;
    }
    
    .mobile-menu-item:active {
        background: linear-gradient(135deg, #FFF5F7, #FFE8F0);
        border-color: #FF6B9D;
        transform: scale(0.98);
    }
    
    .mobile-menu-cta:hover {
        transform: none;
    }
    
    .mobile-menu-cta:active {
        transform: scale(0.98);
    }
}

/* Safe area insets for notched devices */
@supports (padding: max(0px)) {
    .mobile-menu-content {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .mobile-menu-item {
        border: 2px solid #333;
    }
    
    .mobile-menu-cta {
        border: 3px solid #000;
    }
}

/* Reduced motion - simplified animations */
@media (prefers-reduced-motion: reduce) {
    .mobile-menu-item,
    .mobile-menu-cta,
    .mobile-hamburger-btn,
    .hamburger-line,
    .deco-item,
    .cta-sparkle {
        animation: none;
        transition: opacity 0.2s ease, background 0.2s ease;
    }
    
    .mobile-menu-container.active .mobile-menu-item,
    .mobile-menu-container.active .mobile-menu-cta {
        transition-delay: 0s;
    }
    
    .mobile-hamburger-btn.active .line-1 {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .mobile-hamburger-btn.active .line-3 {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}
