/* ===== CSS CUSTOM PROPERTIES (VARIABLES) ===== */
/* These variables define the color scheme and spacing used throughout the site */
/* Updated from dark blue theme to modern black and white with glowing effects */
:root {
  /* Color palette - Modern black and white theme with glowing accents */
  --primary-bg: #000000; /* Pure black background for maximum contrast */
  --secondary-bg: #0a0a0a; /* Very dark gray for cards and elevated surfaces */
  --accent-bg: #1a1a1a; /* Medium dark gray for hover states and interactive elements */
  --primary-text: #ffffff; /* Pure white text for maximum readability */
  /*  Made secondary text brighter - changed from #a0a0a0 to #d4d4d4 for better visibility */
  --secondary-text: #d4d4d4; /* Brighter light gray for secondary text and descriptions */
  --accent-color: #ffffff; /* White for highlights and interactive elements */
  --accent-hover: #e0e0e0; /* Slightly dimmed white for hover states */
  --border-color: #2a2a2a; /* Subtle border color for separating elements */
  --success-color: #ffffff; /* White for success states (keeping theme consistent) */
  --warning-color: #cccccc; /* Light gray for warnings */

  /* Typography scale - Consistent font sizing system */
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-xs: 0.75rem; /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 1rem; /* 16px */
  --font-size-lg: 1.125rem; /* 18px */
  --font-size-xl: 1.25rem; /* 20px */
  --font-size-2xl: 1.5rem; /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem; /* 36px */

  /* Spacing scale - Consistent spacing system for margins and padding */
  --spacing-xs: 0.25rem; /* 4px */
  --spacing-sm: 0.5rem; /* 8px */
  --spacing-md: 1rem; /* 16px */
  --spacing-lg: 1.5rem; /* 24px */
  --spacing-xl: 2rem; /* 32px */
  --spacing-2xl: 3rem; /* 48px */
  --spacing-3xl: 4rem; /* 64px */

  /* Border radius - Consistent corner rounding */
  --radius-sm: 0.375rem; /* 6px */
  --radius-md: 0.5rem; /* 8px */
  --radius-lg: 0.75rem; /* 12px */

  /* Updated shadows to create glowing effects with white light */
  /* Shadows - Glowing effects for modern aesthetic */
  --shadow-sm: 0 1px 2px 0 rgba(255, 255, 255, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(255, 255, 255, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(255, 255, 255, 0.15);
  --shadow-glow: 0 0 20px rgba(255, 255, 255, 0.2); /* Soft white glow */
  --shadow-glow-strong: 0 0 30px rgba(255, 255, 255, 0.4); /* Strong white glow for emphasis */

  /* Transitions - Smooth animations for interactions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

/* ===== GLOBAL RESET AND BASE STYLES ===== */
/* Reset default browser styles and set consistent base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth; /* Smooth scrolling for anchor links */
  font-size: 16px; /* Base font size */
}

body {
  font-family: var(--font-family);
  background-color: var(--primary-bg);
  color: var(--primary-text);
  line-height: 1.6; /* Comfortable line height for readability */
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* ===== NAVIGATION STYLES ===== */
/* Fixed navigation bar with responsive design */
/* Added glowing border effect and enhanced backdrop blur */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.95); /* Semi-transparent black background */
  backdrop-filter: blur(10px); /* Blur effect for modern look */
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.05); /* Subtle glow at bottom */
  z-index: 1000; /* Ensure navbar stays on top */
  transition: var(--transition-normal);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

/* Added text glow effect to logo */
.nav-logo a {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--primary-text);
  text-decoration: none;
  transition: var(--transition-fast);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3); /* Subtle glow on logo */
}

.nav-logo a:hover {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5); /* Stronger glow on hover */
}

/* Navigation menu styles */
.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-xl);
}

.nav-link {
  color: var(--secondary-text);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
  position: relative;
}

/* Updated hover effect with glowing underline animation */
/* Hover effect with underline animation */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); /* Glowing underline */
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary-text);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3); /* Text glow on hover */
}

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

/* Mobile menu toggle button */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

/* Added glow to hamburger menu bars */
.bar {
  width: 25px;
  height: 3px;
  background-color: var(--primary-text);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.3); /* Subtle glow on bars */
  transition: var(--transition-fast);
}

/* ===== MAIN CONTENT STYLES ===== */
.main-content {
  margin-top: 70px; /* Account for fixed navbar */
}

/* ===== HERO SECTION STYLES ===== */
/* Main landing section with dynamic content switching */
/* Added clear bottom border and shadow for section separation */
.hero {
  min-height: 100vh;
  padding: var(--spacing-3xl) var(--spacing-lg);
  display: flex;
  align-items: center;
  position: relative;
  border-bottom: 2px solid var(--border-color); /* Clear section boundary */
  box-shadow: 0 2px 30px rgba(255, 255, 255, 0.05); /* Subtle glow at bottom */
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

/* Left side - Main hero content */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
}

