/* styles.css */
*, *::before, *::after {
  box-sizing: border-box; /* Apply border-box to all elements */
}

html, body {
  width: 100%; /* Ensure html and body take full width */
  overflow-x: hidden; /* Prevent horizontal scrollbar if 100vw causes it */
  margin: 0;
  scroll-behavior: smooth; /* Smooth scroll for anchor links */
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #E6F2FF; /* Lighter background for a cleaner look */
  color: #333;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition for dark mode */
}

.container {
  max-width: 2500px; /* Original max-width */
  margin: 0 auto; /* Simplified margin for centering */
  padding: 0 50px; /* MODIFIED: Reduced padding to increase content width */
  display: flex;
  align-items: center; /* Vertically align items in the header */
  flex-wrap: wrap; /* Allow wrapping on smaller screens, though ideally not needed for header */
}

/* Header Section */
.main-header {
  background-color: #B3BEFF; /* White header background */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 15px 0; /* Vertical padding for the header */
  width: 100%; /* Ensure header takes full width */
  position: sticky; /* Make header sticky */
  top: 0;
  z-index: 1000; /* Ensure header is above other content */
  transition: background-color 0.3s ease;
}

.main-header > .container {
  max-width: none; /* Allow it to fill the header's width */
  gap: 15px; /* Adds space between header-left, searchBarContainer, and header-right-group */
  /* display: flex; Inherited from .container */
  /* align-items: center; Inherited from .container */
  flex-wrap: nowrap; /* MODIFIED: Ensure header items stay in a single line, overriding global .container rule */
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0; /* Prevent logo/title from shrinking too much */
}

.logo {
  font-size: 1.8em;
  font-weight: bold;
  color: #1d3557;
  padding: 5px 10px;
  border: 2px solid #1d3557;
  border-radius: 5px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.main-header h1 {
  font-size: 1.8em;
  margin: 0;
  color: #1d3557;
  transition: color 0.3s ease;
}

/* Search Bar Container Styles */
#searchBarContainer {
  display: flex; /* For aligning input and button inside */
  align-items: center;
  width: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden; /* Hide content when collapsed */
  transition: width 0.4s ease-in-out, opacity 0.3s ease-in-out 0.1s, visibility 0s linear 0.4s;
  /* Delay opacity and visibility transitions */
  flex-shrink: 0; /* Prevent search bar from shrinking when active and space is tight */
}

#searchBarContainer.active {
  width: 250px; /* Adjust width as needed */
  opacity: 1;
  visibility: visible;
  padding: 0 10px; /* Add some padding when active */
  transition: width 0.4s ease-in-out, opacity 0.3s ease-in-out, visibility 0s linear 0s;
}

#searchBarContainer input {
  flex-grow: 1;
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 5px 0 0 5px; /* Rounded left corners */
  font-size: 1em;
  outline: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  min-width: 0; /* Allow input to shrink if necessary */
}

#searchBarContainer .close-search {
  background-color: #f0f0f0; /* Match input style */
  border: 1px solid #ddd;
  border-left: none; /* Remove left border to join with input */
  cursor: pointer;
  color: #555;
  font-size: 1em; /* Adjusted for better fit */
  padding: 8px 10px; /* Match input padding */
  border-radius: 0 5px 5px 0; /* Rounded right corners */
  transition: color 0.3s ease, background-color 0.3s ease;
  line-height: 1.25; /* Align text vertically */
}

#searchBarContainer .close-search:hover {
  color: #1d3557;
  background-color: #e0e0e0;
}


.header-right-group {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-left: auto; /* Pushes this group to the far right */
  flex-shrink: 0; /* Prevent this group from shrinking excessively */
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 25px;
}

.main-nav a {
  text-decoration: none;
  color: #555;
  font-weight: 600;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: #1d3557;
}

