/*
Theme Name: Angels Glyph Theme
Author: Shabbir Showne
Author URI: https://www.shabbirshowne.com
Description: The official 2025 custom portfolio theme for Angels Glyph.
Version: 1.0
*/

:root {
  /* DARK MODE (Default) - Pure Black Background */
  --bg-page: #000000;
  --text-main: #ffffff;
  --text-muted: #9ca3af;
  --bg-panel: rgba(255, 255, 255, 0.05);
  --border-panel: rgba(255, 255, 255, 0.1);
  --bg-footer: #000000;
  --brand-color: #8a2241;
}

.light-mode {
  /* LIGHT MODE - Pure White Background */
  --bg-page: #ffffff;
  --text-main: #000000;
  --text-muted: #4b5563;
  --bg-panel: rgba(0, 0, 0, 0.05);
  --border-panel: rgba(0, 0, 0, 0.1);
  --bg-footer: #f3f4f6;
}

body {
  /* FIXED: Added !important to FORCE Black or White background */
  background-color: var(--bg-page) !important;
  color: var(--text-main);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Global Noise Overlay */
.bg-noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.glass-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-panel);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.glass-button {
  background: #8a2241;
  color: #ffffff;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.glass-button:hover {
  background: rgba(138, 34, 65, 0.8);
  box-shadow: 0 0 30px rgba(138, 34, 65, 0.3);
  transform: translateY(-2px);
}

.glass-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}

.glass-button:hover::after {
  left: 100%;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-page);
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8a2241;
}

/* 3D Perspective Utility */
.perspective-1000 {
  perspective: 1000px;
}

.rotate-y-12 {
  transform: rotateY(-12deg) rotateX(5deg);
}
/* IPHONE FIX: Forces the background behind the scroll to be black */
html {
    background-color: #000000 !important;
}
/* ============================================================
   ULTIMATE NEWSLETTER FIX - PREVENTS BOX STRETCHING
   ============================================================ */

/* Force the form to be a flat flex container so it doesn't stretch */
.newsletter-container form {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

/* Kill all extra gaps added by the plugin */
.newsletter-container form p,
.newsletter-container form br,
.newsletter-container span.wpcf7-form-control-wrap br {
    display: none !important;
}

/* Ensure the wrapper doesn't add height */
.newsletter-container .wpcf7-form-control-wrap {
    display: contents !important;
}

/* Final styling for the Success Message under the box */
.newsletter-container .wpcf7-response-output {
    border: 1px solid #4ade80 !important; 
    background: rgba(0, 0, 0, 0.4) !important;
    border-radius: 12px;
    padding: 10px !important;
    margin-top: 15px !important;
    color: #ffffff !important;
    font-size: 13px;
    text-align: center;
}