:root {
    --color-bg: #0B0C0E;
    --color-surface: #14161A;
    --color-surface-hover: #1C1F26;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-glow: rgba(130, 170, 255, 0.3);
    --color-primary: #82AAFF;
    --color-primary-glow: rgba(130, 170, 255, 0.15);
    --color-accent: #C3E88D;
    --color-text-light: #F7F8FA;
    --color-text-muted: #9499A8;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--color-bg);
    color: var(--color-text-light);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Page container */
.project-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top bar navigation */
.project-top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 40px;
    background: linear-gradient(to bottom, rgba(11, 12, 14, 0.9) 0%, rgba(11, 12, 14, 0) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.back-btn {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid var(--color-border);
    padding: 10px 22px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
}

.back-btn:hover {
    background: #fff;
    color: #0B0C0E;
    border-color: #fff;
    transform: translateX(-3px);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-pill {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    min-height: 42px;
}

.btn-primary {
    background: #82AAFF;
    color: #0B0C0E;
    font-weight: 600;
    border: 1px solid #82AAFF;
    box-shadow: 0 4px 20px rgba(130, 170, 255, 0.3);
}

.btn-primary:hover {
    background: #a1c2ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(130, 170, 255, 0.45);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Project Hero */
.project-hero {
    padding: 160px 24px 60px;
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.25);
    color: #4ade80;
    padding: 4px 14px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-tag .live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
}

.project-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1.1;
    margin: 0 0 18px;
    font-weight: 700;
    background: linear-gradient(180deg, #FFFFFF 0%, #D0D4DD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.45rem);
    color: var(--color-text-muted);
    font-weight: 300;
    max-width: 680px;
    margin: 0 auto 36px;
    font-style: italic;
    font-family: var(--font-heading);
}

/* Project Meta Grid */
.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 50px;
    padding: 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
}

.meta-item {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    font-weight: 600;
}

.meta-val {
    font-size: 14px;
    color: var(--color-text-light);
    font-weight: 500;
}

.meta-val a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.meta-val a:hover {
    text-decoration: underline;
    color: #fff;
}

/* Hero Showcase Image */
.hero-showcase {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto 80px;
    padding: 0 24px;
}

.showcase-frame {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #14161A;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(130, 170, 255, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.showcase-frame:hover {
    transform: translateY(-4px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 60px rgba(130, 170, 255, 0.18);
}

.showcase-bar {
    height: 40px;
    background: #16181C;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.browser-dot:nth-child(1) { background: #FF5F56; }
.browser-dot:nth-child(2) { background: #FFBD2E; }
.browser-dot:nth-child(3) { background: #27C93F; }

.browser-address {
    margin-left: 12px;
    flex: 1;
    max-width: 320px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 11px;
    color: #9499A8;
    text-align: center;
    letter-spacing: 0.5px;
}

.showcase-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Project Content Container */
.project-content {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px 100px;
}

.section-block {
    margin-bottom: 90px;
}

.section-eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin: 0 0 20px;
    line-height: 1.2;
}

.lead-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #E2E4E9;
    margin-bottom: 24px;
}

p {
    line-height: 1.8;
    font-size: 17px;
    color: #C1C6D2;
    margin-bottom: 20px;
}

/* Feature Cards Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 36px;
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 28px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    background: var(--color-surface-hover);
    border-color: rgba(130, 170, 255, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    font-size: 28px;
    margin-bottom: 16px;
    display: inline-block;
}

.feature-heading {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin: 0 0 10px;
    color: #FFFFFF;
}

.feature-card p {
    font-size: 15px;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.65;
}

/* Screenshot Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
    gap: 28px;
    margin-top: 36px;
}

.gallery-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gallery-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.gallery-img-wrap {
    overflow: hidden;
    position: relative;
    background: #000;
}

.gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img {
    transform: scale(1.03);
}

.gallery-caption {
    padding: 20px 24px;
}

.gallery-caption h4 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
}

.gallery-caption p {
    margin: 0;
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Tech Stack Tags */
.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tech-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    color: #E2E4E9;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tech-pill:hover {
    background: rgba(130, 170, 255, 0.12);
    border-color: rgba(130, 170, 255, 0.4);
    color: #82AAFF;
    transform: translateY(-2px);
}

/* Bottom CTA Banner */
.project-cta-banner {
    background: linear-gradient(135deg, rgba(22, 24, 28, 0.95) 0%, rgba(15, 16, 19, 0.95) 100%);
    border: 1px solid rgba(130, 170, 255, 0.2);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.project-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(130, 170, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    margin: 0 0 14px;
}

.cta-sub {
    font-size: 16px;
    color: var(--color-text-muted);
    max-width: 500px;
    margin: 0 auto 28px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Footer credits */
.project-footer {
    border-top: 1px solid var(--color-border);
    padding: 40px 24px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 14px;
}

/* Mobile Responsiveness */
@media screen and (max-width: 840px) {
    .project-top-nav {
        padding: 16px 20px;
    }
    
    .project-hero {
        padding: 120px 20px 40px;
    }
    
    .project-meta-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 18px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-img {
        height: 240px;
    }
}

@media screen and (max-width: 540px) {
    .project-top-nav {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .top-actions {
        justify-content: space-between;
    }
    
    .project-meta-grid {
        grid-template-columns: 1fr;
    }
    
    .project-cta-banner {
        padding: 36px 20px;
    }
}