/* Added glowing text shadow to main title */
.hero-title {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--primary-text);
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3); /* Glowing title effect */
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  font-weight: 400;
  color: var(--accent-color);
  margin-bottom: var(--spacing-lg);
}

.hero-description {
  font-size: var(--font-size-lg);
  color: var(--secondary-text);
  line-height: 1.7;
  max-width: 500px;
}

/*  Added styling for "Let's Connect" title with elegant font and glow effect */
.lets-connect-title {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  color: var(--primary-text);
  font-family: 'Georgia', 'Times New Roman', serif;
  letter-spacing: 0.05em;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
  margin-bottom: var(--spacing-md);
}

/*  Added styling for hero social links positioned under "Let's Connect" */
.hero-social-links {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-sm);
}

/* Hero navigation sidebar */
.hero-nav {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

/* Added glowing hover effects to navigation items */
.hero-nav-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  cursor: pointer;
  transition: var(--transition-fast);
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
}

.hero-nav-item:hover {
  background-color: var(--accent-bg);
  box-shadow: var(--shadow-glow); /* Glowing background on hover */
}

.hero-nav-item.active .nav-line {
  width: 40px;
  background-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); /* Glowing line for active state */
}

.hero-nav-item.active .nav-text {
  color: var(--primary-text);
  font-weight: 600;
}

.nav-line {
  width: 20px;
  height: 2px;
  background-color: var(--border-color);
  transition: var(--transition-normal);
}

.nav-text {
  color: var(--secondary-text);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
}

/* Right side - Dynamic content area */
/* Enhanced card with glowing border and shadow effects */
.hero-details {
  background-color: var(--secondary-bg);
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-glow); /* Glowing card effect */
  position: relative;
  min-height: 500px;
  transition: var(--transition-normal);
}

.hero-details:hover {
  box-shadow: var(--shadow-glow-strong); /* Stronger glow on hover */
  border-color: rgba(255, 255, 255, 0.3); /* Brighter border on hover */
}

/* Content sections within hero details */
.detail-section {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.detail-section.active {
  display: block;
}

/* Profile image styles */
/* Added strong glowing border to profile image */
.profile-image-container {
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

.profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-color);
  box-shadow: var(--shadow-glow-strong); /* Strong glow around profile image */
  transition: var(--transition-normal);
}

.profile-image:hover {
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.6); /* Extra strong glow on hover */
  transform: scale(1.05); /* Slight zoom effect */
}

.detail-text {
  font-size: var(--font-size-base);
  color: var(--secondary-text);
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
}

/* Added glowing effect to highlighted text */
.highlight {
  color: var(--accent-color);
  font-weight: 500;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2); /* Subtle glow on highlights */
}

/* Experience item styles */
.experience-item {
  margin-bottom: var(--spacing-2xl);
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid var(--border-color);
}

.experience-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.experience-header {
  margin-bottom: var(--spacing-md);
}

.experience-date {
  font-size: var(--font-size-xs);
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.experience-title {
  font-size: var(--font-size-lg);
  color: var(--primary-text);
  font-weight: 600;
  margin-top: var(--spacing-xs);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.experience-description {
  font-size: var(--font-size-sm);
  color: var(--secondary-text);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

/* Technology tags */
/* Updated tech tags with glowing borders */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.tech-tag {
  background-color: var(--accent-bg);
  color: var(--accent-color);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 500;
  border: 1px solid var(--accent-color);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.1); /* Subtle glow on tags */
  transition: var(--transition-fast);
}

.tech-tag:hover {
  box-shadow: var(--shadow-glow); /* Stronger glow on hover */
  transform: translateY(-1px); /* Slight lift effect */
}

/* Project item styles */
/* Enhanced project cards with glowing effects */
.project-item {
  margin-bottom: var(--spacing-2xl);
  padding: var(--spacing-xl);
  background-color: var(--accent-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.project-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-strong); /* Strong glow on hover */
  border-color: rgba(255, 255, 255, 0.3); /* Brighter border on hover */
}

.project-title {
  font-size: var(--font-size-lg);
  color: var(--primary-text);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.project-description {
  font-size: var(--font-size-sm);
  color: var(--secondary-text);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

/* Social links */
/* Added glowing effects to social link buttons */
.social-links {
  position: absolute;
  bottom: var(--spacing-2xl);
  left: var(--spacing-lg);
  display: flex;
  gap: var(--spacing-md);
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-text);
  text-decoration: none;
  transition: var(--transition-fast);
}

.social-link:hover {
  background-color: var(--accent-color);
  color: var(--primary-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-strong); /* Strong glow on hover */
}

/* ===== INDIVIDUAL SECTION STYLES ===== */
/* Styles for the separate About, Experience, and Projects sections */
/* Added clear borders and background variations for section separation */
.section {
  padding: var(--spacing-3xl) var(--spacing-lg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--border-color); /* Clear section boundary */
  background-color: var(--secondary-bg); /* Alternating background for visual separation */
  box-shadow: inset 0 2px 30px rgba(255, 255, 255, 0.02); /* Subtle inner glow */
}

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

/* Added glowing text shadow to section titles */
.section-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--primary-text);
  margin-bottom: var(--spacing-2xl);
  text-align: center;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3); /* Glowing title effect */
}

