/* ===== BASE STYLES - SHARED BETWEEN DESKTOP AND MOBILE ===== */
/* This file contains essential styles that both versions need */

/* CSS Variables and Root Styles */
:root {
  /* Modern Blue Color Palette */
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-900: #1e3a8a;
  --blue-950: #172554;
  
  /* Legacy Bootstrap Colors */
  --blue: #3b82f6;
  --indigo: #6366f1;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --red: #ef4444;
  --orange: #f97316;
  --yellow: #eab308;
  --green: #22c55e;
  --teal: #14b8a6;
  --cyan: #06b6d4;
  --white: #ffffff;
  --gray: #6b7280;
  --gray-dark: #374151;
  
  /* Primary Theme Colors */
  --primary: #3b82f6;
  --primary-color: #3b82f6;
  --primary-gradient: linear-gradient(135deg, #3b82f6, #1d4ed8);
  --primary-light: #60a5fa;
  --primary-dark: #1d4ed8;
  
  /* Secondary Colors */
  --secondary: #64748b;
  --secondary-light: #94a3b8;
  --secondary-dark: #475569;
  
  /* Semantic Colors */
  --success: #22c55e;
  --info: #06b6d4;
  --warning: #eab308;
  --danger: #ef4444;
  
  /* Neutral Colors */
  --light: #f8fafc;
  --dark: #1e293b;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-accent: #eff6ff;
  --bg-dark: #1e293b;
  
  /* Text Colors */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-light: #ffffff;
  
  /* Border Colors */
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-dark: #94a3b8;
  
  /* Shadow Colors */
  --shadow-light: rgba(59, 130, 246, 0.1);
  --shadow-medium: rgba(59, 130, 246, 0.15);
  --shadow-dark: rgba(59, 130, 246, 0.2);
}

/* Essential Bootstrap Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  text-align: left;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Essential Typography */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Essential Layout Classes */
.container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

/* Bootstrap Grid System */
.col-lg-6 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

@media (min-width: 992px) {
  .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

/* Essential Navigation Styles */
.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}

.navbar-brand {
  display: inline-block;
  padding-top: 0.3125rem;
  padding-bottom: 0.3125rem;
  margin-right: 1rem;
  font-size: 1.25rem;
  line-height: inherit;
  white-space: nowrap;
}

.navbar-nav {
  display: flex;
  padding-left: 0;
  margin: 0;
  list-style: none;
  flex-direction: column;
}

.nav-item {
  display: list-item;
  text-align: -webkit-match-parent;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

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

.navbar-toggler {
  padding: 0.25rem 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  transition: box-shadow 0.15s ease-in-out;
}

.navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
}

.navbar-expand-lg .navbar-nav {
  flex-direction: row;
}

/* Override for desktop sidebar navigation */
@media (min-width: 769px) {
  #sideNav .navbar-collapse .navbar-nav {
    flex-direction: column !important;
  }
  
  #sideNav .navbar-collapse .navbar-nav .nav-item {
    width: 100%;
  }
  
  #sideNav .navbar-collapse .navbar-nav .nav-item .nav-link {
    display: block;
    width: 100%;
    text-align: center;
  }
}

.navbar-expand-lg .navbar-collapse {
  display: flex !important;
  flex-basis: auto;
}

/* Essential Utility Classes */
.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

.d-flex {
  display: flex !important;
}

.d-lg-block {
  display: block !important;
}

.d-lg-none {
  display: none !important;
}

