/* ===================================
   PIXY MYNX STUDIOS - PREMIUM CSS
   Black / Red / White / Silver Theme
   =================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (max-width: 768px) { html { font-size: 13px; } }
@media (max-width: 480px) { html { font-size: 11.5px; } }
body { background: #000; color: #fff; font-family: 'Inter', sans-serif; overflow-x: hidden; width: 100%; max-width: 100vw; position: relative; }
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; }

/* --- Custom Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #ff0000; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #cc0000; }

/* --- Utility --- */
.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; width: 100%; }
.text-gradient { background: linear-gradient(135deg, #ff0000, #ff4444, #ffffff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-gradient-silver { background: linear-gradient(to right, #fff, #9ca3af); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-silver { color: #9ca3af; }
.text-red { color: #ff0000; }

/* --- Glassmorphism --- */
.glass {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.25rem;
}
.glass-strong {
  background: rgba(255,0,0,0.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,0,0,0.15);
  border-radius: 1.5rem;
}

/* --- Neomorphism Buttons --- */
.neo-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: #ff0000;
  color: #fff; font-weight: 700; font-size: 1rem;
  border: none; border-radius: 50px; cursor: pointer;
  box-shadow: 6px 6px 12px rgba(0,0,0,0.6), -3px -3px 8px rgba(255,50,50,0.15), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: all 0.3s ease;
  text-decoration: none;
}
.neo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 8px 8px 16px rgba(0,0,0,0.7), -4px -4px 10px rgba(255,50,50,0.25), inset 0 1px 0 rgba(255,255,255,0.3);
}
.neo-btn:active { transform: scale(0.97); }

.neo-btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: transparent;
  color: #fff; font-weight: 600; font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.2); border-radius: 50px; cursor: pointer;
  box-shadow: inset 2px 2px 4px rgba(0,0,0,0.3), inset -2px -2px 4px rgba(255,255,255,0.03);
  transition: all 0.3s ease;
  text-decoration: none;
}
.neo-btn-outline:hover { border-color: #ff0000; color: #ff0000; }

.glass-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: rgba(255,0,0,0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff; font-weight: 700; font-size: 1rem;
  border: 2px solid rgba(255,0,0,0.6);
  border-radius: 50px; cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(255,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.15);
}
.glass-btn:hover {
  background: rgba(255,0,0,0.4);
  border-color: rgba(255,0,0,0.9);
  box-shadow: 0 8px 40px rgba(255,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* --- Glassmorphism Cards --- */
.glass {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(24px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(150%) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
  transition: transform 0.4s ease, border-color 0.4s ease !important;
}

/* Dynamic Spotlight Glow that tracks mouse */
.glass::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  background: radial-gradient(
    600px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px),
    rgba(0, 150, 255, 0.15),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.glass:hover::before {
  opacity: 1;
}

.glass:hover {
  border-color: rgba(0, 150, 255, 0.4) !important;
  transform: translateY(-2px);
}

/* Ensure contents stay above the glow */
.glass > * {
  position: relative;
  z-index: 1;
}

/* --- Claymorphism Cards --- */
.clay {
  background: linear-gradient(145deg, #1a1a1a, #111);
  border-radius: 2rem;
  box-shadow: 8px 8px 20px rgba(0,0,0,0.5), -4px -4px 12px rgba(255,255,255,0.03), inset 0 2px 0 rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.clay:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 12px 12px 30px rgba(0,0,0,0.6), -6px -6px 16px rgba(255,0,0,0.08), inset 0 2px 0 rgba(255,255,255,0.08);
}

/* --- Navbar --- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all 0.4s ease;
  background: transparent;
}
#navbar.scrolled {
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,0,0,0.1);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 5rem; }
.nav-logo { font-family: 'Montserrat', sans-serif; font-size: 1.5rem; font-weight: 900; text-decoration: none; letter-spacing: -0.5px; }
.nav-links { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav-links a { color: #9ca3af; font-weight: 500; font-size: 0.9rem; text-decoration: none; transition: color 0.3s; text-transform: uppercase; letter-spacing: 1px; }
.nav-links a:hover { color: #ff0000; }
.nav-cta { padding: 0.6rem 1.5rem !important; background: #ff0000; color: #fff !important; border-radius: 50px; font-size: 0.85rem !important; }
.nav-cta:hover { background: #cc0000 !important; }
.mobile-toggle { display: none; background: none; border: none; color: #fff; cursor: pointer; padding: 0.5rem; }
.mobile-menu { display: none; position: fixed; top: 5rem; left: 0; right: 0; background: rgba(0,0,0,0.95); backdrop-filter: blur(20px); padding: 2rem; z-index: 99; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; color: #9ca3af; padding: 1rem 0; text-decoration: none; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,0.05); }
.mobile-menu a:hover { color: #ff0000; }

/* --- Header (Video Banner) --- */
.header-banner {
  position: relative;
  height: 66.66vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.header-banner video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
}
.header-banner .header-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.6) 100%);
  z-index: 2;
}
.header-banner .header-content {
  position: relative; z-index: 10;
  text-align: center;
}
.header-logo {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.header-tagline {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  color: #9ca3af;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 300;
}
.header-scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: #6b7280;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.header-scroll-hint span {
  display: block; width: 1px; height: 30px;
  background: linear-gradient(to bottom, #ff0000, transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{ opacity:0.3; } 50%{ opacity:1; } }

@media (max-width: 768px) {
  .header-banner { height: 33.33vh; min-height: 250px; }
}

/* --- Logo Reveal Section --- */
.logo-reveal {
  padding: 4rem 0 1rem;
  background: #050505;
  position: relative;
}
.logo-reveal-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

/* --- Hero Intro Section --- */
.hero-intro { 
  padding: 4rem 0 10rem; 
  position: relative; 
  overflow: hidden; 
  background-color: #050505;
}

/* Designer Animated Background */
.animated-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.animated-bg-grid {
  position: absolute;
  inset: -50%;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridPan 30s linear infinite;
  z-index: 1;
}
@keyframes gridPan {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}
.animated-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.8;
  animation: floatBlob 20s infinite alternate ease-in-out;
  z-index: 1;
}
.blob-1 {
  width: 40vw; height: 40vw;
  background: rgba(255, 0, 0, 0.4);
  top: -10%; left: -10%;
  animation-delay: 0s;
}
.blob-2 {
  width: 50vw; height: 50vw;
  background: rgba(200, 0, 0, 0.35);
  bottom: -20%; right: -10%;
  animation-delay: -5s;
}
.blob-3 {
  width: 35vw; height: 35vw;
  background: rgba(255, 50, 50, 0.45);
  top: 40%; left: 30%;
  animation-delay: -10s;
  animation-duration: 25s;
}
@keyframes floatBlob {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(10vw, -10vh) scale(1.2); }
  66% { transform: translate(-5vw, 15vh) scale(0.9); }
  100% { transform: translate(-15vw, -5vh) scale(1.1); }
}

/* Floating Glass Orbs */
.glass-orb {
  position: absolute;
  border-radius: 50%;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top-color: rgba(255, 255, 255, 0.6);
  border-left-color: rgba(255, 255, 255, 0.4);
  box-shadow: 
    inset -20px -20px 50px rgba(0,0,0,0.9), 
    inset 20px 20px 40px rgba(255,255,255,0.4), 
    0 30px 60px rgba(255,0,0,0.4);
  z-index: 3;
  animation: floatOrb 15s infinite alternate ease-in-out;
}
.orb-1 {
  width: 180px; height: 180px;
  background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 40%), radial-gradient(circle at 70% 70%, rgba(255,0,0,0.2), rgba(0,0,0,0.4));
  top: 10%; left: 3%;
  animation-duration: 18s;
}
.orb-2 {
  width: 280px; height: 280px;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 50%), radial-gradient(circle at 70% 70%, rgba(150,0,0,0.3), rgba(0,0,0,0.5));
  bottom: 25%; right: 5%;
  animation-delay: -5s;
  animation-duration: 22s;
}
.orb-3 {
  width: 120px; height: 120px;
  background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 30%), radial-gradient(circle at 70% 70%, rgba(255,50,50,0.3), rgba(0,0,0,0.3));
  top: 85%; left: 38%;
  animation-delay: -10s;
}
@keyframes floatOrb {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-40px) rotate(10deg); }
  100% { transform: translateY(20px) rotate(-10deg); }
}
.hero-intro-grid { display: grid; grid-template-columns: 0.6fr 1fr; gap: 4rem; align-items: center; }
.hero-intro-tag { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1.25rem; border-radius: 50px; font-size: 0.8rem; font-weight: 600; color: #ff0000; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1.5rem; border: 1px solid rgba(255,0,0,0.3); background: rgba(255,0,0,0.05); }
.hero-intro h2 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; line-height: 1.1; margin-bottom: 1.25rem; }
.hero-intro p { font-size: 1.05rem; color: #6b7280; line-height: 1.7; margin-bottom: 1.5rem; }

/* Logo Hover Effect */
.logo-hover-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 320px;
}
.logo-hover-glow {
  position: absolute; inset: -25%;
  background: radial-gradient(circle, rgba(255,0,0,0.12) 0%, transparent 65%);
  border-radius: 50%;
  filter: blur(40px);
  transition: all 0.5s ease;
  opacity: 0.5;
}
.logo-hover-wrap:hover .logo-hover-glow {
  opacity: 1;
  transform: scale(1.2);
  background: radial-gradient(circle, rgba(255,0,0,0.25) 0%, rgba(255,60,0,0.08) 50%, transparent 70%);
}
.logo-hover-img {
  width: 100%;
  position: relative;
  z-index: 2;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
}
.logo-hover-wrap:hover .logo-hover-img {
  transform: scale(1.08) rotate(3deg);
  filter: drop-shadow(0 25px 50px rgba(255,0,0,0.2)) drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

/* Stats Bar — full width */
.stats-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
  margin-top: 4rem;
  padding: 3rem 2rem;
  border-radius: 1.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
}
.stat-item { text-align: center; padding: 0 1.5rem; }
.stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, #ff0000, #ff4444, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.stat-label { font-size: 0.85rem; color: #6b7280; margin-top: 0.5rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }
.stat-divider { width: 1px; height: 50px; background: linear-gradient(to bottom, transparent, rgba(255,0,0,0.3), transparent); }

