/* ============================================
   PLAYFUL PORTFOLIO — Marco.fyi Inspired
   Colorful | Personality | Fun | Alive
   ============================================ */

:root {
    /* Playful Color Palette */
    --mint: #7FEFBD;
    --coral: #FF8A80;
    --lilac: #C3B1E1;
    --yellow: #FFE66D;
    --peach: #FFCAB1;
    --sky: #87CEEB;

    --black: #1a1a1a;
    --gray-900: #2d2d2d;
    --gray-700: #555555;
    --gray-500: #888888;
    --gray-300: #cccccc;
    --gray-100: #f5f5f5;
    --white: #ffffff;

    --bg: #FFFCF7;
    --bg-alt: #FFF8F0;

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Space Grotesk', -apple-system, sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --shadow-color: 0 4px 20px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

::selection {
    background: var(--mint);
    color: var(--black);
}

/* ============================================
   Floating Blobs — Background Magic
   ============================================ */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
    animation: float 20s ease-in-out infinite;
}

.blob--mint {
    width: 400px;
    height: 400px;
    background: var(--mint);
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.blob--coral {
    width: 350px;
    height: 350px;
    background: var(--coral);
    top: 60%;
    right: -5%;
    animation-delay: -5s;
}

.blob--lilac {
    width: 300px;
    height: 300px;
    background: var(--lilac);
    bottom: 20%;
    left: 30%;
    animation-delay: -10s;
}

.blob--yellow {
    width: 250px;
    height: 250px;
    background: var(--yellow);
    top: 40%;
    left: 60%;
    animation-delay: -15s;
}

@keyframes float {
    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); }
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.scrolled {
    background: rgba(255, 252, 247, 0.9);
    backdrop-filter: blur(20px);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
}

.logo-icon {
    color: var(--coral);
    animation: spin 10s linear infinite;
}

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

.nav-pills {
    display: flex;
    gap: 0.75rem;
}

.pill {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid transparent;
    transition: all var(--bounce);
}

.pill--mint {
    background: var(--mint);
    color: var(--black);
}

.pill--mint:hover {
    transform: translateY(-3px) rotate(-2deg);
    box-shadow: var(--shadow-color) rgba(127, 239, 189, 0.4);
}

.pill--coral {
    background: var(--coral);
    color: var(--black);
}

.pill--coral:hover {
    transform: translateY(-3px) rotate(2deg);
    box-shadow: var(--shadow-color) rgba(255, 138, 128, 0.4);
}

.pill--lilac {
    background: var(--lilac);
    color: var(--black);
}

.pill--lilac:hover {
    transform: translateY(-3px) rotate(-2deg);
    box-shadow: var(--shadow-color) rgba(195, 177, 225, 0.4);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    text-align: center;
}

.hero-badge {
    margin-bottom: 2rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
}

.badge--available {
    color: #2d8a4e;
}

.pulse {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 2rem;
    max-width: 900px;
}

.hero-line {
    display: block;
}

.highlight {
    position: relative;
    padding: 0 0.3em;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.highlight--mint {
    background: var(--mint);
}

.highlight--coral {
    background: var(--coral);
}

.highlight--lilac {
    background: var(--lilac);
}

.highlight:hover {
    transform: rotate(-2deg) scale(1.05);
}

.hero-cards {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.floating-card {
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    transition: all var(--bounce);
    cursor: default;
}

.floating-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

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

.card--rotate-left:hover {
    transform: rotate(-8deg) translateY(-8px) scale(1.05);
}

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

.card--rotate-right:hover {
    transform: rotate(8deg) translateY(-8px) scale(1.05);
}

.card--tilt {
    transform: rotate(-2deg);
}

.card-emoji {
    font-size: 2rem;
}

.card-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-700);
    max-width: 500px;
    line-height: 1.7;
}

.scroll-hint {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-500);
    font-size: 0.85rem;
}

.scroll-arrow {
    font-size: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
}

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

/* ============================================
   Marquee
   ============================================ */
.marquee {
    background: var(--black);
    color: var(--white);
    padding: 1rem 0;
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex;
    gap: 2rem;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}

.marquee-track span {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.marquee-dot {
    color: var(--coral);
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ============================================
   Work Section
   ============================================ */
.work {
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
}

.section-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.title-icon {
    font-size: 1.2em;
}

.section-desc {
    color: var(--gray-500);
    font-size: 1.1rem;
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Project Cards */
.project-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all var(--bounce);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-link {
    display: block;
}

.project-visual {
    position: relative;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--white) 100%);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Browser Window Mock */
.project-window {
    width: 100%;
    max-width: 280px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform var(--bounce);
}

.project-card:hover .project-window {
    transform: scale(1.03) rotate(1deg);
}

.window-dots {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-300);
}

.window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
}

