/*
Theme Name: MTechNets
Theme URI: https://mtechnets.com
Author: MTechNets Team
Author URI: https://mtechnets.com
Description: MTechNets Modern IT Services & Digital Solutions Agency Theme with full Elementor Pro flexbox container and theme builder support.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mtechnets
Tags: custom-colors, custom-menu, custom-logo, editor-style, full-width-template, theme-options
*/

/* ==========================================================================
   01. DESIGN SYSTEM & CSS VARIABLES
   ========================================================================== */
:root {
  /* Brand Color Palette */
  --primary: #16C7D9;
  --primary-hover: #19BFD1;
  --primary-dark: #0EA5C6;
  --primary-glow: rgba(22, 199, 217, 0.28);
  --primary-light-bg: rgba(22, 199, 217, 0.08);

  /* Supporting Navy & Slate Hierarchy */
  --navy-950: #040E18;
  --navy-900: #061A2B;
  --navy-850: #082137;
  --navy-800: #0A2940;
  --navy-700: #124068;
  --blue-accent: #1261A0;
  --cyan-soft: #67E8F9;
  
  /* Surface & Typography */
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  --text-dark: #0B1F33;
  --text-muted: #556B82;
  --text-light-muted: #94A3B8;
  --border-light: #E2E8F0;
  --border-dark: rgba(255, 255, 255, 0.1);
  
  /* Glassmorphism Specs */
  --glass-dark: rgba(6, 26, 43, 0.85);
  --glass-light: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.15);
  
  /* Layout & Geometry */
  --container: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(11, 31, 51, 0.04);
  --shadow-md: 0 8px 24px rgba(11, 31, 51, 0.08);
  --shadow-lg: 0 16px 36px rgba(11, 31, 51, 0.12);
  --shadow-glow: 0 0 35px var(--primary-glow);
  
  /* Transitions */
  --trans-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Typography */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-dark);
  line-height: 1.25;
  font-weight: 700;
}

.font-display {
  font-family: 'Space Grotesk', sans-serif !important;
}

p {
  color: var(--text-muted);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--trans-fast);
}

/* Background Utilities */
.bg-navy-950 { background-color: var(--navy-950) !important; }
.bg-navy-900 { background-color: var(--navy-900) !important; }
.bg-navy-850 { background-color: var(--navy-850) !important; }
.bg-navy-800 { background-color: var(--navy-800) !important; }
.bg-light-surface { background-color: var(--bg-light) !important; }