@media (max-width: 1024px) {
  .hero-intro-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-intro .hero-cta { justify-content: center; }
  .hero-intro-visual { order: -1; }
  .logo-hover-wrap { margin: 0 auto; max-width: 240px; }
  .stats-bar { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stat-divider { display: none; }
}
@media (max-width: 768px) {
  .hero-intro { padding: 4rem 0; }
  .stats-bar { grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 2rem 1rem; }
}

/* --- Section Headers --- */
.section { padding: 3rem 0; position: relative; overflow: hidden; }
.profile-section { padding: 1.25rem 0; position: relative; } /* Spacing between profile topics */
.section-tag { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.75rem; font-weight: 700; color: #ff0000; text-transform: uppercase; letter-spacing: 2px; border: 1px solid rgba(255,0,0,0.2); background: rgba(255,0,0,0.05); margin-bottom: 1rem; }
.section-title { 
  font-family: 'Montserrat', sans-serif; 
  font-size: clamp(2rem, 5vw, 3.5rem); 
  font-weight: 900; 
  text-transform: uppercase; 
  letter-spacing: 2px; 
  line-height: 1.1;
  margin-bottom: 1.5rem; 
}
.section-desc { font-size: 1.1rem; color: #6b7280; max-width: 600px; line-height: 1.7; }

/* --- Team Bento Carousel --- */
.team-arc-section {
  padding-bottom: 4rem;
}
.team-arc-svg {
  pointer-events: none;
}
.bento-carousel-wrapper {
  width: 100%;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  margin: 1rem 0;
}
.bento-carousel {
  display: flex;
  gap: clamp(1rem, 4vw, 3rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 1rem 0;
  scrollbar-width: none;
}
.bento-carousel::-webkit-scrollbar { display: none; }
.bento-card {
  flex: 0 0 auto;
  width: min(85vw, 1400px);
  height: 650px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  scroll-snap-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.05);
  background: url('background.jpg') center/cover no-repeat;
  /* Default inactive state: slightly smaller and dimmer */
  transform: scale(0.9);
  opacity: 0.7;
  transition: transform 0.5s linear, box-shadow 0.5s linear, border-color 0.5s linear, opacity 0.5s linear;
}
.bento-card.active {
  /* Active center state */
  transform: scale(1);
  opacity: 1;
}
.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* Subtle dark tint so text stays readable */
  z-index: 0;
}
.bento-card.active:hover {
  transform: scale(1) translateY(-8px);
  box-shadow: 0 30px 60px rgba(255,0,0,0.25), inset 0 2px 10px rgba(255,255,255,0.05);
  border-color: rgba(255,0,0,0.4);
}
.bento-card:not(.active):hover {
  transform: scale(0.92);
  opacity: 0.9;
}
@media (max-width: 768px) {
  .bento-card { height: auto; min-height: 500px; }
}
.bento-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: 55%;
  z-index: 1;
  /* Softly fade the member photo into the background without adding black shadows */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%);
  mask-image: linear-gradient(to right, transparent 0%, black 25%);
}
.bento-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Colorful by default! */
  filter: brightness(0.9);
  transition: filter 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.bento-card:hover .bento-bg img {
  /* New hover effect for image */
  filter: brightness(1.1) contrast(1.1);
  transform: scale(1.06) rotate(1.5deg);
}
.bento-overlay {
  display: none; /* Removed the heavy shadow overlay */
}
.bento-content {
  position: relative;
  z-index: 2;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 55%;
  text-align: left;
}
@media (max-width: 768px) {
  .bento-bg { width: 100%; height: 50%; bottom: auto; }
  .bento-overlay { background: linear-gradient(to bottom, transparent 0%, rgba(10,10,10,0.8) 70%, #0a0a0a 100%); }
  .bento-content { width: 100%; padding: 2rem; justify-content: flex-end; margin-top: 40%; }
}
.bento-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-block;
  background: rgba(255,0,0,0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  border: 1px solid rgba(255,0,0,0.4);
}
.bento-top h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.1;
}
.bento-top p {
  color: #d1d5db;
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 300;
}
.bento-mission {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem;
  border-radius: 16px;
  margin-top: 2rem;
  transition: background 0.3s;
}
.bento-card:hover .bento-mission {
  background: rgba(255,0,0,0.05);
  border-color: rgba(255,0,0,0.2);
}
.bento-mission-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.bento-mission p {
  font-size: 0.95rem;
  color: #9ca3af;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.bento-mission small {
  font-family: 'Space Mono', monospace;
  color: #6b7280;
  font-style: italic;
  font-size: 0.8rem;
}

/* --- Apps Section --- */
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 3rem; }
.app-card { 
  position: relative; 
  cursor: pointer; 
  display: flex; 
  flex-direction: column; 
  height: 100%; 
  border-radius: 1.5rem; 
  padding: 1.25rem; 
  background: #080808; 
  border: 1px solid rgba(255,255,255,0.05); 
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s, background 0.4s;
}
.app-card:hover { 
  transform: scale(1.03); 
  border-color: rgba(255,0,0,0.2);
  background: #0c0c0c;
}

