/* 
  SYNEX STORE - Masterclass Silver Chrome & Dark Monochrome Design
  Original monochrome color palette (Black, White, Silver, Steel) with ultra-sleek, clean aesthetics.
*/

:root {
  --bg-dark: #07080c;
  --bg-overlay: linear-gradient(180deg, rgba(7, 8, 12, 0.78) 0%, rgba(10, 12, 18, 0.88) 50%, rgba(7, 8, 12, 0.95) 100%);

  --card-bg: rgba(14, 18, 26, 0.86);
  --card-bg-hover: rgba(22, 28, 40, 0.94);

  --border-metallic: rgba(255, 255, 255, 0.15);
  --border-glow: rgba(255, 255, 255, 0.38);

  --accent-white: #ffffff;
  --accent-silver: #e2e8f0;
  --accent-steel: #94a3b8;
  --accent-metallic: linear-gradient(135deg, #ffffff 0%, #cbd5e1 45%, #64748b 100%);

  --text-main: #ffffff;
  --text-sub: #94a3b8;
  --text-muted: #64748b;

  --discord-purple: #5865f2;

  --font-heading: 'Kanit', 'Prompt', 'Inter', -apple-system, sans-serif;
  --font-body: 'Kanit', 'Prompt', 'Inter', -apple-system, sans-serif;
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

/* Hide Browser Scrollbar completely across all browsers */
::-webkit-scrollbar {
  width: 0px;
  height: 0px;
  display: none;
  background: transparent;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 75px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body {
  min-height: 100vh;
  position: relative;
  line-height: 1.6;
  background-image: var(--bg-overlay), url('../assets/bg.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-color: var(--bg-dark);
}

/* Background Interactive Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.app-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 5%;
  height: 75px;
  background: rgba(7, 8, 12, 0.90);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-metallic);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.8);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-small {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
  transition: transform 0.3s ease;
}

.nav-brand:hover .brand-logo-small {
  transform: scale(1.08) rotate(-5deg);
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 2px;
  background: var(--accent-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

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

.nav-link {
  color: var(--text-sub);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.sound-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-metallic);
  color: var(--text-main);
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.sound-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.sound-btn.muted {
  color: var(--text-muted);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Hero Section */
.hero-section {
  padding: 2.2rem 4% 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  min-height: calc(100vh - 75px);
  scroll-margin-top: 75px;
}

/* Metallic Circular Logo Frame */
.hero-logo-wrapper {
  position: relative;
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-logo-img {
  width: 205px;
  height: 205px;
  border-radius: 50%;
  object-fit: cover;
  background: #000000;
  border: 3.5px solid #ffffff;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.45), 0 0 60px rgba(0, 0, 0, 0.95);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.hero-logo-wrapper:hover .main-logo-img {
  transform: scale(1.05);
  box-shadow: 0 0 45px rgba(255, 255, 255, 0.75), 0 0 75px rgba(0, 0, 0, 1);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glow);
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 2px;
  color: var(--accent-silver);
  margin-bottom: 1.2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: 4px;
  line-height: 1.1;
  margin-bottom: 0.8rem;
  background: var(--accent-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 5px 25px rgba(0, 0, 0, 0.9);
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-sub);
  max-width: 650px;
  margin-bottom: 2.2rem;
  font-weight: 400;
}

/* Discord & Social Link Cards Container ("ปุ่มกดลิ้งเท่ๆ") */
.discord-links-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}

.cyber-card-link {
  width: 100%;
  min-width: 0;
  background: var(--card-bg);
  border: 1px solid var(--border-metallic);
  border-radius: 16px;
  padding: 1.4rem 1.3rem;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

/* Silver Sweep Line */
.cyber-card-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: linear-gradient(90deg, transparent, #ffffff, var(--accent-silver), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.cyber-card-link:hover {
  background: var(--card-bg-hover);
  border-color: var(--border-glow);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(255, 255, 255, 0.18);
  transform: translateY(-4px);
}

.cyber-card-link:hover::before {
  transform: translateX(100%);
}

.link-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 1.4rem;
}

.link-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(88, 101, 242, 0.18);
  border: 1px solid rgba(88, 101, 242, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.25);
}

.link-icon-box svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.link-info {
  text-align: left;
}

.link-tag {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.link-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-actions {
  display: flex;
  gap: 12px;
}

/* Metallic Cyber Button Styling */
.cyber-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #161c28 0%, #0a0e16 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cyber-btn-primary {
  background: linear-gradient(135deg, var(--discord-purple) 0%, #3b42a0 100%);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 18px rgba(88, 101, 242, 0.4);
}

.cyber-btn-primary:hover {
  background: linear-gradient(135deg, #6975f5 0%, var(--discord-purple) 100%);
  box-shadow: 0 0 25px rgba(88, 101, 242, 0.75), 0 0 15px rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.cyber-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  flex: 0 0 auto;
}

.cyber-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.cyber-btn-secondary.copied {
  background: #16a34a;
  border-color: #22c55e;
  color: #ffffff;
  box-shadow: 0 0 15px #22c55e;
}

.youtube-icon-box {
  background: rgba(255, 0, 0, 0.15) !important;
  border: 1px solid rgba(255, 0, 0, 0.35) !important;
  color: #ff0000 !important;
}

.cyber-btn-youtube {
  flex: 1;
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cyber-btn-youtube:hover {
  background: linear-gradient(135deg, #ff1a1a 0%, #e60000 100%);
  box-shadow: 0 6px 22px rgba(255, 0, 0, 0.6);
  transform: translateY(-2px);
  color: #ffffff;
}

/* Sections Styling */
.section {
  padding: 2.2rem 4% 4rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  min-height: calc(100vh - 75px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  scroll-margin-top: 75px;
}

.section-header {
  text-align: center;
  margin-bottom: 2.2rem;
}

.section-subtitle {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent-metallic);
  border-radius: 2px;
}

/* About & Owner Profile Section ("แนะนำตัวเอง") */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
  align-items: stretch;
  width: 100%;
}

@media (max-width: 900px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

.profile-card-main {
  background: var(--card-bg);
  border: 1px solid var(--border-metallic);
  border-radius: 18px;
  padding: 2.4rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.75);
}

.profile-card-main:hover {
  border-color: var(--border-glow);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.85), 0 0 20px rgba(255, 255, 255, 0.12);
}

.profile-avatar-box {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 1.6rem;
}

.avatar-wrapper {
  position: relative;
}

.avatar-img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.status-indicator {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: #22c55e;
  border: 3px solid var(--bg-dark);
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
}

.profile-names h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
}

.profile-role {
  font-size: 0.9rem;
  color: var(--text-sub);
  font-weight: 600;
}

.profile-bio {
  color: var(--text-sub);
  font-size: 0.98rem;
  margin-bottom: 1.6rem;
  line-height: 1.7;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.tag-item {
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-metallic);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-silver);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.6rem;
  width: 100%;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-metallic);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
}

.feature-card:hover {
  border-color: var(--border-glow);
  background: var(--card-bg-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85), 0 0 20px rgba(255, 255, 255, 0.15);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-metallic);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 1.2rem;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--text-sub);
}

