/* =============================================
   pmt.moe - Graffiti meets Editorial
   Colors: #7fff00 #9e9e9e #f4ead5 #ffffff #ff6eb4 #ffd700 #00cfff #1c1c1c
   Fonts: Nunito, Fredoka One, Permanent Marker
   ============================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    background: #ffffff;
    color: #1c1c1c;
    overflow-x: hidden;
    display: flex;
    min-height: 100vh;
}

.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* --- Spring Animation --- */
.spring-bounce {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.spring-bounce:hover {
    transform: scale(1.05);
}

.spring-bounce:active {
    transform: scale(0.97);
}

/* --- Sidebar --- */
.sidebar {
    position: sticky;
    top: 0;
    left: 0;
    width: clamp(220px, 25vw, 320px);
    height: 100vh;
    background: #f4ead5;
    z-index: 100;
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: url(#paper-noise);
    opacity: 0.12;
    background: #f4ead5;
    pointer-events: none;
    z-index: 0;
}

.sidebar-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2.5rem 1.5rem;
}

/* --- Logo --- */
.logo-area {
    margin-bottom: 3rem;
}

.logo-text {
    font-family: 'Fredoka One', cursive;
    font-size: 2.2rem;
    color: #1c1c1c;
    letter-spacing: -0.02em;
    line-height: 1;
}

.logo-dot {
    color: #ff6eb4;
}

.logo-tag {
    font-family: 'Permanent Marker', cursive;
    font-size: 0.75rem;
    color: #9e9e9e;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 0.3rem;
}

/* --- Sidebar Navigation --- */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.5rem;
    text-decoration: none;
    color: #1c1c1c;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.nav-link:hover {
    background: rgba(127, 255, 0, 0.15);
    padding-left: 1rem;
}

.nav-link.active {
    background: rgba(255, 110, 180, 0.15);
    padding-left: 1rem;
}

.nav-marker {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9e9e9e;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.nav-link:hover .nav-marker {
    background: #7fff00;
    transform: scale(1.4);
}

.nav-link.active .nav-marker {
    background: #ff6eb4;
    transform: scale(1.5);
    box-shadow: 0 0 8px rgba(255, 110, 180, 0.5);
}

.nav-text {
    font-family: 'Nunito', sans-serif;
    letter-spacing: 0.02em;
}

/* --- Sidebar Footer --- */
.sidebar-footer {
    margin-top: auto;
    position: relative;
}

.drip-ornament {
    position: absolute;
    width: 20px;
    opacity: 0.6;
}

.drip-1 {
    top: -80px;
    left: 10px;
}

.drip-2 {
    top: -60px;
    right: 20px;
}

.sidebar-copy {
    font-size: 0.7rem;
    color: #9e9e9e;
    margin-top: 1rem;
}

/* --- Main Content --- */
.main-content {
    flex: 1;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    height: 100vh;
}

.section {
    min-height: 100vh;
    padding: 4rem 3rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
}

/* --- Geometric Shapes --- */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.12;
    z-index: 0;
}

.geo-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
}

.geo-circle.geo-small {
    width: 80px;
    height: 80px;
}

.geo-circle.geo-large {
    width: 350px;
    height: 350px;
}

.geo-diamond {
    width: 150px;
    height: 150px;
    transform: rotate(45deg);
    border-radius: 12px;
}

.geo-diamond.geo-large {
    width: 280px;
    height: 280px;
}

.geo-diamond.geo-small {
    width: 70px;
    height: 70px;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 180px solid currentColor;
    background: none !important;
}

.geo-triangle.geo-large {
    border-left-width: 160px;
    border-right-width: 160px;
    border-bottom-width: 280px;
}

.geo-pink {
    background: #ff6eb4;
    color: #ff6eb4;
}

.geo-lime {
    background: #7fff00;
    color: #7fff00;
}

.geo-yellow {
    background: #ffd700;
    color: #ffd700;
}

.geo-blue {
    background: #00cfff;
    color: #00cfff;
}

