@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Syne:wght@400;700&display=swap');

@font-face {
    font-family: 'RgBubble';
    src: url('assets/RgBubble-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --paper-1: #f5f1e8;
    --paper-2: #e8e0d1;
    --ink: #2a2723;
    --hybrid-color: #d4af37;
    --highlight: #ff6b6b;
    --shadow: rgba(0, 0, 0, 0.2);
    --tape-blue: rgba(174, 206, 224, 0.6);
    --tape-pink: rgba(224, 174, 203, 0.6);
    --tape-green: rgba(174, 224, 178, 0.6);
    --tape-orange: rgba(224, 197, 174, 0.6);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Mono', monospace;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--paper-2);
    margin: 0;
    padding: 0;
    background-image: 
        url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="%23f5f1e8" opacity="0.3"/></svg>');
    min-height: 100vh;
    overflow-x: hidden;
}

/* Opening Screen */
.opening-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    background-color: #ae9578;
}

.opening-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none" stroke="%23e8e0d1" stroke-width="1" opacity="0.5"/></svg>');
    background-size: 40px 40px;
    pointer-events: none;
}

.opening-screen img {
    width: 15vw;
    height: 15vw;
    max-width: 220px;
    max-height: 220px;
    min-width: 120px;
    min-height: 120px;
    object-fit: cover;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    /* border: 1px solid rgba(42, 39, 35, 0.1); */
}

.opening-screen h1 {
    font-family: 'RgBubble', 'Syne', sans-serif;
    font-size: 4rem;
    margin: 0 0 0.5rem;
    color: var(--ink);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.opening-screen .tagline {
    font-family: 'Space Mono', monospace;
    font-style: bold;
    font-size: 1.8rem;
    margin: 0 0 3rem;
    color:rgb(27, 19, 2);
    position: relative;
    z-index: 2;
}

.opening-screen::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 150px;
    height: 30px;
    /* background-color: var(--tape-blue); */
    transform: rotate(-15deg);
    opacity: 0.7;
    border-radius: 3px;
    /*box-shadow: 0 2px 5px var(--shadow);*/
    z-index: 1;
}

.opening-screen::before {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 10%;
    width: 120px;
    height: 25px;
    /* background-color: var(--tape-pink); */
    transform: rotate(10deg);
    opacity: 0.7;
    border-radius: 3px;
    /*box-shadow: 0 2px 5px var(--shadow);*/
    z-index: 1;
}

/* Portfolio Container */
.portfolio-container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    padding: 2rem;
}

/* Binder Tabs - Responsive */
.binder-tabs {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
    background: linear-gradient(to right, var(--paper-2), var(--paper-1));
    padding: 20px 10px;
    border-radius: 0 15px 15px 0;
    box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--ink);
    border-left: none;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.tab {
    background-color: var(--paper-1);
    color: var(--ink);
    padding: 15px 20px 15px 30px;
    border-radius: 0 15px 15px 0;
    cursor: pointer;
    font-family: 'Syne', sans-serif;
    font-size: clamp(0.8rem, 1.2vw, 1rem); /* Decreased all values */
    font-weight: bold;
    letter-spacing: 1px;
    transition: var(--transition), width 0.3s ease;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--ink);
    border-left: none;
    width: clamp(140px, 15vw, 180px);
    position: relative;
    text-decoration: none;
    text-align: left;
    min-height: 60px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab i {
    margin-right: 10px;
    font-size: 1rem;
    width: 25px;
    text-align: center;
    flex-shrink: 0;
}

.tab:hover {
    background-color: var(--hybrid-color);
    transform: translateX(10px);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
    color: var(--ink);
    width: calc(clamp(140px, 15vw, 180px) + 10px);
}

.tab.active {
    background-color: var(--hybrid-color);
    color: var(--ink);
    font-weight: bold;
    transform: translateX(12px);
    box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.4);
    z-index: 2;
    width: calc(clamp(140px, 15vw, 180px) + 12px);
}

.tab::before {
    content: '';
    position: absolute;
    left: 0;
    top: -2px;
    bottom: -2px;
    width: 12px;
    background: inherit;
    border-radius: 12px 0 0 12px;
    border: 2px solid var(--ink);
    border-right: none;
}

.tab.active::before {
    background-color: var(--hybrid-color);
}

/* Page Content */
.page {
    background-color: var(--paper-1);
    padding: 3rem;
    margin-left: clamp(140px, 15vw, 180px);
    min-height: calc(100vh - 4rem);
    border-radius: 10px;
    box-shadow: 0 5px 25px var(--shadow);
    position: relative;
    overflow-y: auto;
    z-index: 1;
}

