/* ==========================================================
   1. GLOBAL VARIABLES & THEMES - CSS Variables for colors and themes
   ========================================================== */
:root {
  --bg-body: #0f172a;
  --bg-header: rgba(15, 23, 42, 0.8);
  --text-main: #c3cad3;
  --text-bright: #ffffff;
  --primary-color: #38bdf8;
  --card-bg: rgba(15, 30, 60, 0.4);
  --header-text: rgba(244, 160, 25, 0.95);
  --glow-color: rgba(56, 189, 248, 0.15);
}

/* Dark Mode Theme */
body.dark-mode {
  --bg-body: #0a0e27;
  --bg-header: #0a0e27;
  --text-main: #cad2dd;
  --text-bright: #ffffff;
  --primary-color: #012ef6;
  --card-bg: rgba(20, 30, 60, 0.6);
  --glow-color: rgba(96, 165, 250, 0.2);
}

/* Light Mode Theme */
body.light-mode {
  --bg-body: #f8f9fa;
  --bg-header: rgba(255, 255, 255, 0.8);
  --text-main: #333333;
  --text-bright: #000000;
  --primary-color: #021ff9;
  --card-bg: rgba(220, 230, 245, 0.4);
  --glow-color: rgba(0, 102, 204, 0.261);
}

/* Light Mode Specific Styles */
body.light-mode .portfolio-item,
body.light-mode .skill-card,
body.light-mode .info-box,
body.light-mode .contact-form,
body.light-mode .institute-box {
  background: var(--card-bg) !important;
  border-color: rgba(0, 102, 204, 0.3) !important;
  color: #333 !important;
}

body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5 {
  color: var(--text-bright) !important;
}

body.light-mode a {
  color: #0066cc;
}

body.light-mode .btn-primary,
body.light-mode .btn-outline-primary {
  background-color: #f8f9fa !important;
  color: #000 !important;
  border-color: #000 !important;
}

body.light-mode .btn-primary:hover,
body.light-mode .btn-outline-primary:hover {
  background-color: #000 !important;
  color: #ffffff !important;
}

