/* General Styles */
:root {
  --primary-color: #0077b6;
  --primary-light: #66b3ff;
  --primary-dark: #003366;
  --secondary-color: #00b3e6;
  --accent-color: #4682b4;
  --text-dark: #333;
  --text-light: #555;
  --text-white: #ffffff;
  --bg-light: #f5f5f5;
  --bg-white: #ffffff;
  --shadow-light: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 16px rgba(0, 0, 0, 0.15);
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --border-radius-sm: 5px;
  --border-radius-md: 8px;
  --border-radius-lg: 15px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  margin-top: 70px; /* Adjust for fixed navbar */
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

section {
  padding: var(--spacing-xl) 0;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-light);
}

.section-heading {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-heading h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-heading h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
  transition: width var(--transition-fast);
}

.section-heading:hover h2::after {
  width: 100px;
}

/* Navbar Styles */
.navbar {
  width: 100%;
  background-color: var(--primary-dark);
  color: var(--text-white);
  padding: 15px 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: var(--shadow-medium);
  transition: padding var(--transition-fast), background-color var(--transition-fast);
}

.navbar.scrolled {
  padding: 10px 0;
  background-color: rgba(0, 51, 102, 0.95);
  backdrop-filter: blur(10px);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-white);
  text-decoration: none;
  letter-spacing: 2px;
  transition: transform var(--transition-fast);
}

.logo:hover {
  transform: scale(1.1);
  color: var(--secondary-color);
}

.navbar nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
  list-style: none;
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  color: var(--text-white);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  transition: color var(--transition-fast);
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width var(--transition-fast);
}

.nav-links li a:hover {
  color: var(--secondary-color);
}

.nav-links li a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--text-white);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .3s ease-in-out;
}

.hamburger span:nth-child(1) {
  top: 0px;
}

.hamburger span:nth-child(2) {
  top: 8px;
}

.hamburger span:nth-child(3) {
  top: 16px;
}

.hamburger.open span:nth-child(1) {
  top: 8px;
  transform: rotate(135deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.hamburger.open span:nth-child(3) {
  top: 8px;
  transform: rotate(-135deg);
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  background-image: url('../images/intro1111.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(0, 51, 102, 0.9) 0%,
    rgba(0, 0, 50, 0.7) 100%
  );
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-content {
  max-width: 800px;
  padding: 0 var(--spacing-lg);
  text-align: center;
  color: var(--text-white);
  animation: fadeIn 1s ease-in-out, slideUp 1s ease-in-out;
}

.pre-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: var(--spacing-md);
  color: var(--secondary-color);
  animation: fadeIn 1s ease-in-out 0.2s both;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--text-white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: fadeIn 1s ease-in-out 0.4s both;
}

.hero-title span {
  color: var(--secondary-color);
  display: inline-block;
  position: relative;
}

.hero-title span::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--secondary-color);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.hero-title:hover span::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.hero-description {
  margin-bottom: var(--spacing-md);
  font-size: 1.2rem;
  animation: fadeIn 1s ease-in-out 0.6s both;
}

.typing-container {
  min-height: 30px;
  display: flex;
  justify-content: center;
}

.hero-specialization {
  margin-bottom: var(--spacing-lg);
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeIn 1s ease-in-out 0.8s both;
}

.cta-container {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  animation: fadeIn 1s ease-in-out 1s both;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cta-button.primary {
  background-color: var(--primary-color);
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(0, 119, 182, 0.4);
}

.cta-button.secondary {
  background-color: transparent;
  color: var(--text-white);
  border: 2px solid var(--secondary-color);
}

.cta-button.primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(0, 119, 182, 0.6);
}

.cta-button.secondary:hover {
  background-color: var(--secondary-color);
  color: var(--text-white);
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(0, 179, 230, 0.4);
}

/* About Section */
.about-section {
  background-color: var(--bg-white);
}

.about-container {
  display: flex;
  gap: var(--spacing-xl);
  align-items: flex-start;
}

.about-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.about-photo-container {
  display: flex;
  justify-content: center;
}

.about-photo {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-medium);
  border: 5px solid var(--primary-light);
  transition: transform var(--transition-medium);
}

.about-photo:hover {
  transform: scale(1.05);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skills-section {
  background-color: var(--bg-light);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-light);
}

.skills-heading {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
}

.skills-category {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

.skills-card {
  background-color: var(--bg-white);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-light);
  transition: all var(--transition-fast);
}

.skills-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.skills-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-light);
  color: var(--text-white);
  border-radius: 50%;
  margin-bottom: var(--spacing-sm);
}

.category-title {
  margin-bottom: var(--spacing-xs);
  color: var(--primary-dark);
  font-weight: 600;
}

.about-right {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.bio-section {
  background-color: var(--bg-light);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-light);
  text-align: justify;
}

