/*
Theme Name: mrclassified - Digital Growth Agency
Theme URI: https://mrclassified.in
Author: Max
Author URI: https://mrclassified.in
Description: Bespoke Cosmic Dark Theme for WordPress & Elementor Free. High-performance SEO, zero-lockin development, sub-second load times, interactive cosmic black hole canvas, and conversion-engineered agency templates.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mrclassified
Tags: dark-mode, cosmic, elementor, full-width, agency, custom-colors, custom-menu, portfolio, e-commerce
*/

/* -------------------------------------------------------------
 * 1. CSS VARIABLES & COSMIC PALETTE
 * ----------------------------------------------------------- */
:root {
  --bg-cosmos: #050505;
  --bg-cosmos-deep: #020202;
  --bg-card: rgba(13, 6, 26, 0.65);
  --bg-card-hover: rgba(26, 12, 51, 0.85);
  --purple-300: #D8B4FE;
  --purple-400: #C084FC;
  --purple-500: #A855F7;
  --purple-600: #9333EA;
  --purple-700: #7E22CE;
  --purple-900: #3B0764;
  --purple-950: #1E0533;
  --indigo-400: #818CF8;
  --indigo-500: #6366F1;
  --indigo-600: #4F46E5;
  --emerald-400: #34D399;
  --emerald-500: #10B981;
  --amber-400: #FBBF24;
  --cyan-400: #38BDF8;
  --zinc-100: #F4F4F5;
  --zinc-200: #E4E4E7;
  --zinc-300: #D4D4D8;
  --zinc-400: #A1A1AA;
  --zinc-500: #71717A;
  --border-subtle: rgba(168, 85, 247, 0.18);
  --border-focus: rgba(192, 132, 252, 0.5);
  --font-heading: 'Syne', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  --header-height: 4.5rem;
}

/* -------------------------------------------------------------
 * 2. BASE STYLING & RESETS
 * ----------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-cosmos);
  color: var(--zinc-100);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-cosmos);
  color: var(--zinc-200);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: #ffffff;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* -------------------------------------------------------------
 * 3. GLASSMORPHISM & COSMIC EFFECTS
 * ----------------------------------------------------------- */