.btn-primary,
.btn-outline-primary {
  background-color: var(--bg-body) !important;
  border: 3px solid var(--text-bright) !important;
  color: var(--text-bright) !important;
  transition: all 0.5s ease;
  border-radius: 9px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.btn-primary:hover,
.btn-outline-primary:hover {
  background-color: var(--text-bright) !important;
  color: var(--bg-body) !important;
  border-color: var(--bg-body);
}

.btn-primary i,
.btn-outline-primary i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.btn-primary:hover i,
.btn-outline-primary:hover i {
  transform: translateX(4px);
}

/* Professional GitHub Button - Modern, sleek design with hover effects */
.btn-github-professional {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  /* Comfortable padding */
  background: linear-gradient(135deg, #24292e 0%, #1a1e22 100%);
  /* GitHub dark gradient */
  color: #ffffff;
  /* White text */
  text-decoration: none;
  /* Remove underline */
  border: 2px solid #24292e;
  /* Dark border */
  border-radius: 12px;
  /* Rounded corners */
  font-weight: 600;
  /* Semi-bold font */
  font-size: 0.95rem;
  /* Slightly smaller font */
  letter-spacing: 0.5px;
  /* Slight letter spacing */
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* Smooth transitions */
  position: relative;
  /* For pseudo-elements */
  overflow: hidden;
  /* Hide overflow for animations */
  box-shadow: 0 4px 15px rgba(36, 41, 46, 0.3);
  /* Subtle shadow */
  backdrop-filter: blur(10px);
  /* Blur effect */
  animation: gentlePulse 2s infinite;
  /* Subtle pulse animation */
}

.btn-github-professional::before {
  content: '';
  /* Pseudo-element for background animation */
  position: absolute;
  /* Absolute positioning */
  top: 0;
  left: -100%;
  /* Start from left */
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  /* Shine effect */
  transition: left 0.6s ease;
  /* Smooth slide animation */
}

.btn-github-professional::after {
  content: '';
  /* Pseudo-element for border glow */
  position: absolute;
  /* Absolute positioning */
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #24292e, #0366d6, #24292e);
  /* Border gradient */
  border-radius: 14px;
  /* Slightly larger radius */
  z-index: -1;
  /* Behind main button */
  opacity: 0;
  /* Initially hidden */
  transition: opacity 0.4s ease;
  /* Smooth opacity transition */
}

.btn-github-professional:hover {
  background: linear-gradient(135deg, #1a1e22 0%, #24292e 100%);
  /* Reverse gradient on hover */
  border-color: #0366d6;
  /* GitHub blue border */
  transform: translateY(-2px) scale(1.02);
  /* Lift and slight scale effect */
  box-shadow: 0 8px 25px rgba(3, 102, 214, 0.4);
  /* Enhanced shadow with blue tint */
  color: #ffffff;
  /* Ensure text stays white */
  animation: none;
  /* Stop pulse on hover */
}

.btn-github-professional:hover::before {
  left: 100%;
  /* Slide shine effect to right */
}

.btn-github-professional:hover::after {
  opacity: 1;
  /* Show border glow on hover */
}

.btn-github-professional i {
  font-size: 1.1rem;
  /* Icon size */
  transition: transform 0.3s ease;
  /* Smooth icon animation */
  z-index: 1;
  /* Above pseudo-elements */
}

.btn-github-professional:hover i {
  transform: scale(1.1) rotate(5deg);
  /* Scale and rotate icon on hover */
}

.btn-github-professional span {
  font-weight: 600;
  /* Bold text */
  transition: all 0.3s ease;
  /* Smooth text transitions */
  z-index: 1;
  /* Above pseudo-elements */
}

.btn-github-professional:hover span {
  color: #ffffff;
  /* Ensure text stays white */
}

/* Subtle pulse animation for attention */
@keyframes gentlePulse {

  0%,
  100% {
    box-shadow: 0 4px 15px rgba(36, 41, 46, 0.3);
  }

  50% {
    box-shadow: 0 4px 20px rgba(36, 41, 46, 0.4);
  }
}

/* Focus state for accessibility */
.btn-github-professional:focus {
  outline: none;
  /* Remove default outline */
  box-shadow: 0 0 0 3px rgba(3, 102, 214, 0.5);
  /* Blue focus ring */
}

/* Active state for button press */
.btn-github-professional:active {
  transform: translateY(0) scale(0.98);
  /* Slight press effect */
  transition: transform 0.1s ease;
  /* Quick transition */
}

/* Light mode adjustments for GitHub button */
body.light-mode .btn-github-professional {
  background: linear-gradient(135deg, #ffffff 0%, #f6f8fa 100%);
  /* Light gradient */
  color: #24292e;
  /* Dark text */
  border-color: #d1d5db;
  /* Light border */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  /* Subtle shadow */
}

body.light-mode .btn-github-professional:hover {
  background: linear-gradient(135deg, #f6f8fa 0%, #ffffff 100%);
  /* Reverse light gradient */
  border-color: #0366d6;
  /* GitHub blue border */
  box-shadow: 0 8px 25px rgba(3, 102, 214, 0.2);
  /* Blue shadow */
  color: #24292e;
  /* Keep dark text */
}

/* Mobile responsive for GitHub button */
@media (max-width: 768px) {
  .btn-github-professional {
    padding: 10px 20px;
    /* Smaller padding on mobile */
    font-size: 0.9rem;
    /* Smaller font on mobile */
    gap: 8px;
    /* Smaller gap on mobile */
  }

  .btn-github-professional i {
    font-size: 1rem;
    /* Smaller icon on mobile */
  }
}


html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}


/* ==========================================================
   2. GLOBAL STYLES & RESET - Basic styling and CSS reset
   ========================================================== */

/* Basic Reset - Removes default browser margins and padding */
body {
  background-color: var(--bg-body);
  /* Sets background color using CSS variable */
  color: var(--text-main);
  /* Sets text color using CSS variable */
  font-family: 'Inter', sans-serif;
  /* Sets primary font family */
  overflow-x: hidden;
  /* Prevents horizontal scrolling */
  scroll-behavior: smooth;
  /* Enables smooth scrolling */
  transition: background-color 0.5s ease, color 0.5s ease;
  /* Smooth theme transitions */
  animation: fadeInPage 0.6s ease-out;
  /* Page fade-in animation */
}

/* Mouse Spotlight Effect - Creates glowing cursor effect */
.mouse-glow {
  position: fixed;
  /* Fixed position relative to viewport */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* Doesn't interfere with mouse events */
  background: radial-gradient(300px circle at var(--x) var(--y), var(--glow-color), transparent 80%);
  /* Radial gradient following mouse */
  z-index: 9999;
  /* High z-index to appear above content */
}

/* Universal Reset - Applies box-sizing and font-family to all elements */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* Includes padding and border in width/height calculations */
  font-family: Poppins, sans-serif;
  /* Secondary font family */
}

/* Section Common Styling */
section {
  scroll-margin-top: 110px;
  border-radius: 10px;
  transition: all 0.4s ease;
}

h2 {
  color: var(--text-bright);
  font-weight: 700;
  margin-bottom: 30px;
  letter-spacing: 1px;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  border-radius: 2px;
  animation: slideInDown 0.6s ease-out;
}

/* ==========================================================
   3. HEADER / NAVIGATION SECTION - Fixed header with navigation
   ========================================================== */

/* Logo Styling - Brand name/logo in header */
.logo a {
  font-size: 28px;
  /* Large font size for logo */
  font-weight: 800;
  /* Extra bold font weight */
  color: var(--text-bright);
  /* Bright text color */
  text-decoration: none;
  /* Removes underline from link */
  letter-spacing: 1px;
  /* Slight letter spacing */
  text-transform: uppercase;
  /* Converts text to uppercase */
}

/* Logo span color - Special color for part of logo */
.logo span {
  color: #00f2ff;
  /* Cyan color for logo accent */
}

/* Main Header Container - Fixed header at top of page */
.header {
  position: fixed;
  /* Fixed position at top of viewport */
  top: 0;
  left: 0;
  width: 100%;
  /* Full width */
  padding: 15px 0;
  /* Vertical padding */
  z-index: 1000;
  /* High z-index to stay above content */
  transition: all 0.4s ease;
  /* Smooth transitions */
  background: var(--bg-header);
  /* Semi-transparent background */
  backdrop-filter: blur(15px);
  /* Blur effect behind header */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  /* Subtle border */
  overflow: visible !important;
  /* Ensures content doesn't get cut off */
}

/* Jab page scroll ho to header ka rang thora dark ho jaye */
.header.scrolled {
  background: var(--bg-header);
  padding: 10px 0;
  /* backdrop-filter: blur(20px); */
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(10deg, transparent, rgb(245, 1, 1), transparent, rgba(53, 1, 242, 0.1), transparent, rgba(72, 255, 0, 0.973), transparent);
  transition: left 0.8s ease-in-out;
  pointer-events: none;
}

.header:hover::before {
  left: 100%;
}

.header.fixed-top {
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--primary-color);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.navbar-menu ul {
  display: flex;
  list-style: none;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.nav-link {
  /* color: var(--text-main); */
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 50px;
  transition: 0.3s;
}

/* Hover aur Active state ka style */
.nav-link:hover,
.nav-link.active {
  color: #000;
  background: #00f2ff;
  box-shadow: 0 0 15px rgba(0, 242, 255, 0.5);
}

nav ul {
  display: flex;
  list-style-type: none;
  align-items: center;
  gap: 20px;
}

nav li {
  display: inline;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

#darkToggle,
#menuBtn {
  color: var(--primary-color);
  font-size: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.217);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
}

#darkToggle:hover {
  background: #03f6f6;
  color: #000;
  transform: translateY(-3px);
}

/* Mobile menu button desktop par chupa rahega */
#menuBtn {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links a {
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  padding: 10px 15px;
  transition: 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 5px solid transparent;
}

/* ==========================================================
   4. HERO SECTION (HOME) - Main landing section with intro and profile
   ========================================================== */

/* Main Content Container - Contains all page content except header */
#main {
  margin-left: 0 !important;
  /* Removes any left margin */
  margin-top: 80px;
  /* Space for fixed header */
  padding: 0;
  /* No padding */
  transition: all 0.4s ease;
  /* Smooth transitions */
  background: linear-gradient(135deg, transparent 0%, rgba(56, 189, 248, 0.02) 100%);
  /* Subtle gradient background */
  min-height: 100vh;
  /* Full viewport height */
}