.greeting {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

.bio-section p {
  margin-bottom: var(--spacing-md);
}

.bio-section p:last-child {
  margin-bottom: 0;
}

.about-details {
  background-color: var(--bg-light);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-light);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.detail-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.detail-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-light);
  color: var(--text-white);
  border-radius: 50%;
  flex-shrink: 0;
}

.detail-content h5 {
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 2px;
}

/* Resume Section */
.resume-section {
  background-color: var(--bg-light);
  
}

.resume-content {
  text-align: center;
  margin-top: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
  background-color: var(--bg-white);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-light);
}

.resume-tagline {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  
}


.resume-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.resume-text p {
  font-size: 1.1rem;
  line-height: 1.7;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 12px 28px;
  background-color: var(--primary-color);
  color: var(--text-white);
  border-radius: var(--border-radius-md);
  font-weight: 600;
  letter-spacing: 1px;
  transition: all var(--transition-fast);
  font-size: 1rem;
}

.download-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.resume-preview {
  flex: 1;
}

.resume-image-container {
  width: 100%;
  height: 400px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: transform var(--transition-medium);
}

.resume-image-container:hover {
  transform: scale(1.03);
}

.resume-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Education & Experience Section */
.education-experience-section {
  background-color: var(--bg-white);
}

.edu-exp-container {
  display: flex;
  gap: var(--spacing-xl);
}

.edu-section, .exp-section {
  flex: 1;
}

.subsection-title {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--primary-light);
}

.timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  height: 100%;
  width: 2px;
  background: var(--primary-light);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  padding-bottom: var(--spacing-lg);
}

.timeline-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-white);
  z-index: 2;
}

.timeline-content {
  background-color: var(--bg-light);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-light);
  transition: transform var(--transition-fast);
}

.timeline-content:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-medium);
}

.timeline-content h3 {
  color: var(--primary-dark);
  margin-bottom: 5px;
}

.timeline-date {
  display: block;
  margin-top: var(--spacing-sm);
  color: var(--primary-color);
  font-size: 0.9rem;
}

/* Projects Section */
.projects-section {
  background-color: var(--bg-light);
}

.projects-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.filter-btn {
  padding: 8px 20px;
  background-color: var(--bg-white);
  border: none;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  font-weight: 500;
  transition: all var(--transition-fast);
  color: var(--text-dark);
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--primary-color);
  color: var(--text-white);
}

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

.project-box {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: transform var(--transition-fast);
  cursor: pointer;
  height: 250px;
  display: flex;
  flex-direction: column;
}

.project-box:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
}

.project-content {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
  gap: var(--spacing-sm);
}

.project-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  background-color: var(--primary-light);
  color: var(--text-white);
  border-radius: 50%;
  margin-bottom: var(--spacing-sm);
  font-size: 1.5rem;
}

.project-title {
  color: var(--primary-dark);
  margin-bottom: 5px;
}

.project-tech {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-md);
}

.view-btn {
  padding: 8px 20px;
  background-color: var(--primary-color);
  color: var(--text-white);
  border: none;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.view-btn:hover {
  background-color: var(--primary-dark);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1100;
  overflow-y: auto;
  padding: var(--spacing-lg) 0;
}

.modal-content {
  background-color: var(--bg-white);
  width: 90%;
  max-width: 800px;
  margin: auto;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-md);
  position: relative;
  animation: modalScale 0.3s ease;
}

.modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 30px;
  color: var(--text-dark);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--primary-color);
}

@keyframes modalScale {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Contact Section */
.contact-section {
  background-color: var(--bg-white);
}

.contact-intro {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
}

.contact-container {
  display: flex;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.contact-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  background-color: var(--bg-light);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-light);
  transition: transform var(--transition-fast);
}

.contact-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-medium);
}

.contact-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--text-white);
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.contact-details h4 {
  color: var(--primary-dark);
  margin-bottom: 2px;
}

.contact-form-container {
  flex: 2;
  background-color: var(--bg-light);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-light);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group:nth-child(3), .form-group:nth-child(4) {
  grid-column: span 2;
}

.form-group label {
  font-weight: 500;
  color: var(--primary-dark);
}

.form-group input, .form-group textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius-sm);
  transition: border-color var(--transition-fast);
  font-family: inherit;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.submit-btn {
  grid-column: span 2;
  padding: 12px 28px;
  background-color: var(--primary-color);
  color: var(--text-white);
  border: none;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  max-width: max-content;
  margin-left: auto;
}

.submit-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(0, 119, 182, 0.3);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.social-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background-color: var(--primary-light);
  color: var(--text-white);
  border-radius: 50%;
  font-size: 1.3rem;
  transition: all var(--transition-fast);
}

.social-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 119, 182, 0.3);
}