.glass-primary {
  background: rgba(13, 6, 26, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
}

.glass-secondary {
  background: rgba(10, 5, 20, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(168, 85, 247, 0.16);
}

.glass-floating {
  background: rgba(13, 6, 26, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(192, 132, 252, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(124, 58, 237, 0.15);
}

.glass-glow-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-glow-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(192, 132, 252, 0.45);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(168, 85, 247, 0.25);
}

.text-gradient-purple {
  background: linear-gradient(135deg, #E9D5FF 0%, #C084FC 45%, #9333EA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-cosmic {
  background: linear-gradient(135deg, #FFFFFF 0%, #C084FC 35%, #818CF8 70%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cosmic-radial-glow {
  background: radial-gradient(circle at 50% 30%, rgba(124, 58, 237, 0.18) 0%, rgba(79, 70, 229, 0.08) 40%, rgba(5, 5, 5, 0) 70%);
}

/* -------------------------------------------------------------
 * 4. LAYOUT UTILITIES & CONTAINERS
 * ----------------------------------------------------------- */
.mc-container {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.mc-grid-2 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

.mc-grid-3 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

.mc-grid-4 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .mc-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .mc-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mc-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mc-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .mc-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .mc-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* -------------------------------------------------------------
 * 5. BUTTONS & CONTROLS
 * ----------------------------------------------------------- */
.btn-cosmic-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, #9333EA 0%, #7E22CE 50%, #4F46E5 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 0 25px rgba(147, 51, 234, 0.4);
  transition: all 0.3s ease;
  white-space: nowrap;
  border: 1px solid rgba(192, 132, 252, 0.3);
}

.btn-cosmic-primary:hover {
  background: linear-gradient(135deg, #A855F7 0%, #9333EA 50%, #6366F1 100%);
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.6);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-cosmic-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.875rem;
  background: rgba(13, 6, 26, 0.85);
  border: 1px solid rgba(192, 132, 252, 0.35);
  color: #E9D5FF;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-cosmic-secondary:hover {
  background: rgba(26, 12, 51, 0.95);
  border-color: #C084FC;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.875rem;
  background: rgba(6, 78, 59, 0.45);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6EE7B7;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-whatsapp:hover {
  background: rgba(6, 78, 59, 0.75);
  border-color: #34D399;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

/* -------------------------------------------------------------
 * 6. WIDE HEADER & NAVIGATION ENGINE
 * ----------------------------------------------------------- */
.mc-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(168, 85, 247, 0.18);
  transition: all 0.3s ease;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

/* Account for WordPress Admin Bar when logged in */
body.admin-bar .mc-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .mc-header {
    top: 46px;
  }
}

.mc-header.scrolled {
  background: rgba(8, 3, 16, 0.96);
  border-bottom: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85);
  height: 4rem;
}

.mc-header-container {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Desktop Nav Container (Centered Rounded Pill Capsule) */
.mc-desktop-nav {
  display: none;
}

@media (min-width: 960px) {
  .mc-desktop-nav {
    display: flex !important;
    align-items: center;
    gap: 0.15rem;
    background: rgba(15, 8, 28, 0.75);
    padding: 0.3rem 0.55rem;
    border-radius: 9999px;
    border: 1px solid rgba(168, 85, 247, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
}

.mc-desktop-menu-list {
  display: flex !important;
  align-items: center !important;
  gap: 0.15rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mc-desktop-menu-list > li,
.mc-nav-item {
  display: inline-flex !important;
  position: relative !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mc-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--zinc-300);
  transition: all 0.2s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}

.mc-nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.08);
}

.mc-nav-link.active,
.current-menu-item > .mc-nav-link,
.current_page_item > .mc-nav-link {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Nav Dropdown & Sub-Menu */
.mc-nav-dropdown,
.menu-item-has-children {
  position: relative;
}

.mc-nav-dropdown-menu,
.mc-dropdown-menu-list,
.mc-desktop-menu-list .sub-menu {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  padding: 0.5rem !important;
  min-width: 17rem !important;
  z-index: 10000 !important;
  list-style: none !important;
  margin: 0 !important;
  background: rgba(13, 6, 26, 0.98) !important;
  border: 1px solid rgba(192, 132, 252, 0.35) !important;
  border-radius: 1rem !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 30px rgba(124, 58, 237, 0.2) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
}

.mc-nav-dropdown:hover > .mc-nav-dropdown-menu,
.mc-nav-dropdown:hover > .mc-dropdown-menu-list,
.menu-item-has-children:hover > .sub-menu {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.25rem !important;
}

.mc-dropdown-panel {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mc-dropdown-item-wrapper,
.sub-menu > li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.mc-dropdown-item,
.sub-menu > li > a {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  padding: 0.6rem 0.85rem !important;
  border-radius: 0.625rem !important;
  color: var(--zinc-200) !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  width: 100% !important;
}

.mc-dropdown-item:hover,
.sub-menu > li > a:hover {
  background: rgba(147, 51, 234, 0.25) !important;
  color: #ffffff !important;
  transform: translateX(3px) !important;
}

/* Header Right Buttons: Call & Let's Talk */
.btn-header-call {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  background: rgba(16, 10, 31, 0.85);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--zinc-200);
  font-size: 0.84rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-header-call:hover {
  border-color: #C084FC;
  background: rgba(28, 14, 54, 0.95);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-header-talk {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 40%, #4F46E5 100%);
  border: 1px solid rgba(192, 132, 252, 0.35);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-header-talk:hover {
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 40%, #6366F1 100%);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.6);
  color: #ffffff;
  transform: translateY(-1px) scale(1.02);
}

/* Mobile Toggle Button */
.mc-mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.75rem;
  background: rgba(13, 6, 26, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #ffffff;
  font-size: 1.25rem;
}

@media (min-width: 960px) {
  .mc-mobile-toggle {
    display: none !important;
  }
}

/* Mobile Drawer Overlay */
.mc-mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 2, 8, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  padding: 1.5rem;
  overflow-y: auto;
  flex-direction: column;
}

.mc-mobile-drawer.active {
  display: flex;
}

.mc-mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.mc-mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  border-radius: 0.875rem;
  background: rgba(13, 6, 26, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.15);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
}

.mc-mobile-nav-link:hover {
  background: rgba(147, 51, 234, 0.25);
  border-color: rgba(192, 132, 252, 0.4);
}

/* -------------------------------------------------------------
 * 7. HERO & BLACK HOLE CANVAS
 * ----------------------------------------------------------- */
.mc-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 7.5rem 0 4.5rem;
  overflow: hidden;
  background: radial-gradient(circle at 65% 45%, rgba(88, 28, 135, 0.4) 0%, rgba(15, 8, 28, 0.85) 45%, #050505 85%);
}

.mc-hero .mc-canvas-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.mc-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.mc-canvas-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
  overflow: hidden;
  border-radius: 1.5rem;
}

.mc-canvas-container::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(5, 5, 5, 0.85) 92%, #050505 100%);
}

.mc-canvas-container canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.mc-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .mc-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
}

.mc-hero-visual-card {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 1.5rem;
  background: rgba(9, 4, 18, 0.7);
  border: 1px solid rgba(192, 132, 252, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(124, 58, 237, 0.2);
  overflow: hidden;
}

@media (min-width: 640px) {
  .mc-hero-visual-card {
    height: 480px;
  }
}

/* -------------------------------------------------------------
 * 8. FOOTER & FLOATING ACTIONS
 * ----------------------------------------------------------- */
.mc-footer {
  background: #030106;
  border-top: 1px solid rgba(168, 85, 247, 0.15);
  padding: 4rem 0 2.5rem;
  margin-top: auto;
}

.mc-floating-actions {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mc-floating-btn {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mc-floating-btn:hover {
  transform: scale(1.1) translateY(-3px);
}

/* -------------------------------------------------------------
 * 9. ELEMENTOR FREE COMPATIBILITY ENHANCEMENTS
 * ----------------------------------------------------------- */
.elementor-template-full-width .mc-header {
  position: fixed;
}

.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 1320px;
}

.elementor-widget-container {
  color: var(--zinc-300);
}

/* Fix Elementor forms & inputs dark styling */
.elementor-field-group input, 
.elementor-field-group textarea, 
.elementor-field-group select {
  background: rgba(13, 6, 26, 0.8) !important;
  border: 1px solid rgba(168, 85, 247, 0.3) !important;
  color: #ffffff !important;
  border-radius: 0.75rem !important;
  padding: 0.75rem 1rem !important;
}

.elementor-button {
  border-radius: 0.875rem !important;
  font-weight: 700 !important;
}