/* Hero Section Container - Main landing area */
.hero-section {
  position: relative;
  /* Relative positioning for child elements */
  min-height: 100vh;
  /* Full viewport height */
  display: flex;
  /* Flexbox layout */
  align-items: center;
  /* Center content vertically */
  justify-content: center;
  /* Center content horizontally */
  padding: 100px 50px 80px;
  /* Padding: top, sides, bottom */
  overflow: hidden;
  /* Hide overflowing content */
}

/* Hero Content Grid - Two-column layout for content and profile */
.hero-container {
  min-height: 100vh;
  /* Full viewport height */
  display: grid;
  /* CSS Grid layout */
  justify-content: center;
  /* Center grid horizontally */
  grid-template-columns: 1fr 1fr;
  /* Two equal columns */
  gap: 60px;
  /* Gap between columns */
  align-items: center;
  /* Center items vertically */
  max-width: 1400px;
  /* Maximum width */
  width: 100%;
  /* Full width within max-width */
  margin: 0 auto;
  /* Center horizontally */
}

/* Hero Badge - Small label/tag above title */
.hero-badge {
  color: var(--primary-color);
  /* Primary color text */
  font-weight: 700;
  /* Bold font weight */
  font-size: 0.85rem;
  /* Small font size */
  letter-spacing: 2px;
  /* Wide letter spacing */
  text-transform: uppercase;
  /* Uppercase text */
  padding: 5px 15px;
  /* Padding around text */
  border: 1px solid rgba(56, 189, 248, 0.3);
  /* Semi-transparent border */
  border-radius: 20px;
  /* Rounded corners */
  background: rgba(56, 189, 248, 0.08);
  /* Semi-transparent background */
}

/* Hero Title - Main heading */
.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text-bright);
  animation: slideInDown 0.8s ease-out;
  letter-spacing: -2px;
}

.hero-highlight {
  color: var(--primary-color);
  display: block;
  text-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
}

/* Hero Subtitle & Description */
.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 15px;
  animation: slideInUp 0.8s ease-out 0.1s backwards;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 40px;
  animation: slideInUp 0.8s ease-out 0.2s backwards;
  max-width: 500px;
}

.hero-description strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  animation: slideInUp 0.8s ease-out 0.3s backwards;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 35px;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  white-space: nowrap;
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--primary-color), rgba(56, 189, 248, 0.8));
  color: white;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.3);
}

.btn-hero-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(56, 189, 248, 0.5);
  gap: 15px;
}

.btn-hero-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-hero-secondary:hover {
  background: rgba(56, 189, 248, 0.1);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.2);
}

/* Hero Profile Section */
.hero-profile {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-wrapper {
  position: relative;
  width: 400px;
  height: 400px;
  animation: fadeIn 0.8s ease-out;

  /* max-width: 100%;
  width: 300px;
  height: auto; */
}

.profile-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  animation: pulse 4s ease-in-out infinite;
  z-index: 0;
}

.profile-image {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  object-fit: cover;
  z-index: 2;
  box-shadow: 0 0 60px rgba(56, 189, 248, 0.4), inset 0 0 60px rgba(56, 189, 248, 0.1);
  animation: floatUp 3s ease-in-out infinite;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.8s ease-out 0.8s backwards;

  /* extra  */

  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.8s ease-out 0.8s backwards;
}

.scroll-indicator span {
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-arrow {
  color: var(--primary-color);
  font-size: 1.5rem;
  animation: bounce 2s ease-in-out infinite;
}

#typed {
  color: var(--primary-color);
  font-weight: bold;
}

