/* ========================================
   L2JBaylee - Global Styles
   ======================================== */

:root {
    --pink-50: #fef1f3;
    --pink-100: #ffe4e9;
    --pink-200: #ffccd5;
    --pink-300: #ffb3c1;
    --pink-400: #ff8fa3;
    --pink-500: #ff6b8a;
    --pink-600: #ff4d6d;
    --pink-accent: #ff2d55;
    --lavender: #e8dff5;
    --mint: #d5f5e3;
    --peach: #ffe5d9;
    --cream: #fffbf7;
    --text-dark: #4a3f46;
    --text-light: #7d6b75;
    --white: #ffffff;
    --shadow-soft: 0 4px 20px rgba(255, 107, 138, 0.15);
    --shadow-hover: 0 8px 30px rgba(255, 107, 138, 0.25);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--pink-50);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.7;
}

/* ========================================
   Custom Scrollbar
   ======================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--pink-100);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--pink-400), var(--pink-500));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--pink-500), var(--pink-600));
}

/* ========================================
   Background Decorations
   ======================================== */

/* Background Pattern */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 10 C35 0, 45 0, 50 10 C55 20, 55 30, 50 35 L30 55 L10 35 C5 30, 5 20, 10 10 C15 0, 25 0, 30 10Z' fill='%23ffb3c1'/%3E%3C/svg%3E");
    background-size: 60px 60px;
}

/* Cloud decorations */
.clouds {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.cloud {
    position: absolute;
    background: white;
    border-radius: 100px;
    opacity: 0.7;
    animation: floatCloud 30s infinite linear;
    box-shadow: 0 5px 15px rgba(255, 182, 193, 0.3);
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 50%;
}

.cloud:nth-child(1) {
    width: 120px;
    height: 40px;
    top: 8%;
    left: -150px;
    animation-duration: 35s;
}

.cloud:nth-child(1)::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 20px;
}

.cloud:nth-child(1)::after {
    width: 35px;
    height: 35px;
    top: -15px;
    left: 55px;
}

.cloud:nth-child(2) {
    width: 100px;
    height: 35px;
    top: 20%;
    left: -120px;
    animation-duration: 40s;
    animation-delay: -10s;
}

.cloud:nth-child(2)::before {
    width: 45px;
    height: 45px;
    top: -22px;
    left: 15px;
}

.cloud:nth-child(2)::after {
    width: 30px;
    height: 30px;
    top: -12px;
    left: 50px;
}

.cloud:nth-child(3) {
    width: 80px;
    height: 30px;
    top: 55%;
    left: -100px;
    animation-duration: 45s;
    animation-delay: -20s;
}

.cloud:nth-child(3)::before {
    width: 35px;
    height: 35px;
    top: -18px;
    left: 12px;
}

.cloud:nth-child(3)::after {
    width: 25px;
    height: 25px;
    top: -10px;
    left: 40px;
}

@keyframes floatCloud {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(100vw + 200px)); }
}

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

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.7;
    animation: floatAround 20s infinite ease-in-out;
}

.shape:nth-child(1) {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--pink-200) 0%, transparent 70%);
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--lavender) 0%, transparent 70%);
    top: 60%;
    right: -5%;
    animation-delay: -5s;
}

.shape:nth-child(3) {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--mint) 0%, transparent 70%);
    bottom: 20%;
    left: 10%;
    animation-delay: -10s;
}

.shape:nth-child(4) {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--peach) 0%, transparent 70%);
    top: 30%;
    right: 20%;
    animation-delay: -15s;
}

@keyframes floatAround {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

/* Cute Floating Icons */
.cute-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.cute-icon {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.5;
    animation: floatIcon 15s infinite ease-in-out;
}

.cute-icon:nth-child(1) { top: 15%; left: 5%; animation-delay: 0s; }
.cute-icon:nth-child(2) { top: 25%; right: 8%; animation-delay: -2s; }
.cute-icon:nth-child(3) { top: 45%; left: 3%; animation-delay: -4s; }
.cute-icon:nth-child(4) { top: 65%; right: 5%; animation-delay: -6s; }
.cute-icon:nth-child(5) { top: 80%; left: 8%; animation-delay: -8s; }
.cute-icon:nth-child(6) { top: 10%; right: 15%; animation-delay: -10s; }
.cute-icon:nth-child(7) { top: 55%; right: 12%; animation-delay: -12s; }
.cute-icon:nth-child(8) { top: 35%; left: 10%; animation-delay: -14s; }
.cute-icon:nth-child(9) { top: 75%; right: 18%; animation-delay: -3s; }
.cute-icon:nth-child(10) { top: 90%; left: 15%; animation-delay: -7s; }

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

/* Sparkles */
.sparkles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--pink-500);
    border-radius: 50%;
    animation: sparkle 3s infinite;
    box-shadow: 0 0 10px var(--pink-400);
}

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

