/*
Theme Name: Bishbuild Portfolio
Theme URI: https://bishbuild.com
Author: Bisharath Hafthab
Author URI: https://bishbuild.com
Description: A premium, minimalist custom WordPress theme for digital strategists, web developers, and brand architects.
Version: 1.0.0
Text Domain: bishbuild
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* --- Root Design System Tokens --- */
:root {
  /* Colors */
  --bg-canvas: #ecece9;
  --bg-card: #f6f6f3;
  --bg-card-alt: #ffffff;
  --bg-dark-btn: #0f0f12;
  --bg-dark-hover: #222228;
  
  --text-dark: #0f0f12;
  --text-muted: #55555e;
  --text-dim: #888892;
  --text-light: #ffffff;

  --accent-red: #ef4444;
  --accent-red-hover: #dc2626;

  --border-subtle: #dbdbd5;
  --border-dark: #0f0f12;

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Layout & Spacing */
  --radius-card: 28px;
  --radius-mobile-card: 20px;
  --radius-pill: 999px;
  --max-width: 1280px;

  /* Transitions & Shadows */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.03);
}

/* --- Base Reset & Setup --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-canvas);
  color: var(--text-dark);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  color: var(--text-dark);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Page Outer Wrapper */
.page-wrapper {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem 1.25rem;
  opacity: 0; /* Animated by GSAP after loader */
}

@media (max-width: 768px) {
  .page-wrapper {
    padding: 0.75rem 0.75rem 2rem 0.75rem;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-canvas);
}
::-webkit-scrollbar-thumb {
  background: #c5c5be;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-dark);
}

/* --- Typography Helpers --- */
.red-dot {
  color: var(--accent-red);
  display: inline-block;
}

.red-text {
  color: var(--accent-red);
}

/* ==================== DIAGONAL WIPE PAGE PRELOADER ==================== */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: transparent;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  overflow: hidden;
}

.loader-curtain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #070709;
  z-index: 1;
  will-change: transform;
}

.curtain-top {
  clip-path: polygon(0 0, 100.5% 0, 0 100.5%);
  -webkit-clip-path: polygon(0 0, 100.5% 0, 0 100.5%);
}

.curtain-bottom {
  clip-path: polygon(100.5% 0, 100.5% 100.5%, 0 100.5%);
  -webkit-clip-path: polygon(100.5% 0, 100.5% 100.5%, 0 100.5%);
}

.loader-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loader-logo {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 6rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.04em;
}

.loader-sub {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-red);
  margin-top: 0.75rem;
  text-transform: uppercase;
}

/* ==================== SITE HEADER ==================== */
.site-header {
  position: sticky;
  top: 1.25rem;
  z-index: 1000;
  width: 100%;
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.header-inner {
  background: rgba(246, 246, 243, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.brand-logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: -0.03em;
  display: inline-block;
}

.desktop-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-link,
.menu-item a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active,
.menu-item.current-menu-item a {
  color: var(--text-dark);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-dark-btn);
  color: var(--text-light);
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.btn-header-cta:hover {
  background: var(--bg-dark-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 5px;
}

.hamburger-bar {
  width: 22px;
  height: 2px;
  background-color: var(--text-dark);
  transition: var(--transition-smooth);
}

.mobile-drawer {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.drawer-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
}

@media (max-width: 860px) {
  .desktop-nav {
    display: none;
  }
  .hamburger-btn {
    display: flex;
  }
  .mobile-drawer.active {
    display: block;
  }
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  width: 100%;
  margin-bottom: 2rem;
}

.hero-card-container {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 3.5rem 2rem 2.5rem 2rem;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hero-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  z-index: 10;
}

.hero-title-stack {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-bottom: 0.75rem;
  user-select: none;
}

.hero-title-solid {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 5.5vw, 5.8rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
  color: var(--text-dark);
  white-space: nowrap;
  margin: 0 0 0.5rem 0;
  display: inline-block;
  transform: scaleY(1.28);
  transition: transform 0.3s ease, color 0.3s ease;
}

.outline-location-group {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: clamp(1.2rem, 3.8vw, 3.6rem);
}

.hero-title-outline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 4.2vw, 4.6rem);
  line-height: 0.95;
  color: transparent;
  -webkit-text-stroke: 1.8px var(--text-dark);
  white-space: nowrap;
  display: inline-block;
  transform: scaleY(1.28);
}

.hero-portrait-stage {
  position: absolute;
  top: 14%;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 86%;
  width: 100%;
  max-width: 520px;
  pointer-events: none;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-portrait-img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.hero-bottom-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 10;
  padding-top: 1.25rem;
  margin-top: auto;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.hero-actions-bottom {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1.5px solid #000000;
  color: #000000;
  text-decoration: none;
  transition: all 0.25s ease;
}

.social-icon-btn:hover {
  background-color: #000000;
  color: #ffffff;
  transform: translateY(-3px);
}

/* ==================== SECTION LAYOUT & CARDS ==================== */
.section-container {
  width: 100%;
  margin-bottom: 2rem;
}

.section-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-card);
}

.section-sub {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-red);
  display: block;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  line-height: 1.1;
}

/* Projects & Blog Cards */
.projects-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.project-card-item,
.blog-card-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.project-card-item:hover,
.blog-card-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* ==================== PREMIUM BLACK & WHITE FOOTER ==================== */
.site-footer-premium {
  width: 100%;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.footer-card-inner {
  background-color: #000000;
  color: #ffffff;
  border-radius: var(--radius-card);
  padding: 4rem 3rem 2rem 3rem;
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand-logo {
  font-family: 'Syne', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
}

.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  text-decoration: none;
  transition: all 0.25s ease;
}

.footer-social-icon:hover {
  background-color: var(--accent-red);
  border-color: var(--accent-red);
  color: #ffffff;
  transform: translateY(-3px);
}

.footer-nav-link {
  font-family: Georgia, serif;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-nav-link:hover {
  color: var(--accent-red);
}

/* Circle Zoom Overlay */
.circle-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #000000;
  pointer-events: none;
  z-index: 9999999;
  transform: translate(-50%, -50%) scale(0);
  will-change: transform;
}