.typed-cursor {
  color: var(--primary-color);
}

/* ==========================================================
   5. ABOUT SECTION
   ========================================================== */

/* About Image Animation */
.about-image {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: zoomIn 0.6s ease-out;
  border-radius: 15px;
  border: 2px solid rgba(56, 189, 248, 0.2);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.1);
}

.about-image:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 20px 50px rgba(56, 189, 248, 0.3);
  border-color: var(--primary-color);
}

/* ==========================================================
   6. SERVICES SECTION
   ========================================================== */

/* Info Box Styling */
.info-box {
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(56, 189, 248, 0.08) 100%);
  border: 2px solid rgba(56, 189, 248, 0.2);
  border-right: 2px solid rgba(56, 189, 248, 0.1);
  border-radius: 15px;
  padding: 20px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(10px);
}

.info-box:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(56, 189, 248, 0.25);
  border-color: var(--primary-color);
}

.info-box p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 15px 0;
  font-size: 1rem;
}

.info-box i {
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.info-box p:hover i {
  transform: scale(1.2) rotate(10deg);
}

/* ==========================================================
   7. SKILLS PROGRESS BARS SECTION
   ========================================================== */

.skill-progress-item {
  margin-bottom: 30px;
}

.skill-header {
  margin-bottom: 10px;
}

.skill-header h5 {
  color: var(--text-bright);
  font-weight: 600;
  font-size: 1rem;
}

.skill-percentage {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1rem;
}

.progress {
  height: 12px;
  background: rgba(56, 189, 248, 0.1);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.progress-bar {
  border-radius: 10px;
  transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skill-bar {
  transition: width 1.5s ease-in-out;
}
/* ==========================================================
   8. CERTIFICATIONS SECTION
   ========================================================== */

/* Institute Box */
.institute-box {
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(56, 189, 248, 0.08) 100%) !important;
  border: 2px solid rgba(56, 189, 248, 0.3) !important;
  border-right: 2px solid rgba(56, 189, 248, 0.1) !important;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.institute-box:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(56, 189, 248, 0.3);
  border-color: var(--primary-color) !important;
}

.institute-box h4 {
  color: var(--text-bright);
  font-size: 1.3rem;
}

.institute-box:hover h4 {
  color: var(--primary-color);
}

.institute-box p {
  color: var(--text-main);

}

.institute-box:hover p {
  color: var(--text-bright);
}

/* ==========================================================
   9. STATISTICS/COUNTER SECTION
   ========================================================== */

/* =========================
   STAT BOX - MODERN GLOW UI
   ========================= */
/* =========================
   STAT BOX - UPGRADED GLOW
   ========================= */

.stat-box {
  position: relative;
  padding: 40px 20px;
  border-radius: 15px;

  background: linear-gradient(135deg, var(--card-bg), rgba(56, 189, 248, 0.08));
  backdrop-filter: blur(10px);

  border: 2px solid rgba(56, 189, 248, 0.2);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  overflow: hidden;
  z-index: 1;
}

/* 🔥 Neon Glow Border */
.stat-box::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 15px;
  background: linear-gradient(45deg,
      transparent,
      var(--primary-color),
      transparent);
  opacity: 0;
  transition: 0.5s;
  z-index: -1;
}

/* ✨ Shine Effect */
.stat-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg,
      transparent,
      rgba(255, 255, 255, 0.25),
      transparent);
  transition: 0.6s;
}

/* 🚀 Hover */
.stat-box:hover {
  transform: translateY(-12px) scale(1.03);

  border-color: var(--primary-color);

  box-shadow:
    0 20px 50px rgba(56, 189, 248, 0.25),
    0 0 40px rgba(56, 189, 248, 0.3);
}

/* Glow active */
.stat-box:hover::before {
  opacity: 1;
}

/* Shine run */
.stat-box:hover::after {
  left: 120%;
}

/* =========================
   TEXT ENHANCEMENT
   ========================= */

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 10px;
  transition: 0.4s;
}

/* 🔥 Number Glow */
.stat-box:hover .stat-number {
  color: var(--text-bright);
  text-shadow: 0 0 20px var(--primary-color);
}

/* Label */
.stat-label {
  font-size: 1.1rem;
  color: var(--text-main);
  margin: 0;
  font-weight: 500;
  transition: 0.3s;
}

.stat-box:hover .stat-label {
  color: var(--text-bright);
}

/* ==========================================================
   10. PROJECTS SECTION
   ========================================================== */

/* Portfolio Cards */
.portfolio-item {
  background: var(--bg-body);
  border: 5px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  border-radius: 12px;
  overflow: hidden;
}

/* Enhanced Portfolio Cards - Using ::before pseudo-element for shine effect */
.portfolio-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
  z-index: 1;
  pointer-events: none;
}

.portfolio-item:hover::before {
  left: 100%;
}

.portfolio-item img {
  transition: all 0.4s ease;
  filter: brightness(0.9);
}

.portfolio-item:hover img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* Blur Effect on Container Hover */
.portfolio-container:hover .portfolio-item {
  opacity: 0.5;
  filter: blur(3px);
}

.portfolio-container .portfolio-item:hover {
  opacity: 1;
  filter: blur(0);
  transform: translateY(-15px) scale(1.02);
  border-color: var(--primary-color);
  box-shadow: 0 25px 50px rgba(56, 189, 248, 0.4);
}