/* About section specific styles */
.about-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--spacing-2xl);
  align-items: start;
}

.about-text p {
  font-size: var(--font-size-lg);
  color: var(--secondary-text);
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
}

/* Experience section specific styles */
.experience-list {
  max-width: 800px;
  margin: 0 auto;
}

/* Projects section specific styles */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-xl);
}

/* ===== CONTACT SECTION STYLES ===== */
/* Enhanced contact section with clear boundary and glowing effects */
.contact {
  padding: var(--spacing-3xl) var(--spacing-lg);
  background-color: var(--secondary-bg);
  border-top: 1px solid var(--border-color);
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Added glowing text shadow to contact title */
.contact-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--primary-text);
  margin-bottom: var(--spacing-md);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3); /* Glowing title effect */
}

.contact-description {
  font-size: var(--font-size-lg);
  color: var(--secondary-text);
  margin-bottom: var(--spacing-2xl);
}

/* Contact form styles */
.contact-form {
  margin-bottom: var(--spacing-2xl);
  text-align: left;
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-group label {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--primary-text);
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
}

/* Updated form inputs with glowing focus effects */
.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--spacing-md);
  background-color: var(--primary-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--primary-text);
  font-size: var(--font-size-base);
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: var(--shadow-glow); /* Glowing border on focus */
}

/* Enhanced submit button with glowing effects */
.submit-btn {
  background-color: var(--accent-color);
  color: var(--primary-bg);
  border: none;
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin: 0 auto;
  box-shadow: var(--shadow-glow); /* Glowing button effect */
}

.submit-btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-strong); /* Stronger glow on hover */
}

/* Contact info styles */
.contact-info {
  display: flex;
  justify-content: center;
  gap: var(--spacing-2xl);
  margin-top: var(--spacing-2xl);
}

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

.contact-label {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--secondary-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-xs);
}

/* Added glowing hover effect to contact links */
.contact-value {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
}

.contact-value:hover {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3); /* Glowing text on hover */
}

/* ===== FOOTER STYLES ===== */
/* Added clear top border and shadow for footer separation */
.footer {
  background-color: var(--primary-bg);
  border-top: 1px solid var(--border-color);
  padding: var(--spacing-xl) var(--spacing-lg);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-text {
  color: var(--secondary-text);
  font-size: var(--font-size-sm);
}

.footer-links {
  display: flex;
  gap: var(--spacing-lg);
}

/* Added glowing hover effect to footer links */
.footer-links a {
  color: var(--secondary-text);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-color);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2); /* Subtle glow on hover */
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE DESIGN ===== */
/* Tablet styles */
@media (max-width: 768px) {
  /* Navigation adjustments */
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--primary-bg);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: var(--spacing-2xl);
    transition: var(--transition-normal);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero section adjustments */
  .hero-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
    text-align: center;
  }

  .hero-title {
    font-size: var(--font-size-3xl);
  }

  /*  Added responsive styling for hero social links on mobile */
  .hero-social-links {
    justify-content: center;
  }

  .hero-nav {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  /* About section adjustments */
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* Projects grid adjustments */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* Contact info adjustments */
  .contact-info {
    flex-direction: column;
    gap: var(--spacing-lg);
  }

  /* Footer adjustments */
  .footer-container {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }

  /* Social links adjustments */
  .social-links {
    position: static;
    justify-content: center;
    margin-top: var(--spacing-xl);
  }
}

/* Mobile styles */
@media (max-width: 480px) {
  /* Reduce padding on mobile */
  .hero,
  .section,
  .contact {
    padding: var(--spacing-2xl) var(--spacing-md);
  }

  .hero-title {
    font-size: var(--font-size-2xl);
  }

  .section-title,
  .contact-title {
    font-size: var(--font-size-2xl);
  }

  .profile-image {
    width: 120px;
    height: 120px;
  }

  .hero-details {
    padding: var(--spacing-lg);
  }

  .nav-container {
    padding: 0 var(--spacing-md);
  }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
/* Focus styles for keyboard navigation */
.nav-link:focus,
.social-link:focus,
.submit-btn:focus,
.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-text: #ffffff;
    --secondary-text: #cccccc;
    --border-color: #666666;
  }
}
