/* ==========================================================================
   PSP Ventures Responsive Styling & Media Queries
   STRICT RULE: Do NOT affect desktop (≥1200px). Desktop is completely approved and untouched.
   ========================================================================== */

/* === GLOBAL SECTION TRANSPARENCY OVERRIDES === */
/* (These overrides apply globally because they clean up legacy gradient code, but they do NOT break desktop layout) */
.section, .products-showcase-section, .highlights-section, footer, .footer,
section[id], footer {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

.section::before, .section::after,
.products-showcase-section::before, .products-showcase-section::after,
.highlights-section::before, .highlights-section::after,
footer::before, footer::after,
section[id]::before, section[id]::after {
    background: none !important;
    background-image: none !important;
    opacity: 0 !important;
    box-shadow: none !important;
}

.glow-container,
.ambient-glow,
.about-glow-container,
.about-glow,
.grid-ambient-glow,
.products-ambient-glow,
.section-glow,
.radial-field {
    display: none !important;
    opacity: 0 !important;
    background: none !important;
}

/* === FINAL SECTION DIVIDERS === */
.section, .products-showcase-section, footer, .footer, section[id] {
    border-top: 1px solid rgba(255, 255, 255, 0.045) !important;
}

/* Hero should not have a top border */
#hero {
    border-top: none !important;
}

/* Very subtle local cyan/purple atmosphere for Products */
section#featured-products::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    z-index: -1 !important;
    background: radial-gradient(circle at 50% 55%, rgba(40, 210, 220, 0.025), transparent 42%) !important;
    opacity: 1 !important;
}

/* === FINAL ALTERNATING SECTION OVERLAYS === */
.section-masked, .section-open {
    position: relative !important;
    z-index: 1 !important;
}

.section-masked {
    border-top: none !important;
    border-bottom: none !important;
}

section.section-masked[id]::before, footer.section-masked::before, .section-masked::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: #0c0e11 !important;
    background-color: #0c0e11 !important;
    background-image: none !important;
    pointer-events: none !important;
    z-index: -1 !important;
    opacity: 1 !important;
    display: block !important;
    box-shadow: inset 0 20px 40px -20px rgba(0,0,0,0.8), inset 0 -20px 40px -20px rgba(0,0,0,0.8) !important;
}

section.section-open[id]::before, .section-open::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
    opacity: 1 !important;
    display: block !important;
    box-shadow: inset 0 20px 40px -20px rgba(0,0,0,0.8), inset 0 -20px 40px -20px rgba(0,0,0,0.8) !important;
}

#hero::before {
    display: none !important;
}

/* === PROFESSIONAL SECTION SEPARATORS === */
section[id]::after, footer::after, .section-masked::after, .section-open::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 10% !important;
    width: 80% !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent) !important;
    background-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent) !important;
    z-index: 5 !important;
    pointer-events: none !important;
    opacity: 1 !important;
    display: block !important;
    box-shadow: none !important;
}

#hero::after {
    display: none !important;
}

/* === FOOTER PURE BLACK OVERRIDE === */
body footer.section-masked::before, body footer::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: #000000 !important;
    background-color: #000000 !important;
    background-image: none !important;
    opacity: 1 !important;
    display: block !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

body footer, body footer.section-masked {
    background: transparent !important;
    background-color: transparent !important;
}

/* === PREMIUM LOCALIZED GLOWS (INSIDE MASKED SECTIONS) === */
.section-glow-layer {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  display: block !important;
  opacity: 1 !important;
  background: transparent !important;
}

.about-glows::before {
  content: "" !important;
  position: absolute !important;
  width: 520px !important;
  height: 520px !important;
  left: 12% !important;
  top: 28% !important;
  background: radial-gradient(circle, rgba(123, 255, 40, 0.11) 0%, rgba(123, 255, 40, 0.045) 38%, transparent 72%) !important;
  filter: blur(35px) !important;
  pointer-events: none !important;
  display: block !important;
  opacity: 1 !important;
}

.about-glows::after {
  content: "" !important;
  position: absolute !important;
  width: 620px !important;
  height: 520px !important;
  right: 10% !important;
  top: 20% !important;
  background: radial-gradient(circle at 35% 35%, rgba(0, 220, 255, 0.08), transparent 58%), radial-gradient(circle at 70% 65%, rgba(123, 255, 40, 0.07), transparent 58%) !important;
  filter: blur(40px) !important;
  pointer-events: none !important;
  display: block !important;
  opacity: 1 !important;
}

.icon-green {
  box-shadow: 0 0 18px rgba(123, 255, 40, 0.18), 0 0 40px rgba(123, 255, 40, 0.07) !important;
}
.icon-cyan {
  box-shadow: 0 0 18px rgba(0, 220, 255, 0.16), 0 0 40px rgba(0, 220, 255, 0.06) !important;
}

@media (min-width: 992px) {
  .about-card.glow-green:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.30), 0 0 35px rgba(123,255,40,0.07) !important;
  }
  .about-card.glow-cyan:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.30), 0 0 35px rgba(0,220,255,0.06) !important;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (max-width queries only to protect desktop)
   ========================================================================== */

