/* ===========================
   BASE THEME
   =========================== */

html {
  scroll-behavior: smooth;
}

@font-face {
  font-family: "Plain";
  src: url("../fonts/Plain-Regular.woff2") format("woff2"),
    url("../fonts/Plain-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Plain";
  src: url("../fonts/Plain-Light.woff2") format("woff2"),
    url("../fonts/Plain-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Plain";
  src: url("../fonts/Plain-Bold.woff2") format("woff2"),
    url("../fonts/Plain-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
}

:root {
  --accent: #740a05;
  --accent-light: #b6261b;
  --accent-soft: #f1917a;
  --bg-dark: #050505;

  --radius-lg: 20px;
  --radius-full: 999px;

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.8);
  --muted: rgba(255, 255, 255, 0.6);

  --glass-bg: rgba(0, 0, 0, 0.65);
  --glass-border: rgba(255, 255, 255, 0.16);
}

body {
  background-color: var(--bg-dark); /* one solid color */
  color: var(--text-primary);
  font-family: "Plain", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  overflow-x: hidden;
}

.section {
  padding: 60px 0;
}

/* ===========================
     TYPOGRAPHY
     =========================== */

h1,
h2,
h3,
h4 {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2.1rem;
}

p {
  color: var(--text-secondary);
}

.service-icon {
  font-size: 48px;
  color: var(--accent-soft);
  opacity: 0.9;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.glass-card:hover .service-icon {
  transform: translateY(-4px) scale(1.05);
  opacity: 1;
}

/* ===========================
     NAVBAR
     =========================== */
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4);
  padding: 0.25rem 0.4rem;
}

/* White burger bars so they show on dark background */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.glass-nav {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(0, 0, 0, 0.9) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.glass-nav.scrolled {
  background: rgba(0, 0, 0, 0.98) !important;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}

.navbar-brand {
  color: #ffffff !important;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 12px rgba(116, 10, 5, 0.8);
}

.nav-item .nav-link {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.5rem 0.9rem !important;
  border-radius: 999px;
}

.nav-item .nav-link:hover,
.nav-item .nav-link.active {
  color: #ffffff !important;
  background: #5e4d19;
}

.social-icon {
  padding: 0;
  margin: 0;
}

.social-icon li {
  display: inline-block;
  list-style: none;
}

.social-icon li a {
  color: rgba(255, 255, 255, 0.7);
  margin-left: 8px;
  font-size: 1rem;
}

.social-icon li a:hover {
  color: var(--accent-soft);
}

/* ===========================
     HERO
     =========================== */

.hero-section {
  min-height: 100vh;
  padding-top: 120px;
  position: relative;
  background: url("../images/WebsiteGameLogo.png") center top / cover no-repeat; /* hero canvas image */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-card h1 {
  background: linear-gradient(135deg, #ffffff, var(--accent-soft), #ffffff);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-eyebrow {
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--muted);
}

.hero-logo-card {
  padding: 2.3rem 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-logo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
}

.hero-company-logo {
  max-width: 250px;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.9);
}

/* Hero tabs */

.hero-toggle .nav-link {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* ===========================
     GLASS CARD
     =========================== */

.glass-card {
  padding: 2.5rem 2.3rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: var(--glass-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
}

/* ===========================
     BUTTONS
     =========================== */

.custom-btn {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  border-radius: var(--radius-full);
  padding: 0.7rem 1.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  color: #ffffff;
}

.custom-btn:hover {
  color: #ffffff;
  opacity: 0.95;
}

.custom-btn.bordered {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent-soft);
  box-shadow: none;
}

/* ===========================
     ABOUT
     =========================== */

.about-logo {
  width: 130px;
  height: 130px;
  border-radius: 16px;
  object-fit: cover;
}

/* ===========================
     GALLERY
     =========================== */

.gallery-item {
  padding: 0.9rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
}

.gallery-img {
  border-radius: 12px;
}

/* ===========================
     FOOTER
     =========================== */

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card,
#services .glass-card {
  min-height: 230px;
}

.site-footer p {
  color: var(--muted);
}

/* ===========================
     RESPONSIVE
     =========================== */

@media (max-width: 991.98px) {
  .section {
    padding: 70px 0;
  }

  .hero-section {
    padding-top: 100px;
  }

  .navbar-collapse {
    background: rgba(0, 0, 0, 0.96);
    padding: 0.5rem 1rem 1rem;
  }
}

@media (max-width: 767.98px) {
  h1 {
    font-size: 2.1rem;
  }

  h2 {
    font-size: 1.7rem;
  }
  .glass-card {
    padding: 1.8rem 1.6rem;
  }

  .hero-card {
    max-width: 100%;
  }

  .hero-logo-card {
    max-width: 100%;
  }
}
/* ===========================
   PORTFOLIO PAGE
   =========================== */

/* Hero section for portfolio */
.portfolio-hero {
  padding-top: 120px;
  padding-bottom: 60px;
}

.portfolio-summary {
  font-size: 0.9rem;
}

/* Make columns flex so cards can stretch equally */
.section .row > .col-md-6.col-lg-4 {
  display: flex;
}

/* Base project card */
.project-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Clickable top area of card */
.project-toggle {
  border: none;
  background: transparent;
  color: inherit;
  padding: 1.7rem 1.6rem 1.6rem;
  width: 100%;
  text-align: left;
  display: block;
  position: relative;
  cursor: pointer;
  flex: 1 0 auto;
}

/* Header row: title + pills */
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.project-title-group {
  display: flex;
  flex-direction: column;
}

.project-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 0.1rem;
}

.project-title {
  font-size: 1.1rem;
}

.project-meta {
  font-size: 0.7rem;
}

.project-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-left: 0.25rem;
}

/* Preview image area (kept uniform) */
.project-preview {
  margin-top: 1rem;
}

/* All thumbs same visual size, fit image inside */
.project-thumb {
  width: 100%;
  height: 190px; /* adjust if you want taller/shorter */
  object-fit: contain; /* show full image */
  border-radius: 12px;
  background-color: #000;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.85);
}

/* Placeholder thumb for non-image projects */
.project-thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 190px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.project-teaser {
  margin-top: 1rem;
}

/* Expand/Collapse icon in top-right */
.project-toggle-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.4rem;
}

.plus-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-align: center;
  line-height: 18px;
  font-size: 0.9rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

/* When collapse is open, we add .open from JS */
.plus-icon.open {
  transform: rotate(45deg);
  background: rgba(116, 10, 5, 0.7);
  border-color: rgba(255, 255, 255, 0.7);
}

/* Collapsed content */
.project-collapse {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-body {
  padding: 1.1rem 1.6rem 1.5rem;
  background: rgba(0, 0, 0, 0.85);
}

.project-body ul {
  padding-left: 1.1rem;
}

/* Hover effect for the whole card */
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.9);
}

/* ===========================
   RESPONSIVE (PORTFOLIO)
   =========================== */

@media (max-width: 991.98px) {
  .portfolio-hero {
    padding-top: 110px;
    padding-bottom: 40px;
  }
}

@media (max-width: 767.98px) {
  .project-toggle {
    padding: 1.4rem 1.2rem 1.3rem;
  }

  .project-body {
    padding: 1rem 1.2rem 1.3rem;
  }

  .project-thumb,
  .project-thumb.placeholder {
    height: 170px;
  }
}
