/* =======================================================
   Ayush Portfolio — Apple Dark Mode & Glassmorphism Design
   ======================================================= */

*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --bg-color: #000000;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(255, 255, 255, 0.25);
  --glass-blur: 16px;
  --text-main: #f5f5f7;
  --text-muted: #86868b;
  --text-silver: #d1d1d6;
  --btn-grey: #262629;
  --btn-grey-hover: #3a3a3c;
  --accent-glow: rgba(255, 255, 255, 0.12);
  --font-apple: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font-apple);
  color: var(--text-silver);
  background-color: var(--bg-color);
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==============================================
   DYNAMIC AMBIENT BACKGROUND MESH & LIGHTING
   ============================================== */
.dynamic-background-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background-color: var(--bg-color);
}

.ambient-grid-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.22;
  will-change: transform, opacity;
}

.glow-1 {
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, #5e5ce6 0%, rgba(94, 92, 230, 0) 70%);
  top: -120px;
  right: -80px;
  animation: floatOrb1 22s infinite ease-in-out alternate;
}

.glow-2 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, #2997ff 0%, rgba(41, 151, 255, 0) 70%);
  bottom: 5%;
  left: -180px;
  animation: floatOrb2 26s infinite ease-in-out alternate;
}

.glow-3 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #30d158 0%, rgba(48, 209, 88, 0) 70%);
  top: 45%;
  right: 15%;
  animation: floatOrb3 20s infinite ease-in-out alternate;
}

.glow-4 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #bf5af2 0%, rgba(191, 90, 242, 0) 70%);
  top: 60%;
  left: 20%;
  animation: floatOrb4 24s infinite ease-in-out alternate;
}

/* Interactive Cursor Glow */
.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Ambient Floating Keyframes */
@keyframes floatOrb1 {
  0% { transform: translate(0px, 0px) scale(1); }
  50% { transform: translate(-80px, 60px) scale(1.1); }
  100% { transform: translate(40px, -40px) scale(0.95); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0px, 0px) scale(1); }
  50% { transform: translate(100px, -80px) scale(1.15); }
  100% { transform: translate(-50px, 50px) scale(0.9); }
}

@keyframes floatOrb3 {
  0% { transform: translate(0px, 0px) scale(1); opacity: 0.15; }
  50% { transform: translate(-60px, -90px) scale(1.12); opacity: 0.28; }
  100% { transform: translate(70px, 40px) scale(0.92); opacity: 0.18; }
}

@keyframes floatOrb4 {
  0% { transform: translate(0px, 0px) scale(1); }
  50% { transform: translate(80px, 70px) scale(1.08); }
  100% { transform: translate(-90px, -50px) scale(0.95); }
}

/* Glassmorphism Foundation */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Typography Helpers */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #a1a1a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 980px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: -0.01em;
}

.btn.primary {
  background: var(--btn-grey);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}

.btn.primary:hover {
  background: var(--btn-grey-hover);
  transform: scale(1.02);
  box-shadow: 0 0 24px var(--accent-glow);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.02);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn.sm-btn {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  border-radius: 8px;
}

.btn.full-width {
  width: 100%;
}

/* Header & Nav */
.site-header {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 980px;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  border-radius: 980px;
}

.logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #ffffff;
}
.logo span {
  color: #2997ff;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.secret-trigger-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.secret-trigger-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  margin: 6rem auto 2rem;
  width: calc(100% - 3rem);
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a1a1a6;
  border-radius: 980px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  line-height: 1.08;
  font-weight: 700;
  margin: 0 0 1.5rem;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Section Header Styles */
.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  text-align: center;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Services Section */
.services {
  position: relative;
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 1.5rem;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.05);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 1.3rem;
  color: #ffffff;
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

/* Portfolio Masonry Section */
.portfolio {
  position: relative;
  max-width: 1200px;
  margin: 6rem auto;
  padding: 0 1.5rem;
  z-index: 1;
}

.portfolio-grid {
  column-count: 3;
  column-gap: 1.5rem;
}

@media (max-width: 960px) {
  .portfolio-grid { column-count: 2; }
}
@media (max-width: 600px) {
  .portfolio-grid { column-count: 1; }
}

.portfolio-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
}

.portfolio-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 16px 36px rgba(0,0,0,0.8);
}

.media-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #080808;
}

.media-container img,
.media-container video {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover .media-container img,
.portfolio-item:hover .media-container video {
  transform: scale(1.05);
}

.media-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 980px;
  color: #fff;
  z-index: 2;
}

/* Glass Hover Overlay */
.portfolio-item::after {
  content: attr(data-title) "\A\A" attr(data-description);
  white-space: pre-line;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.65) 55%, transparent 100%);
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 400;
  z-index: 3;
}

.portfolio-item:hover::after {
  opacity: 1;
}

