:root {
  --primary: #4361ee;
  --primary-dark: #3a56d4;
  --secondary: #7209b7;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #94a3b8;
  --success: #10b981;
  --danger: #ef4444;
  --transition: all 0.3s ease;
  --mobile-breakpoint: 768px;
  --tablet-breakpoint: 992px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body.dark-mode {
  background-color: #0f172a;
  color: #e2e8f0;
}

/* Section Styling */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 15px;
}

.section-title span {
  color: var(--primary);
}

.section-title .divider {
  height: 4px;
  width: 80px;
  background: var(--primary);
  margin: 0 auto;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Preloader */
/* #preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--light);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

#preloader.dark-mode {
  background: var(--dark);
}

.loader {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(67, 97, 238, 0.2);
  border-top: 5px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
} */

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Hero Section */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-content {
  text-align: center;
  z-index: 2;
  position: relative;
  padding: 0 15px;
}

.hero-content h1 {
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content h1 span {
  color: var(--primary);
}

.hero-content p {
  font-size: clamp(1rem, 3.5vw, 1.5rem);
  color: var(--gray);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.dark-mode .hero-content p {
  color: #94a3b8;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(0.9rem, 3vw, 1rem);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-down a {
  color: var(--primary);
  font-size: 2rem;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

@media (max-width: 480px) {
  section {
    padding: 40px 0;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* About Section */
#about {
  background: #f1f5f9;
}
.dark-mode #about {
  background: #1e293b;
}

.about-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about-img {
  flex: 1;
  text-align: center;
}

.about-img img {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  /* loading: lazy; */
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 20px;
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  color: var(--gray);
}
.dark-mode .about-text p {
  color: #cbd5e1;
}

.about-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 25px 0;
}

.info-item {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: clamp(0.9rem, 2vw, 1rem);
}
.info-item i {
  color: var(--primary);
  font-size: 1.2rem;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
}
@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

.skill-box {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(67, 97, 238, 0.15);
}

.skill-box i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.skill-box h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.skill-box p {
  font-size: 0.95rem;
  color: var(--gray);
}

.dark-mode .skill-box {
  background: #334155;
  color: #e2e8f0;
}
.dark-mode .skill-box p {
  color: #cbd5e1;
}

/* Skills Section */
.skills-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  background: #e2e8f0;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  font-size: clamp(0.85rem, 2vw, 1rem);
}

.filter-btn.active {
  background: var(--primary);
  color: white;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
}

.skill-card {
  background: white;
  border-radius: 15px;
  padding: 25px 15px;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.dark-mode .skill-card {
  background: #1e293b;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(67, 97, 238, 0.2);
}

.skill-icon {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 15px;
}

.skill-icon.html {
  color: #e34c26;
}
.skill-icon.css {
  color: #264de4;
}
.skill-icon.js {
  color: #f0db4f;
}
.skill-icon.bootstrap {
  color: #563d7c;
}
.skill-icon.tailwind {
  color: #38bdf8;
}
.skill-icon.csharp {
  color: #239120;
}
.skill-icon.sql {
  color: #00758f;
}
.skill-icon.oop {
  color: #ff6b6b;
}

.skill-card h3 {
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 600;
}

/* Projects Section */
#projects {
  background: #f1f5f9;
}

.dark-mode #projects {
  background: #1e293b;
}

.projects-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.project-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.dark-mode .project-card {
  background: #1e293b;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(67, 97, 238, 0.2);
}

.project-img {
  height: 200px;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
 /* loading: lazy; */
}

.project-card:hover .project-img img {
  transform: scale(1.1);
}

.project-content {
  padding: 20px;
}

.project-content h3 {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  margin-bottom: 10px;
}

.project-content p {
  color: var(--gray);
  margin-bottom: 15px;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.dark-mode .project-content p {
  color: #94a3b8;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-tag {
  background: #e2e8f0;
  color: var(--dark);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: clamp(0.75rem, 2vw, 0.8rem);
  font-weight: 500;
}

.dark-mode .project-tag {
  background: #334155;
  color: #e2e8f0;
}

.project-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: var(--primary);
  color: white;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.project-btn:hover {
  background: var(--primary-dark);
}


/* Timeline Section */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  margin-bottom: 50px;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content {
  width: calc(50% - 40px);
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
}

.dark-mode .timeline-content {
  background: #1e293b;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.timeline-content::before {
  content: "";
  position: absolute;
  top: 20px;
  width: 0;
  height: 0;
  border-style: solid;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -20px;
  border-width: 10px 0 10px 20px;
  border-color: transparent transparent transparent white;
}

.dark-mode .timeline-item:nth-child(odd) .timeline-content::before {
  border-color: transparent transparent transparent #1e293b;
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -20px;
  border-width: 10px 20px 10px 0;
  border-color: transparent white transparent transparent;
}

.dark-mode .timeline-item:nth-child(even) .timeline-content::before {
  border-color: transparent #1e293b transparent transparent;
}

.timeline-dot {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid white;
  z-index: 1;
}

.dark-mode .timeline-dot {
  border-color: #0f172a;
}

.timeline-content h3 {
  font-size: clamp(1rem, 3vw, 1.2rem);
  margin-bottom: 5px;
}

.timeline-content .timeline-subtitle {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.timeline-content p {
  color: var(--gray);
  font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.dark-mode .timeline-content p {
  color: #94a3b8;
}

.timeline-content .timeline-date {
  color: var(--gray);
  font-size: clamp(0.8rem, 2vw, 0.85rem);
  font-style: italic;
}

/* Contact Section */
#contact {
  background: #f1f5f9;
  padding: 80px 0;
}

.dark-mode #contact {
  background: #1e293b;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin-bottom: 15px;
}

.section-title h2 span {
  color: var(--primary);
}

.divider {
  width: 80px;
  height: 4px;
  background: var(--primary);
  margin: 0 auto 20px;
  border-radius: 2px;
}

.section-description {
  max-width: 700px;
  margin: 0 auto;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: #64748b;
  line-height: 1.6;
}

.dark-mode .section-description {
  color: #94a3b8;
}

.contact-container {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info h3 {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  margin-bottom: 25px;
  color: var(--dark);
}

.dark-mode .contact-info h3 {
  color: #f8fafc;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: clamp(1rem, 3vw, 1.1rem);
  margin-bottom: 5px;
  color: var(--dark);
}

.dark-mode .contact-details h4 {
  color: #f8fafc;
}

.contact-details p,
.contact-details a {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  color: #64748b;
  line-height: 1.6;
  text-decoration: none;
  transition: var(--transition);
}

.dark-mode .contact-details p,
.dark-mode .contact-details a {
  color: #94a3b8;
}

.contact-details a:hover {
  color: var(--primary);
}

.meeting-link {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
}

.social-title {
  margin-top: 40px !important;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.social-link {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-size: 1.2rem;
  transition: var(--transition);
}

.dark-mode .social-link {
  background: #334155;
  color: #e2e8f0;
}

.social-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-5px);
}

.contact-form {
  flex: 1;
  min-width: 300px;
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.dark-mode .contact-form {
  background: #1e293b;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: clamp(0.95rem, 2vw, 1rem);
  color: var(--dark);
}

.dark-mode .form-group label {
  color: #f8fafc;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(0.95rem, 2vw, 1rem);
  transition: var(--transition);
}

.dark-mode .form-control {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

.form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(0.95rem, 2vw, 1rem);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-btn:hover {
  background: var(--primary-dark);
}

.btn-icon {
  display: flex;
}

.consent-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #64748b;
}

.dark-mode .consent-checkbox {
  color: #94a3b8;
}

.consent-checkbox input {
  min-width: 18px;
  min-height: 18px;
}

.privacy-link {
  color: var(--primary);
  text-decoration: underline;
}

#thankYouMessage {
  display: none;
  text-align: center;
  padding: 20px;
}

.success-icon {
  font-size: 3rem;
  color: #10b981;
  margin-bottom: 20px;
}

#thankYouMessage h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.dark-mode #thankYouMessage h3 {
  color: #f8fafc;
}

.success-message {
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.6;
}

.dark-mode .success-message {
  color: #94a3b8;
}

.back-btn {
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.back-btn:hover {
  background: var(--primary-dark);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    gap: 30px;
  }
  
  .contact-info, .contact-form {
    width: 100%;
  }
  
  .section-title {
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  #contact {
    padding: 60px 0;
  }
  
  .contact-method {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .contact-icon {
    margin-bottom: 10px;
  }
  
  .social-links {
    justify-content: center;
  }
}
/* Footer */
footer {
  background: var(--dark);
  color: white;
  padding: 50px 0 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-col h3 {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  margin-bottom: 20px;
  position: relative;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
}

.footer-col p {
  color: #94a3b8;
  margin-bottom: 20px;
  font-size: clamp(0.9rem, 2vw, 0.95rem);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-links a i {
  width: 20px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #334155;
  color: #94a3b8;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
}

.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
  z-index: 99;
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .about-content {
    flex-direction: column;
  }

  .contact-container {
    flex-direction: column;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    flex-direction: row !important;
    margin-left: 40px;
  }

  .timeline-content {
    width: 100%;
  }

  .timeline-content::before {
    left: -20px !important;
    border-width: 10px 20px 10px 0 !important;
    border-color: transparent white transparent transparent !important;
  }

  .dark-mode .timeline-content::before {
    border-color: transparent #1e293b transparent transparent !important;
  }

  .timeline-dot {
    left: 20px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 280px;
    background: white;
    flex-direction: column;
    padding: 100px 30px 30px;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
  }

  .nav-links.active {
    right: 0;
  }

  .dark-mode .nav-links {
    background: #1e293b;
  }

  .nav-links a {
    padding: 10px 0;
    font-size: 1.1rem;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .timeline-content {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .btn {
    padding: 10px 20px;
    width: 100%;
    justify-content: center;
  }

  .about-info {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    gap: 20px;
  }

  .contact-method {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .footer-container {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    align-items: center;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    margin-left: 20px;
  }

  .project-content {
    padding: 15px;
    text-align: center;
  }

  .project-tags {
    justify-content: center;
  }
}

.btn {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
    justify-content: center;
  }

  .skill-card h3,
  .project-content h3 {
    font-size: 1rem;
  }
}

/* Navbar Styles */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: var(--transition);
}

nav.dark-mode {
  background: linear-gradient(90deg, #1e293b, #27374a);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 30px;
}

.logo {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: 700;
  color: var(--primary);
  z-index: 1001;
}

.logo span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 30px;
  transition: var(--transition);
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  position: relative;
  transition: var(--transition);
  font-size: clamp(0.9rem, 3vw, 1rem);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--primary);
}

.dark-mode .nav-links a {
  color: #cbd5e1;
}

.dark-mode .nav-links a:hover {
  color: var(--primary);
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: clamp(1rem, 4vw, 1.2rem);
  color: var(--dark);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  z-index: 1001;
}

.theme-toggle:hover {
  background: rgba(67, 97, 238, 0.1);
}

.dark-mode .theme-toggle {
  color: #e2e8f0;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
  z-index: 1001;
  padding: 8px;
  border-radius: 4px;
  transition: var(--transition);
}

.mobile-menu-btn:hover {
  background: rgba(67, 97, 238, 0.1);
}

.dark-mode .mobile-menu-btn {
  color: #e2e8f0;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
  .nav-container {
    padding: 15px 20px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: all 0.5s ease;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  .dark-mode .nav-links {
    background: #1e293b;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  }

  .nav-links.active {
    right: 0;
  }
}
@media (max-width: 480px) {
  .skills-grid,
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }
}

/* Chatbox Styles */
.chatbox-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  font-family: "Poppins", sans-serif;
}

.chatbox-toggle-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(67, 97, 238, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.chatbox-toggle-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.chatbox-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  max-width: 90vw;
  height: 500px;
  max-height: 70vh;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.dark-mode .chatbox-window {
  background: #1e293b;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.chatbox-container.active .chatbox-window {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.chatbox-header {
  background: var(--primary);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-family: "Poppins", sans-serif;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.chatbox-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.chatbox-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.chatbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.chatbox-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #f8fafc;
}

.dark-mode .chatbox-messages {
  background: #0f172a;
}

.chatbox-welcome-message {
  background: white;
  padding: 12px 15px;
  border-radius: 10px;
  margin-bottom: 15px;
  max-width: 80%;
  position: relative;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.dark-mode .chatbox-welcome-message {
  background: #334155;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.chatbox-welcome-message p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--dark);
}

.dark-mode .chatbox-welcome-message p {
  color: #e2e8f0;
}

.chatbox-timestamp {
  font-size: 0.7rem;
  color: var(--gray);
  text-align: right;
  margin-top: 5px;
}

.chatbox-input-area {
  display: flex;
  padding: 15px;
  border-top: 1px solid #e2e8f0;
  background: white;
}

.dark-mode .chatbox-input-area {
  background: #1e293b;
  border-top: 1px solid #334155;
}

.chatbox-input-area textarea {
  flex: 1;
  border: 1px solid #e2e8f0;
  border-radius: 30px;
  padding: 10px 15px;
  font-family: "Poppins", sans-serif;
  resize: none;
  max-height: 100px;
  outline: none;
  transition: var(--transition);
}

.dark-mode .chatbox-input-area textarea {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

.chatbox-input-area textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.chatbox-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  margin-left: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.chatbox-send-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.chatbox-typing-indicator {
  display: none;
  align-items: center;
  padding: 0 20px 15px;
  font-size: 0.8rem;
  color: var(--gray);
}

.typing-dots {
  display: flex;
  margin-right: 8px;
}

.typing-dots .dot {
  width: 6px;
  height: 6px;
  background: var(--gray);
  border-radius: 50%;
  margin-right: 4px;
  animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dots .dot:nth-child(1) {
  animation-delay: 0s;
}

.typing-dots .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingAnimation {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-5px);
  }
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .chatbox-container {
    bottom: 20px;
    right: 20px;
  }

  .chatbox-toggle-btn {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  .chatbox-window {
    width: calc(100vw - 40px);
    max-width: none;
  }
}

/* Professional Chatbox Scrollbar Styling */
.chatbox-messages {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}

/* For WebKit browsers */
.chatbox-messages::-webkit-scrollbar {
  width: 8px;
}

.chatbox-messages::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
}

.chatbox-messages::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    var(--primary),
    var(--primary-dark)
  );
  border-radius: 10px;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
}

.chatbox-messages::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    var(--primary-dark),
    var(--primary)
  );
}

/* Dark mode match */
.dark-mode .chatbox-messages::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #475569, #334155);
  box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.1);
}