/* Security Alert Modal */
#synex-security-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 5, 8, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

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

.security-card {
  background: #0f1118;
  border: 1px solid #ff3366;
  box-shadow: 0 0 40px rgba(255, 51, 102, 0.35);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
}

.security-icon {
  color: #ff3366;
  margin-bottom: 1rem;
}

.security-badge {
  display: inline-block;
  background: rgba(255, 51, 102, 0.12);
  color: #ff3366;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid rgba(255, 51, 102, 0.3);
  margin-bottom: 1rem;
}

.security-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.security-desc {
  font-size: 0.92rem;
  color: var(--text-sub);
  margin-bottom: 1.5rem;
}

.security-reason-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  padding: 10px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.85rem;
  margin-bottom: 1.8rem;
}

.reason-label {
  color: var(--text-muted);
  margin-right: 8px;
}

.reason-text {
  color: #ffffff;
  font-weight: bold;
}

.security-btn {
  width: 100%;
  padding: 12px;
  background: #ff3366;
  border: none;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
  box-shadow: 0 0 20px rgba(255, 0, 85, 0.5);
}

.security-btn:hover {
  opacity: 0.9;
}

/* Footer */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-metallic);
  background: rgba(4, 5, 8, 0.95);
  padding: 2.5rem 5%;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  background: var(--accent-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Portfolio Showcase Gallery */
.portfolio-showcase-section {
  width: 100%;
  max-width: 1200px;
  margin: 2.5rem auto 3.5rem auto;
  padding: 0 1.5rem;
}

.portfolio-hero-featured {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border-metallic);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  margin-bottom: 2.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.portfolio-hero-featured:hover {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 16px 50px rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.portfolio-featured-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 5;
  background: rgba(10, 14, 22, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  padding: 6px 16px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.portfolio-featured-badge span.badge-star {
  color: #fbbf24;
}

.portfolio-featured-img-wrap {
  width: 100%;
  max-height: 520px;
  overflow: hidden;
  position: relative;
}

.portfolio-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.portfolio-hero-featured:hover .portfolio-featured-img {
  transform: scale(1.03);
}

.portfolio-featured-meta {
  padding: 1.5rem 2rem;
  background: linear-gradient(180deg, rgba(14, 18, 26, 0.95) 0%, rgba(8, 10, 16, 0.98) 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-featured-info {
  flex: 1;
  min-width: 0;
}

.portfolio-featured-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.portfolio-featured-sub {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.4;
  word-break: break-word;
  white-space: normal;
}

/* Portfolio Grid */
.portfolio-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.portfolio-card-item {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border-metallic);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}

.portfolio-card-item:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 255, 255, 0.08);
}

.portfolio-card-img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background: #000;
}

.portfolio-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-card-item:hover .portfolio-card-img {
  transform: scale(1.05);
}

.portfolio-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-card-item:hover .portfolio-card-overlay {
  opacity: 1;
}

.portfolio-zoom-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.portfolio-card-info {
  padding: 1.2rem;
  background: rgba(14, 18, 26, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portfolio-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.portfolio-card-category {
  font-size: 0.8rem;
  color: var(--text-sub);
  letter-spacing: 0.5px;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  background: rgba(4, 5, 8, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 2rem;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-caption {
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #fff;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 51, 102, 0.8);
  border-color: #ff3366;
}

/* Portfolio Launch Folder Card */
.portfolio-launch-card {
  width: 100%;
  max-width: 1100px;
  margin: 1.2rem auto 0.6rem auto;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(16, 22, 34, 0.9) 0%, rgba(10, 14, 22, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1.8rem 2rem;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  text-align: left;
}

.portfolio-launch-card:hover {
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-5px);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 255, 255, 0.12);
}

.portfolio-icon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-silver);
  margin-bottom: 1rem;
}

.portfolio-launch-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.portfolio-launch-info {
  flex: 1;
}

.portfolio-launch-body .cyber-btn {
  flex: 0 0 auto !important;
  width: auto !important;
  padding: 12px 24px;
}

.portfolio-launch-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.portfolio-launch-sub {
  font-size: 0.95rem;
  color: var(--text-sub);
  max-width: 600px;
}

/* Portfolio Full Modal Overlay - 0ms Fast Performance */
.portfolio-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: rgba(6, 8, 14, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 2rem 1rem;
}

.portfolio-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* YouTube Showcase Styling */
.youtube-showcase-section {
  margin: 2.5rem 0;
  padding: 1.8rem;
  background: rgba(10, 14, 22, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
}

.youtube-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.youtube-icon-tag {
  background: #ff0000;
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.youtube-video-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.youtube-card {
  background: rgba(16, 22, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.youtube-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 0, 0, 0.5);
  box-shadow: 0 10px 30px rgba(255, 0, 0, 0.15);
}

.youtube-video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  background: #000;
}

.youtube-video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.youtube-card-info {
  padding: 1.2rem;
}

.youtube-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.youtube-card-desc {
  font-size: 0.85rem;
  color: var(--text-sub);
}

.portfolio-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.portfolio-modal-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  max-height: 90vh;
  background: rgba(14, 18, 26, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 255, 255, 0.1);
  padding: 2.5rem 2rem;
  overflow-y: auto;
  scrollbar-width: none;
}

.portfolio-modal-container::-webkit-scrollbar {
  display: none;
}

.portfolio-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-modal-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: #fff;
  font-weight: 800;
}

.portfolio-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s ease;
}

