/* 
 * Modern Styling CSS for Abhijeet's Portfolio Website
 * Enhanced visual design and modern aesthetics
 */

:root {
  /* Enhanced color palette */
  --light-bg: #f8f9fa;
  --light-sidebar-bg: #ffffff;
  --light-content-bg: #f0f4f8;
  /* Slightly different from light-bg */
  --light-text: #333333;
  --light-title: #212529;
  --light-accent: #4361ee;
  --light-accent-gradient: linear-gradient(135deg, #4361ee 0%, rgb(58, 12, 163) 100%);
  --light-secondary: #6c757d;
  --light-border: #dee2e6;
  --light-card-bg: #ffffff;
  --light-hover: #e9ecef;

  /* Dark theme with more vibrant colors */
  --dark-bg: #0f172a;
  /* Deeper blue-black */
  --dark-sidebar-bg: #1e293b;
  /* Rich navy */
  --dark-content-bg: #0f172a;
  --dark-text: #e2e8f0;
  --dark-title: #f8fafc;
  --dark-accent: #6366f1;
  /* Indigo */
  --dark-accent-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  --dark-secondary: #94a3b8;
  --dark-border: #334155;
  --dark-card-bg: #1e293b;
  --dark-hover: #334155;

  /* Enhanced shadows */
  --light-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --light-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --light-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

  --dark-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --dark-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.25);
  --dark-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);

  /* Refined spacing */
  --section-spacing: 6rem;
  --card-spacing: 2rem;

  /* Variables from style.css for consistency */
  --sidebar-width-default: 280px;
  /* Renamed from --sidebar-width */
  --header-height: 60px;
  --section-padding: 3rem 2rem;
  --card-padding: 1.75rem;
  --grid-gap: 1.5rem;

  /* Border Radius */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 20px;

  /* Transitions */
  --transition-speed: 0.3s;
  --transition-function: ease;
  --transition-function-cubic: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Primary and Heading Fonts */
  --primary-font: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --heading-font: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

}

/* Enhanced typography */
body {
  font-family: var(--primary-font);
  line-height: 1.7;
  letter-spacing: 0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* Modern container styling */
.container {
  display: flex;
  min-height: 100vh;
  position: relative;
  background-position: center;
  background-size: cover;
}

.light-theme .container {
  background-image:
    radial-gradient(circle at 10% 20%, rgba(67, 97, 238, 0.03) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(67, 97, 238, 0.03) 0%, transparent 20%);
}

.dark-theme .container {
  background-image:
    radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 20%);
}

.sidebar {
  border-right: 1px solid;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.light-theme .sidebar {
  background-color: rgba(255, 255, 255, 0.9);
  border-right-color: var(--light-border);
  box-shadow: var(--light-shadow-md);
}

.dark-theme .sidebar {
  background-color: rgba(30, 41, 59, 0.9);
  border-right-color: var(--dark-border);
  box-shadow: var(--dark-shadow-md);
}

body:not(.single-page-mode) .sidebar {
  border-right: 1px solid;
  border-bottom: none;
}

.single-page-mode .sidebar {
  border-right: none;
  border-bottom: 1px solid;
}

.light-theme.single-page-mode .sidebar {
  border-bottom-color: var(--light-border);
}

.dark-theme.single-page-mode .sidebar {
  border-bottom-color: var(--dark-border);
}


.profile-image-container {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.3);
}

.light-theme .profile-image-container {
  border: 4px solid transparent;
  background: var(--light-accent-gradient);
}

.dark-theme .profile-image-container {
  border: 4px solid transparent;
  background: var(--dark-accent-gradient);
}

.profile-image-container img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-image-container::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  z-index: -1;
  border-radius: inherit;
}

.light-theme .profile-image-container::before {
  background: var(--light-accent-gradient);
}

.dark-theme .profile-image-container::before {
  background: var(--dark-accent-gradient);
}


.nav-link {
  display: flex;
  align-items: center;
  padding: 0.9rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  z-index: 1;
  /* Ensure text is above pseudo-element */
}


.light-theme .nav-link {
  color: var(--light-text);
}

.dark-theme .nav-link {
  color: var(--dark-text);
}

.light-theme .nav-link:hover {
  background-color: rgba(67, 97, 238, 0.08);
  color: var(--light-accent);
}

.dark-theme .nav-link:hover {
  background-color: rgba(99, 102, 241, 0.1);
  color: var(--dark-accent);
}

.light-theme .nav-link.active {
  background: var(--light-accent-gradient);
  color: white;
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
  transform: translateY(-2px);
  /* Subtle lift effect */
}

