/* =========================
   GLOBAL THEME (Dark Blue)
   style.css
   ========================= */

:root{
  --bg-main: #0b1f33;        /* page background */
  --bg-section: #102a43;     /* sections / main */
  --bg-card: #143454;        /* cards / blocks */
  --bg-elev: rgba(255,255,255,0.06);

  --text-main: #e6f0ff;      /* headings / key text */
  --text-muted: #b8c7d9;     /* paragraph / secondary */
  --text-dim: rgba(230,240,255,0.75);

  --accent: #4fd1c5;         /* teal accent */
  --accent-2: #60a5fa;       /* blue accent for buttons if needed */

  --border: rgba(230,240,255,0.12);
  --shadow: 0 10px 28px rgba(0,0,0,0.35);

  --radius: 12px;
  --radius-lg: 16px;
  --max: 1100px;

  --pad-x: 42px;
  --pad-x-mobile: 18px;
}

/* Prevent horizontal scroll */
html, body{
  width: 100%;
  overflow-x: hidden;
}

body{
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.75;
  font-size: 18px;
}

/* Links */
a{
  color: inherit;
}

.inline-link{
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid color-mix(in srgb, var(--accent) 70%, transparent);
  transition: opacity .2s ease, border-color .2s ease;
}
.inline-link:hover{
  opacity: 0.85;
  border-bottom-color: var(--accent);
}

/* =========================
   HEADER / NAV (non-home pages)
   ========================= */
header{
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.00));
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 2rem 1rem;
}

header h1{
  font-size: 2.4rem;
  margin: 0 0 0.5rem;
  letter-spacing: 0.2px;
}

header p{
  margin: 0;
  color: var(--text-muted);
  font-size: 1.1rem;
}

nav{
  margin-top: 1rem;
}

nav a{
  margin: 0 14px;
  text-decoration: none;
  color: rgba(230,240,255,0.92);
  font-weight: 600;
  font-size: 1.05rem;
  transition: opacity .2s ease, text-decoration-color .2s ease;
}

nav a:hover{
  opacity: 0.8;
  text-decoration: underline;
  text-decoration-color: rgba(230,240,255,0.65);
}

/* =========================
   MAIN WRAPPER
   ========================= */
main{
  padding: 2rem;
}

.section-wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* A soft section background block when needed */
.section-surface{
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* =========================
   INTRO (home-ish pages)
   ========================= */
.intro.d-flex{
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.intro-text{
  flex: 1 1 420px;
  max-width: 520px;
}

.intro-photo{
  flex: 1 1 320px;
  max-width: 420px;
  text-align: center;
}

.profile-img{
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
  border: 1px solid var(--border);
}

/* =========================
   PROJECT CARDS
   ========================= */
.project-cards{
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 1.25rem auto 0;
  max-width: 1200px;
}

.card-link{
  text-decoration: none;
  color: inherit;
  display: block;
}

.card{
  position: relative;
  width: 350px;
  height: 250px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--bg-card);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
 
body.portfolio .card{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


.card:hover{
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.45);
}

.card::after{
  content: "";
  position: absolute;
  inset: 0;
  /* background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.65)); */
}

.card-text{
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: calc(100% - 26px);
  text-align: center;
  z-index: 1;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.85);
}

.card-text h3{
  margin: 0;
  font-size: 1.15rem;
}

.card-text p{
  margin: 4px 0 0;
  font-size: 0.9rem;
  line-height: 1.2;
  color: rgba(255,255,255,0.92);
}

.card-year{
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 1;
  color: rgba(255,255,255,0.95);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  /* background: rgba(0,0,0,0.35); */
  /* border: 1px solid rgba(255,255,255,0.16); */
}

/* =========================
   FILTER (Portfolio)
   ========================= */

   body.portfolio{
  padding-top: 110px;
}

.filter-wrap{
  padding: 1.5rem 1rem 0.75rem;
}

.filter-bar{
  list-style: none;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin: 0 auto 0.5rem;
}

.filter-btn{
  border: 1px solid var(--border);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--text-main);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
  transition: transform .12s ease, background .2s ease, opacity .2s ease;
}

.filter-btn:hover{
  transform: translateY(-2px);
  opacity: 0.9;
}

.filter-btn.active{
  background: color-mix(in srgb, var(--accent) 25%, rgba(255,255,255,0.04));
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
}

.is-hidden{ display: none !important; }

/* =========================
   GALLERIES (sketch / project images)
   ========================= */
.gallery{
  padding: 2rem;
  text-align: center;
}

.gallery-grid{
  column-count: 3;
  column-gap: 1.5rem;
  padding: 2rem;
}

.gallery-grid img{
  width: 100%;
  margin-bottom: 1.5rem;
  border-radius: 10px;
  break-inside: avoid;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  transition: transform .2s ease;
}

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

/* =========================
   PROJECT PAGES LAYOUTS
   ========================= */
.project-section,
.project-side-by-side,
.project-detail{
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
  max-width: 1100px;
  margin: auto;
}

.project-info,
.project-text{
  flex: 1 1 420px;
  min-width: 300px;
  color: var(--text-muted);
}

.project-media,
.project-image,
.project-media1{
  flex: 1 1 420px;
  min-width: 300px;
}

.project-image img,
.project-media img,
.project-media1 img{
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 10px 26px rgba(0,0,0,0.4);
  display: block;
}

.project-media1{
  flex: 1 1 35%;
  max-width: 380px;
  text-align: center;
}
.project-media1 img{
  width: 100%;
}

/* section divider (webgame) */
.section-divider{
  border: none;
  border-top: 2px dashed color-mix(in srgb, var(--accent) 35%, transparent);
  margin: 3rem auto;
  width: 80%;
}

/* Buttons used on some pages */
.project-link,
.watch-button,
.download-button{
  display: inline-block;
  margin-top: 1rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--accent) 18%, rgba(255,255,255,0.05));
  color: var(--text-main);
  transition: transform .12s ease, opacity .2s ease;
}

.project-link:hover,
.watch-button:hover,
.download-button:hover{
  transform: translateY(-2px);
  opacity: 0.9;
}

/* Interface images row */
.interface-images{
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.interface-images img{
  width: 100%;
  max-width: 320px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

/* Video container (shared) */
.video-container{
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

.video-container iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================
   FOOTER
   ========================= */
footer{
  background: rgba(255,255,255,0.04);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  text-align: center;
  padding: 1.2rem 1rem;
  font-size: 16px;
  margin-top: 2rem;
}

footer a{
  color: rgba(230,240,255,0.9);
  text-decoration: none;
  border-bottom: 1px solid rgba(230,240,255,0.25);
}

footer a:hover{
  border-bottom-color: rgba(230,240,255,0.6);
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 900px){
  body{ font-size: 17px; }
  main{ padding: 1.25rem; }
}

@media (max-width: 768px){
  .gallery-grid{ column-count: 2; padding: 1.25rem; }
  .project-section,
  .project-side-by-side,
  .project-detail{
    padding: 1.25rem;
  }
}

@media (max-width: 520px){
  .gallery-grid{ column-count: 1; }
  .card{ width: 92vw; max-width: 360px; }
}



/* ===== FIX: About page 2-column layout ===== */
.about-layout{
  display: flex !important;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.about-left{
  flex: 1 1 60%;
  min-width: 420px;
}

.about-right{
  flex: 1 1 30%;
  min-width: 280px;
}

/* Mobile: stack to 1 column */
@media (max-width: 768px){
  .about-left,
  .about-right{
    min-width: 100%;
  }
}