.social-icon.linkedin:hover {
  background-color: #0077B5;
}

.social-icon.github:hover {
  background-color: #333;
}

.social-icon.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* Footer */
footer {
  background-color: var(--primary-dark);
  color: var(--text-white);
  padding: var(--spacing-lg) 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-white);
}

.footer-text {
  color: rgba(255, 255, 255, 0.8);
}

.back-to-top {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.back-to-top a {
  color: var(--text-white);
  font-size: 1.2rem;
}

.back-to-top:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(50px); }
  to { transform: translateY(0); }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .about-container {
    flex-direction: column;
  }
  
  .edu-exp-container {
    flex-direction: column;
    gap: var(--spacing-xl);
  }
  
  .resume-container {
    flex-direction: column;
  }
  
  .contact-container {
    flex-direction: column;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--primary-dark);
    flex-direction: column;
    padding: var(--spacing-md) 0;
    box-shadow: var(--shadow-medium);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .hamburger {
    display: block;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-specialization {
    font-size: 1rem;
  }
  
  .cta-container {
    flex-direction: column;
    width: 80%;
    margin: 0 auto;
  }
  
  .section-heading h2 {
    font-size: 1.8rem;
  }
  
  .about-photo {
    width: 250px;
    height: 250px;
  }
  
  .resume-image-container {
    height: 300px;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .footer-content {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .pre-title {
    font-size: 0.9rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .section-heading h2 {
    font-size: 1.5rem;
  }
  
  .about-photo {
    width: 200px;
    height: 200px;
  }
  
  .skills-category {
    grid-template-columns: 1fr;
  }
  
  .details-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    grid-template-columns: 1fr;
  }
  
  .form-group:nth-child(3), .form-group:nth-child(4) {
    grid-column: span 1;
  }
  
  .submit-btn {
    grid-column: span 1;
    width: 100%;
    max-width: none;
  }
  
  .project-box {
    height: 220px;
  }
}

/* Modal Project Content Styles */
#modal-project-content {
  padding: var(--spacing-md);
}

.modal-project-header {
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.modal-project-header h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: var(--spacing-sm);
}

.modal-project-header .category-tag {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--text-white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: var(--spacing-md);
}

.modal-project-image {
  width: 100%;
  height: 300px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  margin-bottom: var(--spacing-md);
}

.modal-project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-project-details {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-md);
  background-color: var(--bg-light);
  border-radius: var(--border-radius-md);
}

.modal-detail-item {
  display: flex;
  flex-direction: column;
}

.modal-detail-item span {
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 3px;
}

.modal-project-description {
  line-height: 1.8;
  margin-bottom: var(--spacing-lg);
}

.modal-project-tech {
  margin-bottom: var(--spacing-lg);
}

.modal-project-tech h4 {
  color: var(--primary-dark);
  margin-bottom: var(--spacing-sm);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-tag {
  background-color: var(--bg-light);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 500;
}

.modal-project-links {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 10px 24px;
  background-color: var(--primary-color);
  color: var(--text-white);
  border-radius: var(--border-radius-md);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.project-link-btn.github {
  background-color: #333;
}

.project-link-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

/* Loader Animation */
.loader {
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--text-white);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Scroll Reveal Animations */
.reveal {
  position: relative;
  opacity: 0;
  transition: all 1s ease;
}

.reveal.active {
  opacity: 1;
}

.reveal.fade-bottom {
  transform: translateY(50px);
}

.reveal.fade-bottom.active {
  transform: translateY(0);
}

.reveal.fade-left {
  transform: translateX(-50px);
}

.reveal.fade-left.active {
  transform: translateX(0);
}

.reveal.fade-right {
  transform: translateX(50px);
}

.reveal.fade-right.active {
  transform: translateX(0);
}

/* Typing Animation for Hero Section */
.typed-cursor {
  opacity: 1;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Skill Progress Bars */
.skill-progress {
  margin-bottom: var(--spacing-sm);
}

.skill-progress h5 {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-weight: 500;
}

.progress-bar {
  height: 8px;
  background-color: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 4px;
  transition: width 1.5s ease;
}

/* Form validation styles */
.form-group input.error, .form-group textarea.error {
  border-color: #dc3545;
}

.error-message {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 5px;
}

/* Success Message */
.success-message {
  display: none;
  text-align: center;
  padding: var(--spacing-lg);
  background-color: rgba(40, 167, 69, 0.1);
  border: 1px solid #28a745;
  border-radius: var(--border-radius-md);
  margin-top: var(--spacing-md);
}

.success-message.show {
  display: block;
  animation: fadeIn 0.5s ease;
}

/* Theme Switch */
.theme-switch {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-medium);
  z-index: 999;
  transition: all var(--transition-fast);
}

.theme-switch:hover {
  background-color: var(--primary-dark);
  transform: scale(1.1);
}

/* Dark Theme Variables */
body.dark-theme {
  --bg-light: #1a1a1a;
  --bg-white: #222222;
  --text-dark: #f0f0f0;
  --text-light: #cccccc;
  --shadow-light: 0 4px 8px rgba(0, 0, 0, 0.3);
  --shadow-medium: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Print Styles for Resume */
@media print {
  body {
    background-color: white;
    margin: 0;
    padding: 0;
  }
  
  .navbar, .hero, .about-section, .projects-section, .contact-section, footer, .theme-switch {
    display: none;
  }
  
  .resume-section {
    padding: 0;
    background-color: white;
  }
  
  .resume-container {
    display: block;
    box-shadow: none;
    padding: 0;
  }
  
  .resume-preview {
    width: 100%;
    height: auto;
  }
}
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

/* Bounce animation for notifications */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

/* Fade in animation for the chatbot window */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Message popup animation */
@keyframes slideIn {
  0% { opacity: 0; transform: translateY(20px); }
  10% { opacity: 1; transform: translateY(0); }
  90% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(20px); }
}

/* Button styling */
#chatbot-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

#chat-button {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 24px;
  cursor: pointer;
  animation: pulse 2s infinite;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#chat-button:hover {
  background-color: #0069d9;
  transform: scale(1.1);
}

/* Notification badge */
.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #ff3860;
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2s infinite;
}

