/* recycle.studio - Holographic Creative Studio */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #f5f0e8 (warm off-white), #e8b84b (accent gold), #6c757d (muted gray) */
/* Fonts: Arvo (display slab-serif), Inter (body humanist sans) */

:root {
    --deep-base: #1a1a2e;
    --primary-blue: #4a90d9;
    --warm-offwhite: #f5f0e8;
    --accent-gold: #e8b84b;
    --muted-gray: #6c757d;
    --neon-teal: #50e3c2;
    --neon-lime: #b8e986;
    --sidebar-width: 260px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--deep-base);
    color: var(--warm-offwhite);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: rgba(26, 26, 46, 0.95);
    border-right: 1px solid rgba(74, 144, 217, 0.15);
    display: flex;
    flex-direction: column;
    padding: 32px 24px;
    z-index: 100;
    backdrop-filter: blur(20px);
}

.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(
        180deg,
        #4a90d9 0%,
        #e8b84b 25%,
        #50e3c2 50%,
        #e8b84b 75%,
        #4a90d9 100%
    );
    opacity: 0.5;
    animation: holoShimmer 4s linear infinite;
}

@keyframes holoShimmer {
    0% { background-position: 0 0; }
    100% { background-position: 0 200%; }
}

.sidebar-header {
    margin-bottom: 48px;
}

.logo-mark {
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

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

.logo-mark svg {
    filter: drop-shadow(0 0 8px rgba(74, 144, 217, 0.4));
}

.logo-text {
    font-family: 'Arvo', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--warm-offwhite);
    letter-spacing: -0.02em;
}

.logo-dot {
    color: var(--accent-gold);
}

/* ===== NAV LINKS ===== */
.nav-links {
    list-style: none;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    margin-bottom: 4px;
    border-radius: 10px;
    cursor: pointer;
    color: var(--muted-gray);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-item:hover {
    color: var(--warm-offwhite);
    background: rgba(74, 144, 217, 0.08);
}

.nav-item.active {
    color: var(--warm-offwhite);
    background: rgba(74, 144, 217, 0.12);
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.nav-label {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.holo-accent {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    border-radius: 2px;
    background: linear-gradient(180deg, #4a90d9, #50e3c2, #e8b84b);
    transition: height 0.3s ease;
}

.nav-item.active .holo-accent {
    height: 24px;
}

.nav-item:hover .holo-accent {
    height: 16px;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 24px;
}

.holo-bar {
    height: 2px;
    background: linear-gradient(90deg, #4a90d9, #e8b84b, #50e3c2, #e8b84b, #4a90d9);
    background-size: 200% 100%;
    animation: holoBarSlide 3s linear infinite;
    border-radius: 1px;
    margin-bottom: 16px;
}

@keyframes holoBarSlide {
    0% { background-position: 0 0; }
    100% { background-position: 200% 0; }
}

.sidebar-tagline {
    font-size: 0.75rem;
    color: var(--muted-gray);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ===== MOBILE TOGGLE ===== */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 200;
    width: 44px;
    height: 44px;
    background: rgba(26, 26, 46, 0.9);
    border: 1px solid rgba(74, 144, 217, 0.3);
    border-radius: 10px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    backdrop-filter: blur(10px);
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--warm-offwhite);
    border-radius: 1px;
    transition: all 0.3s ease;
}

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

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    position: relative;
}

.content-section {
    display: none;
    padding: 60px 64px;
    min-height: 100vh;
    animation: fadeBlurIn 0.6s ease forwards;
}

.content-section.active {
    display: block;
}

@keyframes fadeBlurIn {
    from {
        opacity: 0;
        filter: blur(8px);
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

/* ===== HOLO TEXT ===== */
.holo-text {
    background: linear-gradient(
        135deg,
        #4a90d9 0%,
        #50e3c2 20%,
        #e8b84b 40%,
        #f5f0e8 50%,
        #e8b84b 60%,
        #50e3c2 80%,
        #4a90d9 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: holoTextShift 5s ease infinite;
}

@keyframes holoTextShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-family: 'Arvo', serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.15;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--muted-gray);
    margin-bottom: 48px;
    max-width: 500px;
}

/* ===== HERO ===== */
.hero-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: calc(100vh - 200px);
    gap: 64px;
}

.hero-text {
    max-width: 540px;
    flex-shrink: 0;
}

.hero-text .section-title {
    font-size: 3.2rem;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(245, 240, 232, 0.7);
    margin-bottom: 40px;
}

/* ===== CTA BUTTON ===== */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: transparent;
    border: 1px solid rgba(74, 144, 217, 0.5);
    border-radius: 50px;
    color: var(--warm-offwhite);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 300%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 217, 0.15), rgba(232, 184, 75, 0.15), rgba(80, 227, 194, 0.15), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 0 20px rgba(74, 144, 217, 0.2), 0 0 40px rgba(80, 227, 194, 0.1);
    transform: translateY(-2px);
}

/* ===== HERO VISUAL ===== */
.hero-visual {
    position: relative;
    width: 400px;
    height: 400px;
    flex-shrink: 0;
}

.iso-scene {
    position: relative;
    width: 100%;
    height: 100%;
}

.iso-tree {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: floatY 6s ease-in-out infinite;
}

.iso-leaf {
    position: absolute;
    bottom: 60px;
    left: 30px;
    animation: floatY 5s ease-in-out infinite 1s;
}

.iso-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spinSlow 20s linear infinite;
}

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

.iso-tree {
    animation: floatTree 6s ease-in-out infinite;
}