.dark-mode-toggle {
  background-color: transparent;
  color: #1d3557;
  border: 2px solid #1d3557;
  border-radius: 50%;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.dark-mode-toggle:hover {
  background-color: #1d3557;
  color: white;
  border-color: #1d3557;
}

.dark-mode-toggle svg {
  width: 20px;
  height: 20px;
  transition: fill 0.3s ease, stroke 0.3s ease;
}

/* Hero Section Animations */
/* @keyframes text-glow {
  from {
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #457b9d, 0 0 20px #457b9d;
  }
  to {
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #457b9d, 0 0 40px #457b9d;
  }
} */

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: #457b9d; }
}

.hero-section {
  background: url('Media/banner3.png') no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 550px;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 40px;
}

.hero-content {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 40px 60px;
  border-radius: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  max-width: 900px;
  margin: 0 auto;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-title {
  color: #1d3557;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 3.5em;
  margin-bottom: 20px; /* Increased margin */
  transition: color 0.3s ease;
  animation: text-glow 3s ease-in-out infinite alternate;
}

.hero-subtitle {
  color: #457b9d;
  font-size: 1.3em;
  font-family: monospace; /* Monospaced font for typing effect */
  display: inline-block;
  overflow: hidden;
  border-right: .1em solid #457b9d;
  white-space: nowrap;
  letter-spacing: .1em;
  animation: 
    typing 5s steps(38, end) infinite,
    blink-caret .75s step-end infinite;
}

/* General Section Styling */
section {
  padding: 40px 20px;
  max-width: 900px; /* Default max-width for sections */
  margin: 40px auto;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

section h2 {
  color: #1d3557;
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  transition: color 0.3s ease;
}
section h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #457b9d;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

/* --- Styles for #about section on main page (blog.html) --- */
#about {
  background-color: transparent !important;
  max-width: none !important;
  margin: 20px 0 !important;
  padding: 30px 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

#about > h2 {
  text-align: center;
  font-size: 2.8em;
  color: #333;
  margin-top: 0;
  margin-bottom: 10px;
  position: relative;
}

#about > h2::after {
  display: none !important;
}

.section-divider {
  border: 0;
  height: 1px;
  background-color: #511F73;
  margin: 30px auto;
  max-width: 60%;
}

.about-content-wrapper {
  display: flex;
  max-width: 1000px;
  margin: 0 auto;
  align-items: center;
  gap: 40px;
  background-color: #E6F2FF;
  padding: 40px;
  border-radius: 12px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.about-text-content {
  flex: 1.2;
}

.about-text-content h3 {
  font-size: 2.2em;
  color: #000000;
  margin-bottom: 10px;
}

.about-text-content .greeting-subtitle {
  font-size: 1.2em;
  color: #7f8c8d;
  margin-bottom: 25px;
  display: block;
}

.about-text-content p {
  font-size: 1em;
  line-height: 1.7;
  color: #000000;
  margin-bottom: 20px;
}
.about-text-content p:last-of-type {
  margin-bottom: 30px;
}

.about-image-content {
  flex: 0.8;
  text-align: center;
}

.about-image-content img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  object-fit: cover;
}