/* Stars */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--pink-400);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: twinkle 2s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; transform: scale(1) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.3) rotate(20deg); }
}

/* ========================================
   Header & Navigation
   ======================================== */

.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(255, 107, 138, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(255, 107, 138, 0.3));
    transition: transform 0.3s;
}

.logo:hover img {
    transform: rotate(-5deg) scale(1.05);
}

.logo-text {
    font-family: 'Baloo 2', cursive;
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--pink-500), var(--pink-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    position: relative;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pink-400), var(--pink-500));
    border-radius: 3px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--pink-600);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--pink-500);
    cursor: pointer;
    transition: transform 0.3s;
}

.menu-btn:hover {
    transform: scale(1.1);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    font-family: 'Comfortaa', cursive;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: var(--pink-500);
}

.mobile-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--pink-500);
    cursor: pointer;
}

/* ========================================
   Common Section Styles
   ======================================== */

section {
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--pink-500);
    margin-bottom: 0.75rem;
}

.section-label::before,
.section-label::after {
    content: '✦';
    font-size: 0.7rem;
}

.section-title {
    font-family: 'Comfortaa', cursive;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-dark);
}

.section-title span,
.section-title .highlight {
    color: var(--pink-500);
}

/* ========================================
   Page Header (for inner pages)
   ======================================== */

.page-header {
    padding: 8rem 2rem 4rem;
    text-align: center;
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, var(--pink-100) 0%, var(--pink-50) 100%);
}

.page-header h1 {
    font-family: 'Baloo 2', cursive;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    animation: fadeInDown 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.page-header h1 .highlight {
    background: linear-gradient(135deg, var(--pink-500) 0%, var(--pink-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-header p {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s 0.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* ========================================
   Project Image Styles
   ======================================== */

.project-image .project-img,
.project-image .main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.project-image {
    position: relative;
}

.related-image .project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-image {
    overflow: hidden;
}

.main-image .main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 22px;
}

/* ========================================
   Cards
   ======================================== */

.card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid var(--pink-200);
    box-shadow: 0 4px 15px rgba(255, 107, 138, 0.08);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--pink-400);
    box-shadow: var(--shadow-hover);
}

.card h3 {
    font-family: 'Comfortaa', cursive;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--pink-500), var(--pink-accent));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(255, 77, 109, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(255, 77, 109, 0.4);
}

.btn-primary i {
    animation: wiggle 2s infinite;
}

.btn-secondary {
    background: var(--white);
    color: var(--pink-500);
    border: 2px solid var(--pink-200);
}

.btn-secondary:hover {
    background: var(--pink-100);
    border-color: var(--pink-400);
    transform: translateY(-2px);
}

/* ========================================
   Tags
   ======================================== */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.35rem 0.85rem;
    background: var(--pink-100);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--pink-600);
}

/* ========================================
   Social Links
   ======================================== */

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: var(--white);
    border: 2px solid var(--pink-200);
    color: var(--pink-500);
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-soft);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--pink-400), var(--pink-500));
    color: var(--white);
    border-color: transparent;
    transform: translateY(-4px) rotate(-3deg);
    box-shadow: var(--shadow-hover);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    position: relative;
    z-index: 2;
    padding: 2.5rem 2rem;
    background: var(--white);
    border-top: 2px solid var(--pink-200);
    text-align: center;
}

.footer p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer a {
    color: var(--pink-500);
    text-decoration: none;
    font-weight: 600;
}

.footer .heart-footer {
    color: var(--pink-accent);
    animation: heartbeat 1.5s infinite;
    display: inline-block;
}

/* ========================================
   Animations
   ======================================== */

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

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

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

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

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

/* ========================================
   Utility Classes
   ======================================== */

.text-center { text-align: center; }
.text-light { color: var(--text-light); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 968px) {
    .nav-links {
        display: none;
    }

    .menu-btn {
        display: block;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .social-links {
        flex-wrap: wrap;
    }

    .card {
        padding: 1.5rem;
    }

    .btn {
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
    }
}