.dark-theme .nav-link.active {
  background: var(--dark-accent-gradient);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
  /* Subtle lift effect */
}

/* Ensure nav links don't have individual backgrounds */
.light-theme .nav-link.active,
.dark-theme .nav-link.active {
  background: transparent !important;
  /* Background is handled by ::before */
  transform: none !important;
  /* Remove transform */
  box-shadow: none !important;
  /* Shadow will be on ::before */
}

/* Add shadow to the pseudo-element instead */
.light-theme .nav-link.active::before {
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.dark-theme .nav-link.active::before {
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.light-theme .nav-link.active,
.dark-theme .nav-link.active {
  animation: navLinkActivate 0.3s ease-out;
}

.nav-link i {
  margin-right: 1rem;
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.content {
  flex: 1;
}

.light-theme .content {
  background-color: var(--light-content-bg);
}

.dark-theme .content {
  background-color: var(--dark-content-bg);
}

.section {
  padding: var(--section-padding);
  max-width: 1200px;
  margin: 0 auto;
}


.section-title {
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.light-theme .section-title h2 {
  color: var(--light-title);
}

.dark-theme .section-title h2 {
  color: var(--dark-title);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  border-radius: 2px;
}

.light-theme .section-title::after {
  background: var(--light-accent-gradient);
}

.dark-theme .section-title::after {
  background: var(--dark-accent-gradient);
}

.typing-animation h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.3em;
  line-height: 1.2;
}

.light-theme .typing-animation h1 {
  color: var(--light-title);
}

.dark-theme .typing-animation h1 {
  color: var(--dark-title);
}


.animated-greeting {
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.4;
  min-height: 1.4em;
}

.light-theme .animated-greeting {
  color: var(--light-title);
}

.dark-theme .animated-greeting {
  color: var(--dark-title);
}


.project-card {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.light-theme .project-card {
  background-color: var(--light-card-bg);
  box-shadow: var(--light-shadow-md);
}

.dark-theme .project-card {
  background-color: var(--dark-card-bg);
  box-shadow: var(--dark-shadow-md);
}

.light-theme .project-card:hover {
  box-shadow: var(--light-shadow-lg);
  transform: translateY(-5px);
}

.dark-theme .project-card:hover {
  box-shadow: var(--dark-shadow-lg);
  transform: translateY(-5px);
}

.project-image {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.project-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-image::after {
  opacity: 1;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.08);
}

.project-info {
  padding: var(--card-padding);
}

.project-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.light-theme .project-info h3 {
  color: var(--light-title);
}

.dark-theme .project-info h3 {
  color: var(--dark-title);
}

.project-card:hover .project-info h3 {
  color: var(--light-accent);
}

.dark-theme .project-card:hover .project-info h3 {
  color: var(--dark-accent);
}

.project-info p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.view-details-btn,
.view-resume-btn,
.download-resume-btn,
.email-direct-btn,
.submit-btn,
.timeline-btn,
.achievement-link {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
}

.light-theme .view-details-btn,
.light-theme .view-resume-btn,
.light-theme .email-direct-btn,
.light-theme .submit-btn,
.light-theme .timeline-btn,
.light-theme .achievement-link {
  background: var(--light-accent-gradient);
  color: white;
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

.dark-theme .view-details-btn,
.dark-theme .view-resume-btn,
.dark-theme .email-direct-btn,
.dark-theme .submit-btn,
.dark-theme .timeline-btn,
.dark-theme .achievement-link {
  background: var(--dark-accent-gradient);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.light-theme .download-resume-btn {
  background-color: transparent;
  color: var(--light-text);
  border: 2px solid var(--light-border);
}

.dark-theme .download-resume-btn {
  background-color: transparent;
  color: var(--dark-text);
  border: 2px solid var(--dark-border);
}

.light-theme .view-details-btn:hover,
.light-theme .view-resume-btn:hover,
.light-theme .email-direct-btn:hover,
.light-theme .submit-btn:hover,
.light-theme .timeline-btn:hover,
.light-theme .achievement-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(67, 97, 238, 0.3);
}

.dark-theme .view-details-btn:hover,
.dark-theme .view-resume-btn:hover,
.dark-theme .email-direct-btn:hover,
.dark-theme .submit-btn:hover,
.dark-theme .timeline-btn:hover,
.dark-theme .achievement-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(99, 102, 241, 0.3);
}

.light-theme .download-resume-btn:hover {
  background-color: var(--light-hover);
  border-color: var(--light-accent);
  color: var(--light-accent);
}

.dark-theme .download-resume-btn:hover {
  background-color: var(--dark-hover);
  border-color: var(--dark-accent);
  color: var(--dark-accent);
}

.timeline-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 18px;
  height: 100%;
  width: 3px;
  border-radius: 1.5px;
}

.light-theme .timeline::before {
  background: linear-gradient(to bottom, var(--light-accent) 0%, var(--light-secondary) 100%);
}

.dark-theme .timeline::before {
  background: linear-gradient(to bottom, var(--dark-accent) 0%, var(--dark-secondary) 100%);
}

.timeline-date-marker {
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), 0 4px 8px rgba(0, 0, 0, 0.2);
}

.light-theme .timeline-date-marker {
  background: var(--light-accent-gradient);
  color: white;
}

.dark-theme .timeline-date-marker {
  background: var(--dark-accent-gradient);
  color: white;
}

.timeline-content {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--dark-shadow-md);
  transition: all 0.3s ease;
}

.light-theme .timeline-content {
  background-color: var(--light-card-bg);
  border-left: 4px solid var(--light-accent);
}

.dark-theme .timeline-content {
  background-color: var(--dark-card-bg);
  border-left: 4px solid var(--dark-accent);
}

.light-theme .timeline-content:hover {
  box-shadow: var(--light-shadow-lg);
}

.dark-theme .timeline-content:hover {
  box-shadow: var(--dark-shadow-lg);
}

.timeline-title {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.light-theme .timeline-title {
  color: var(--light-title);
}

.dark-theme .timeline-title {
  color: var(--dark-title);
}

.timeline-year-markers {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.timeline-year-marker {
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.light-theme .timeline-year-marker {
  background-color: var(--light-hover);
  color: var(--light-text);
  box-shadow: var(--light-shadow-sm);
}

.dark-theme .timeline-year-marker {
  background-color: var(--dark-hover);
  color: var(--dark-text);
  box-shadow: var(--dark-shadow-sm);
}

.light-theme .timeline-year-marker.active,
.light-theme .timeline-year-marker:hover {
  background: var(--light-accent-gradient);
  color: white;
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

.dark-theme .timeline-year-marker.active,
.dark-theme .timeline-year-marker:hover {
  background: var(--dark-accent-gradient);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--grid-gap);
}

.contact-info,
.contact-form {
  border-radius: var(--border-radius-lg);
  padding: var(--card-spacing);
  height: 100%;
}

.light-theme .contact-info,
.light-theme .contact-form {
  background-color: var(--light-card-bg);
  box-shadow: var(--light-shadow-md);
}

.dark-theme .contact-info,
.dark-theme .contact-form {
  background-color: var(--dark-card-bg);
  box-shadow: var(--dark-shadow-md);
}

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

.contact-item i {
  font-size: 1.5rem;
  margin-right: 1rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.light-theme .contact-item i {
  background: rgba(67, 97, 238, 0.1);
  color: var(--light-accent);
}

.dark-theme .contact-item i {
  background: rgba(99, 102, 241, 0.15);
  color: var(--dark-accent);
}

.contact-item:hover i {
  transform: scale(1.1);
}

.light-theme .contact-item:hover i {
  background: var(--light-accent-gradient);
  color: white;
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

.dark-theme .contact-item:hover i {
  background: var(--dark-accent-gradient);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.contact-text h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.contact-text p {
  opacity: 0.8;
}

.contact-direct {
  padding: 2.5rem;
  text-align: center;
  border-radius: var(--border-radius-lg);
  margin-bottom: 2rem;
}

.light-theme .contact-direct {
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.05) 0%, rgba(58, 12, 163, 0.05) 100%);
  border: 1px solid rgba(67, 97, 238, 0.1);
}

.dark-theme .contact-direct {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(79, 70, 229, 0.05) 100%);
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.contact-direct h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-direct p {
  margin-bottom: 1.75rem;
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.email-direct-btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.contact-alternative {
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
}

.light-theme .contact-alternative {
  background-color: var(--light-card-bg);
}

.dark-theme .contact-alternative {
  background-color: var(--dark-card-bg);
}

.alt-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.alt-contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.75rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  height: 100%;
}

.light-theme .alt-contact-item {
  background-color: rgba(67, 97, 238, 0.05);
  color: var(--light-text);
}

.dark-theme .alt-contact-item {
  background-color: rgba(99, 102, 241, 0.08);
  color: var(--dark-text);
}

.alt-contact-item i {
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.light-theme .alt-contact-item:hover {
  background: var(--light-accent-gradient);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(67, 97, 238, 0.2);
}

.dark-theme .alt-contact-item:hover {
  background: var(--dark-accent-gradient);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(99, 102, 241, 0.2);
}

.resume-container {
  background-color: transparent;
  border: none;
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  margin-top: 0;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.light-theme .resume-container {
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.05) 0%, rgba(58, 12, 163, 0.05) 100%);
  box-shadow: var(--light-shadow-md);
}

.dark-theme .resume-container {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(79, 70, 229, 0.05) 100%);
  box-shadow: var(--dark-shadow-md);
}

.resume-container::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  opacity: 0.05;
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.light-theme .resume-container::before {
  background: var(--light-accent);
}

.dark-theme .resume-container::before {
  background: var(--dark-accent);
}


.resume-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.resume-title i {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.light-theme .resume-title i {
  background: rgba(67, 97, 238, 0.1);
  color: var(--light-accent);
}

.dark-theme .resume-title i {
  background: rgba(99, 102, 241, 0.15);
  color: var(--dark-accent);
}

.resume-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.skills-container {
  margin-top: 4rem;
}

.skills-container h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.light-theme .skills-container h3 {
  color: var(--light-title);
}

.dark-theme .skills-container h3 {
  color: var(--dark-title);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--grid-gap);
}

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

.skill-name {
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
}

.skill-percentage {
  opacity: 0.8;
}

.skill-bar {
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
}

.light-theme .skill-bar {
  background-color: rgba(67, 97, 238, 0.1);
}

.dark-theme .skill-bar {
  background-color: rgba(99, 102, 241, 0.1);
}

.skill-progress {
  height: 100%;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}

.light-theme .skill-progress {
  background: var(--light-accent-gradient);
}

.dark-theme .skill-progress {
  background: var(--dark-accent-gradient);
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0.25) 50%,
      rgba(255, 255, 255, 0.1) 100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.social-icons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-icons a {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.light-theme .social-icons a {
  background-color: rgba(67, 97, 238, 0.1);
  color: var(--light-accent);
}

.dark-theme .social-icons a {
  background-color: rgba(99, 102, 241, 0.1);
  color: var(--dark-accent);
}

.light-theme .social-icons a:hover {
  background: var(--light-accent-gradient);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.2);
}

.dark-theme .social-icons a:hover {
  background: var(--dark-accent-gradient);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
}

.modal-content {
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.light-theme .modal-content {
  background-color: var(--light-card-bg);
}

.dark-theme .modal-content {
  background-color: var(--dark-card-bg);
}

.modal-body {
  padding: 2.5rem;
}

.project-detail-header {
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid;
}

.light-theme .project-detail-header {
  border-color: var(--light-border);
}

.dark-theme .project-detail-header {
  border-color: var(--dark-border);
}

.project-detail-image {
  border-radius: 12px;
  overflow: hidden;
  height: 350px;
  box-shadow: var(--dark-shadow-md);
}

.close-modal {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.1);
  color: white;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  position: absolute;
  right: 20px;
  top: 15px;
}

.light-theme .close-modal {
  color: var(--light-text);
  background-color: rgba(0, 0, 0, 0.05);
}

.dark-theme .close-modal {
  color: var(--dark-text);
  background-color: rgba(255, 255, 255, 0.1);
}


.close-modal:hover {
  background-color: rgba(0, 0, 0, 0.2);
  transform: rotate(90deg);
}

.light-theme .close-modal:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.dark-theme .close-modal:hover {
  background-color: rgba(255, 255, 255, 0.2);
}


.theme-toggle {
  display: flex;
  align-items: center;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  margin-right: 10px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.4s;
  border-radius: 34px;
}

.light-theme .slider {
  background-color: rgba(67, 97, 238, 0.3);
}

.dark-theme .slider {
  background-color: rgba(99, 102, 241, 0.3);
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.light-theme input:checked+.slider {
  background: var(--light-accent-gradient);
}

.dark-theme input:checked+.slider {
  background: var(--dark-accent-gradient);
}

input:checked+.slider:before {
  transform: translateX(26px);
}

@media (max-width: 767px) {
  .section-title h2 {
    font-size: 2rem;
  }

  .resume-title {
    font-size: 1.6rem;
  }

  .profile-section {
    flex-direction: column;
    text-align: center;
  }

  .profile-image-container {
    margin: 0 auto 1.5rem;
  }

  .timeline-year-marker {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

.achievements-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--grid-gap);
  margin-top: 2rem;
}

.achievement-card {
  display: flex;
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  transition: all 0.3s ease;
  height: 100%;
}

.light-theme .achievement-card {
  background-color: var(--light-card-bg);
  box-shadow: var(--light-shadow-md);
}

.dark-theme .achievement-card {
  background-color: var(--dark-card-bg);
  box-shadow: var(--dark-shadow-md);
}

.achievement-card:hover {
  transform: translateY(-5px);
}

.light-theme .achievement-card:hover {
  box-shadow: var(--light-shadow-lg);
}

.dark-theme .achievement-card:hover {
  box-shadow: var(--dark-shadow-lg);
}

.achievement-icon {
  flex: 0 0 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 1.5rem;
}

.light-theme .achievement-icon {
  background: rgba(67, 97, 238, 0.1);
  color: var(--light-accent);
}

.dark-theme .achievement-icon {
  background: rgba(99, 102, 241, 0.1);
  color: var(--dark-accent);
}

.achievement-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.achievement-content p {
  margin-bottom: 1rem;
  opacity: 0.8;
}


.resume-tabs {
  display: flex;
  margin-bottom: 2rem;
  border-bottom: 1px solid;
  padding-bottom: 1px;
  gap: 0.5rem;
  /* overflow-x: auto;  */
}

.light-theme .resume-tabs {
  border-color: var(--light-border);
}

.dark-theme .resume-tabs {
  border-color: var(--dark-border);
}

.resume-tab {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.light-theme .resume-tab {
  color: var(--light-text);
}

.dark-theme .resume-tab {
  color: var(--dark-text);
}

.resume-tab::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  transition: width 0.3s ease;
  border-radius: 3px 3px 0 0;
}

.light-theme .resume-tab::after {
  background: var(--light-accent-gradient);
}

.dark-theme .resume-tab::after {
  background: var(--dark-accent-gradient);
}

.resume-tab.active::after,
.resume-tab:hover::after {
  width: 100%;
}

.resume-content {
  display: none;
  margin-top: 2rem;
}

.resume-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.resume-preview {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--dark-shadow-md);
}

.resume-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}


.skills-category {
  margin-bottom: 3rem;
}

.skills-category h4 {
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid;
}

.light-theme .skills-category h4 {
  color: var(--light-title);
  border-color: var(--light-border);
}

.dark-theme .skills-category h4 {
  color: var(--dark-title);
  border-color: var(--dark-border);
}


.social-media-links {
  margin-top: 1rem;
}

.social-media-links h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  margin-top: 0;
  /* Ensure no additional top margin */

}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
}

.light-theme .social-link {
  background-color: rgba(67, 97, 238, 0.05);
  color: var(--light-text);
}

.dark-theme .social-link {
  background-color: rgba(99, 102, 241, 0.08);
  color: var(--dark-text);
}

.social-link i {
  font-size: 2rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.social-link span {
  font-weight: 500;
}

.light-theme .social-link:hover {
  background: var(--light-accent-gradient);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(67, 97, 238, 0.2);
}

.dark-theme .social-link:hover {
  background: var(--dark-accent-gradient);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(99, 102, 241, 0.2);
}

.last-updated {
  /* Styling is now primarily handled by JS in mobile-nav.js */
}


.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-card {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  max-width: 100%;
  box-shadow: var(--dark-shadow-md);
}

.project-image {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.project-info {
  padding: 1.25rem;
}

.project-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.project-info p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.profile-image-container {
  /* For the main profile image on home page */
  width: 220px;
  height: 220px;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.light-theme .profile-image-container {
  border: 4px solid transparent;
  background: var(--light-accent-gradient);
}

.dark-theme .profile-image-container {
  border: 4px solid transparent;
  background: var(--dark-accent-gradient);
}

.profile-image-container::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  z-index: -1;
  border-radius: inherit;
}

.light-theme .profile-image-container::before {
  background: var(--light-accent-gradient);
}

.dark-theme .profile-image-container::before {
  background: var(--dark-accent-gradient);
}

.profile-pic-container {
  /* This is for the small logo in sidebar header */
  /* Dimensions set by JS/responsive.css */
  position: relative;
  border-radius: 50%;
  overflow: hidden;
}

/* In modern-style.css, find the .profile-pic-container class */
/* logo border code  */
/* .profile-pic-container {
  border: .5px solid transparent;
}

.light-theme .profile-pic-container {
  border-color: var(--dark-accent);
}

.dark-theme .profile-pic-container {
  border-color: #ffffff;
} */