.read-more-btn {
  display: inline-block;
  background-color: #3498db;
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  border: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.read-more-btn:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

/* --- About Me Page Specific Styles (from about-me.html) --- */
.about-page-container-new {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
    background-color: #f9f9f9; /* Light gray background like the image */
    border-radius: 8px; /* Added for consistency */
    transition: background-color 0.3s ease;
}
.page-main-title {
    text-align: center;
    font-size: 2.5em;
    color: #333;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}
.title-divider-new {
    border: 0;
    height: 1px;
    background-color: #ccc;
    margin: 0 auto 30px auto;
    width: 80%;
    transition: background-color 0.3s ease;
}
.content-grid-new {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}
.image-column-new {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.image-primary-container-new {
    margin-bottom: 20px;
    text-align: center;
}
.image-primary-new {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.image-secondary-container-new {
    text-align: center;
}
.image-secondary-new {
    max-width: 80%;
    height: auto;
    border-radius: 8px;
}
.text-column-new {
    flex: 1.5;
    min-width: 300px;
}
.text-column-new h2 { 
    font-size: 2em;
    color: #333;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}
.subsection-new {
    margin-bottom: 25px;
}
.subsection-new h3 {
    font-size: 1.4em;
    color: #444;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}
.subsection-new p {
    font-size: 1em;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}
.button-link-new {
    display: inline-block;
    background-color: #fff;
    color: #333;
    padding: 10px 20px;
    text-decoration: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.button-link-new:hover {
    background-color: #f0f0f0;
    border-color: #bbb;
}


/* Lively Animation Keyframes */
@keyframes jiggle {
  0%, 100% { transform: rotate(0) translateY(-5px); }
  25% { transform: rotate(-2deg) translateY(-5px); }
  75% { transform: rotate(2deg) translateY(-5px); }
}

/* Skills Section Revamp & Animation */
#skills {
  background-color: transparent;
  box-shadow: none;
  border-radius: 0;
  max-width: 1000px;
  padding: 50px 30px;
}

#skills ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

#skills ul li {
  background: #ffffff;
  color: #1d3557;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.05em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#skills ul li:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.12);
  animation: jiggle 0.4s ease-in-out;
}

/* Dark Mode for Skills */
body.dark-mode #skills {
    background-color: transparent;
}
body.dark-mode #skills ul li {
    background: #276081;
    color: #e0e0e0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


/* Custom Divider Line */
.custom-divider {
    border: 0;
    height: 1px;
    background-color: #ccc; 
    margin: 40px auto; 
    max-width: 80%; 
    transition: background-color 0.3s ease;
}


/* --- Project Section Styles (blog.html & all-projects.html) --- */
#projects,
#all-projects-showcase {
    max-width: 1200px; 
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.project-card {
    background-color: #fdfdfd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease; 
    display: flex; 
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.project-card-image-link {
    display: block;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #eee;
    transition: border-bottom-color 0.3s ease; 
}

.project-card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-card-content h3 {
    font-size: 1.3em;
    color: #1d3557;
    margin-top: 0;
    margin-bottom: 10px;
    transition: color 0.3s ease; 
}

.project-card-content p {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1;
    transition: color 0.3s ease; 
}

.project-card-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8em;
    color: #777;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
    margin-top: auto;
    transition: color 0.3s ease, border-top-color 0.3s ease; 
}

.project-card-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-card-stats svg {
    width: 14px;
    height: 14px;
    fill: currentColor; 
}

.see-all-projects-btn-container {
    text-align: center;
    margin-top: 20px;
}

.see-all-projects-btn {
    display: inline-block;
    background-color: #1d3557;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
}

.see-all-projects-btn:hover {
    background-color: #2a5288;
    transform: translateY(-2px);
}

/* Contact Section Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Prepare all sections for animation */
section[id] {
    opacity: 0;
}

/* Animate sections when they become visible */
section[id].animate {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Stagger animation for contact section elements */
#contact .contact-left,
#contact .contact-right {
    opacity: 0;
}

#contact.animate .contact-left {
    animation: fadeInUp 0.8s 0.2s ease-out forwards;
}

#contact.animate .contact-right {
    animation: fadeInUp 0.8s 0.4s ease-out forwards;
}


/* Contact Section Styles */
#contact {
  background-color: #D1C4E9;
  width: 100%;
  max-width: none;
  margin-top: 40px;
  margin-bottom: 0;
  margin-left: 0;
  margin-right: 0;
  padding: 50px 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-radius: 0;
  transition: background-color 0.3s ease; 
  overflow: hidden; /* Hide overflowing animated elements */
}
#contact .contact-content-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
}
#contact .contact-left,
#contact .contact-right {
  flex: 1;
  min-width: 280px;
}