.app-card-inner-box { 
  width: 100%; 
  aspect-ratio: 1.2 / 1; 
  background: #000; 
  border-radius: 1.25rem; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255,255,255,0.03);
  overflow: hidden;
}

.app-card-visual { 
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
  transition: transform 0.6s ease;
}

.app-card:hover .app-card-visual {
  transform: scale(1.05);
}

.app-card-content { 
  display: flex; 
  flex-direction: column; 
  gap: 0.75rem;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.app-card h3 { 
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem; 
  font-weight: 700; 
  color: #fff;
  margin: 0;
}

.app-card p { 
  font-size: 0.9rem; 
  color: #6b7280; 
  line-height: 1.5; 
  margin: 0;
}

/* --- Partner Scroll --- */
.partner-section { padding: 3rem 0; border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); overflow: hidden; }
.partner-track { display: flex; gap: 10rem; animation: scrollPartners 30s linear infinite; width: max-content; }
.partner-track:hover { animation-play-state: paused; }
@keyframes scrollPartners { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.partner-item { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.partner-logo { height: 80px; width: auto; min-width: 140px; object-fit: contain; opacity: 0.45; filter: grayscale(100%) brightness(1.8); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.partner-logo:hover { opacity: 1; filter: grayscale(0%) brightness(1); transform: scale(1.1); }
.partner-name { font-size: 1.2rem; font-weight: 800; color: #444; white-space: nowrap; transition: color 0.3s; }
.partner-item:hover .partner-name { color: #ff0000; }
.partner-label { 
  text-align: center; 
  font-family: 'Montserrat', sans-serif; 
  font-size: 0.75rem; 
  font-weight: 800; 
  text-transform: uppercase; 
  letter-spacing: 2px; 
  color: #fff; 
  margin-bottom: 2.5rem; 
}

/* --- FAQ --- */
.faq-bg { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.faq-bg-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,0,0,0.15) 1.5px, transparent 1.5px), linear-gradient(90deg, rgba(255,0,0,0.15) 1.5px, transparent 1.5px); background-size: 80px 80px; }
.faq-bg-glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(255,0,0,0.25) 0%, transparent 80%); }

.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 4rem; margin-top: 2rem; align-items: start; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.06); background: rgba(0,0,0,0.3); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); padding: 0 1.5rem; border-radius: 1rem; margin-bottom: 0.5rem; }
.faq-question { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 0; cursor: pointer; gap: 1rem; }
.faq-question h4 { font-size: 1rem; font-weight: 600; transition: color 0.3s; }
.faq-question:hover h4 { color: #ff0000; }
.faq-icon { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #ff0000; transition: transform 0.3s, background 0.3s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: rgba(255,0,0,0.1); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-answer p { padding: 0 0 1.5rem; font-size: 0.9rem; color: #6b7280; line-height: 1.7; }
.faq-item.open .faq-answer { max-height: 300px; }

/* --- Contact --- */
.contact-grid { 
  display: grid; 
  grid-template-columns: 1fr 1.5fr; 
  gap: 2rem; 
  margin-top: 2rem; 
  align-items: stretch;
}

.contact-sidebar {
  background: #0a0a0a;
  border-radius: 2rem;
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  border: 1px solid rgba(255,255,255,0.03);
  position: relative;
}

.contact-sidebar-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
}

.contact-sidebar-tag span {
  color: #ff0000;
  font-size: 1.2rem;
}

.contact-sidebar-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.contact-sidebar-title span {
  color: #ff0000;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.contact-method {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-method label {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: #ff0000;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-method p {
  font-size: 1rem;
  color: #d1d5db;
  margin: 0;
}

.contact-sidebar-footer {
  margin-top: auto;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-footer-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: #ff0000;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-social-row {
  display: flex;
  gap: 0.75rem;
}

.contact-social-btn {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-social-btn:hover {
  background: #ff0000;
  color: #fff;
  transform: translateY(-3px);
}

.contact-form-card {
  background: #0a0a0a;
  border-radius: 2rem;
  padding: 3.5rem;
  border: 1px solid rgba(255,255,255,0.03);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ff0000;
  margin-bottom: 0.75rem;
  text-transform: none;
  letter-spacing: 0;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 1.25rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  color: #fff;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: #ff0000;
  background: rgba(255,255,255,0.04);
}

.submit-btn {
  width: 100%;
  padding: 1.25rem;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: #ff0000;
  color: #fff;
  transform: translateY(-2px);
}

/* --- Leonardo Style Footer --- */
.footer { background: #000; border-top: 1px solid rgba(255,255,255,0.05); padding: 2.5rem 0 2rem; color: #fff; position: relative; overflow: hidden; }
.footer-social-icons-col { display: grid; grid-template-columns: repeat(3, 40px); gap: 1rem; }
.footer-social-link { color: #fff; transition: opacity 0.3s, transform 0.3s; opacity: 0.6; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: rgba(255,255,255,0.05); border-radius: 50%; }
.footer-social-link:hover { opacity: 1; transform: translateY(-3px); background: rgba(255,255,255,0.1); color: #ff0000; }

.footer-main-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 2rem; }


.footer-col h4 { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: #fff; margin-bottom: 1.5rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-links a { color: #6b7280; text-decoration: none; font-size: 0.85rem; transition: color 0.3s; }
.footer-links a:hover { color: #ff0000; }



.footer-huge-branding { margin: 0; text-align: center; line-height: 0; }
.footer-huge-img { width: 100%; max-width: 1400px; height: auto; object-fit: contain; opacity: 1; transition: transform 0.6s ease; pointer-events: none; }
.footer:hover .footer-huge-img { transform: scale(1.02); }

.footer-bottom-bar { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 2rem; color: #4b5563; font-size: 0.75rem; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: #4b5563; text-decoration: none; transition: color 0.3s; }
.footer-legal a:hover { color: #ff0000; }

/* --- Scroll Animations --- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-60px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(60px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.85); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* --- Parallax Layers --- */
.parallax-layer { will-change: transform; transition: transform 0.1s linear; }

/* --- Background Effects --- */
.bg-glow-red { position: absolute; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(255,0,0,0.08) 0%, transparent 70%); pointer-events: none; filter: blur(60px); }
.bg-glow-white { position: absolute; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%); pointer-events: none; filter: blur(60px); }
.bg-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px); background-size: 60px 60px; pointer-events: none; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { order: -1; }
  .apps-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-main-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 4rem 0; }
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .philosophy-cards { grid-template-columns: 1fr; }
  .footer-main-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-main-grid .footer-col:first-child { grid-column: 1 / -1; }
  .footer-social-icons-col { display: flex; gap: 0.75rem; flex-wrap: wrap; }
  .footer-bottom-bar { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; gap: 1rem; }
  .hero-stats { flex-direction: column; gap: 1.5rem; }
  .contact-form-card { padding: 1.5rem; border-radius: 1.5rem; }
  .contact-sidebar { padding: 1.5rem; border-radius: 1.5rem; gap: 1.5rem; }
  .form-row { gap: 1rem; margin-bottom: 0; }
  .form-group { margin-bottom: 1rem; }
  .form-group input, .form-group textarea { padding: 1rem; }
  
  /* Blog Mobile Overrides (Ultra Compact) */
  body, html { overflow-x: clip !important; max-width: 100vw; }
  .blog-hero { padding: 4.5rem 0 1rem !important; }
  .blog-hero h1.section-title { font-size: 1.3rem !important; margin-bottom: 0.25rem; }
  .blog-hero .section-desc { font-size: 0.75rem !important; margin-top: 0.25rem !important; max-width: 90%; }
  .blog-search-container { padding: 0.4rem 0.8rem; max-width: 95%; margin-bottom: 0.75rem; }
  .blog-search-container svg { width: 16px; height: 16px; margin-right: 0.5rem; }
  .blog-search-input { font-size: 0.75rem; }
  .blog-chips-scroll { gap: 0.5rem; justify-content: flex-start !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch; padding-bottom: 0.5rem; padding-left: 0 !important; width: 100%; margin: 0; display: flex !important; }
  .blog-chip { padding: 0.3rem 0.75rem; font-size: 0.65rem; border-width: 1px; flex-shrink: 0; margin-left: 0 !important; }
  
  .latest-article-section { padding: 1rem 0 2rem !important; }
  .latest-article-card { border-radius: 1rem !important; }
  .latest-article-img { aspect-ratio: 16/9 !important; height: auto !important; }
  .latest-article-content { padding: 1rem !important; }
  .latest-article-content .blog-card-tag { font-size: 0.6rem !important; padding: 0.2rem 0.5rem !important; margin-bottom: 0.5rem !important; }
  .latest-article-content h2 { font-size: 0.95rem !important; margin-bottom: 0.4rem !important; line-height: 1.2 !important; }
  .latest-article-content p { font-size: 0.75rem !important; margin-bottom: 0.75rem !important; line-height: 1.4 !important; }
  .latest-article-btn { padding: 0.5rem 1rem !important; font-size: 0.7rem !important; width: 100% !important; text-align: center !important; border-radius: 8px !important; }
  
  .article-page-header { padding: 5rem 0 1rem !important; }
  .article-title { font-size: 1.5rem !important; margin-bottom: 0.5rem !important; }
  .article-subtitle { margin-bottom: 0.75rem !important; font-size: 0.9rem !important; line-height: 1.4 !important; }
  
  .all-articles-header h2 { font-size: 1.2rem; }
  .all-articles-header a { font-size: 0.75rem; }
  .blog-grid-page { gap: 1rem; grid-template-columns: 1fr; }
  
  .blog-card { border-radius: 1rem; }
  .blog-card-img { height: auto; aspect-ratio: 2/1; border-radius: 1rem 1rem 0 0; }
  .blog-card-body { padding: 0.85rem; }
  .blog-card-tag { font-size: 0.6rem; padding: 0.2rem 0.5rem; margin-bottom: 0.4rem; }
  .blog-card h3 { font-size: 0.95rem; margin-bottom: 0.3rem; line-height: 1.2; }
  .blog-card p { font-size: 0.7rem; line-height: 1.4; }
  .blog-card-meta { font-size: 0.65rem; margin-top: 0.5rem; }
}
@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.2rem, 10vw, 3rem); }
}