/* About Section */
.about {
  position: relative;
  max-width: 900px;
  margin: 6rem auto;
  padding: 0 1.5rem;
  z-index: 1;
}

.about-card {
  padding: 3rem 2.5rem;
  text-align: center;
}

.about-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-silver);
  max-width: 720px;
  margin: 1.5rem auto 2.5rem;
}

.about-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ==============================================
   CONTACT SECTION (DUAL-COLUMN APPLE GLASS)
   ============================================== */
.contact {
  position: relative;
  max-width: 1120px;
  margin: 6rem auto 4rem;
  padding: 0 1.5rem;
  z-index: 1;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  padding: 3.5rem;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9);
}

@media (max-width: 920px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.25rem 1.75rem;
  }
}

/* Left Column */
.contact-info-col {
  display: flex;
  flex-direction: column;
}

.contact-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0.85rem;
  border-radius: 980px;
  margin-bottom: 1.25rem;
  width: fit-content;
}

.contact-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #d1d1d6;
  text-transform: uppercase;
}

.contact-heading {
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  color: #ffffff;
  margin: 0 0 1.25rem;
  letter-spacing: -0.025em;
}

.contact-subtext {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-silver);
  margin: 0 0 2rem;
}

.contact-guarantees {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.guarantee-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  transition: all 0.25s ease;
}

.guarantee-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(4px);
}

.guarantee-icon {
  font-size: 1.2rem;
  line-height: 1.2;
}

.guarantee-text strong {
  display: block;
  font-size: 0.92rem;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.guarantee-text span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.availability-card {
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.availability-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.avail-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 8px #30d158;
}

.avail-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
}