@keyframes floatTree {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-12px); }
}

@keyframes spinSlow {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.holo-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(80, 227, 194, 0.15), rgba(74, 144, 217, 0.1), rgba(232, 184, 75, 0.05), transparent);
    border: 1px solid rgba(74, 144, 217, 0.2);
    filter: blur(1px);
    animation: orbPulse 4s ease-in-out infinite;
}

@keyframes orbPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.08); opacity: 0.9; }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 64px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted-gray);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-line {
    width: 40px;
    height: 1px;
    background: var(--muted-gray);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-blue);
    animation: scrollLineMove 2s ease-in-out infinite;
}

@keyframes scrollLineMove {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.gallery-card {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(74, 144, 217, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
}

.gallery-card:hover {
    border-color: rgba(74, 144, 217, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(74, 144, 217, 0.08);
}

.card-visual {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.4s ease;
}

.gallery-card:hover .card-bg {
    filter: brightness(1.1);
}

.card-icon {
    opacity: 0.9;
    transition: transform 0.4s ease;
}

.gallery-card:hover .card-icon {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.gallery-card:hover .card-overlay {
    opacity: 1;
}

.view-project {
    padding: 10px 24px;
    border: 1px solid rgba(245, 240, 232, 0.5);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--warm-offwhite);
}

.card-info {
    padding: 20px 24px;
}

.card-info h3 {
    font-family: 'Arvo', serif;
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: var(--warm-offwhite);
}

.card-info p {
    font-size: 0.85rem;
    color: var(--muted-gray);
    margin-bottom: 12px;
    line-height: 1.5;
}

.card-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(74, 144, 217, 0.12);
    color: var(--primary-blue);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* ===== ABOUT ===== */
.about-layout {
    display: flex;
    gap: 80px;
    align-items: flex-start;
    margin-bottom: 64px;
}

.about-text {
    flex: 1;
    max-width: 560px;
}

.about-lead {
    font-family: 'Arvo', serif;
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 24px;
    color: var(--warm-offwhite);
}

.about-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(245, 240, 232, 0.65);
    margin-bottom: 16px;
}

.about-visual {
    flex-shrink: 0;
}

.ecosystem-diagram svg {
    animation: spinSlow 30s linear infinite;
}

.orbit-node circle {
    transition: all 0.3s ease;
}

.stats-row {
    display: flex;
    gap: 64px;
    padding-top: 48px;
    border-top: 1px solid rgba(74, 144, 217, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-number {
    font-family: 'Arvo', serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--muted-gray);
    letter-spacing: 0.03em;
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.service-card {
    padding: 36px;
    border-radius: 16px;
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(74, 144, 217, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 144, 217, 0.05), rgba(232, 184, 75, 0.03), rgba(80, 227, 194, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    border-color: rgba(74, 144, 217, 0.2);
    transform: translateY(-2px);
}

.service-icon {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-family: 'Arvo', serif;
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--warm-offwhite);
    position: relative;
    z-index: 1;
}

.service-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(245, 240, 232, 0.6);
    position: relative;
    z-index: 1;
}

/* ===== CONTACT ===== */
.contact-layout {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.contact-form-wrap {
    flex: 1;
    max-width: 520px;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted-gray);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(74, 144, 217, 0.15);
    border-radius: 10px;
    color: var(--warm-offwhite);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 15px rgba(74, 144, 217, 0.15);
}

.input-holo {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4a90d9, #50e3c2, #e8b84b);
    transition: all 0.4s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

.form-group input:focus ~ .input-holo,
.form-group textarea:focus ~ .input-holo {
    width: 100%;
}

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

.contact-info {
    flex-shrink: 0;
    min-width: 240px;
}

.info-block {
    margin-bottom: 32px;
}

.info-block h4 {
    font-family: 'Arvo', serif;
    font-size: 0.95rem;
    color: var(--warm-offwhite);
    margin-bottom: 10px;
}

.info-block p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(245, 240, 232, 0.6);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--neon-teal);
}

/* ===== PROJECT OVERLAY ===== */
.project-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.92);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.project-detail-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.overlay-content {
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    padding: 48px;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(74, 144, 217, 0.2);
    border-radius: 20px;
    transform: scale(0.95);
    transition: transform 0.4s ease;
}

.project-detail-overlay.active .overlay-content {
    transform: scale(1);
}

.overlay-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--muted-gray);
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
}

.overlay-close:hover {
    color: var(--warm-offwhite);
}

.overlay-body h2 {
    font-family: 'Arvo', serif;
    font-size: 2rem;
    margin-bottom: 16px;
}

.overlay-body p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(245, 240, 232, 0.7);
    margin-bottom: 16px;
}

.overlay-body .overlay-tags {
    display: flex;
    gap: 8px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.overlay-body .overlay-tag {
    padding: 6px 16px;
    background: rgba(74, 144, 217, 0.12);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary-blue);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-area {
        flex-direction: column;
        text-align: center;
    }
    .hero-visual {
        width: 300px;
        height: 300px;
    }
    .about-layout {
        flex-direction: column;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .contact-layout {
        flex-direction: column;
    }
    .stats-row {
        flex-wrap: wrap;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.4s ease;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .mobile-toggle {
        display: flex;
    }
    .main-content {
        margin-left: 0;
    }
    .content-section {
        padding: 80px 24px 40px;
    }
    .scroll-indicator {
        left: 24px;
    }
    .section-title {
        font-size: 2rem;
    }
    .hero-text .section-title {
        font-size: 2.2rem;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .stat-number {
        font-size: 2rem;
    }
}