.portfolio-modal-close:hover {
  background: rgba(255, 51, 102, 0.8);
  border-color: #ff3366;
}

/* YouTube Directory Page / Modal */
.yt-directory-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: #080a0f;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow-y: auto;
  padding: 2rem 5%;
}

.yt-directory-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.yt-directory-container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
}

.yt-directory-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.yt-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.yt-back-btn:hover {
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.85) 0%, rgba(200, 0, 0, 0.95) 100%);
  border-color: #ff3333;
  color: #ffffff;
  box-shadow: 0 6px 22px rgba(255, 0, 0, 0.5);
  transform: translateX(-4px);
}

/* YouTube Single Channel Popup Modal */
.yt-single-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: rgba(6, 8, 14, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.yt-single-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.yt-single-modal-container {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: rgba(14, 18, 26, 0.97);
  border: 1px solid rgba(255, 0, 0, 0.4);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 0, 0, 0.25);
  padding: 2.2rem 2rem;
  text-align: center;
}

.yt-single-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.yt-single-modal-close:hover {
  background: #ff0000;
  border-color: #ff3333;
  transform: scale(1.1);
}

.yt-single-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 0, 0, 0.15);
  border: 1px solid rgba(255, 0, 0, 0.35);
  color: #ff3333;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  border-radius: 20px;
  margin-bottom: 0.8rem;
}

