/* common.css - Consolidated styles for Nothing Straight website */

/* ================= FONTS ================= */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Caveat&family=Cedarville+Cursive&family=Indie+Flower&family=Nothing+You+Could+Do&family=Oooh+Baby&family=Reenie+Beanie&family=Shadows+Into+Light&family=Roboto:wght@100;200;300;400;500;600;700;800;900&display=swap');

@font-face {
    font-family: 'Whyte Inktrap';
    src: url('../fonts/ABCWhyteInktrap-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: auto;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: #f5f5f5;
    color: #2a2a2a;
    overflow-x: hidden;
   overflow-y: hidden;
}
body.allow-scroll {
    overflow-y: auto;
    height: auto;
}


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

/* ================= FIXED NAVIGATION SYSTEM ================= */
.fixed-nav {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
}

.fixed-nav > * {
    pointer-events: auto;
}

/* Top Navigation Buttons */
.top-buttons {
    position: fixed;
    top: 30px;
    left: 40px;
    display: flex;
    gap: 15px;
    z-index: 100;
    pointer-events: auto;
}

.top-btn {
    padding: 8px 10px;
    background: transparent;
    border: 0.5px solid #0000FF;
    color: #0000FF;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.top-btn:hover,
.top-btn.active {
    background: #0000FF;
    color: white;
}

/* Collection Name Tabs (for collection/style pages) */
.collection-name {
    position: fixed;
    top: 30px;
    left: 40px;
    display: flex;
    align-items: center;
    gap: 0;
    z-index: 100;
    pointer-events: auto;
    margin: 0;
}

.collection-name .tricks {
    margin: 0;
}

.collection-name a {
    display: inline-block;
    padding: 5px 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-right: 5px;
    transition: all 0.3s ease;
    background-color: transparent;
    color: #0000FF;
    border: none;
}

.collection-name .btn-primary {
    background-color: #0a17ff;
    color: #fff;
    padding: 8px 14px;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 12px;
}

.collection-name .btn-outline {
    background-color: transparent;
    color: #0000FF;
}

.collection-name a:hover {
    text-decoration: underline #0000FF;
}

/* Side Text */
.side-text {
    position: fixed;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 500;
    z-index: 100;
    pointer-events: auto;
    text-decoration: none;
    color: #000;
    transition: color 0.3s ease;
}

.side-text:hover {
    color: #0000FF;
}

.side-text.left {
    left: 30px;
    top: 50%;
    transform: rotate(-90deg) translateY(-50%);
    transform-origin: left center;
}

.side-text.right {
    right: 20px;
    top: 50%;
    transform: rotate(90deg) translateY(-50%);
    transform-origin: right center;
}

/* Vertical Right Section (for about/contact pages) */
.vertical-right {
    position: fixed;
    right: 30px;
    top: 50px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 10;
    pointer-events: auto;
}

.vertical-right .v-text {
    writing-mode: vertical-rl;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #0000FF;
}

/* Logo */
.logo-box {
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 100;
    pointer-events: auto;
    transition: transform 0.3s ease;
}

.logo-box:hover {
    transform: scale(1.05);
}

.logo-text {
    background: #0000FF;
    color: white;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.logo-img {
    height: 150px;
    width: auto;
}

/* Fixed Logo (for collection page) */
.fixed-logo {
    position: absolute;
    top: 60px;
    right: 40px;
    transform: rotate(90deg);
    pointer-events: auto;
    transition: transform 0.3s ease;
}

.fixed-logo:hover {
    transform: rotate(90deg) scale(1.1);
}

.fixed-logo img {
    width: 150px;
    height: auto;
}

/* Fixed Items (badges) */
.fixed-item {
    position: absolute;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 500;
    pointer-events: auto;
    cursor: pointer;
    transition: background 0.3s, opacity 0.3s;
}

.fixed-item:hover {
    opacity: 0.8;
}

.fixed-item.collection {
    top: 40px;
    left: 48px;
    background: #0a17ff;
    color: #fff;
    padding: 8px 14px;
    font-weight: 700;
}

.fixed-item.about {
    left: 24px;
    top: 50%;
    transform: rotate(-90deg) translateY(-50%);
}

.fixed-item.contact {
    right: 24px;
    bottom: 40px;
    transform: rotate(90deg);
}

/* Badge System */
.badge {
    position: absolute;
    background: #0a17ff;
    color: #fff;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

.badge:hover {
    background: #0612cc;
}

/* Bottom Contact */
.bottom-contact {
    position: fixed;
    bottom: 30px;
    right: 100px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 100;
    text-decoration: none;
    color: #000;
    transition: color 0.3s ease;
    pointer-events: auto;
}

.bottom-contact:hover {
    color: #0000FF;
}

/* Email Button (contact page) */
.email-btn {
    position: fixed;
    top: 90px;
    left: 40px;
    padding: 10px 20px;
    background: #0000FF;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    z-index: 100;
}

.email-btn:hover {
    background: #0000CC;
}

/* Instagram Link */
.instagram-link {
    position: fixed;
    bottom: 30px;
    right: 250px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    z-index: 10;
    cursor: pointer;
    transition: color 0.3s ease;
    text-decoration: none;
}

.instagram-link:hover {
    color: #0000FF;
}

/* ================= COMMON LAYOUT SECTIONS ================= */
.section {
    position: relative;
    width: 100vw;
    min-height: 100vh;
}

.section.light {
    background: #fff;
    color: #000;
}

.section.dark {
    background: #000;
    color: #fff;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 120px 60px 60px;
}

/* Center Line (for About/Contact pages) */
.center-line {
    position: fixed;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #000;
    z-index: 5;
}

/* ================= SCROLL CONTAINERS ================= */
.scroll-container {
    height: 100vh;
    position: relative;
}

.central-text-container {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.central-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: clamp(30px, 8vw, 50px);
    font-weight: 900;
    letter-spacing: 0.1em;
    color: #000;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
    will-change: opacity, transform;
}

/* ================= ABOUT PAGE SPECIFIC ================= */
.about-container {
    min-height: 100vh;
    background-color: #fff;
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    padding: 0 80px 0 60px;
}

.left-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 60px 60px 60px 40px;
}

.right-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
}

.content {
    font-size: 40px;
    line-height: 1.4;
    text-align: right;
    color: #0000FF;
    max-width: 600px;
}

.image-wrapper {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.profile-image {
    width: 50%;
    height: auto;
    display: block;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.name-top {
    position: absolute;
    top: 50px;
    left: -50px;
    font-size: 15px;
    font-weight: 400;
    color: #000;
}

.name-bottom {
    position: absolute;
    bottom: 50px;
    right: 100px;
    font-size: 15px;
    font-weight: 400;
    color: #000;
    transform: rotate(90deg);
}

/* ================= BRAND NAME / HERO ================= */
.brand-name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.brand-name h1 {
    font-size: 10px;
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: 2px;
}

/* ================= COLLECTION/MASONRY GRID ================= */
.projects-section {
    padding-bottom: 120px;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 40px;
    grid-auto-rows: 80px;
}

/* Editorial Pattern */
.project-card:nth-child(4n + 1) {
    grid-column: span 5;
    grid-row: span 6;
}

.project-card:nth-child(4n + 2) {
    grid-column: span 7;
    grid-row: span 3;
}

.project-card:nth-child(4n + 3) {
    grid-column: span 6;
    grid-row: span 4;
}

.project-card:nth-child(4n + 4) {
    grid-column: span 4;
    grid-row: span 3;
}

.project-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.project-image {
    width: 100%;
    height: 100%;
    background: #c8c8c8;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
    opacity: 0;
    transform: translateY(10px);
    transition: .4s ease;
}

.project-card:hover .project-title {
    opacity: 1;
    transform: translateY(0);
}

/* ================= FOOTER ================= */
footer {
    border-top: 1px solid rgba(0,0,0,.1);
    padding: 40px 0 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(0,0,0,.5);
}

/* ================= FONT CLASSES ================= */
.caveat { font-family: "Caveat", cursive; font-weight: 400; }
.shadows-into-light { font-family: "Shadows Into Light", cursive; font-weight: 400; }
.indie-flower { font-family: "Indie Flower", cursive; font-weight: 400; }
.nothing-you-could-do { font-family: "Nothing You Could Do", cursive; font-weight: 400; }
.oooh-baby { font-family: "Oooh Baby", cursive; font-weight: 400; }
.reenie-beanie { font-family: "Reenie Beanie", cursive; font-weight: 400; }
.cedarville-cursive { font-family: "Cedarville Cursive", cursive; font-weight: 400; }

/* ================= ANIMATIONS ================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Page Load Animation - Applied to all main content */
body {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

body.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* ================= DARK THEME ================= */
body.dark-theme {
    background: #000;
    color: #fff;
}

body.dark-theme .side-text,
body.dark-theme .bottom-contact {
    color: #fff;
}

body.dark-theme .center-line {
    background-color: #fff;
}

body.dark-theme .top-btn {
    background: #fff;
    border-color: #0000FF;
    color: #0000FF;
}

body.dark-theme .top-btn:hover {
    background: #0000FF;
    color: #fff;
}

/* ================= RESPONSIVE DESIGN ================= */

/* Large Tablets and Small Desktops */
@media (max-width: 1200px) {
    .container {
        padding: 100px 60px 60px;
    }

    .about-content {
        padding: 0 60px 0 50px;
    }

    .content {
        font-size: 32px;
    }

    .masonry-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .project-card {
        grid-column: span 3 !important;
    }

    .instagram-link {
        right: 200px;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .container {
        padding: 100px 40px 40px;
    }

    .logo-img,
    .logo-box img {
        height: 120px;
    }

    .about-content {
        padding: 0 60px 0 50px;
    }

    .left-section {
        padding: 40px;
    }

    .right-section {
        padding: 40px;
    }

    .instagram-link {
        right: 170px;
    }
}

/* Mobile Landscape and Small Tablets */
@media (max-width: 768px) {
    .center-line {
        display: none;
    }

    .top-buttons,
    .collection-name {
        top: 20px;
        left: 20px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .top-btn,
    .collection-name a {
        padding: 10px 20px;
        font-size: 11px;
    }

    .side-text.left {
        left: 20px;
        font-size: 12px;
    }

    .side-text.right {
        display: none;
    }

    .logo-box,
    .fixed-logo {
        top: 20px;
        right: 20px;
    }

    .logo-img,
    .logo-box img {
        height: 80px;
    }

    .fixed-logo {
        transform: none;
        top: 25px;
        right: 16px;
        transform: rotate(90deg);
    }

    .fixed-logo img {
        width: 60px;
    }

    .bottom-contact {
        bottom: 20px;
        right: 20px;
        font-size: 12px;
    }

    .container {
        padding: 100px 24px 40px;
    }

    .about-content {
        grid-template-columns: 1fr;
        padding: 140px 30px 100px;
        gap: 40px;
    }

    .left-section {
        padding: 0;
        justify-content: center;
    }

    .content {
        font-size: 28px;
        text-align: center;
        max-width: 100%;
    }

    .right-section {
        padding: 0;
        justify-content: center;
    }

    .image-wrapper {
        max-width: 250px;
    }

    .profile-image {
        width: 70%;
    }

    .name-top {
        top: 20px;
        left: -40px;
        font-size: 14px;
    }

    .name-bottom {
        bottom: 20px;
        right: 50px;
        font-size: 14px;
    }

    .email-btn {
        top: 70px;
        left: 20px;
        font-size: 10px;
        padding: 8px 16px;
    }

    .vertical-right {
        top: 20px;
        right: 20px;
        transform: none;
        flex-direction: row;
        gap: 20px;
        height: auto;
    }

    .vertical-right .v-text {
        writing-mode: horizontal-tb;
        font-size: 10px;
    }

    .instagram-link {
        bottom: 50px;
        right: 20px;
        font-size: 12px;
    }

    .masonry-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        grid-auto-rows: auto;
    }

    .project-card {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    .project-image {
        aspect-ratio: 1 / 1;
    }

/*    .fixed-item.about,
    .fixed-item.contact {
        display: none;
    }
*/
    .fixed-item.collection {
        font-family: Whyte Inktrap, sans-serif;
        top: 16px;
        left: 16px;
        font-size: 8px;
        padding: 4px 7px;
    }

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

/* Mobile Portrait */
@media (max-width: 580px) {
    .top-buttons,
    .collection-name {
        top: 15px;
        left: 15px;
        gap: 8px;
    }

    .top-btn {
        padding: 8px 16px;
        font-size: 10px;
    }

    .collection-name a {
        padding: 4px 7px;
        font-size: 10px;
    }

    .collection-name .btn-primary {
        padding: 5px 10px;
        font-size: 9px;
    }

    .content {
        font-size: 22px;
        line-height: 1.4;
    }

 /*   .side-text.left {
        display: none;
    }*/

    .vertical-right {
        right: 5px;
        top: 15px;
    }

    .logo-img,
    .logo-box img {
        height: 120px;
    }

    .image-wrapper {
        max-width: 200px;
    }

    .profile-image {
        width: 80%;
    }

    .name-top {
        top: 10px;
        left: -40px;
        font-size: 12px;
    }

    .name-bottom {
        bottom: 10px;
        right: 10px;
        font-size: 12px;
    }

    .bottom-contact {
/*        bottom: 15px;
*/      bottom: 70px;  
        right: 15px;
        font-size: 11px;
    }

    .about-content {
        padding: 120px 20px 80px;
    }

    .email-btn {
        top: 60px;
        left: 15px;
        font-size: 9px;
        padding: 7px 14px;
    }

    .instagram-link {
        bottom: 40px;
        right: 15px;
        font-size: 11px;
    }

    .central-text {
        font-size: clamp(35px, 9vw, 60px);
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .about-content {
        padding: 100px 15px 70px;
    }

    .content {
        font-size: 20px;
    }

    .top-btn {
        padding: 7px 14px;
        font-size: 9px;
    }

    .logo-img,
    .logo-box img {
        height: 50px;
    }

    .image-wrapper {
        max-width: 180px;
    }

    .profile-image {
        width: 85%;
    }
}

/*style page content*/
/* ================= STYLE PAGE SPECIFIC ================= */
.style-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 60px;
    text-align: left;
}

.style-text {
    font-size: 48px;
    line-height: 1.6;
    color: #0000FF;
    font-weight: 400;
    position: static;
    transform: none;
    text-align: left;
}

.style-text span {
    display: inline;
}

/* Responsive for style page */
@media (max-width: 1024px) {
    .style-text {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .style-content {
        padding: 0 40px;
    }
    
    .style-text {
        font-size: 32px;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .style-content {
        padding: 0 24px;
    }
    
    .style-text {
        font-size: 24px;
        line-height: 1.5;
    }
}

@media (max-width: 360px) {
    .style-text {
        font-size: 20px;
    }
}