:root{ 
  --bg:#141419;
  --panel:#0f1112;
  --muted:#9aa0a6;
  --accent:#2ad48a;
  --embed:#12ff98;
  --notgood:#ff4d4d;
  --unavailable:#ff4d4d;
  --policyc:#dc6363;
  --rule:#2b2b2b;
  --currentlyavailable:#2ad48a;
}
*{box-sizing:border-box}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    height: 100%;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: rgba(15, 17, 18, 0.9); /* Translucent dark tint matching --panel */
    backdrop-filter: blur(8px); /* Modern frosted-glass effect */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000; /* Ensures it floats on top of everything else */
}

.topbar-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 18px;
    color: var(--currentlyavailable);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg), #070707);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  color: #e6e9eb;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none; /* Removes the underline */
    color: var(--embed);        /* Makes the link inherit the color of its parent text */
}

.card-link {
    text-decoration: none; /* Removes underline from text inside */
    color: inherit;        /* Keeps your original text colors */
}

.group-grid {
    margin-top: 20px;
    display: grid;
    /* Sets up automatic columns that match the 420px max-width of your code cards */
    grid-template-columns: repeat(auto-fit, minmax(340px, 420px));
    gap: 20px;
}

/* Forces the text container and the icon to stay on the same row */
.group-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%; /* Allows it to occupy full width of its grid cell */
    height: 100%; /* Ensures consistent card heights if grid rows expand */
}

/* Prevents the card text from shrinking or squishing */
.card-text {
    flex: 1;
}

/* Adjusts the sizing footprint of the icon */
.group-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0; /* Prevents the image from changing size */
}

.page-rule{border:0;height:2px;background:transparent;box-shadow:inset 0 -1px 0 var(--rule);}
.container{margin-top:88px; max-width:1200px;margin:28px auto;padding:20px}
.title{font-size:26px;margin:6px 0 6px 0;font-weight:700}
.status{color:var(--muted);margin-bottom:18px}
.available{color:var(--accent);font-weight:600}
.unavailable{color:var(--unavailable);font-weight:600}
.currentlyavailable{color:var(--currentlyavailable);font-weight:600}
.notgood{color:var(--notgood);font-weight:600}

.layout{display:grid;grid-template-columns:420px 1fr;gap:36px;align-items:start}
.left h2{margin-top:0}
.about{color:var(--muted);line-height:1.5}
.lead{font-weight:600;margin-bottom:6px}
.skills{color:var(--muted);list-style:disc;margin-left:18px}
.caption{color:var(--muted);list-style:circle;margin-left:18px;font-size:25px}
.caption li{margin-bottom:12px}
.policies{color:var(--policyc);list-style:circle;margin-left:18px;font-size:20px}
.policies li{margin-bottom:12px}

.right{display:flex;flex-direction:column;gap:18px;align-items:flex-start}
.code-card{width:100%;background:linear-gradient(180deg,#121217,#0c0c0d);border-radius:6px;padding:18px;box-shadow:0 6px 18px rgba(0,0,0,0.6);border:1px solid rgba(255,255,255,0.03)}
.code-card.small{max-width:420px}
pre{margin:0;overflow:auto;color:#d6dde8}
code{font-family:SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:13px;display:block}

/* Media card (image placeholders for code screenshots) */
.media-card{background:linear-gradient(180deg,#0f1112,#0b0b0d);border-radius:6px;padding:10px;border:1px solid rgba(255,255,255,0.03);box-shadow:0 6px 18px rgba(0,0,0,0.6);}
.media-card.small{max-width:420px}
.code-image{display:block;width:100%;height:auto;border-radius:4px;border:1px solid rgba(255,255,255,0.03)}
.caption{color:var(--muted);font-size:13px;margin:8px 0 0 0}

/* Responsive YouTube embed */
.showcases {
    margin-top: 32px;
    
    /* 1. Turn on Grid */
    display: grid; 
    
    /* 2. Define the columns: automatically responsive cards, minimum 450px wide */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));         
    /* 3. Space out the elements from each other (row gap, column gap) */
    gap: 24px; 
}
.showcases h2 {
    margin: 0 0 12px 0;
    /* 4. Make sure the heading spans across all grid columns instead of getting squeezed */
    grid-column: 1 / -1; 
}
.showcase-item{margin-bottom:28px}
.showcase-title{font-weight:700;margin:8px 0;color:#e6e9eb}

.video-card {
    background: linear-gradient(180deg, #0f1112, #0b0b0d);
    border-radius: 6px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    
    width: 100%; 
    max-width: 500px; /* Ensures it never stretches too wide on desktop layout */
    box-sizing: border-box;
    text-align: center; /* Centers the caption text */

    /* 1. Turn on Flexbox and make elements stack from top to bottom */
    display: flex;
    flex-direction: column;
    
    /* 2. Horizontally centers everything inside the card */
    align-items: center; 
    
    /* 3. Ensures the elements fill the height and can push apart vertically */
    justify-content: space-between;
}
.video-card iframe {
    display: block;  
    width: 100%;       /* 3. Forces the video frame to fill up the card container width */
    height: auto;      /* Allows the browser to compute height automatically */
    aspect-ratio: 16 / 9; /* 4. Keeps the crisp widescreen proportions when resizing */
    border: 0;    
}

/* .video-card.small{max-width:500px} */

/* responsive */
@media (max-width:880px){
    .layout{grid-template-columns:1fr;}
    .left{order:2}
    .right{order:1}
    .topbar-container {
        flex-direction: column;
        height: auto;
        padding: 12px 16px;
        gap: 12px;
    }

    .topbar {
        height: auto; /* Allows the topbar height to adjust dynamically */
    }

    .nav-links {
        flex-wrap: wrap; /* Allows links to drop to the next row if they run out of room */
        justify-content: center; /* Centers the links nicely on the screen */
        gap: 12px 18px; /* 12px gap between rows, 18px gap between links */
    }

    .container {
        margin-top: 130px; /* Accounts for the taller stacked header */
    }

    html {
        scroll-padding-top: 135px;
    }
}