/* Position geometric shapes per section */
.section-home .geo-circle.geo-pink { top: 10%; right: 5%; }
.section-home .geo-diamond.geo-lime { bottom: 15%; left: -3%; }
.section-home .geo-triangle.geo-yellow { top: 60%; right: 20%; }
.section-home .geo-circle.geo-blue { bottom: 25%; right: 35%; }

.section-work .geo-diamond.geo-pink { top: -5%; right: -5%; }
.section-work .geo-circle.geo-yellow { bottom: 10%; left: 5%; }

.section-about .geo-triangle.geo-lime { top: 5%; right: -8%; }
.section-about .geo-circle.geo-pink { bottom: 20%; left: 10%; }
.section-about .geo-diamond.geo-blue { bottom: 5%; right: 15%; }

.section-services .geo-circle.geo-yellow { top: -10%; left: -5%; }
.section-services .geo-diamond.geo-pink { bottom: 10%; right: 5%; }

.section-contact .geo-triangle.geo-pink { top: 10%; right: 10%; }
.section-contact .geo-circle.geo-lime { bottom: 30%; left: 5%; }
.section-contact .geo-diamond.geo-yellow { top: 40%; right: 30%; }

/* --- Graffiti Text --- */
.graffiti-text {
    font-family: 'Permanent Marker', cursive;
    -webkit-text-stroke: 1px #1c1c1c;
    paint-order: stroke fill;
}