/* --- Print / Accessibility --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .partner-track { animation: none; }
}
@media print { body { background: #fff; color: #000; } .no-print { display: none !important; } }

/* --- Form States --- */
.btn-loading { opacity: 0.7; pointer-events: none; }
.btn-success { background: #10b981 !important; box-shadow: 6px 6px 12px rgba(0,0,0,0.6), -3px -3px 8px rgba(16,185,129,0.15) !important; }

/* --- Blog Page --- */
.blog-hero { padding: 10rem 0 1.5rem; text-align: center; }
.blog-grid-page { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 2rem; }
.blog-card { overflow: hidden; cursor: pointer; transition: transform 0.4s ease; }
.blog-card:hover { transform: translateY(-6px); }
.blog-card-img { width: 100%; height: 220px; object-fit: cover; border-radius: 2rem 2rem 0 0; }
.blog-card-body { padding: 1.75rem; }
.blog-card-tag { display: inline-block; padding: 0.25rem 0.7rem; border-radius: 50px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #ff0000; border: 1px solid rgba(255,0,0,0.3); background: rgba(255,0,0,0.05); margin-bottom: 0.75rem; }
.blog-card h3 { font-family: 'Montserrat', sans-serif; font-size: 1.25rem; font-weight: 800; margin-bottom: 0.5rem; line-height: 1.3; }
.blog-card p { font-size: 0.85rem; color: #6b7280; line-height: 1.6; }
.blog-card-meta { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; font-size: 0.8rem; color: #4b5563; }

/* Line clamp */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* --- About Page --- */
.about-hero-section { padding-top: 4rem; padding-bottom: 4rem; position: relative; }
.about-split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about-split-grid.align-center { align-items: center; }
.about-img-box { border-radius: 2rem; overflow: hidden; position: relative; border: 1px solid rgba(255,255,255,0.06); }
.about-features { list-style: none; margin: 2rem 0; padding: 0; }
.about-features li { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; color: #d1d5db; font-size: 1rem; line-height: 1.6; }
.feat-icon { color: #ff0000; font-weight: 800; font-size: 1.1rem; flex-shrink: 0; display: inline-flex; }
.about-support-box { padding: 2rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; }

.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 4rem; }
.benefit-card { 
  padding: 2rem 1.5rem; 
  border-radius: 1.5rem; 
  transition: transform 0.3s; 
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 120px;
}
.benefit-card:hover { transform: translateY(-5px); border-color: rgba(255,0,0,0.3); }
.benefit-card h4 { 
  font-family: 'Montserrat', sans-serif; 
  font-size: 1.1rem; 
  font-weight: 700; 
  color: #f3f4f6; 
  position: relative;
  z-index: 2;
  margin: 0;
}
.benefit-icon { 
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  height: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}
.benefit-icon img {
  height: 100%;
  width: auto;
  object-fit: contain;
  opacity: 1;
}


.about-team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; margin-top: 4rem; }
.team-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 1.5rem; }
.team-card-img { position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 1.5rem 1.5rem 0 0; }
.team-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; display: block; }
.team-card:hover .team-card-img img { transform: scale(1.05); }
.team-card-arc { padding: 1.5rem; text-align: center; }
.team-card-arc h4 { font-family: 'Montserrat', sans-serif; font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.team-card-arc p { font-size: 0.9rem; color: #a1a1aa; margin: 0; }
.team-social-overlay { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; opacity: 0; transition: opacity 0.3s, transform 0.3s; z-index: 10; background: rgba(0,0,0,0.6); padding: 0.5rem; border-radius: 50px; backdrop-filter: blur(10px); }
.team-card-img:hover .team-social-overlay { opacity: 1; transform: translateX(-50%) translateY(-10px); }
.social-btn { width: 35px; height: 35px; background: #ff0000; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 0.9rem; font-weight: bold; transition: background 0.3s, transform 0.3s; }
.social-btn:hover { background: #fff; color: #ff0000; transform: scale(1.1); }

@media (max-width: 1024px) {
  .about-split-grid { grid-template-columns: 1fr; }
  .about-hero-visual { order: -1; }
  .why-choose-visual { margin-top: 2rem; height: auto !important; }
}

/* --- Tooltip --- */

.tooltip-container .tooltip-text {
  visibility: hidden;
  width: 160px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 100;
  bottom: 125%;
  left: 50%;
  margin-left: -80px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
  pointer-events: none;
  font-weight: 500;
}

.tooltip-container .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* ================== PROFILE PAGE CSS ================== */
.profile-container,
.profile-container h1,
.profile-container h2,
.profile-container h3,
.profile-container h4,
.profile-container p,
.profile-container span,
.profile-container div,
.profile-container a,
.profile-container button,
.profile-container input,
.profile-container textarea { 
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace !important; 
}
.profile-container { max-width: 1350px; margin: 0 auto; padding: 0 2rem; }

/* Hero Section */
.profile-hero {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem;
  border: 1px solid rgba(255,255,255,0.05);
}
.profile-hero-img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  z-index: 0;
}
.profile-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,0,0,1) 0%, rgba(8,0,0,0.5) 50%, rgba(8,0,0,0) 100%);
  z-index: 1;
}
.profile-hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}
.profile-hero-title { font-size: 3rem; margin: 0.5rem 0; }
.profile-hero-desc { color: #ccc; font-size: 1.1rem; line-height: 1.6; }
.profile-glass-card {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 16px;
  max-width: 450px;
}
.profile-hero-bottom-actions {
  position: relative;
  z-index: 2;
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}
.action-badges .badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  font-size: 0.9rem;
  color: #ddd;
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-text p { color: #bbb; line-height: 1.8; margin-bottom: 1rem; }
.github-widget { padding: 1.5rem; border-radius: 16px; }
.widget-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-weight: bold; }
.widget-header .small-text { color: #888; font-size: 0.8rem; font-weight: normal; }

/* GitHub Contribution Graph */
.contribution-graph { margin-bottom: 1.5rem; }
.graph-grid {
  display: grid;
  grid-template-columns: repeat(26, 1fr);
  gap: 4px;
}
.graph-sq {
  width: 100%; aspect-ratio: 1/1;
  border-radius: 2px;
}
.sq-0 { background: rgba(255,255,255,0.05); }
.sq-1 { background: rgba(0, 255, 128, 0.2); }
.sq-2 { background: rgba(0, 255, 128, 0.4); }
.sq-3 { background: rgba(0, 255, 128, 0.7); }
.sq-4 { background: rgba(0, 255, 128, 1); }
.graph-legend {
  display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem;
  margin-top: 0.5rem; font-size: 0.8rem; color: #888;
}
.legend-squares { display: flex; gap: 4px; }
.legend-squares .sq { width: 10px; height: 10px; display: inline-block; border-radius: 2px; }

/* Stats Row */
.stats-row { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1rem; }
.stat-box h3 { font-size: 1.5rem; margin: 0; }
.stat-box span { font-size: 0.8rem; color: #888; }

/* Experience Timeline */
.timeline {
  display: flex; flex-direction: column; gap: 2rem;
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: rgba(255,255,255,0.1);
}
.timeline-item { position: relative; }
.timeline-dot {
  position: absolute; left: -2.35rem; top: 1.5rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: #ff0044;
  border: 3px solid #080000;
}
.timeline-dot.active-dot {
  background: #00ff88;
  box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 255, 136, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}
.timeline-location {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.8rem; color: #888; margin-top: 0.5rem; display: block;
}
.timeline-content { padding: 1.5rem; border-radius: 16px; }
.timeline-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.timeline-header h3 { margin: 0; font-size: 1.2rem; }
.timeline-header .company { font-size: 0.9rem; font-weight: 600; }
.timeline-date { color: #888; font-size: 0.9rem; }
.timeline-list { padding-left: 1.2rem; color: #bbb; line-height: 1.6; margin-bottom: 1rem; }
.timeline-list li { margin-bottom: 0.5rem; }
.timeline-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tech-tag { padding: 0.2rem 0.8rem; background: rgba(255,255,255,0.1); border-radius: 50px; font-size: 0.8rem; color: #fff; }

/* Project Showcase */
.project-showcase { display: flex; flex-direction: column; gap: 3rem; }
.project-card {
  display: flex; gap: 2rem; padding: 1.5rem; border-radius: 20px; align-items: center;
}
.project-card.reverse { flex-direction: row-reverse; }
.project-img-wrapper { flex: 1; aspect-ratio: 16/9; }
.project-info { flex: 1; padding: 1rem; }
.project-info h3 { font-size: 1.5rem; margin: 1rem 0; }
.project-info p { color: #bbb; line-height: 1.6; margin-bottom: 1.5rem; }

/* Tech Grid */
.tech-grid { display: flex; flex-wrap: wrap; gap: 1rem; }
.tech-pill {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: #ccc; font-weight: 500;
  transition: background 0.3s;
}
.tech-pill:hover { background: rgba(255,255,255,0.1); color: #fff; }
.tech-pill img { width: 20px; height: 20px; }

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .project-card, .project-card.reverse { flex-direction: column; }
  .profile-hero { padding: 2rem; }
  .profile-hero-title { font-size: 2rem; }
  .timeline-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* --- Co-Founder specific hero background adjustment --- */
#co-founder-hero {
  /* The entire hero is a single white translucent glassy card */
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

#co-founder-hero .profile-hero-img {
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  left: auto;
  right: 0;
  
  /* Smoothly fade the exact left edge of the image to transparent to blend it flawlessly */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%);
  mask-image: linear-gradient(to right, transparent 0%, black 25%);
}

#co-founder-hero .profile-hero-overlay {
  /* Remove the dark shading so the card stays light and visible */
  display: none;
}

/* --- Mobile specific adjustments for Co-Founder --- */
@media (max-width: 768px) {
  #co-founder-hero .profile-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    -webkit-mask-image: none;
    mask-image: none;
  }
  
  #co-founder-hero .profile-hero-overlay {
    /* Restore the dark gradient on mobile so the white text remains readable over the full-width image */
    display: block;
  }
}

/* --- Glassmorphism Red Button --- */
.btn-glass-red {
  display: inline-block;
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.25) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.15);
  text-align: center;
}

.btn-glass-red:hover {
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.4) 0%, rgba(255, 255, 255, 0.15) 100%);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
  color: #fff;
}