.portfolio-item .card-body {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(56, 189, 248, 0.1));
  transition: all 0.4s ease;
}

.portfolio-item:hover .card-body {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(56, 189, 248, 0.3));
}

/* ==========================================
   PORTFOLIO TEXT - PERFECT MODERN MATCH
   ========================================== */

/* Title */
.portfolio-item .card-body h5 {
  color: var(--text-bright);
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.4s ease;
  position: relative;
}

/* Sub text */
.portfolio-item .card-body .text-muted {
  color: var(--text-main) !important;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  display: inline-flex;
  opacity: 0.7;
  transform: translateY(5px);
  transition: all 0.4s ease;
}

.portfolio-item:hover .card-body h5 {
  color: var(--primary-color) !important;
  transform: translateY(-3px);
}

.portfolio-item:hover .card-body .text-muted {
  color: var(--text-bright) !important;
  transform: translateY(0);
  opacity: 1;
}

.portfolio-item .card-body .text-muted::after {
  content: " →";
  font-size: 0.9rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.45, 0.64, 1);
}

.portfolio-item:hover .card-body .text-muted::after {
  transform: translateX(8px) scale(1.1);
}

/* ✨ Modern underline animation */
.portfolio-item .card-body h5::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--primary-color);
  transition: all 0.4s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.portfolio-item:hover .card-body h5::after {
  width: 50%;
}


/* ==========================================
   NEXT LEVEL SKILL CARD (PRO UI)
   ========================================== */

.skill-card {
  background: linear-gradient(135deg, var(--card-bg), rgba(56, 189, 248, 0.05));
  border: 2px solid rgba(56, 189, 248, 0.2);
  border-radius: 20px;
  transition: all 0.5s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

/* Neon border glow */
.skill-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: linear-gradient(45deg, transparent, var(--primary-color), transparent);
  z-index: -1;
  opacity: 0;
  transition: 0.5s;
}

/* Shine effect */
.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.6s;
}

/* Hover main magic */
.skill-card:hover {
  transform: rotateX(8deg) rotateY(-8deg) scale(1.05);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);

}

.skill-card:hover::before {
  left: 120%;
}

.skill-card:hover::after {
  opacity: 1;
}

/* ICON animation */
.skill-card i {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  transition: 0.4s;
}

.skill-card:hover i {
  transform: scale(1.3) rotate(10deg);
}

/* TEXT */
.skill-card h5 {
  color: var(--text-bright);
  margin-bottom: 10px;
  font-weight: 700;
}

.skill-card p {
  color: var(--text-main);
}

.skill-card:hover h5 {
  transition: all 0.3s ease;
  color: var(--primary-color);
}

.skill-card:hover p {
  color: var(--header-text);
}


/* ==========================================
   DIFFERENT COLORS PER CARD
   ========================================== */

.skill-1:hover {
  border-color: #00f2ff;
  box-shadow: 0 20px 50px rgba(0, 242, 255, 0.4);
}

.skill-2:hover {
  border-color: #ff00ff;
  box-shadow: 0 20px 50px rgba(255, 0, 255, 0.4);
}

.skill-3:hover {
  border-color: #00ff88;
  box-shadow: 0 20px 50px rgba(0, 255, 136, 0.4);
}



/* ==========================================================
   11. PROJECT MODAL - Popup modal for project details
   ========================================================== */

/* Modal Overlay - Dark background behind modal */
.project-modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Fixed position covers entire screen */
  z-index: 2000;
  /* High z-index above other content */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  background: rgba(0, 0, 0, 0.8);
  /* Dark semi-transparent background */
  backdrop-filter: blur(5px);
  /* Blur effect on background */
  animation: fadeIn 0.3s ease-out;
  /* Fade-in animation */
  overflow-y: auto;
  /* Allow vertical scrolling if needed */
}

/* Active Modal State - Shows modal when active class is added */
.project-modal.active {
  display: flex;
  /* Display as flexbox */
  align-items: center;
  /* Center content vertically */
  justify-content: center;
  /* Center content horizontally */
}

/* Modal Content Container - Main modal content area */
.project-modal-content {
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(56, 189, 248, 0.08) 100%);
  /* Gradient background */
  border: 2px solid rgba(56, 189, 248, 0.2);
  /* Semi-transparent border */
  border-radius: 20px;
  /* Rounded corners */
  padding: 40px;
  /* Padding inside modal */
  max-width: 900px;
  /* Maximum width */
  width: 90%;
  /* Responsive width */
  max-height: 90vh;
  /* Maximum height */
  overflow-y: auto;
  /* Allow scrolling if content is tall */
  position: relative;
  /* Relative positioning for close button */
  box-shadow: 0 25px 70px rgba(56, 189, 248, 0.3);
  /* Glow shadow effect */
  scrollbar-color: var(--primary-color) transparent;
  /* Custom scrollbar color */
  scrollbar-width: thin;
  /* Thin scrollbar */
}

/* Modal Close Button - X button to close modal */
.project-modal-close {
  position: absolute;
  /* Absolute position in top-right */
  right: 25px;
  /* Distance from right edge */
  top: 15px;
  /* Distance from top edge */
  font-size: 28px;
  /* Large font size */
  font-weight: bold;
  /* Bold text */
  color: var(--primary-color);
  /* Primary color */
  cursor: pointer;
  /* Cursor changes to pointer */
  transition: all 0.3s ease;
  /* Smooth transitions */
}

