/* ==========================================================================
   METHINKED TECH SOLUTIONS - GLASSMORPHIC STYLESHEET
   ========================================================================== */

/* Design Tokens & CSS Variables */
:root {
  --bg-dark: #070a13;
  --bg-surface: rgba(15, 23, 42, 0.65);
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.075);
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(79, 172, 254, 0.35);
  
  --primary-cyan: #00f2fe;
  --primary-blue: #4facfe;
  --accent-purple: #8e2de2;
  --accent-neon: #00f5a0;
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-glow: 0 0 25px rgba(79, 172, 254, 0.25);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Ambient Animated Background */
.ambient-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  animation: floatOrb 18s infinite alternate ease-in-out;
}

.orb-1 {
  top: -10%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary-cyan) 0%, var(--primary-blue) 100%);
}

.orb-2 {
  bottom: 10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-purple) 0%, #4a00e0 100%);
  animation-delay: -6s;
}

.orb-3 {
  top: 40%;
  left: -10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--accent-neon) 0%, #00b4db 100%);
  animation-delay: -12s;
  opacity: 0.3;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
  100% { transform: translate(-40px, 80px) scale(0.95); }
}

/* Glassmorphism Primitives */
.glass-panel {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass);
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.glass-badge {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  padding: 0.4rem 1.2rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-cyan);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-neon);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-neon);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.4; transform: scale(0.9); }
}

/* Typography & Accent Gradients */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-blue) 50%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.accent-text {
  color: var(--primary-cyan);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-normal);
  border: none;
}

.btn-glow {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-purple) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(79, 172, 254, 0.4);
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(142, 45, 226, 0.6);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* Navigation Bar */
.navbar-wrapper {
  position: fixed;
  top: 1.25rem;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 1.5rem;
}

.navbar {
  width: 100%;
  max-width: 1100px;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--primary-cyan), var(--accent-purple));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.logo-icon svg {
  width: 20px;
  height: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

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

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 4rem;
  text-align: center;
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 1.5rem 0;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.hero-cta-group {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin-bottom: 4rem;
}

/* Stats Banner */
.stats-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem 2.5rem;
  border-radius: var(--radius-lg);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-cyan);
}

.stat-number .unit {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.stat-divider {
  display: none;
}

/* Layout Containers & Section Styling */
.section-padding {
  padding: 6rem 1.5rem;
}

.alt-bg {
  background: rgba(255, 255, 255, 0.015);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  color: var(--primary-cyan);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin: 0.5rem 0 1rem;
}

.section-description {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* About Section Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 2.5rem;
  align-items: start;
}

.profile-card {
  text-align: center;
}

.profile-avatar {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 1.25rem;
}

.avatar-glow {
  position: absolute;
  inset: -4px;
  background: linear-gradient(135deg, var(--primary-cyan), var(--accent-purple));
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.7;
}

.avatar-icon {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--primary-cyan);
  border: 2px solid var(--border-glass);
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 700;
}

.profile-role {
  color: var(--primary-cyan);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.profile-bio {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.subsection-title {
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.mini-card {
  padding: 1.5rem;
}

.icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.icon-box svg {
  width: 22px;
  height: 22px;
}

.icon-box.cyan { background: rgba(0, 242, 254, 0.12); color: var(--primary-cyan); }
.icon-box.purple { background: rgba(142, 45, 226, 0.12); color: var(--accent-purple); }
.icon-box.green { background: rgba(0, 245, 160, 0.12); color: var(--accent-neon); }
.icon-box.blue { background: rgba(79, 172, 254, 0.12); color: var(--primary-blue); }

.mini-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.mini-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Services Filter Bar */
.services-filter-bar {
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  margin-bottom: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover {
  color: #fff;
}

.filter-btn.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-glow);
  color: var(--primary-cyan);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.2rem;
  width: 300px;
}

.search-box svg {
  color: var(--text-dim);
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.9rem;
  width: 100%;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-icon.cyan { background: rgba(0, 242, 254, 0.1); color: var(--primary-cyan); }
.service-icon.purple { background: rgba(142, 45, 226, 0.1); color: var(--accent-purple); }
.service-icon.blue { background: rgba(79, 172, 254, 0.1); color: var(--primary-blue); }
.service-icon.green { background: rgba(0, 245, 160, 0.1); color: var(--accent-neon); }
.service-icon.orange { background: rgba(255, 153, 0, 0.1); color: #ff9900; }
.service-icon.red { background: rgba(255, 75, 75, 0.1); color: #ff4b4b; }

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

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

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  padding: 2.2rem;
}

.project-tag {
  color: var(--primary-cyan);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.project-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Pricing Card */
.pricing-card-wrapper {
  max-width: 540px;
  margin: 0 auto;
}

.pricing-card {
  text-align: center;
  padding: 3rem 2.5rem;
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.pricing-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
  color: var(--bg-dark);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}

.pricing-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.price-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.price-display .currency {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-cyan);
}

.price-display .amount {
  font-size: 4rem;
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1;
}

.price-display .period {
  color: var(--text-muted);
  font-size: 1rem;
}

.pricing-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-main);
  font-size: 0.95rem;
}

.pricing-features li svg {
  color: var(--accent-neon);
  flex-shrink: 0;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2rem;
}

.contact-info-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.contact-info-card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-method-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  margin-bottom: 2rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(0, 242, 254, 0.1);
  color: var(--primary-cyan);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg { width: 22px; height: 22px; }

.contact-details {
  display: flex;
  flex-direction: column;
}

.contact-details .label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.contact-details .value {
  color: var(--primary-cyan);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
}

.social-links-group .label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-btn {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.form-group label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 15px rgba(79, 172, 254, 0.2);
}

.form-group select option {
  background: var(--bg-dark);
  color: #fff;
}

/* Footer */
.footer-wrapper {
  border-top: 1px solid var(--border-glass);
  padding: 2.5rem 1.5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.875rem;
  margin-top: 0.4rem;
}

.link-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.9rem;
}

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

/* Modal Overlay & Card */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  max-width: 550px;
  width: 100%;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
}

.modal-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.modal-body a {
  color: var(--primary-cyan);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  color: var(--primary-cyan);
  font-weight: 600;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-normal);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive Queries */
@media (max-width: 992px) {
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .stats-banner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .stats-banner {
    grid-template-columns: 1fr;
  }
  .hero-cta-group {
    flex-direction: column;
  }
  .services-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    width: 100%;
  }
}