/* --- NEW BLOG REDESIGN STYLES --- */
.blog-search-container {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  max-width: 600px;
  margin: 2rem auto;
  transition: border-color 0.3s;
}
.blog-search-container:focus-within {
  border-color: rgba(255, 255, 255, 0.3);
}
.blog-search-container svg {
  color: #9ca3af;
  margin-right: 1rem;
}
.blog-search-input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1rem;
  width: 100%;
  outline: none;
  font-family: 'Inter', sans-serif;
}
.blog-search-input::placeholder {
  color: #6b7280;
}

.blog-chips-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  justify-content: center;
  scrollbar-width: none;
}
.blog-chips-scroll::-webkit-scrollbar {
  display: none;
}
.blog-chip {
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d1d5db;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-family: 'Space Mono', monospace;
  cursor: pointer;
  transition: all 0.3s;
}
.blog-chip:hover, .blog-chip.active {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.latest-article-section {
  padding: 1rem 0 4rem;
  background: #000;
}
.latest-article-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
  text-decoration: none;
  color: inherit;
}
.latest-article-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 0, 0, 0.3);
}
@media (min-width: 992px) {
  .latest-article-card {
    flex-direction: row;
    align-items: center;
  }
}
.latest-article-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
@media (min-width: 992px) {
  .latest-article-img {
    width: 50%;
  }
}
.latest-article-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}
.latest-article-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin: 1rem 0;
  line-height: 1.2;
}
.latest-article-content p {
  color: #9ca3af;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.latest-article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}
.latest-article-meta img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.latest-article-meta-info {
  display: flex;
  flex-direction: column;
}
.latest-article-meta-name {
  font-weight: 600;
  font-size: 0.9rem;
}
.latest-article-meta-date {
  color: #6b7280;
  font-size: 0.8rem;
}
.latest-article-btn {
  margin-top: 2rem;
  align-self: flex-start;
}

.all-articles-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 1rem;
}
.all-articles-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
}
.all-articles-header a {
  color: #9ca3af;
  text-decoration: none;
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
  transition: color 0.3s;
}
.all-articles-header a:hover {
  color: #fff;
}