/* Close Button Hover Effect - Animation on hover */
.project-modal-close:hover {
  transform: scale(1.2) rotate(90deg);
  /* Scale up and rotate */
  color: var(--text-bright);
  /* Change color */
}


/* ==========================================================
   12. CONTACT SECTION
   ========================================================== */

.contact-card {
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(56, 189, 248, 0.08) 100%);
  border: 2px solid rgba(56, 189, 248, 0.2);
  border-right: 2px solid rgba(56, 189, 248, 0.1);
  border-radius: 15px;
  padding: 35px 25px;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(10px);
}

.contact-card:hover {
  transform: translateY(-15px) scale(1.02);
  border-color: var(--primary-color);
  box-shadow: 0 25px 50px rgba(56, 189, 248, 0.35);
  border: 4px solid var(--primary-color);
}

.contact-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), rgba(56, 189, 248, 0.6));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: white;
  transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.4);
}

.contact-card h4 {
  color: var(--text-bright);
  font-weight: 700;
  margin: 15px 0;
  font-size: 1.3rem;
}

.contact-card p {
  color: var(--text-main);
  margin: 0;
}

.contact-card a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-card a:hover {
  color: var(--text-bright);
  text-decoration: underline;
}

.contact-form-wrapper {
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(56, 189, 248, 0.08) 100%);
  border: 2px solid rgba(56, 189, 248, 0.2);
  border-right: 2px solid rgba(56, 189, 248, 0.1);
  border-radius: 20px;
  padding: 45px;
  backdrop-filter: blur(10px);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-form-wrapper:hover {
  border-color: var(--primary-color);
  box-shadow: 0 25px 60px rgba(56, 189, 248, 0.25);
  transform: translateY(-5px);
}

.contact-form-wrapper h3 {
  color: var(--text-bright);
  font-weight: 700;
  font-size: 1.8rem;
}


.contact-form {
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(56, 189, 248, 0.05) 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 15px;
}

.form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--text-bright);
  transition: all 0.3s ease;
}

.form-control:focus {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.form-label {
  padding-left: 8px;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-form .form-label {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.contact-form .form-control,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(56, 189, 248, 0.2);
  color: var(--text-bright);
  border-radius: 10px;
  padding: 12px 15px;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.contact-form .form-control::placeholder,
.contact-form textarea::placeholder {
  color: rgba(148, 163, 184, 0.5);
}

.contact-form .form-control:focus,
.contact-form textarea:focus {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
  color: var(--text-bright);
}

.btn-submit {
  background: linear-gradient(135deg, var(--primary-color), rgba(56, 189, 248, 0.8));
  border: none;
  color: white;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 10px;
  transition: all 0.4s ease;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(56, 189, 248, 0.4);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.8), var(--primary-color));
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-reset {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.5), rgba(148, 163, 184, 0.3));
  border: 2px solid rgba(56, 189, 248, 0.2);
  color: var(--text-bright);
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-reset:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Input Wrapper with Icons */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper.textarea-wrapper {
  align-items: flex-start;
  padding-top: 5px;
}

.input-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  font-size: 1.1rem;
  pointer-events: none;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.textarea-wrapper .input-icon {
  top: 20px;
  transform: translateY(0);
}

.form-control:focus~.input-icon {
  color: var(--text-bright);
  opacity: 1;
  transform: scale(1.2) translateY(-50%);
}

.textarea-wrapper .form-control:focus~.input-icon {
  transform: scale(1.2);
}

.form-control {
  padding-right: 45px;
}

/* Character Count */
.char-count {
  display: block;
  margin-top: 5px;
  color: rgba(148, 163, 184, 0.7);
  font-size: 0.85rem;
  text-align: right;
}

.char-count.warning {
  color: #fbbf24;
}

.char-count.limit {
  color: #ef4444;
}

/* Enhanced Contact Cards */
.contact-card {
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
  transition: all 0.6s ease;
  opacity: 0;
}

.contact-card:hover::before {
  opacity: 1;
  top: -25%;
  right: -25%;
}

.contact-card h4 {
  margin-top: 15px;
  margin-bottom: 12px;
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

.contact-card:hover h4 {
  color: var(--primary-color);
}

/* Contact Hint Text */
.contact-hint {
  /* color: rgba(245, 0, 0, 0.998); */
  font-size: 0.85rem;
  margin-top: 8px;
  font-style: italic;
}

.contact-link {
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  position: relative;
}

.contact-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.contact-link:hover::after {
  width: 100%;
}

/* Social Contact Links */
.social-contact-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--card-bg), rgba(56, 189, 248, 0.1));
  border: 2px solid rgba(56, 189, 248, 0.2);
  border-radius: 50%;
  color: var(--primary-color);
  font-size: 1.3rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  transition: left 0.4s ease;
  z-index: -1;
  border-radius: 50%;
}

.social-link:hover {
  transform: translateY(-5px) scale(1.1);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.3);
  color: white;
}

.social-link:hover::before {
  left: 0;
}

/* Form Actions Container */
.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form-actions .btn {
  flex: 1;
  min-width: 150px;
}

/* Enhanced Icon Animations */
.icon-phone {
  animation: float 3s ease-in-out infinite;
}

.icon-email {
  animation: float 3s ease-in-out infinite 0.3s;
}

.icon-location {
  animation: float 3s ease-in-out infinite 0.6s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Validation States */
.form-control.is-invalid {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
}

.form-control.is-valid {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.05);
}