.page::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 30px;
    background-color: var(--tape-blue);
    z-index: 1;
    opacity: 0.7;
    border-radius: 3px;
    box-shadow: 0 2px 5px var(--shadow);
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.page-header h2 {
    font-family: 'RgBubble';
    font-size: 3rem;
    color: var(--hybrid-color);
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--hybrid-color);
}

/* Navigation Arrows */
.nav-arrows {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.nav-arrow {
    background-color: var(--paper-2);
    color: var(--ink);
    border: 2px solid var(--ink);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px var(--shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.nav-arrow:hover {
    background-color: var(--hybrid-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px var(--shadow);
}

.nav-arrow.hidden {
    visibility: hidden;
    opacity: 0;
}

/* Bio Section */
.bio-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    margin: 2rem 0;
}

.profile-pic {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 25px var(--shadow);
    border: 3px solid var(--ink);
    position: relative;
    z-index: 2;
}

.profile-pic::after {
    content: "";
    position: absolute;
    top: -15px;
    left: -15px;
    width: 80px;
    height: 25px;
    background-color: var(--tape-orange);
    transform: rotate(-15deg);
    opacity: 0.7;
    border-radius: 3px;
    z-index: 3;
}

.bio-text {
    flex: 1;
    min-width: 300px;
}

.bio-text p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.tools-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 2rem;
    list-style-type: none;
}

.tools-list li {
    background-color: color-mix(in srgb, var(--hybrid-color) 15%, transparent);
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 5px solid var(--hybrid-color);
    font-weight: 500;
    box-shadow: 0 3px 8px var(--shadow);
    transition: var(--transition);
}

.tools-list li:hover {
    transform: translateY(-3px);
    background-color: color-mix(in srgb, var(--hybrid-color) 25%, transparent);
}

/* Brands Section */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.brand-card {
    background-color: var(--paper-1);
    border-radius: 10px;
    padding: 2.5rem;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: var(--transition);
    border: 2px solid var(--ink);
    box-shadow: 0 8px 25px var(--shadow);
    position: relative;
}

.brand-card::before {
    content: "";
    position: absolute;
    top: -10px;
    right: 20px;
    width: 100px;
    height: 25px;
    background-color: var(--tape-orange);
    opacity: 0.7;
    border-radius: 3px;
    z-index: 1;
}

.brand-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px var(--shadow);
    border-color: var(--hybrid-color);
}

.brand-logo-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.brand-logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 2px solid var(--ink);
    border-radius: 8px;
    background-color: white;
    padding: 10px;
}

.brand-logo-text {
    font-family: 'Syne', sans-serif;
    font-weight: bold;
    font-size: 2rem;
    color: var(--ink);
}

.brand-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1.5rem;
}

.tag {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid;
}

.raspy {
    background-color: color-mix(in srgb, #a14ac3 20%, transparent);
    color: #33042c;
    border-color: #1d011a;
}

.zhioma {
    background-color: color-mix(in srgb, #2196F3 20%, transparent);
    color: #0d47a1;
    border-color: #2196F3;
}

/* Hybrid Projects */
.hybrid-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.hybrid-card {
    background-color: var(--paper-1);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: var(--transition);
    box-shadow: 0 8px 25px var(--shadow);
    border: 2px solid var(--ink);
    position: relative;
}

.hybrid-card::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background-color: var(--tape-pink);
    opacity: 0.7;
    border-radius: 3px;
    z-index: 1;
}

.hybrid-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px var(--shadow);
    border-color: var(--hybrid-color);
}

.hybrid-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 2px solid var(--ink);
}

.hybrid-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.hybrid-content h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--hybrid-color);
}

.hybrid-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1.2rem;
}

.hybrid-tag {
    background-color: color-mix(in srgb, var(--hybrid-color) 20%, transparent);
    color: var(--ink);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--hybrid-color);
}

/* Contact Section */
.contact-links {
    list-style-type: none;
    margin-top: 3rem;
}

.contact-links li {
    margin-bottom: 2rem;
}

.contact-links a {
    color: var(--ink);
    text-decoration: none;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    padding: 15px 25px;
    border-radius: 10px;
    background-color: var(--paper-2);
    border: 2px solid var(--ink);
    position: relative;
    z-index: 2;
}

.contact-links a:hover {
    background-color: var(--hybrid-color);
    transform: translateX(15px);
    box-shadow: 0 8px 20px var(--shadow);
}

.contact-links i {
    font-size: 2rem;
    width: 40px;
    color: var(--hybrid-color);
}

.contact-links a:hover i {
    color: var(--ink);
}