/* --- Spray Tags --- */
.spray-tag {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.spray-tag-hero {
    bottom: 8%;
    right: 5%;
    width: 200px;
}

.spray-tag-about {
    top: 10%;
    left: 5%;
    width: 240px;
}

.spray-tag-contact {
    bottom: 5%;
    left: 10%;
    width: 300px;
}

/* --- Hero Section --- */
.section-home {
    background: #ffffff;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-line {
    display: block;
}

.hero-line-1 {
    font-family: 'Nunito', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #1c1c1c;
}

.hero-line-2 {
    font-size: 6rem;
    color: #ff6eb4;
    line-height: 1.1;
    text-shadow: 3px 3px 0 #ffd700;
    margin: 0.1em 0;
}

.hero-line-3 {
    font-family: 'Nunito', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #1c1c1c;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #9e9e9e;
    font-weight: 600;
    max-width: 480px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* --- CTA Button --- */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #7fff00;
    color: #1c1c1c;
    border: 3px solid #1c1c1c;
    border-radius: 12px;
    font-family: 'Fredoka One', cursive;
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.4s ease;
}

.cta-button:hover::after {
    left: 100%;
}

.cta-button:hover {
    background: #ff6eb4;
    color: #ffffff;
}

.cta-arrow {
    font-size: 1.3rem;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cta-button:hover .cta-arrow {
    transform: translateX(5px);
}

/* --- Section Headers --- */
.section-header {
    position: relative;
    z-index: 1;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 3.5rem;
    color: #1c1c1c;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.section-desc {
    font-size: 1.1rem;
    color: #9e9e9e;
    font-weight: 600;
    max-width: 500px;
}

/* --- Work Grid --- */
.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.work-card {
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid #1c1c1c;
    cursor: pointer;
    position: relative;
}

.work-card-inner {
    position: relative;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.work-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.work-card[data-color="pink"] .work-card-bg { background: #ff6eb4; }
.work-card[data-color="lime"] .work-card-bg { background: #7fff00; }
.work-card[data-color="blue"] .work-card-bg { background: #00cfff; }
.work-card[data-color="yellow"] .work-card-bg { background: #ffd700; }

.work-card:hover .work-card-bg {
    transform: scale(1.1);
}

.work-card-content {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(28, 28, 28, 0.85));
    color: #ffffff;
}

.work-tag {
    display: inline-block;
    font-family: 'Permanent Marker', cursive;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.work-title {
    font-family: 'Fredoka One', cursive;
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.work-desc {
    font-size: 0.85rem;
    opacity: 0.85;
    line-height: 1.4;
}

/* --- About Section --- */
.section-about {
    background: #ffffff;
}

.about-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 900px;
}

.about-lead {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1c1c1c;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.about-body {
    font-size: 1rem;
    color: #9e9e9e;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-block {
    padding: 1.5rem;
    border-radius: 16px;
    border: 3px solid #1c1c1c;
    text-align: center;
    cursor: default;
}

.stat-block[data-accent="pink"] { background: rgba(255, 110, 180, 0.15); }
.stat-block[data-accent="lime"] { background: rgba(127, 255, 0, 0.15); }
.stat-block[data-accent="yellow"] { background: rgba(255, 215, 0, 0.15); }
.stat-block[data-accent="blue"] { background: rgba(0, 207, 255, 0.15); }

.stat-number {
    display: block;
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    color: #1c1c1c;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #9e9e9e;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.3rem;
}

/* --- Services Section --- */
.section-services {
    background: #1c1c1c;
}

.section-services .section-title {
    color: #ffffff;
}

.section-services .section-desc {
    color: #9e9e9e;
}

.services-list {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
}

.service-item:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.06);
}

.service-number {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: #9e9e9e;
    flex-shrink: 0;
    width: 60px;
}

.service-info {
    flex: 1;
}

.service-name {
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.service-desc {
    font-size: 0.9rem;
    color: #9e9e9e;
    line-height: 1.5;
}

.service-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    border-radius: 0 16px 16px 0;
}

.service-accent-pink { background: #ff6eb4; }
.service-accent-lime { background: #7fff00; }
.service-accent-blue { background: #00cfff; }
.service-accent-yellow { background: #ffd700; }

/* --- Contact Section --- */
.section-contact {
    background: #f4ead5;
}

.contact-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    max-width: 900px;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-family: 'Permanent Marker', cursive;
    font-size: 0.85rem;
    color: #1c1c1c;
    letter-spacing: 0.05em;
}

.form-input {
    padding: 0.85rem 1rem;
    border: 3px solid #1c1c1c;
    border-radius: 10px;
    background: #ffffff;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1c1c1c;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    border-color: #ff6eb4;
    box-shadow: 0 0 0 4px rgba(255, 110, 180, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 1rem;
}

.contact-block {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.contact-label {
    font-family: 'Permanent Marker', cursive;
    font-size: 0.75rem;
    color: #9e9e9e;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-value {
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    color: #1c1c1c;
}

/* --- Mobile Menu Toggle --- */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 200;
    width: 48px;
    height: 48px;
    background: #ff6eb4;
    border: 3px solid #1c1c1c;
    border-radius: 12px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
}

.menu-bar {
    display: block;
    width: 22px;
    height: 3px;
    background: #1c1c1c;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-menu-toggle.active .menu-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-toggle.active .menu-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active .menu-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Entrance Animations --- */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatGeo {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

.geo-shape {
    animation: floatGeo 8s ease-in-out infinite;
}

.geo-shape:nth-child(2) { animation-delay: -2s; animation-duration: 10s; }
.geo-shape:nth-child(3) { animation-delay: -4s; animation-duration: 12s; }
.geo-shape:nth-child(4) { animation-delay: -6s; animation-duration: 9s; }

.section.in-view .hero-content,
.section.in-view .section-header,
.section.in-view .work-grid,
.section.in-view .about-content,
.section.in-view .services-list,
.section.in-view .contact-content {
    animation: fadeSlideUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.section .hero-content,
.section .section-header,
.section .work-grid,
.section .about-content,
.section .services-list,
.section .contact-content {
    opacity: 0;
}

.section.active .hero-content,
.section.active .section-header,
.section.active .work-grid,
.section.active .about-content,
.section.active .services-list,
.section.active .contact-content {
    opacity: 1;
    animation: fadeSlideUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        width: 280px;
        left: -300px;
        transition: left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        z-index: 150;
    }

    .sidebar.open {
        left: 0;
    }

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

    .main-content {
        width: 100%;
    }

    .section {
        padding: 3rem 1.5rem;
    }

    .hero-line-2 {
        font-size: 4rem;
    }

    .hero-line-1,
    .hero-line-3 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

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

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .hero-line-2 {
        font-size: 3rem;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .stat-block {
        padding: 1rem;
    }
}