.form-control.is-valid:focus {
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
  border-color: #10b981;
}

.error-message {
  color: #ef4444;
  font-weight: 500;
}

.success-message {
  color: #10b981;
  font-weight: 500;
}

/* Loading State */
.btn-submit.loading {
  opacity: 0.7;
  pointer-events: none;
}

.btn-submit.loading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Notification Animations */
@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

/* Responsive Contact */
@media (max-width: 768px) {
  .contact-card {
    padding: 25px 15px;
  }

  .contact-form-wrapper {
    padding: 30px 20px;
  }

  .social-contact-links {
    gap: 15px;
  }

  .social-link {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

  .input-wrapper {
    position: relative;
  }

  .input-icon {
    right: 12px;
    font-size: 1rem;
  }
}

/* ==========================================================
   13. FOOTER SECTION
   ========================================================== */

#footer {
  background: linear-gradient(135deg, var(--bg-header) 0%, rgba(56, 189, 248, 0.08) 100%);
  border-top: 3px solid var(--primary-color);
  padding: 80px 0 40px;
  margin-top: 120px;
  position: relative;
  overflow: hidden;
}

#footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

#footer h4 {
  color: var(--text-bright);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 20px;
  position: relative;
}

#footer h4::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

#footer h5 {
  color: var(--text-bright);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

#footer p {
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 20px;
}

#footer ul li {
  margin-bottom: 8px;
}

#footer a {
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

#footer a:hover {
  color: var(--primary-color) !important;
  transform: translateX(5px);
}

#footer .text-muted {
  color: var(--text-main) !important;
}

body.dark-mode #footer .text-muted {
  color: #cbd5e1 !important;
}

body.dark-mode #footer a {
  color: #cbd5e1 !important;
}

body.dark-mode #footer a:hover {
  color: var(--primary-color) !important;
}

#footer .social-icons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

#footer .social-link {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.1);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  color: var(--primary-color);
  font-size: 1.3rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

#footer .social-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--text-bright);
  border-radius: 50%;
  transition: all 0.4s ease;
  transform: translate(-50%, -50%);
  z-index: -1;
}

#footer .social-link:hover::before {
  width: 100%;
  height: 100%;
}

#footer .social-link:hover {
  color: var(--bg-body);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.6);
}

#footer .social-link i {
  transition: transform 0.3s ease;
  z-index: 1;
  position: relative;
}

#footer .social-link:hover i {
  transform: scale(1.2) rotate(360deg);
}

#footer hr {
  border: none;
  height: 6px;
  background: linear-gradient(90deg, transparent, var(--text-bright), transparent);
  margin: 40px 0;
}

#footer .copyright {
  color: var(--text-main);
  font-size: 0.95rem;
  text-align: center;
}

#footer .copyright strong {
  color: var(--text-bright);
  font-weight: 600;
}



/* Footer responsive */
@media (max-width: 768px) {
  #footer {
    padding: 60px 0 30px;
    margin-top: 80px;
  }

  #footer .col-lg-4 {
    margin-bottom: 30px;
  }

  #footer h4 {
    font-size: 1.3rem;
  }

  #footer .social-icons {
    justify-content: center;
  }

  #footer .social-link {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
}

/* ==========================================================
   14. ANIMATIONS & EFFECTS
   ========================================================== */

/* Keyframe Animations */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(50px);
    opacity: 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes floatUp {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }
}

/* Back to Top Button Animation */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--text-main);
  color: var(--bg-body);
  border-radius: 50%;
  font-size: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 1000;
  cursor: pointer;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(-10px);
}

.back-to-top:hover {
  transform: translateY(-20px);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.5);
}