.brand-icon {
    width: 40px;          
    height: 40px;      
    object-fit: contain;  
    display: block;       
}

.brand-icon {
    padding: 4px;                     
}


.contact-links a:hover .brand-icon {
    border-color: var(--hybrid-color); 
    transform: scale(1.05);            
}

/* Footer */
.footer-bottom {
    text-align: center;
    padding: 2rem;
    color: var(--ink);
    font-size: 1rem;
    /* margin-top: 3rem;
    background-color: var(--paper-1);
    border-top: 2px solid var(--ink);
    border-radius: 10px 10px 0 0; */
}

/* Process Description */
.process-description {
    background: var(--paper-2);
    padding: 2rem;
    border-radius: 8px;
    margin: 2.5rem 0;
    border-left: 5px solid var(--hybrid-color);
    position: relative;
    z-index: 2;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .portfolio-container {
        padding: 1rem;
    }
    
    .page {
        margin-left: clamp(130px, 14vw, 160px);
        padding: 2rem;
    }
    
    .tab {
        width: clamp(130px, 14vw, 160px);
        padding: 12px 15px 12px 25px;
        font-size: clamp(0.6rem, 1vw, 0.8rem);
        min-height: 55px;
    }
    
    .tab i {
        font-size: 0.9rem;
        width: 22px;
    }
    
    .tab:hover,
    .tab.active {
        width: calc(clamp(130px, 14vw, 160px) + 8px);
        transform: translateX(8px);
    }
}

@media (max-width: 768px) {
    .binder-tabs {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        transform: none;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        padding: 10px;
        border-radius: 0 0 15px 15px;
        background: linear-gradient(to bottom, var(--paper-2), var(--paper-1));
        z-index: 1000;
        height: auto;
        gap: 5px;
        max-height: none;
        overflow: visible;
    }
    
    .tab {
        width: auto;
        padding: 10px 15px;
        border-radius: 8px;
        border: 2px solid var(--ink);
        min-height: auto;
        font-size: 0.7rem;
        margin: 2px;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
        flex: 0 1 auto;
        max-width: 200px;
    }
    
    .tab::before {
        display: none;
    }
    
    .tab:hover, .tab.active {
        transform: translateY(-5px);
        width: auto;
    }
    
    .tab i {
        margin-right: 8px;
        font-size: 0.7rem;
        width: 20px;
    }
    
    .page {
        margin: 80px 1rem 1rem;
        padding: 2rem;
    }
    
    .tab span {
        display: inline-block;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .opening-screen h1 {
        font-size: 3rem;
    }
    
    .opening-screen .tagline {
        font-size: 1.4rem;
    }
    
    .page-header h2 {
        font-size: 2.2rem;
    }
    
    .bio-content {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-pic {
        width: 250px;
        height: 250px;
    }
    
    .brands-grid, .hybrid-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-arrow {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .opening-screen h1 {
        font-size: 2.2rem;
    }
    
    .opening-screen .tagline {
        font-size: 1.2rem;
    }
    
    .page-header h2 {
        font-size: 1.8rem;
    }
    
    .binder-tabs {
        padding: 8px;
        gap: 3px;
    }
    
    .tab {
        padding: 8px 12px;
        font-size: 0.6rem;
        flex: 1 1 auto;
        min-width: 100px;
    }
    
    .tab i {
        font-size: 0.7rem;
        width: 18px;
        margin-right: 6px;
    }
    
    .contact-links a {
        font-size: 1.2rem;
        padding: 12px 20px;
    }
}

/* Hide text on very small screens, show only icons */
@media (max-width: 360px) {
    .tab span {
        display: none;
    }
    
    .tab i {
        margin-right: 0;
        font-size: 1rem;
    }
    
    .tab {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        justify-content: center;
        padding: 0;
    }
}

/* For tablets in portrait mode */
@media (min-width: 769px) and (max-width: 900px) and (orientation: portrait) {
    .tab {
        width: clamp(120px, 12vw, 150px);
        padding: 10px 15px 10px 25px;
        font-size: 0.5rem;
    }
    
    .page {
        margin-left: clamp(120px, 12vw, 150px);
    }
}

/* For very large screens */
@media (min-width: 1600px) {
    .tab {
        width: 200px;
        font-size: 1.1rem;
        min-height: 70px;
    }
    
    .page {
        margin-left: 200px;
    }
    
    .tab i {
        font-size: 1.25rem;
        width: 35px;
    }
}

/* Fix for landscape tablets */
@media (max-width: 1024px) and (orientation: landscape) {
    .binder-tabs {
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .tab {
        padding: 10px 15px 10px 25px;
        min-height: 50px;
    }
}
