/* ========================= RESET & VARIABLES ========================= */
*, *::before, *::after 
{ 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

:root 
{
    --bg:        #050810;
    --bg2:       #0b0f1a;
    --bg3:       #0f1421;
    --border:    rgba(0,245,255,0.12);
    --cyan:      #00f5ff;
    --pink:      #ff00aa;
    --text:      #e8eaf0;
    --text-dim:  #7a8199;
    --font-head: 'Oxanium', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    --font-body: 'Rajdhani', sans-serif;
}

html, body 
{
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
    cursor: none;
}

/* ========================= CUSTOM CURSOR ========================= */
#customCursor 
{
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--cyan);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: transform 0.1s ease;
    box-shadow: 0 0 8px var(--cyan);
}

#cursorTrail 
{
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1px solid var(--cyan);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9998;
    opacity: 0.5;
    transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
}

/* ========================= CANVAS BACKGROUND ========================= */
#bg-canvas 
{
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ========================= LAYOUT ========================= */
.project-layout 
{
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ========================= LEFT PANEL ========================= */
.project-left 
{
    padding: 3rem;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0,245,255,0.03) 0%, transparent 60%);
}

.back-btn 
{
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--cyan);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    margin-bottom: 2.5rem;
    opacity: 0.7;
    transition: opacity 0.2s;
    width: fit-content;
}

.back-btn:hover 
{ 
    opacity: 1; 
}

.project-left .badge 
{
    padding: .30rem 0.6rem;
    margin-bottom: 1rem;
}

h1 
{
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--cyan), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.subtitle 
{
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
}

/* META GRID */
.meta 
{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.meta > div 
{
    background: var(--bg2);
    border: 1px solid var(--border);
    padding: 0.8rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta span 
{
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--text-dim);
}

.meta strong 
{
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cyan);
}

.description 
{
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* TAGS */
.tags 
{
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tags span 
{
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--cyan);
    border: 1px solid rgba(0,245,255,0.3);
    padding: 0.2rem 0.7rem;
    background: rgba(0,245,255,0.05);
}

/* LINKS */
.links 
{
    display: flex;
    gap: 1rem;
}

.links a 
{
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    padding: 0.6rem 1.4rem;
    text-decoration: none;
    border: 1px solid var(--border);
    color: var(--text-dim);
    transition: all 0.2s;
    text-transform: uppercase;
}

.links a:hover 
{
    border-color: var(--cyan);
    color: var(--cyan);
    background: rgba(0,245,255,0.05);
}

.links a.primary 
{
    background: linear-gradient(90deg, var(--cyan), var(--pink));
    color: var(--bg);
    border: none;
    font-weight: 700;
}

.links a.primary:hover 
{
    opacity: 0.85;
    color: var(--bg);
}

/* ========================= RIGHT PANEL ========================= */
.project-right 
{
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

.preview-grid 
{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.preview-grid > .preview-video:only-child 
{
  grid-column: 1 / -1;
}

.preview-video 
{
    aspect-ratio: 16/9;
    
    background: var(--bg2);
    border: 1px solid var(--border);

    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-video img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-video iframe
{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CONTRIBUTIONS */
.contributions 
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contributions > div 
{
    background: var(--bg2);
    border: 1px solid var(--border);
    padding: 1.2rem;
    border-top: 2px solid var(--pink);
    transition: border-color 0.2s;
}

.contributions > div:hover 
{
    border-color: var(--cyan);
    border-top-color: var(--cyan);
}

.contributions h3 
{
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 0.4rem;
    letter-spacing: 0.05em;
}

.contributions p 
{
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
}

/* ========================= FOOTER ========================= */
.site-footer 
{
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
}

.site-footer span 
{ 
    color: var(--cyan); 
}

/* =========================
    LIGHTBOX
========================= */
#lightbox 
{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: lbFadeIn 0.2s ease;
}

#lightbox.active 
{
  display: flex;
}

#lightbox img 
{
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 60px rgba(0, 245, 255, 0.15);
  cursor: default;
  animation: lbPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#lightbox-close 
{
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  font-size: 1.8rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 10000;
}

#lightbox-close:hover 
{
  opacity: 1;
  transform: scale(1.2);
}

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

@keyframes lbPop 
{
  from 
  { 
    transform: scale(0.85); 
    opacity: 0; 
  }

  to 
  { 
    transform: scale(1);    
    opacity: 1; 
  }
}

/* ========================= RESPONSIVE ========================= */
@media (max-width: 900px) 
{
    .project-layout 
    {
        grid-template-columns: 1fr;
        height: auto;
    }

    .project-left, .project-right 
    {
        padding: 2rem;
    }

    .project-left 
    {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .site-footer 
    {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 1.5rem;
    }

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


 @media (max-width: 480px) 
 {
    .project-left, .project-right 
    {
        padding: 1.5rem;
    }

    h1 
    {
        font-size: 2.2rem;
    }

    .meta 
    {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }

    .links 
    {
        flex-direction: column;
    }

    .links a 
    {
        text-align: center;
    }
}