/* --- ARTICLE PAGE STYLES --- */
.article-page-header {
  padding: 8rem 0 1.5rem;
  background: radial-gradient(circle at top left, rgba(30,0,0,0.5) 0%, #000 70%);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.back-to-blog {
  color: #9ca3af;
  text-decoration: none;
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  transition: color 0.3s;
}
.back-to-blog:hover { color: #fff; }

.article-header-tag {
  color: #ff3333;
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  display: block;
}
.article-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.article-subtitle {
  font-size: 1.25rem;
  color: #d1d5db;
  max-width: 800px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.article-meta-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.article-author-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.1);
}
.article-meta-info {
  display: flex;
  flex-direction: column;
}
.article-author-name {
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
}
.article-date-time {
  color: #9ca3af;
  font-size: 0.85rem;
}

.article-share-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.article-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  transition: all 0.3s;
  cursor: pointer;
}
.article-share-btn:hover {
  background: #fff;
  color: #000;
}

/* Article Layout Grid */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  padding: 2rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 992px) {
  .article-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: flex-start;
  }
}

.article-content {
  min-width: 0;
  max-width: 100%;
}

/* TOC Styles */
.article-toc {
  position: sticky;
  top: 100px;
  border-left: 2px solid rgba(255,255,255,0.1);
  padding-left: 1.5rem;
  display: none;
}
@media (min-width: 992px) {
  .article-toc { display: block; }
}
.article-toc h4 {
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
  color: #fff;
  margin-top: 0;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.article-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.article-toc a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
  line-height: 1.4;
  display: block;
}
.article-toc a:hover, .article-toc a.active {
  color: #fff;
  font-weight: 500;
}