.justify-content-center {
  justify-content: center !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.align-items-center {
  align-items: center !important;
}

.text-center {
  text-align: center !important;
}

.text-primary {
  color: var(--primary) !important;
}

.text-warning {
  color: var(--warning) !important;
}

.text-success {
  color: var(--success) !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.m-0 {
  margin: 0 !important;
}

.p-0 {
  padding: 0 !important;
}

/* Essential Form Styles */
.form-control {
  display: block;
  width: 100%;
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  background-clip: padding-box;
  border: 1px solid var(--border-medium);
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  color: var(--text-primary);
  background-color: var(--bg-primary);
  border-color: var(--primary);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

/* Essential Form Styles */
.form-text-control {
  display: block;
  width: 100%;
  height: calc(1.5em + 3rem + 2px);
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  background-clip: padding-box;
  border: 1px solid var(--border-medium);
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form--text-control:focus {
  color: var(--text-primary);
  background-color: var(--bg-primary);
  border-color: var(--primary);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.form-group {
  margin-bottom: 1rem;
}

/* Essential Button Base */
.btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  text-decoration: none;
  cursor: pointer;
}

.btn:focus {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.btn-primary {
  color: var(--text-light);
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  color: var(--text-light);
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* Essential List Styles */
.list-inline {
  padding-left: 0;
  list-style: none;
}

.list-inline-item {
  display: inline-block;
}

.list-unstyled {
  padding-left: 0;
  list-style: none;
}

.fa-ul {
  padding-left: 0;
  list-style-type: none;
}

.fa-ul > li {
  position: relative;
}

.fa-li {
  position: absolute;
  left: -2em;
  width: 2em;
  top: 0.14285714em;
  text-align: center;
}

/* Essential Badge Styles */
.badge {
  display: inline-block;
  padding: 0.25em 0.4em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
}

.badge-primary {
  color: var(--text-light);
  background-color: var(--primary);
}

/* Essential Background Colors */
.bg-primary {
  background-color: var(--primary) !important;
}

/* Essential Flexbox Utilities */
.flex-column {
  flex-direction: column !important;
}

.flex-md-row {
  flex-direction: row !important;
}

.flex-grow-1 {
  flex-grow: 1 !important;
}

.flex-shrink-0 {
  flex-shrink: 0 !important;
}

/* Essential Position */
.position-relative {
  position: relative !important;
}

.position-fixed {
  position: fixed !important;
}

.fixed-top {
  position: fixed !important;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
}

/* Essential Z-index */
.z-index-9999 {
  z-index: 9999 !important;
}

/* Essential Overflow */
.overflow-hidden {
  overflow: hidden !important;
}

/* Essential Border Radius */
.rounded-circle {
  border-radius: 50% !important;
}

/* Essential Box Shadow */
.shadow {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Essential Transition */
.transition {
  transition: all 0.15s ease-in-out !important;
}

/* Essential Cursor */
.cursor-pointer {
  cursor: pointer !important;
}

/* Essential Outline */
.outline-none {
  outline: none !important;
}

/* Essential Backdrop Filter */
.backdrop-blur {
  backdrop-filter: blur(10px);
}

/* Essential Transform */
.transform {
  transform: translateY(-2px);
}

/* Essential Opacity */
.opacity-0 {
  opacity: 0 !important;
}

.opacity-1 {
  opacity: 1 !important;
}

/* Essential Visibility */
.visibility-hidden {
  visibility: hidden !important;
}

.visibility-visible {
  visibility: visible !important;
}

/* Essential Animation */
@keyframes shimmer {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -200% 0; }
}

/* Essential Particle Background */
.particles-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Essential Focus Styles */
*:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Essential Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
}

/* Essential Image Styles */
.img-fluid {
  max-width: 100%;
  height: auto;
}

.img-profile {
  max-width: 10rem;
  max-height: 10rem;
  border: 0.5rem solid rgba(255, 255, 255, 0.2);
}

/* Essential Section Styles */
.resume-section {
  display: flex;
  align-items: center;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
  max-width: 75rem;
}

.resume-section-content {
  width: 100%;
  max-width: 40rem;
}

/* Essential Subheading */
.subheading {
  text-transform: uppercase;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--text-secondary);
}

/* Essential Lead Text */
.lead {
  font-size: 1.25rem;
  font-weight: 300;
}

/* Essential Social Icons */
.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  width: 3.5rem;
  background-color: var(--primary);
  color: var(--text-light);
  border-radius: 100%;
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  color: var(--text-light);
  text-decoration: none;
}

/* Essential Dev Icons */
.dev-icons {
  font-size: 3rem;
}

.dev-icons .list-inline-item i:hover {
  color: var(--primary);
}

/* Essential HR */
.hr {
  margin-top: 1rem;
  margin-bottom: 1rem;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Essential Experience Items */
.experience-item {
  margin-bottom: 2rem;
}

/* Essential Skills Container */
.skills-container {
  margin-top: 2rem;
}

.skill-item {
  margin-bottom: 1.5rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.skill-bar {
  height: 4px;
  background-color: var(--gray-200);
  border-radius: 2px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 4px;
  transition: width 1s ease-in-out;
}

/* Essential Project Cards */
.project-card {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-header {
  margin-bottom: 1rem;
}

.project-header h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
}

.project-tech {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tech .badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: var(--primary);
  color: white;
  border-radius: 6px;
}

.project-description {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.project-features {
  margin-top: 1rem;
}

.project-features ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-features li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.project-features li i {
  color: var(--success);
  font-size: 0.875rem;
}

/* Essential Contact Styles */
.contact-info {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.contact-form {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Essential Progress Indicator */
.progress-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(59, 130, 246, 0.1);
  z-index: 9998;
}

.progress-indicator::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--primary-gradient);
  width: var(--scroll-width, 0%);
  transition: width 0.1s ease;
}

/* Essential Dark Mode Support */
[data-theme="dark"] {
  --bg-primary: #1e293b;
  --bg-secondary: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --border-medium: #475569;
}

[data-theme="dark"] body {
  background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
}

[data-theme="dark"] .project-card,
[data-theme="dark"] .contact-form {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

[data-theme="dark"] .form-control {
  background-color: var(--bg-secondary);
  border-color: var(--border-medium);
  color: var(--text-primary);
}

[data-theme="dark"] .form-control:focus {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}