#contact .contact-left h2 {
  font-size: 2.2em;
  color: #333;
  margin-bottom: 25px;
  text-align: left;
  line-height: 1.3;
  transition: color 0.3s ease; 
}
#contact .contact-left h2::after {
  display: none;
}

/* Styling for contact information items (email, phone) */
.contact-info-items {
    margin-bottom: 20px; 
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 10px; 
    margin-bottom: 10px; 
    font-size: 1em;
    color: #333;
    transition: color 0.3s ease;
}

.contact-info-item svg {
    width: 20px; 
    height: 20px; 
    fill: #333; 
    transition: fill 0.3s ease;
}

.contact-info-item a {
    text-decoration: none;
    color: inherit; 
    transition: color 0.3s ease;
}

.contact-info-item a:hover {
    color: #1d3557; 
}
/* End of new contact info item styles */

#contact .social-media-links {
  display: flex;
  gap: 15px; 
  flex-wrap: wrap; 
  margin-top: 25px;
  margin-bottom: 20px; 
}
#contact .social-media-links a {
  display: inline-block;
  width: 28px;
  height: 28px;
  transition: transform 0.2s ease-in-out;
}
#contact .social-media-links a:hover {
    transform: translateY(-3px);
}
#contact .social-media-links a .social-svg {
  width: 100%;
  height: 100%;
  fill: #333;
  transition: fill 0.3s ease;
}
#contact .social-media-links a[href*="x.com"]:hover .social-svg {
  fill: #000000;
}
#contact .social-media-links a[href*="instagram.com"]:hover .social-svg {
  fill: #E1306C;
}
#contact .social-media-links a[href*="linkedin.com"]:hover .social-svg {
  fill: #0077B5;
}
#contact .social-media-links a[href*="github.com"]:hover .social-svg {
  fill: #181717;
}

#contact .contact-right form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
#contact .form-name-fields {
  display: flex;
  gap: 20px;
}
#contact .form-name-fields input {
  flex: 1;
}
#contact input[type="text"],
#contact input[type="email"],
#contact textarea {
  background-color: transparent;
  border: none;
  border-bottom: 2px solid #555;
  border-radius: 0;
  padding: 12px 5px;
  font-size: 1.05em;
  color: #333;
  width: 100%;
  transition: border-color 0.3s ease, color 0.3s ease; 
}
#contact input[type="text"]:focus,
#contact input[type="email"]:focus,
#contact textarea:focus {
  border-bottom-color: #1d3557;
  outline: none;
  box-shadow: none;
}
#contact textarea {
  min-height: 100px;
  resize: vertical;
}
#contact button[type="submit"] {
  background: transparent;
  color: #333;
  border: 2px solid #333;
  padding: 12px 25px;
  font-size: 1.1em;
  font-weight: 600;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin-top: 10px;
  align-self: flex-start;
}
#contact button[type="submit"]:hover {
  background-color: #333;
  color: #D1C4E9;
  border-color: #333;
}

.resume-button-container {
    margin-top: 20px; 
}

.resume-btn {
    display: inline-block;
    background-color: #1d3557; 
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    text-align: center;
}

.resume-btn:hover {
    background-color: #2a5288; 
    transform: translateY(-2px);
}


/* Footer Styles */
footer {
  background: #4A3F70;
  color: #EAEAEA;
  text-align: center;
  width: 100%;
  max-width: none;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 0;
  margin-right: 0;
  padding: 15px 30px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
footer p {
    margin: 0;
    font-size: 0.95em;
}


/* --- Dark Mode Styles --- */
body.dark-mode {
  background-color: #1a1a1a;
  color: #e0e0e0;
}

body.dark-mode .main-header {
  background-color: #1e1e1e;
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.05);
}
body.dark-mode .logo { color: #a8dadc; border-color: #a8dadc; }
body.dark-mode .main-header h1 { color: #a8dadc; }
body.dark-mode .main-nav a { color: #90caf9; }
body.dark-mode .main-nav a:hover { color: #a8dadc; }

body.dark-mode #searcbhBarContainer { 
    /* background-color: #2c2c2c;  Optional: if you want search bar bg to change */
    /* box-shadow: -2px 0 5px rgba(255, 255, 255, 0.05); */
}
body.dark-mode #searchBarContainer input { 
    background-color: #3a3a3a; 
    color: white; 
    border-color: #555; 
}
body.dark-mode #searchBarContainer .close-search { 
    background-color: #3a3a3a;
    color: #90caf9; 
    border-color: #555;
}
body.dark-mode #searchBarContainer .close-search:hover { 
    color: #a8dadc; 
    background-color: #4f4f4f;
}