.avail-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Right Column (Form) */
.contact-form-col {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.refined-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 580px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.input-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.input-field-wrap label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.input-field-wrap input,
.input-field-wrap textarea,
.input-field-wrap select {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.input-field-wrap input:focus,
.input-field-wrap textarea:focus,
.input-field-wrap select:focus {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.12);
}

.input-field-wrap input::placeholder,
.input-field-wrap textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.input-field-wrap select option {
  background: #141416;
  color: #ffffff;
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  background: #2c2c2e;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.25s ease;
}

.submit-btn:hover {
  background: #3a3a3c;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 255, 255, 0.1);
}

.submit-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-arrow {
  transition: transform 0.2s ease;
}

.form-privacy-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

/* Success Confirmation Card */
.form-success-box {
  padding: 2.5rem 2rem;
  text-align: center;
  border-radius: 18px;
  background: rgba(20, 20, 24, 0.9);
  border: 1px solid rgba(48, 209, 88, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(48, 209, 88, 0.15);
  animation: fadeInPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInPop {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

.success-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(48, 209, 88, 0.15);
  border: 1px solid rgba(48, 209, 88, 0.4);
  color: #30d158;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.form-success-box h3 {
  font-size: 1.35rem;
  color: #ffffff;
  margin: 0 0 0.5rem;
}

.form-success-box p {
  font-size: 0.92rem;
  color: var(--text-silver);
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

/* ==============================================
   REFINED FOOTER (EXPANDED APPLE GLASS)
   ============================================== */
.site-footer {
  position: relative;
  max-width: 1120px;
  margin: 0 auto 2.5rem;
  padding: 3rem 2.5rem 2rem;
  z-index: 1;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(14, 14, 16, 0.6);
}

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

@media (max-width: 820px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand .logo {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 340px;
  margin: 0;
}

.footer-nav h4,
.footer-connect h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin: 0 0 1rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-nav a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.back-to-top {
  color: var(--text-silver) !important;
  margin-top: 0.4rem;
}

.footer-connect p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.footer-connect a {
  color: var(--text-silver);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-connect a:hover {
  color: #30d158;
}

.footer-connect span {
  color: #ffffff;
  font-family: var(--font-apple);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

.footer-bottom .social-links {
  display: flex;
  gap: 1.25rem;
  margin: 0;
}

.footer-bottom .social-links a {
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
}

.footer-bottom .social-links a:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-bottom .copyright {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.secret-text-trigger {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.25);
  margin-left: 0.5rem;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.secret-text-trigger:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* Scroll Fade In Animation */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================================
   MODAL & SECRET STUDIO STYLES
   ============================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 2.25rem;
  background: rgba(20, 20, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-box {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #ffffff;
}

.lock-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin: 0 auto 1.25rem;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  margin: 0 0 0.5rem;
}

.modal-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 1.5rem;
}

.passcode-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.passcode-input-wrap input {
  padding-right: 2.5rem;
}

.visibility-btn {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  font-size: 1rem;
}

.visibility-btn:hover {
  opacity: 1;
}

.error-msg {
  display: none;
  color: #ff453a;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-align: center;
}

.hint-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin: 1.25rem 0 0;
}

.hint-text code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* Studio Box (Expanded Admin Dialog) */
.studio-box {
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
}

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

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

.studio-header-title h3 {
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
}

.studio-badge {
  background: #30d158;
  color: #000;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

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

/* Tabs */
.studio-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.35rem;
  border-radius: 10px;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.6rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.form-row {
  display: flex;
  gap: 1rem;
}
.flex-1 {
  flex: 1;
}

@media (max-width: 550px) {
  .form-row {
    flex-direction: column;
  }
}

.studio-box label {
  font-size: 0.82rem;
  color: #a1a1a6;
  margin-bottom: 0.4rem;
  display: block;
  font-weight: 500;
}

.source-toggle {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.source-toggle label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  cursor: pointer;
  font-size: 0.88rem;
}

.helper-text {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.media-preview-box {
  margin: 1.25rem 0;
  padding: 1.25rem;
  background: rgba(8, 8, 12, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: fadeInPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: #30d158;
}

.clear-preview-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clear-preview-btn:hover {
  color: #ff453a;
  border-color: rgba(255, 69, 58, 0.4);
}

.preview-content-box {
  display: flex;
  justify-content: center;
  align-items: center;
}

.media-preview-box img,
.media-preview-box video {
  max-width: 100%;
  max-height: 240px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  object-fit: contain;
}

.media-preview-box iframe {
  width: 100%;
  max-width: 500px;
  height: 250px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

/* Custom Media List */
.custom-media-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  max-height: 380px;
  overflow-y: auto;
}

.custom-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  gap: 1rem;
}

.item-thumb-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.item-thumb {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
  background: #111;
}

.item-details h5 {
  margin: 0;
  color: #fff;
  font-size: 0.95rem;
}

.item-details span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.delete-item-btn {
  background: rgba(255, 69, 58, 0.15);
  color: #ff453a;
  border: 1px solid rgba(255, 69, 58, 0.3);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.delete-item-btn:hover {
  background: rgba(255, 69, 58, 0.35);
}

.settings-card {
  padding: 1.25rem;
}

.settings-card h4 {
  margin: 0 0 0.4rem;
  color: #fff;
}

.sub-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

/* Lightbox Video Modal */
.video-modal-box {
  width: 90%;
  max-width: 900px;
  padding: 2rem 1.5rem;
  border-radius: 20px;
  text-align: center;
}

.video-modal-box iframe,
.video-modal-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 12px;
}

/* ==============================================
   HIGHLIGHTED DIRECT CONNECT (WHATSAPP & DISCORD)
   ============================================== */

.direct-connect {
  position: relative;
  max-width: 1050px;
  margin: 6rem auto 3rem;
  padding: 0 1.5rem;
  z-index: 1;
}

.highlight-container {
  padding: 3.5rem 2.5rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
}

.highlight-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.highlight-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3rem;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(48, 209, 88, 0.12);
  border: 1px solid rgba(48, 209, 88, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 980px;
  margin-bottom: 1.25rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #30d158;
  box-shadow: 0 0 10px #30d158;
  animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(48, 209, 88, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(48, 209, 88, 0);
  }
}

.highlight-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #30d158;
  text-transform: uppercase;
}

.direct-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.direct-card {
  padding: 2.25rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(18, 18, 22, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.whatsapp-glow:hover {
  border-color: rgba(37, 211, 102, 0.5);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.9), 0 0 35px rgba(37, 211, 102, 0.2);
  transform: translateY(-5px);
}

.discord-glow:hover {
  border-color: rgba(88, 101, 242, 0.5);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.9), 0 0 35px rgba(88, 101, 242, 0.2);
  transform: translateY(-5px);
}

.direct-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.direct-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-badge {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: #25d366;
}

.discord-badge {
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.35);
  color: #5865f2;
}

.direct-tag {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.25rem 0.75rem;
  border-radius: 980px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.direct-card-body {
  margin-bottom: 2rem;
}

.direct-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
  margin-bottom: 0.4rem;
}

.direct-value {
  font-size: 1.65rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
  font-family: var(--font-apple);
}

.direct-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-silver);
  margin: 0;
}

.direct-card-actions {
  display: flex;
  gap: 0.75rem;
}

.direct-action-btn {
  flex: 1;
}

.copy-action-btn {
  padding: 0.75rem 1.25rem;
  min-width: 80px;
  font-size: 0.88rem;
}

.copy-action-btn.copied {
  background: rgba(48, 209, 88, 0.2);
  color: #30d158;
  border-color: rgba(48, 209, 88, 0.4);
}

/* Toast Notification */
.apple-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: rgba(22, 22, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  padding: 0.8rem 1.6rem;
  border-radius: 980px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85), 0 0 24px rgba(88, 101, 242, 0.25);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.apple-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