/* Hide hamburger on desktop */
.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  padding: 4px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.hamburger.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
  background-color: var(--primary-accent);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
  background-color: var(--primary-accent);
}

/* Body lock class */
body.no-scroll {
  overflow: hidden;
  height: 100vh;
}

/* 1. Large Screen Adjustments (max-width: 1199px) - Just safety container padding */
@media screen and (max-width: 1199px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* 2. Tablet & Mobile Navigation Breakpoint (max-width: 991px) */
@media screen and (max-width: 991px) {
  
  /* Navigation Slide-in Drawer */
  .hamburger {
    display: flex;
    margin-left: 1rem;
  }

  .nav-cta .btn {
    display: none; /* Hide the top 'GET IN TOUCH' button on mobile to save space */
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(8, 10, 15, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
  }

  nav.nav-active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }

  .nav-links a {
    font-size: 1.5rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    width: 100%;
    text-align: center;
  }

  /* Grid Layout Restructuring (Stacking) */
  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    gap: 1.5rem;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

/* 3. Mobile Landscape & Small Tablet (max-width: 768px) */
@media screen and (max-width: 768px) {
  /* Typography Scaling */
  h1 { font-size: clamp(2.5rem, 8vw, 4rem); }
  h2 { font-size: clamp(2rem, 6vw, 3rem); }
  h3 { font-size: clamp(1.5rem, 5vw, 2.25rem); }
  
  .section {
    padding: 5rem 0;
  }

  /* Stacking all grids */
  .grid-4, .grid-3, .grid-2, .feature-grid-2x2 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* About / Split Layouts */
  .about-split {
    flex-direction: column;
    align-items: flex-start;
  }
  .about-mission, .about-vision {
    width: 100%;
  }

  /* Footer Layout Stacking */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-legal-links {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1rem;
  }

  /* Products Filter Tabs */
  .filter-container {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px; /* Reduced for mobile */
  }

  .filter-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    flex-grow: 1;
    text-align: center;
  }
  
  /* Contact Page Grid */
  .contact-section .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* 4. Mobile Portrait (max-width: 480px) */
@media screen and (max-width: 480px) {
  .section {
    padding: 4rem 0;
  }

  /* Hero Section Mobile Polish */
  #hero {
    min-height: 70vh !important;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px; /* Touch target accessibility */
  }

  /* Card padding reduction to save space on small screens */
  .glass-card, .product-card, .about-card {
    padding: 1.5rem !important; /* Uniform touch-friendly padding */
  }

  /* Forms */
  input, textarea, select {
    padding: 1rem !important;
    font-size: 16px !important; /* Prevents iOS auto-zoom on inputs */
  }

  /* Fix for Contact page custom layout styling on mobile */
  #partnership-form {
    padding: 1.5rem !important;
  }
  
  /* Make sure images remain strictly contained */
  img {
    max-width: 100%;
    height: auto;
  }
}

/* 5. Extra Small Mobile (max-width: 375px) */
@media screen and (max-width: 375px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  
  .container {
    padding: 0 1.25rem;
  }
  
  .glass-card, .product-card, .about-card {
    padding: 1.25rem !important; 
  }
}

/* ==========================================================================
   MOBILE HERO REDESIGN (max-width: 768px)
   ========================================================================== */
@media screen and (min-width: 769px) {
  .mobile-hero-content {
    display: none !important;
  }
}

@media screen and (max-width: 768px) {
  /* Hide all original desktop elements inside .reveal-left */
  .reveal-left > .section-subtitle,
  .reveal-left > h1,
  .reveal-left > p,
  .reveal-left > .hero-buttons,
  .reveal-left > .hero-social-section {
    display: none !important;
  }
  
  #hero {
    height: auto !important;
    min-height: auto !important;
    padding-top: 110px !important;
    padding-bottom: 70px !important;
    overflow: hidden; 
  }

  /* Center everything */
  .mobile-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  /* Typography & Spacing */
  .mobile-subtitle {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 12px;
    color: var(--primary-accent);
    font-weight: 700;
    margin-bottom: 24px;
  }

  .mobile-title {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1.0;
    color: var(--text-primary);
    margin-bottom: 32px;
  }
  
  .mobile-title .line-1 {
    display: block;
    font-size: 34px;
    margin-bottom: 8px;
  }
  
  .mobile-title .neon-text {
    display: block;
    font-size: 48px;
    color: #8CFF00; /* Neon green */
    text-shadow: 0 0 20px rgba(140, 255, 0, 0.4);
  }

  .mobile-desc {
    max-width: 340px;
    font-size: 16px;
    line-height: 1.8;
    color: rgba(230, 235, 245, 0.85);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
  }

  /* Buttons */
  .mobile-cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 16px;
  }
  
  .mobile-cta-group .btn {
    width: 90%;
    height: 56px;
    min-height: 56px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    font-size: 16px;
  }

  .mobile-cta-group .btn svg {
    margin-left: 8px;
    width: 18px;
    height: 18px;
  }
}