/* Chatbot window styling */
#chatbot-frame {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 370px;
  height: 550px;
  z-index: 9999;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  border-radius: 12px;
  overflow: hidden;
  display: none;
  background: white;
  max-height: 80vh; /* Prevent overflow on smaller screens */
}

#chatbot-frame.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

/* Chat window header */
.chat-header {
  background-color: #007bff;
  color: white;
  padding: 12px;
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-title {
  font-weight: bold;
  font-size: 16px;
  margin: 0;
}

.close-button {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

/* Frame content */
.frame-content {
  width: 100%;
  height: calc(100% - 44px);
  border: none;
}

/* Typing indicator animation */
@keyframes typing {
  0% { opacity: 0.3; }
  50% { opacity: 1; }
  100% { opacity: 0.3; }
}

/* Wave effect on button click */
@keyframes wave {
  0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.8); }
  100% { box-shadow: 0 0 0 20px rgba(0, 123, 255, 0); }
}

.wave-effect {
  animation: wave 1s;
}

/* Message popup styling */
.message-popup {
  position: fixed;
  bottom: 90px;
  right: 24px;
  background-color: white;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  font-family: Arial, sans-serif;
  max-width: 280px;
  z-index: 9998;
  animation: slideIn 6s forwards;
  display: flex;
  align-items: flex-start;
  opacity: 0;
}

.message-avatar {
  background-color: #007bff;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  flex-shrink: 0;
}

.message-content {
  flex-grow: 1;
}

.message-sender {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 4px;
}

.message-text {
  font-size: 13px;
  color: #333;
  margin: 0;
  line-height: 1.4;
}

.message-cta {
  margin-top: 8px;
  background-color: #f1f8ff;
  border: 1px solid #cce5ff;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  color: #007bff;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s;
}

.message-cta:hover {
  background-color: #e1f0ff;
}

/* Typing indicator styling */
.typing-indicator {
  display: flex;
  align-items: center;
  margin-top: 4px;
}

.typing-dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background-color: #007bff;
  margin-right: 3px;
  display: inline-block;
  animation: typing 1.5s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.3s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.6s;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(255, 255, 255, 0.8);
  color: #333;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 100; /* Higher z-index to ensure it's always on top */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.close-button:hover {
  background-color: #e0e0e0;
  transform: scale(1.1);
}

/* Add responsive adjustments for mobile */
@media screen and (max-width: 480px) {
  #chatbot-frame {
    width: 90vw;
    height: 70vh;
    right: 5vw;
    bottom: 80px;
    max-height: 80vh;
  }
  
  .close-button {
    width: 32px; /* Larger touch target on mobile */
    height: 32px;
    top: 12px;
    right: 12px;
  }
}

@media screen and (max-width: 768px) {
            .hamburger {
                display: flex;
            }

            .nav-links {
                position: fixed;
                top: 80px;
                left: 0;
                width: 100%;
                height: calc(100vh - 80px);
                background-color: var(--primary-color);
                flex-direction: column;
                justify-content: flex-start;
                align-items: center;
                padding-top: 2rem;
                gap: 2rem;
                transform: translateX(-100%);
                transition: transform 0.3s ease-in-out;
            }

            .nav-links.active {
                transform: translateX(0);
            }

            .nav-links li a {
                font-size: 1.2rem;
                padding: 1rem;
                display: block;
                width: 100%;
                text-align: center;
            }
        }