.yt-single-modal-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.yt-channel-showcase-box {
  background: rgba(20, 26, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.yt-showcase-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 0, 0, 0.6);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.yt-showcase-handle {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.yt-showcase-desc {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.4;
}

.yt-single-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.yt-modal-btn-main {
  flex: 1;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  font-size: 0.9rem;
}

.yt-directory-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 3px;
  text-align: center;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.yt-directory-sub {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: var(--text-sub);
  text-align: center;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

/* Search Bar */
.yt-search-wrapper {
  max-width: 550px;
  margin: 0 auto 3rem auto;
  position: relative;
}

.yt-search-input {
  width: 100%;
  padding: 12px 20px 12px 45px;
  background: rgba(16, 22, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

.yt-search-input:focus {
  border-color: #ff0000;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

.yt-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-sub);
}

/* Section Dividers */
.yt-group-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-silver);
  letter-spacing: 2px;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
}

.yt-group-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Channel Cards Grid */
.yt-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.yt-channel-card {
  background: rgba(14, 18, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.yt-channel-card:hover {
  border-color: rgba(255, 0, 0, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.18);
  background: rgba(20, 26, 38, 0.95);
}

.yt-channel-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.yt-channel-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.yt-channel-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #fff;
  font-weight: 700;
}

.yt-channel-role {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(255, 0, 0, 0.15);
  border: 1px solid rgba(255, 0, 0, 0.3);
  color: #ff3333;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 4px;
  margin-top: 4px;
}

.yt-channel-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.15);
  border: 1px solid rgba(255, 0, 0, 0.3);
  color: #ff0000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.yt-channel-card:hover .yt-channel-icon-btn {
  background: #ff0000;
  color: #fff;
  transform: scale(1.1);
}

/* Responsive Rules */
@media (max-width: 992px) {
  .discord-links-container {
    grid-template-columns: 1fr;
    max-width: 580px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.4rem;
  }
  .nav-menu {
    display: none;
  }
  .portfolio-hero-meta {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .portfolio-launch-body {
    flex-direction: column;
    align-items: flex-start;
  }
  .yt-directory-title {
    font-size: 2rem;
  }
}

/* Floating Music Player Widget (15% Volume) */
.music-player-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: rgba(14, 18, 26, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
}

.music-player-widget:hover {
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.music-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--discord-purple) 0%, #3b42a0 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.music-toggle-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(88, 101, 242, 0.6);
}

.music-info {
  display: flex;
  flex-direction: column;
}

.music-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

.music-subtitle {
  font-size: 0.72rem;
  color: var(--accent-silver);
  white-space: nowrap;
}