.window-dots span:first-child { background: #ff5f57; }
.window-dots span:nth-child(2) { background: #febc2e; }
.window-dots span:nth-child(3) { background: #28c840; }

.window-content {
    padding: 1rem;
    min-height: 150px;
}

/* Mock UI Variants */
.mock-ui {
    display: flex;
    gap: 0.75rem;
    height: 130px;
}

.mock-sidebar {
    width: 50px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
}

.mock-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mock-card {
    flex: 1;
    background: linear-gradient(135deg, var(--mint) 0%, rgba(127, 239, 189, 0.3) 100%);
    border-radius: var(--radius-sm);
}

/* Bank UI */
.mock-ui--bank {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.mock-balance {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--black);
}

.mock-transactions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mock-tx {
    height: 24px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
}

/* Transit UI */
.mock-ui--transit {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.mock-route {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.route-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.route-dot--start { background: var(--lilac); }
.route-dot--end { background: var(--mint); }

.route-line {
    flex: 1;
    height: 4px;
    background: linear-gradient(90deg, var(--lilac), var(--mint));
    border-radius: 2px;
}

.mock-time {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
}

/* Gov UI */
.mock-ui--gov {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
}

.mock-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mock-input {
    height: 28px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
}

.mock-button {
    height: 32px;
    background: var(--yellow);
    border-radius: var(--radius-sm);
}

.mock-check {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 40px;
    height: 40px;
    background: var(--mint);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--black);
}

/* Coming Soon */
.mock-ui--coming-soon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 130px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
}

.coming-soon-icon {
    font-size: 3rem;
}

/* Stickers */
.project-sticker {
    position: absolute;
    font-size: 1.5rem;
    background: var(--white);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    font-weight: 600;
    transition: all var(--bounce);
}

.sticker--1 {
    top: 1rem;
    left: 1rem;
    font-size: 2rem;
    padding: 0.5rem;
    transform: rotate(-10deg);
}

.sticker--2 {
    bottom: 1rem;
    right: 1rem;
    font-size: 0.9rem;
    background: var(--accent, var(--mint));
    transform: rotate(5deg);
}

.sticker--3 {
    bottom: 1rem;
    right: 1rem;
    font-size: 0.85rem;
    background: var(--accent, var(--coral));
    transform: rotate(8deg);
}

.project-card:hover .project-sticker {
    transform: scale(1.1) rotate(0deg);
}

/* Project Info */
.project-info {
    padding: 1.5rem;
}

.project-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
    padding: 0.25rem 0.75rem;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.project-desc {
    color: var(--gray-700);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-cta {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--black);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all var(--transition);
}

.project-card:hover .project-cta {
    color: var(--coral);
    gap: 0.5rem;
}

/* ============================================
   About Section
   ============================================ */
.about {
    padding: 6rem 2rem;
    background: var(--white);
    position: relative;
    z-index: 1;
}

.about-layout {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about-layout {
        grid-template-columns: 300px 1fr;
    }
}

.photo-frame {
    position: relative;
}

.photo-placeholder {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--mint) 0%, var(--lilac) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--bounce);
}

.photo-placeholder:hover {
    transform: rotate(-3deg) scale(1.02);
}

.photo-stickers .sticker-item {
    position: absolute;
    background: var(--white);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transform: rotate(var(--rotate, 0deg));
    left: var(--x, 0);
    top: var(--y, 0);
    transition: all var(--bounce);
    cursor: default;
}

.photo-stickers .sticker-item:hover {
    transform: rotate(0deg) scale(1.1);
    z-index: 10;
}

.about-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.wave {
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
    transform-origin: 70% 70%;
}

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

.about-lead {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.about-lead em {
    font-family: var(--font-display);
    font-style: italic;
    background: linear-gradient(120deg, var(--mint) 0%, var(--mint) 100%);
    background-size: 100% 40%;
    background-repeat: no-repeat;
    background-position: 0 90%;
}

.about-text {
    color: var(--gray-700);
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-fun-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.fun-fact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    transition: all var(--bounce);
}

.fun-fact:hover {
    transform: translateY(-3px);
    background: var(--mint);
}

.fact-emoji {
    font-size: 1.25rem;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--white) 0%, var(--bg) 100%);
}

.contact-content {
    position: relative;
    z-index: 1;
}

.contact-emoji {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

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

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 500;
    margin-bottom: 1rem;
}

.contact-text {
    font-size: 1.1rem;
    color: var(--gray-700);
    max-width: 400px;
    margin: 0 auto 2rem;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--black);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--bounce);
}

.contact-button:hover {
    transform: scale(1.05);
    background: var(--coral);
    color: var(--black);
    box-shadow: var(--shadow-color) rgba(255, 138, 128, 0.4);
}

.btn-icon {
    transition: transform var(--transition);
}

.contact-button:hover .btn-icon {
    transform: translateX(4px);
}

.contact-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.deco {
    position: absolute;
    font-size: 2rem;
    opacity: 0.2;
    animation: float 4s ease-in-out infinite;
}

.deco--1 { top: 20%; left: 10%; color: var(--coral); animation-delay: 0s; }
.deco--2 { top: 30%; right: 15%; color: var(--mint); animation-delay: -1s; }
.deco--3 { bottom: 25%; left: 20%; color: var(--lilac); animation-delay: -2s; }
.deco--4 { bottom: 30%; right: 10%; color: var(--yellow); animation-delay: -3s; }

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 2rem;
    background: var(--black);
    color: var(--white);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
}

.footer-brand .logo-icon {
    color: var(--coral);
}

.footer-year {
    color: var(--gray-500);
    margin-left: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--gray-300);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--mint);
}

.footer-made {
    color: var(--gray-500);
    font-size: 0.85rem;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .nav {
        padding: 1rem;
    }

    .nav-pills {
        gap: 0.5rem;
    }

    .pill {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .hero {
        padding: 7rem 1.5rem 3rem;
    }

    .hero-cards {
        gap: 1rem;
    }

    .floating-card {
        padding: 0.75rem 1rem;
    }

    .projects {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   Accessibility
   ============================================ */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 3px;
}

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

    html {
        scroll-behavior: auto;
    }
}