/* Loading Animation */
@keyframes fadeInPage {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Image Loaded State */
img.loaded {
  animation: fadeIn 0.6s ease-out;
}

/* Parallax Element */
[data-parallax] {
  will-change: transform;
}

/* ==========================================================
   15. RESPONSIVE DESIGN - Mobile and tablet breakpoints
   ========================================================== */

/* Mobile Responsive - For screens smaller than 991px (tablets and phones) */
@media (max-width: 991px) {
  .header {
    width: 100% !important;
    /* Full width on mobile */
    left: 0 !important;
    /* Align to left edge */
    padding: 10px 10px 0;
    /* Reduced padding for mobile */
  }

  #menuBtn {
    display: flex !important;
    /* Show mobile menu toggle button */
    width: 45px !important;
    /* Slightly larger for better touch */
    height: 45px !important;
    /* Slightly larger for better touch */
    background: rgba(56, 189, 248, 0.1);
    /* Subtle background */
    border: 1px solid rgba(56, 189, 248, 0.3);
    /* Subtle border */
    border-radius: 10px;
    /* Rounded corners */
    color: var(--primary-color);
    /* Professional color */
    font-size: 20px;
    /* Appropriate icon size */
    transition: all 0.3s ease;
    /* Smooth transitions */
  }

  #menuBtn:hover {
    background: rgba(56, 189, 248, 0.2);
    /* Slightly more prominent on hover */
    border-color: var(--primary-color);
    /* Solid border on hover */
    transform: scale(1.05);
    /* Subtle scale effect */
  }

  .logo a {
    font-size: 20px;
    /* Smaller, professional font size on mobile */
    font-weight: 700;
    /* Maintain bold but not too heavy */
    letter-spacing: 0.5px;
    /* Tighter letter spacing for mobile */
  }

  .logo span {
    color: #00f2ff;
    /* Keep the accent color */
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Professional spacing */
  }

  .navbar-menu {
    position: fixed;
    /* Fixed position for slide-down menu */
    top: -110vh;
    /* Hidden above screen initially */
    left: 10px;
    /* Small left margin for professional look */
    right: 10px;
    /* Small right margin for professional look */
    width: auto;
    /* Auto width for full coverage minus margins */
    height: auto;
    /* Auto height */
    background: rgba(15, 23, 42, 0.95);
    /* Semi-transparent background */
    backdrop-filter: blur(20px);
    /* Professional blur effect */
    padding: 30px 20px;
    /* Comfortable padding */
    border-radius: 15px;
    /* Rounded corners */
    border: 1px solid rgba(56, 189, 248, 0.3);
    /* Subtle border */
    transition: top 0.5s ease,
      filter 0.3s ease,
      opacity 0.3s ease;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    /* Professional shadow */
  }

  .navbar-menu.active {
    top: 60px;
  }

  .navbar-menu.blur {
    filter: blur(6px);
    opacity: 0.5;
  }

  .navbar-menu:hover {
    filter: blur(0);
    opacity: 1;
  }

  .navbar-menu ul {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    /* Comfortable spacing */
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .navbar-menu .nav-link {
    color: var(--text-bright);
    /* Bright text color */
    text-decoration: none;
    font-size: 16px;
    /* Professional font size */
    font-weight: 500;
    /* Medium weight */
    padding: 12px 24px;
    /* Comfortable padding */
    border-radius: 25px;
    /* Rounded corners */
    transition: all 0.3s ease;
    /* Smooth transitions */
    background: rgba(255, 255, 255, 0.05);
    /* Subtle background */
    border: 1px solid rgba(56, 189, 248, 0.2);
    /* Subtle border */
    min-width: 150px;
    /* Consistent width */
    text-align: center;
    /* Center text */
  }

  .navbar-menu .nav-link:hover,
  .navbar-menu .nav-link.active {
    color: #000;
    background: linear-gradient(135deg, #00f2ff, #38bdf8);
    /* Professional gradient */
    border-color: #00f2ff;
    /* Matching border */
    transform: translateY(-2px);
    /* Subtle lift effect */
    box-shadow: 0 5px 15px rgba(0, 242, 255, 0.3);
    /* Professional shadow */
  }

  .social-icons a,
  #darkToggle {
    width: 42px;
    /* Slightly larger for mobile touch */
    height: 42px;
    /* Slightly larger for mobile touch */
    font-size: 18px;
    /* Appropriate icon size */
    border-radius: 10px;
    /* Rounded corners */
    background: rgba(56, 189, 248, 0.1);
    /* Subtle background */
    border: 1px solid rgba(56, 189, 248, 0.2);
    /* Subtle border */
    color: var(--primary-color);
    /* Professional color */
    transition: all 0.3s ease;
    /* Smooth transitions */
  }

  .social-icons a:hover,
  #darkToggle:hover {
    background: rgba(56, 189, 248, 0.2);
    /* More prominent on hover */
    border-color: var(--primary-color);
    /* Solid border on hover */
    transform: scale(1.05);
    /* Subtle scale effect */
  }
}

/* Tablet and Smaller Screens */
@media (max-width: 1199px) {
  #header {
    height: 70px;
    padding: 0 30px;
  }

  .header-container {
    gap: 30px;
  }

  .logo a {
    font-size: 20px;
    /* Smaller, professional font size on mobile */
    font-weight: 700;
    /* Maintain bold but not too heavy */
    letter-spacing: 0.5px;
    /* Tighter letter spacing for mobile */
  }

  .logo span {
    color: #00f2ff;
    /* Keep the accent color */
  }

  .nav-link {
    font-size: 0.85rem;
    padding: 8px 15px;
  }

  .hero-section {
    padding: 80px 30px 60px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-profile {
    order: -1;
    /* Profile image comes first on mobile */
  }

  .profile-wrapper {
    width: 300px;
    height: 300px;
  }

  .profile-glow {
    width: 350px;
    height: 350px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 6vw, 3.5rem);
  }

  .hero-buttons {
    gap: 15px;
  }

  .btn-hero {
    padding: 12px 25px;
    font-size: 0.9rem;
  }
}

/* Small Screens */
@media (max-width: 768px) {
  .progress {
    height: 10px;
  }

  .stat-box {
    padding: 25px 15px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }

  .project-modal-content {
    padding: 25px;
  }
}

/* Extra Small Screens */
@media (max-width: 480px) {
  .stat-box {
    padding: 20px 10px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .project-modal-content {
    padding: 20px;
    width: 95%;
  }

  /* Image responsiveness improvements */
  .about-image,
  .profile-image {
    max-width: 100% !important;
    height: auto !important;
    /* width: 250px !important; */
    margin: 0 auto;
  }

  .portfolio-item img {
    max-width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
  }

  .hero-profile {
    margin-bottom: 30px;
  }

  .profile-wrapper {
    width: 200px !important;
    height: 200px !important;
  }

  .profile-glow {
    width: 250px !important;
    height: 250px !important;
  }

  /* Mobile menu improvements */
  .navbar-menu {
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
  }

  .navbar-menu.active {
    top: 70px;
  }
}