/* Content Styles */
.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #d1d5db;
  max-width: 800px;
}
.article-content p { margin-bottom: 1.5rem; }
.article-content h2 {
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  font-size: 1.8rem;
  margin: 3rem 0 1rem;
  font-weight: 800;
}
.article-content h3 {
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
  font-weight: 700;
}
.article-content img {
  width: 100%;
  border-radius: 12px;
  margin: 2rem 0;
  border: 1px solid rgba(255,255,255,0.1);
}
.article-content > *:first-child {
  margin-top: 0;
}
.article-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(255,255,255,0.03);
  border-left: 4px solid #ff3333;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #fff;
}
.article-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.article-content li {
  margin-bottom: 0.5rem;
}

/* Table Styles */
.article-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  -webkit-overflow-scrolling: touch;
}
.article-table {
  width: 100%;
  min-width: max-content;
  border-collapse: collapse;
  text-align: left;
}
.article-table th {
  background: rgba(255,255,255,0.05);
  color: #fff;
  padding: 1rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.article-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: #d1d5db;
  font-size: 0.95rem;
}
@media (max-width: 768px) {
  .article-table th { font-size: 0.7rem; padding: 0.75rem; white-space: nowrap; }
  .article-table td { font-size: 0.8rem; padding: 0.75rem; white-space: nowrap; }
}
.article-table tr:last-child td {
  border-bottom: none;
}
.article-table tr:hover td {
  background: rgba(255,255,255,0.02);
}


/* Main article image */
.article-main-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 2rem;
}