.dark-mode .chatbox-messages::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #334155, #475569);
}

/* Chat Message Alignment Fix */
.chatbox-message-wrapper {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
  max-width: 80%;
}

.chatbox-message-wrapper.user {
  align-self: flex-end;
  background-color: #e2e8f0;
  border-radius: 15px 15px 0 15px;
  padding: 12px 15px;
}

.chatbox-message-wrapper.bot {
  align-self: flex-start;
  background-color: white;
  border-radius: 15px 15px 15px 0;
  padding: 12px 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Updated Message Bubbles for Dark Mode */
.dark-mode .chatbox-message-wrapper.bot {
  background-color: #1e293b; /* Dark blue-gray */
  color: #e2e8f0;
  border-radius: 15px 15px 15px 0;
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.05);
}

.dark-mode .chatbox-message-wrapper.user {
  background-color: #3b82f6; /* Lighter primary blue for user */
  color: white;
  border-radius: 15px 15px 0 15px;
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.08);
}

.chatbox-message-wrapper p {
  margin: 0;
  font-size: 0.9rem;
}

.chatbox-message-wrapper .chatbox-timestamp {
  font-size: 0.7rem;
  text-align: right;
  margin-top: 5px;
  opacity: 0.7;
}

/* Custom Scrollbar Styles - Only Change */
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #6366f1 #f1f5ff;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f5ff;
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: #6366f1;
  border-radius: 10px;
  border: 2px solid #f1f5ff;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background-color: #4f46e5;
}

@keyframes pulse-slow {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}
.animate-pulse-slow {
  animation: pulse-slow 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Force light mode colors */
[data-no-dark-mode] {
  --bg-color: #ffffff;
  --text-color: #1f2937;
  --border-color: #e5e7eb;
  --primary-color: #4f46e5;
  --secondary-color: #7c3aed;
  --light-bg: #f5f3ff;
}

[data-no-dark-mode] .bg-white {
  background-color: #ffffff !important;
}

[data-no-dark-mode] .text-gray-800 {
  color: #1f2937 !important;
}

[data-no-dark-mode] .border-gray-200 {
  border-color: #e5e7eb !important;
}

[data-no-dark-mode] .bg-indigo-50 {
  background-color: #eef2ff !important;
}