.text-gradient {
  background: linear-gradient(135deg, #16C7D9 0%, #67E8F9 50%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.text-gradient-purple {
  background: linear-gradient(135deg, #A855F7 0%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

/* Badge Pill */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 1rem;
  background: rgba(22, 199, 217, 0.1);
  border: 1px solid rgba(22, 199, 217, 0.28);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Buttons */
.btn, .elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.625rem;
  border-radius: var(--radius-md);
  transition: var(--trans-fast);
  cursor: pointer;
}

.btn-primary, .elementor-button.elementor-button-primary {
  background: var(--primary) !important;
  color: var(--navy-950) !important;
  border: 1px solid var(--primary) !important;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover, .elementor-button.elementor-button-primary:hover {
  background: var(--primary-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Glassmorphism Cards */
.mtech-glass-card {
  background: rgba(6, 26, 43, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--trans-smooth);
}

.mtech-glass-card:hover {
  border-color: rgba(22, 199, 217, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.mtech-light-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--trans-smooth);
}

.mtech-light-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Header & Sticky Scroll Glass */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--trans-smooth);
  background: rgba(4, 14, 24, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header.scrolled {
  background: rgba(4, 14, 24, 0.96);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(22, 199, 217, 0.2);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-symbol {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--blue-accent) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-950);
  font-size: 1.15rem;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  font-family: 'Space Grotesk', sans-serif;
}

.logo-text span {
  color: var(--primary);
}

/* Navigation & Mega Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  color: #CBD5E1;
  font-size: 0.9375rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-item {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: -150px;
  width: 720px;
  background: rgba(6, 26, 43, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(22, 199, 217, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--trans-smooth);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  z-index: 1001;
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mega-menu-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
  transition: var(--trans-fast);
}

.mega-menu-link:hover {
  background: rgba(22, 199, 217, 0.08);
}

.mega-icon {
  width: 32px;
  height: 32px;
  background: rgba(22, 199, 217, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.mega-text h5 {
  font-size: 0.875rem;
  color: #FFFFFF;
  margin-bottom: 0.15rem;
}

.mega-text p {
  font-size: 0.75rem;
  color: var(--text-light-muted);
  margin-bottom: 0;
  line-height: 1.3;
}

/* Mobile Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 14, 24, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--trans-smooth);
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: var(--navy-900);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.75rem;
  z-index: 2001;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--trans-smooth);
}

.mobile-drawer.active {
  right: 0;
}

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

.drawer-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drawer-link {
  color: #E2E8F0;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.drawer-link:hover {
  color: var(--primary);
}

/* Service Tabs */
.services-nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.service-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--trans-fast);
}

.service-tab-btn:hover, .service-tab-btn.active {
  background: var(--primary);
  color: var(--navy-950);
  border-color: var(--primary);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.service-content-panel {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.service-content-panel.active {
  display: block;
}

/* Portfolio Filters */
.portfolio-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--trans-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--navy-950);
  color: #FFFFFF;
  border-color: var(--navy-950);
}

/* Terminal & Code Box */
.tech-card-main {
  background: #040E18;
  border: 1px solid rgba(22, 199, 217, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(22, 199, 217, 0.15);
}

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

.terminal-dots {
  display: flex;
  gap: 0.4rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.terminal-title {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.75rem;
  color: #64748B;
}

.code-lines {
  font-family: 'Fira Code', monospace, Consolas;
  font-size: 0.8125rem;
  line-height: 1.7;
}

.code-hl-purple { color: #C084FC; }
.code-hl-cyan { color: #67E8F9; }
.code-hl-amber { color: #FCD34D; }

/* Floating Badges in Hero */
.floating-card {
  position: absolute;
  background: rgba(6, 26, 43, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  z-index: 10;
  animation: float 4s ease-in-out infinite;
}

.float-top-right {
  top: -20px;
  right: -20px;
}

.float-bottom-left {
  bottom: -20px;
  left: -20px;
  animation-delay: 2s;
}

.float-icon {
  width: 36px;
  height: 36px;
  background: rgba(22, 199, 217, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.95rem;
}

.float-text h6 {
  font-size: 0.8125rem;
  color: #FFFFFF;
  margin-bottom: 0.1rem;
}

.float-text p {
  font-size: 0.6875rem;
  color: var(--text-light-muted);
  margin-bottom: 0;
}

/* Keyframes */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Page Banner */
.page-banner {
  padding: 8.5rem 0 4.5rem;
  background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
  position: relative;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-banner h1 {
  font-size: 2.75rem;
  color: #FFFFFF;
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.page-banner p {
  max-width: 650px;
  margin: 0 auto;
  color: #94A3B8;
  font-size: 1.05rem;
}

/* ==========================================================================
   Trust Strip — Elementor Image Carousel Override
   ========================================================================== */
.mtechnets-trust-carousel .swiper-slide img,
.mtechnets-trust-carousel .slick-slide img {
  opacity: 0.55;
  transition: opacity 0.3s ease, filter 0.3s ease;
  filter: brightness(1.1);
  max-height: 60px;
  object-fit: contain;
}

.mtechnets-trust-carousel .swiper-slide:hover img,
.mtechnets-trust-carousel .slick-slide:hover img {
  opacity: 1;
  filter: brightness(1.3);
}

.mtechnets-trust-carousel .elementor-image-carousel-wrapper {
  padding: 10px 0;
}

/* ==========================================================================
   Services Section & Dark Service Cards
   ========================================================================== */
.services-dark-section {
  position: relative;
}

.mtech-service-dark-card {
  position: relative;
  background: rgba(6, 26, 43, 0.75) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden;
}

.mtech-service-dark-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.mtech-service-dark-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(22, 199, 217, 0.4) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(22, 199, 217, 0.15) !important;
}

.mtech-service-dark-card:hover::before {
  opacity: 1;
}

/* Service Number Badge */
.service-num-badge {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  color: var(--primary) !important;
  text-transform: uppercase;
  margin-bottom: 1.25rem !important;
  padding: 0.2rem 0.6rem;
  background: rgba(22, 199, 217, 0.08);
  border-radius: 6px;
  border: 1px solid rgba(22, 199, 217, 0.2);
}

/* Icon Box inside Dark Card */
.service-dark-icon-box .elementor-icon-box-icon {
  margin-bottom: 1.25rem !important;
}

.service-dark-icon-box .elementor-icon {
  width: 54px;
  height: 54px;
  background: rgba(22, 199, 217, 0.12);
  border: 1px solid rgba(22, 199, 217, 0.25);
  border-radius: 14px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem !important;
  color: var(--primary) !important;
  transition: all 0.3s ease;
}

.mtech-service-dark-card:hover .service-dark-icon-box .elementor-icon {
  background: var(--primary);
  color: var(--navy-950) !important;
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(22, 199, 217, 0.4);
}

.service-dark-icon-box .elementor-icon-box-title {
  color: #FFFFFF !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.75rem !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.service-dark-icon-box .elementor-icon-box-description {
  color: #94A3B8 !important;
  font-size: 0.95rem !important;
  line-height: 1.65 !important;
  margin-bottom: 1.5rem !important;
}

/* Explore CTA button */
.service-dark-explore-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  color: var(--primary) !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  transition: gap 0.2s ease, color 0.2s ease !important;
  padding: 0 !important;
}

.service-dark-explore-btn i,
.service-dark-explore-btn svg {
  transition: transform 0.2s ease !important;
}

.mtech-service-dark-card:hover .service-dark-explore-btn {
  color: #67E8F9 !important;
}

.mtech-service-dark-card:hover .service-dark-explore-btn i,
.mtech-service-dark-card:hover .service-dark-explore-btn svg {
  transform: translateX(4px);
}