body.dark-mode .dark-mode-toggle { border-color: #90caf9; color: #90caf9; }
body.dark-mode .dark-mode-toggle:hover { background-color: #90caf9; color: #1e1e1e; }
body.dark-mode .dark-mode-toggle svg { stroke: #90caf9; fill: none; }
body.dark-mode .dark-mode-toggle:hover svg { stroke: #1e1e1e; }
body.dark-mode .hero-content {
    background-color: rgba(44, 44, 44, 0.85);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}
body.dark-mode .hero-title { color: #a8dadc; }
body.dark-mode .hero-subtitle { color: #90caf9; }

body.dark-mode section {
  background-color: #2c2c2c;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
}
body.dark-mode section h2 { color: #a8dadc; }
body.dark-mode section h2::after { background-color: #90caf9; }

body.dark-mode #about { background-color: transparent !important; }
body.dark-mode #about > h2 { color: #e0e0e0; }
body.dark-mode .section-divider { background-color: #444; }
body.dark-mode .about-content-wrapper { 
  background-color: #252525; 
  box-shadow: 0 6px 20px rgba(255,255,255,0.07);
}
body.dark-mode .about-text-content h3 { color: #a8dadc; }
body.dark-mode .about-text-content .greeting-subtitle { color: #90caf9; }
body.dark-mode .about-text-content p { color: #cccccc; }
body.dark-mode .about-image-content img {
  box-shadow: 0 4px 12px rgba(255,255,255,0.08);
}
body.dark-mode .read-more-btn {
  background-color: #457b9d;
  color: #e0e0e0;
}
body.dark-mode .read-more-btn:hover {
  background-color: #528fad;
}

/* Dark Mode for About Me Page Specific Styles */
body.dark-mode .about-page-container-new {
    background-color: #222; 
}
body.dark-mode .page-main-title,
body.dark-mode .text-column-new h2, 
body.dark-mode .subsection-new h3 {
    color: #e8e8e8; 
}
body.dark-mode .subsection-new p {
    color: #bdbdbd; 
}
body.dark-mode .title-divider-new {
    background-color: #555; 
}
body.dark-mode .button-link-new {
    background-color: #333;
    color: #e8e8e8;
    border-color: #555;
}
body.dark-mode .button-link-new:hover {
    background-color: #444;
    border-color: #666;
}

body.dark-mode .custom-divider {
    background-color: #555; 
}

body.dark-mode .project-card {
    background-color: #333;
    box-shadow: 0 2px 8px rgba(255,255,255,0.05);
}
body.dark-mode .project-card:hover {
    box-shadow: 0 6px 15px rgba(255,255,255,0.08);
}
body.dark-mode .project-card img {
    border-bottom: 1px solid #444;
}
body.dark-mode .project-card-content h3 {
    color: #a8dadc;
}
body.dark-mode .project-card-content p {
    color: #bbbbbb;
}
body.dark-mode .project-card-stats {
    color: #999;
    border-top: 1px solid #3f3f3f;
}
body.dark-mode .see-all-projects-btn {
    background-color: #457b9d;
    color: #e0e0e0;
}
body.dark-mode .see-all-projects-btn:hover {
    background-color: #528fad;
}

body.dark-mode #contact {
    background-color: #3A315B;
}
body.dark-mode #contact .contact-left h2 { color: #e0e0e0; }

body.dark-mode .contact-info-item {
    color: #e0e0e0;
}
body.dark-mode .contact-info-item svg {
    fill: #e0e0e0;
}
body.dark-mode .contact-info-item a:hover {
    color: #a8dadc; 
}

body.dark-mode #contact .social-media-links a .social-svg { fill: #e0e0e0; }

/* --- CORRECTED SOCIAL ICON HOVER FOR DARK MODE --- */
body.dark-mode #contact .social-media-links a[href*="x.com"]:hover .social-svg {
  fill: #000000;
}
body.dark-mode #contact .social-media-links a[href*="instagram.com"]:hover .social-svg {
  fill: #E1306C;
}
body.dark-mode #contact .social-media-links a[href*="linkedin.com"]:hover .social-svg {
  fill: #0077B5;
}
body.dark-mode #contact .social-media-links a[href*="github.com"]:hover .social-svg {
  fill: #FFFFFF;
}


body.dark-mode #contact input[type="text"],
body.dark-mode #contact input[type="email"],
body.dark-mode #contact textarea {
    color: #e0e0e0;
    border-bottom-color: #777;
}
body.dark-mode #contact input[type="text"]::placeholder,
body.dark-mode #contact input[type="email"]::placeholder,
body.dark-mode #contact textarea::placeholder { color: #bbb; }

body.dark-mode #contact input[type="text"]:focus,
body.dark-mode #contact input[type="email"]:focus,
body.dark-mode #contact textarea:focus { border-bottom-color: #a8dadc; }

body.dark-mode #contact button[type="submit"] {
    color: #e0e0e0;
    border-color: #e0e0e0;
}
body.dark-mode #contact button[type="submit"]:hover {
    background-color: #e0e0e0;
    color: #3A315B;
    border-color: #e0e0e0;
}

body.dark-mode .resume-btn {
    background-color: #457b9d; 
    color: #e0e0e0;
}
body.dark-mode .resume-btn:hover {
    background-color: #528fad;
}

body.dark-mode footer { background-color: #2D254A; color: #c0c0c0; }


/* --- Responsive Design --- */
@media (max-width: 992px) { /* Adjusted breakpoint for better search bar handling */
    .main-header > .container {
        padding: 0 15px; /* Reduce padding earlier for more space */
    }
    #searchBarContainer.active {
        width: 200px; /* Slightly smaller search bar on tablets */
    }
    .main-nav ul {
        gap: 15px; /* Reduce nav gap */
    }
}

@media (max-width: 768px) {
  .main-header > .container { 
    /* padding: 0 15px; /* Already set in 992px */
    /* flex-wrap: nowrap; /* Already set for .main-header > .container globally */
  }
  .header-left { 
    flex-grow: 0; 
  }
   .main-header h1 {
    font-size: 1.5em; 
  }
  .logo {
    font-size: 1.5em; 
  }

  #searchBarContainer.active {
    width: 150px; 
    padding: 0 5px;
  }
   #searchBarContainer input {
    font-size: 0.9em;
    padding: 6px 8px;
  }
  #searchBarContainer .close-search {
    font-size: 0.9em;
    padding: 6px 8px;
  }


  .header-right-group { 
    gap: 10px; 
  }
  .main-nav ul { 
    gap: 10px; 
  }
   .main-nav a {
    font-size: 0.9em; 
  }
  .search-icon svg {
    width: 18px; height: 18px; 
  }
  .dark-mode-toggle {
    width: 35px; height: 35px; 
  }
   .dark-mode-toggle svg {
    width: 18px; height: 18px;
  }


  .container { padding: 0 15px; }
  .hero-title { font-size: 2.5em; }
  .hero-subtitle { font-size: 1.1em; }
  .hero-content { padding: 30px 20px; }

  section { padding: 30px 15px; margin: 30px auto; }
  section h2 { font-size: 2em; }

  #about { padding: 20px 0; }
  #about > h2 { font-size: 2.2em; margin-bottom: 20px; }
  .section-divider { margin: 20px auto; max-width: 70%; }
  .about-content-wrapper {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
    gap: 30px;
  }
  .about-text-content { order: 2; }
  .about-image-content { order: 1; margin-bottom: 0; }
  .about-image-content img { max-width: 280px; }
  .about-text-content h3 { font-size: 1.8em; }
  .about-text-content .greeting-subtitle { font-size: 1.1em; }
  .read-more-btn { padding: 10px 20px; font-size: 0.95em; }

  .about-page-container-new .content-grid-new {
      flex-direction: column;
  }
  .about-page-container-new .image-column-new,
  .about-page-container-new .text-column-new {
      min-width: 100%;
  }
  .about-page-container-new .image-column-new {
      align-items: center;
  }
  .about-page-container-new .image-primary-new,
  .about-page-container-new .image-secondary-new {
      max-width: 70%;
  }

  .custom-divider {
      margin: 30px auto;
      max-width: 90%;
  }


  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  #contact { padding: 30px 15px; }
  #contact .contact-content-wrapper { flex-direction: column; gap: 30px; }
  #contact .contact-left h2 { font-size: 1.8em; text-align: center; }
  #contact .social-media-links { justify-content: center; }
  #contact .form-name-fields { flex-direction: column; gap: 20px; }
  #contact button[type="submit"] { align-self: stretch; text-align: center; }
  .resume-button-container { text-align: center; } 

  footer { padding: 20px 15px; }
}

@media (max-width: 480px) {
  .main-header h1, .logo { font-size: 1.2em; } 
   .main-header > .container { gap: 5px; } 
   #searchBarContainer.active {
    width: 120px; 
  }
  .main-nav ul { display: none; } 
  .search-icon { display: block !important;  }


  .hero-title { font-size: 2em; }
  .hero-subtitle { font-size: 1em; }

  #about > h2 { font-size: 2em; }
  .section-divider { margin: 15px auto; max-width: 80%; }
  .about-content-wrapper { padding: 25px 15px; }
  .about-image-content img { max-width: 220px; }
  .about-text-content h3 { font-size: 1.6em; }
  .about-text-content .greeting-subtitle { font-size: 1em; }

  .about-page-container-new .image-primary-new,
  .about-page-container-new .image-secondary-new {
      max-width: 90%; 
  }


  .projects-grid {
    grid-template-columns: 1fr;
  }
  .project-card img {
    height: 180px;
  }
  .project-card-content h3 {
    font-size: 1.2em;
  }

  #contact { padding-left: 10px; padding-right: 10px; }
  #contact .contact-left h2 { font-size: 1.6em; }
  #contact input[type="text"],
  #contact input[type="email"],
  #contact textarea,
  #contact button[type="submit"] { font-size: 0.95em; padding: 10px; }
  footer { padding-left: 10px; padding-right: 10px; }
}

/* Search highlight style */
.search-highlight {
    background-color: yellow;
    transition: background-color 0.3s ease;
}
body.dark-mode .search-highlight {
    background-color: #777730;} /* Dark mode highlight *" in the Canvas "Main Stylesheet" document above and am asking a query about/based on this code below.
Instructions to follow:
  * Don't output/edit the document if the query is Direct/Simple. For example, if the query asks for a simple explanation, output a direct answer.
  * Make sure to **edit** the document if the query shows the intent of editing the document, in which case output the entire edited document, **not just that section or the edits**.
    * Don't output the same document/empty document and say that you have edited it.
    * Don't change unrelated code in the document.
  * Don't output  and  in your final response.
  * Any references like "this" or "selected code" refers to the code between  and  tags.
  * Just acknowledge my request in the introduction.
  * Make sure to refer to the document as "Canvas" in your response.

i like the animation
revert back the Tanish Gupta font
and make the animation go little s