:root {
  --primary-color: rgb(50, 150, 220);
  --secondary-color: rgb(45, 60, 80);
  --accent-color: rgb(230, 75, 60);
  --dark-color: rgb(45, 60, 80);
  --text-color: rgb(50, 50, 50);
  --text-light: rgb(130, 140, 140);
  --white: rgb(255, 255, 255);
  --black: rgb(245, 245, 245);
  --about-card: rgb(235, 235, 230);
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

body.dark-mode {
  --primary-color: rgb(75, 165, 255);
  --secondary-color: rgb(25, 25, 45);
  --accent-color: rgb(255, 105, 105);
  --dark-color: rgb(230, 230, 230);
  --text-color: rgb(240, 240, 240);
  --text-light: rgb(185, 185, 185);
  --white: rgb(15, 15, 15);
  --black: rgb(20, 20, 20);
  --about-card: rgb(30, 30, 30);
}

.dark-mode-toggle {
  background: none;
  border: none;
  color: var(--dark-color);
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 20px;
  transition: var(--transition);
}

body.dark-mode .hero::before {
  /* background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("./img/hero-background.png") no-repeat center center/cover; */
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("./img/h-bg.png") no-repeat center center/cover;
}

body.dark-mode .dark-mode-toggle {
  color: var(--dark-color);
}

body.dark-mode section {
  background-color: var(--white);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  background-color: var(--white);
  overflow-x: hidden;
}

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

a:hover {
  color: var(--accent-color);
}

ul {
  list-style: none;
}

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

section {
  padding: 80px 0 40px 0;
  position: relative;
  z-index: 1;
  background-color: var(--white);
}

/* Header section */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: var(--transition);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--dark-color);
}

nav ul {
  display: flex;
  gap: 1.2rem;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: var(--dark-color);
  font-weight: 500;
  position: relative;
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

nav ul li a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--dark-color);
  transition: var(--transition);
}

/* Hero section */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.9)
    ),
    url("/img/hero-background.png") no-repeat center center/cover;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: fixed; /* Changed from absolute to fixed */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.9)
    ),
    url("./img/hero-background.png") no-repeat center center/cover;
  z-index: -1;
}

.hero .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 50%;
  gap: 1rem;
  padding: 5rem 0;
}

.hero-contant {
  text-align: start;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-contant h1 {
  font-size: 32px;
}

.hero-contant h1 span {
  font-size: 35px;
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(50, 150, 220, 0.5),
    0 0 20px rgba(50, 150, 220, 0.3), 0 0 30px rgba(50, 150, 220, 0.1);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px rgba(50, 150, 220, 0.5),
      0 0 20px rgba(50, 150, 220, 0.3), 0 0 30px rgba(50, 150, 220, 0.1);
  }
  to {
    text-shadow: 0 0 20px rgba(50, 150, 220, 0.6),
      0 0 30px rgba(50, 150, 220, 0.4), 0 0 40px rgba(50, 150, 220, 0.2);
  }
}

.hero-contant h3 {
  font-size: 20px;
  color: var(--primary-color);
}

.hero-contant h2 {
  padding: 1rem 0;
  border-right: 2px solid var(--primary-color);
  animation: blinkCursor 0.75s step-end infinite;
  white-space: nowrap;
  overflow: visible;
  max-width: 80%;
}

@keyframes blinkCursor {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: var(--primary-color);
  }
}

.hero-contant p {
  max-width: 90%;
}

.hero-contant-button {
  margin: 1rem 0;
  display: flex;
  gap: 1rem;
}

.hero-contant-button button {
  padding: 1rem 0.7rem;
  border-radius: 15px;
  font-size: 20px;
}

.explore-btn {
  background: linear-gradient(to right, blue, var(--primary-color));
  color: var(--text-color);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  justify-content: end;
  align-items: center;
  min-width: 12rem;
  font-weight: bold;
  color: var(--text-color);
}

.explore-btn:hover {
  background: linear-gradient(to left, blue, var(--primary-color));
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.resume-btn {
  background: none;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: bold;
  display: flex;
  justify-content: end;
  align-items: center;
  min-width: 8rem;
}

.resume-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border: 2px solid var(--text-color);
}

.hero-contant-social-link {
  display: flex;
  gap: 1.2rem;
  font-size: 2rem;
  color: var(--primary-color);
  padding: 0.5rem 0;
}

#profileImg {
  max-width: 300px;
  border-radius: 5rem;
  border: 5px solid var(--primary-color);
  box-shadow: 0 0 10px rgba(50, 150, 220, 0.5), 0 0 20px rgba(50, 150, 220, 0.3),
    0 0 30px rgba(50, 150, 220, 0.1);
  animation: float 4s ease-in-out infinite,
    glow 2s ease-in-out infinite alternate;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

/* about section */
.about {
  background-color: var(--white) !important;
}

.about h1 {
  text-align: center;
  font-size: 3rem;
}

.about h1 span {
  color: var(--primary-color);
}

.heading p {
  text-align: center;
  font-size: 1.2rem;
  max-width: 60%;
  margin: 0 auto;
}

.about .container {
  display: flex;
  justify-content: space-between;
  max-width: 70%;
  padding: 40px 0;
  gap: 3rem;
}

.about-left {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 60%;
}

.about-journey {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--about-card);
  border-radius: 20px;
  padding: 2rem 1rem;
  transition: var(--transition);
}

.about-journey:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 10px var(--primary-color);
}

.about-journey h2 {
  color: var(--primary-color);
  opacity: 100%;
  font-size: 2rem;
}

.about-journey p {
  width: 100%;
  margin: 0;
  text-align: none;
  font-size: 1rem;
}

.about-funfact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-funfact h2 {
  font-size: 2rem;
  opacity: 100%;
  color: var(--primary-color);
}

.about-funfact div {
  background-color: var(--about-card);
  border-radius: 10px;
  padding: 1rem 2rem;
  transition: var(--transition);
}

.about-funfact div:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.about-funfact div h3 {
  opacity: 100%;
}

.about-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.about-right h2 {
  font-size: 2rem;
  color: var(--primary-color);
  opacity: 100%;
  padding: 0 0 1rem 0;
}

.timeline-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  position: relative;

  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 50px;
  width: 1px;
  height: calc(100% + 10px);
  background: var(--primary-color);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline-content {
  flex: 1;
  background: var(--about-card);
  border-radius: 10px;
  padding: 1rem;
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.timeline-year {
  color: var(--accent-color);
  padding: 4px 8px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-subtitle {
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.timeline-description {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* skills section */
.skills {
  background-color: var(--black) !important;
}

.skills .heading h1 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 20px;
}

.skills .heading h1 span {
  color: var(--primary-color);
}

.skills .heading p {
  text-align: center;
  font-size: 1.2rem;
  max-width: 60%;
  margin: 0 auto 50px auto;
}

.skills .container {
  max-width: 75%;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.skill-category {
  background: linear-gradient(135deg, var(--about-card), var(--white));
  border-radius: 20px;
  padding: 20px 25px;
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  animation: slideInUp 0.1s ease forwards;
  opacity: 0;
  transform: translateY(30px);
  height: fit-content;
}
.skill-category:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 0 10px var(--primary-color);
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skill-category h3 {
  margin-bottom: 30px;
  font-size: 1.4rem;
  font-weight: 600;
  position: relative;
  margin-left: 20px;
}

.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  margin-bottom: 10px;
  animation: fadeInLeft 0.6s ease forwards;
}

@keyframes fadeInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.skill-item:last-of-type {
  margin-bottom: 10px;
}

.skill-name {
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
}

.skill-category:hover .skill-name {
  color: var(--primary-color);
}

.skill-percentage {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
}

.skill-bar {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: var(--accent-color);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transform: scaleX(0);
  transform-origin: left;
  /* animation: progressLoad 1s ease-in-out forwards; */
  transition: transform 1s ease-in-out;
}

.skill-progress.animate {
  transform: scaleX(1);
}

@keyframes progressLoad {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.achievements {
  text-align: center;
  margin-bottom: 50px;
}

.achievements h2 {
  color: var(--primary-color);
  font-size: 2.2rem;
  margin-bottom: 40px;
  position: relative;
  text-align: start;
}

.achievements h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 15%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.achievement-card {
  background: var(--about-card);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  animation: bounceIn 0.8s ease forwards;
  opacity: 0;
  transform: scale(0.8);
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.achievement-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--accent-color),
    var(--primary-color)
  );
  border-radius: 20px;
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.achievement-card:hover::before {
  opacity: 40%;
}

.achievement-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 5px 20px rgba(50, 150, 220, 0.2);
}

.achievement-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.achievement-title {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.achievement-desc {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.5;
}

.skills-in-action {
  max-width: 500px;
  margin: 0 auto;
  background: var(--about-card);
  border-radius: 20px;
  padding: 30px;
  border: 2px solid transparent;
  transition: var(--transition);
  animation: slideInUp 0.8s ease forwards;
  opacity: 0;
  transform: translateY(30px);
  animation-delay: 0.8s;
}

.skills-in-action:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(50, 150, 220, 0.15);
  border-color: var(--primary-color);
}

.skills-in-action h3 {
  color: var(--primary-color);
  font-size: 1.4rem;
  margin-bottom: 25px;
  text-align: center;
  position: relative;
}

.skills-in-action h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.code-block {
  background: var(--secondary-color);
  border-radius: 15px;
  padding: 25px;
  font-family: "Courier New", "Monaco", monospace;
  font-size: 0.9rem;
  line-height: 1.8;
  overflow-x: auto;
  position: relative;
  border: 1px solid rgba(50, 150, 220, 0.2);
}

.code-block::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 20px;
  width: 12px;
  height: 12px;
  background: #ff5f57;
  border-radius: 50%;
  box-shadow: 20px 0 0 #ffbd2e, 40px 0 0 #28ca42;
}

.code-comment {
  color: #6a9955;
}
.code-keyword {
  color: #569cd6;
}
.code-function {
  color: #dcdcaa;
}
.code-string {
  color: #ce9178;
}
.code-method {
  color: #4ec9b0;
}

/* Projects Section */
#projects {
  padding: 80px 0;
  background-color: var(--white);
}

.projects-header {
  text-align: center;
  margin-bottom: 50px;
}

.projects-header h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--text-color);
}

.projects-header h1 span {
  color: var(--primary-color);
}

.projects-header p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 60%;
  margin: 0 auto;
  line-height: 1.6;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.project-card {
  background: var(--about-card);
  border-radius: 20px;
  padding: 30px;
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.6s ease forwards;
  height: fit-content;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: var(--transition);
}

.project-card:hover::before {
  left: 0;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 5px 10px var(--primary-color);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.project-header h3 {
  font-size: 1.4rem;
  color: var(--text-color);
  margin: 0;
  font-weight: 600;
}

.project-status {
  display: flex;
  gap: 8px;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.live {
  background: linear-gradient(135deg, #00c851, #00a040);
  color: white;
  animation: pulse 2s infinite;
}

.status-badge.new {
  background: linear-gradient(135deg, #ff4444, #cc0000);
  color: white;
  animation: glow 2s ease-in-out infinite alternate;
}

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

.project-description {
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tech-tag {
  padding: 6px 12px;
  background: var(--primary-color);
  color: white;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.tech-tag::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: var(--transition);
}

.tech-tag:hover::before {
  left: 100%;
  transition: left 0.5s ease;
}

.tech-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(50, 150, 220, 0.4);
}

/* tech tag colors */
.tech-tag.javascript {
  background: #f7df1e;
  color: #000;
}
.tech-tag.html {
  background: #e34f26;
}
.tech-tag.css {
  background: #1572b6;
}
.tech-tag.local-storage {
  background: #ff6b35;
}
.tech-tag.qr-library {
  background: #8e44ad;
}
.tech-tag.canvas-api {
  background: #e74c3c;
}
.tech-tag.web-apis {
  background: #3498db;
}
.tech-tag.json {
  background: #000000;
}
.tech-tag.syntax-highlighting {
  background: #2ecc71;
}

/* Project Features */
.project-features {
  margin-bottom: 25px;
}

.project-features h4 {
  color: var(--primary-color);
  font-size: 1rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.project-features ul {
  list-style: none;
  padding: 0;
}

.project-features li {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.project-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1rem;
}

/* Project Actions */
.project-actions {
  display: flex;
  gap: 12px;
  justify-content: space-around;
  margin-bottom: 25px;
}

.btn-demo,
.btn-github {
  padding: 10px 50px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-demo {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: white;
  flex: 1;
}

.btn-github {
  background: var(--secondary-color);
  color: white;
  flex: 1;
}

.btn-demo:hover,
.btn-github:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-demo::before,
.btn-github::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: var(--transition);
}

.btn-demo:hover::before,
.btn-github:hover::before {
  left: 100%;
  transition: left 0.5s ease;
}

/* Project Progress */
.project-progress {
  display: flex;
  align-items: center;
  gap: 15px;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(50, 150, 220, 0.2);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: var(--accent-color); /* Use accent color */
  border-radius: 4px;
  width: 0; /* Start at 0 width */
  position: relative;
  overflow: hidden;
  transition: width 1.5s ease-in-out; /* Smooth transition */
}

.progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: progressShine 2s infinite;
}
@keyframes progressShine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.progress-text {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.2rem;
  min-width: 35px;
  text-align: right;
}

.more-projects {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.more-projects-content {
  background: var(--about-card);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  max-width: 500px;
  border: 2px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.more-projects-content::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--accent-color),
    var(--primary-color)
  );
  border-radius: 20px;
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.more-projects-content:hover::before {
  opacity: 40%;
  animation: rotateBorder 3s linear infinite;
}

.more-projects-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(50, 150, 220, 0.2);
}

.more-projects-content h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.more-projects-content p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 25px;
}

.btn-view-all {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-view-all::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: var(--transition);
}

.btn-view-all:hover::before {
  left: 100%;
  transition: left 0.6s ease;
}

.btn-view-all:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(50, 150, 220, 0.4);
}

/* contact section */
#contact {
  background: var(--black);
}

.contact .container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-card {
  background: var(--about-card);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid transparent;
  transition: var(--transition);
}

.info-card:hover {
  box-shadow: 0 0 10px var(--primary-color);
}

.info-card h3 {
  color: var(--primary-color);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.info-item {
  margin-bottom: 16px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-label {
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}

.info-value {
  color: var(--text-color);
  font-size: 0.95rem;
}

.connect-card {
  background: var(--about-card);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid transparent;
  text-align: center;
}

.connect-card h3 {
  color: var(--primary-color);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.connect-card p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.social-icon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 70%;
  margin: 0 auto;
}

.social-icon a {
  font-size: 2rem;
  color: var(--accent-color);
  padding: 1rem 0;
  transition: var(--transition);
}

.social-icon a:hover {
  transform: translateY(-5px);
  text-shadow: 0 0 10px var(--primary-color);
}

.contact-right {
  background: var(--about-card);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid transparent;
}

.form-title {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--black);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-color);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-group input:hover,
.form-group textarea:hover {
  border: 1px solid transparent;
  box-shadow: 0 1px 5px 1px var(--primary-color);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(35deg, var(--primary-color), var(--accent-color));
  border: none;
  border-radius: 8px;
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 24px;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 10px var(--primary-color);
}

.submit-btn:active {
  transform: translateY(0);
}

/* footer content */
.footer {
  background-color: var(--white) !important;
  padding: 60px 0 30px;
  border-top: 1px solid #2a2a2a;
  position: relative;
  z-index: 1;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
}

.footer-copyright {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-tech {
  text-align: center;
  flex: 1;
}

.tech-text {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.tech-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tech-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.badge-dot.responsive {
  background-color: #00bfff;
}

.badge-dot.modern {
  background-color: #10b981;
}

.badge-dot.performance {
  background-color: #f59e0b;
}

.back-to-top {
  background: var(--primary-color);
  color: var(--text-color);
  border: none;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 5px var(--accent-color);
}

.back-to-top:active {
  transform: translateY(0);
}

/* responsive */
@media (max-width: 668px) {

  body {
    overflow-x: hidden;
    width: 100%;
  }

  .container {
    width: 100%;
    padding: 0 1rem;
  }

  .hamburger {
    display: flex;
  }

  nav ul {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 20px;
    background: var(--white);
    backdrop-filter: blur(50px);
    z-index: 1000;
    flex-direction: column;
    transition: var(--transition);
    text-align: center;
  }

  nav.active ul {
    display: flex;
  }

  .hero .container {
    flex-direction: column-reverse;
    /* flex-direction: column; */
    max-width: 100%;
    padding: 2rem 15px;
  }

  .hero-contant {
    text-align: center;
    align-items: center;
  }

  .hero-contant-social-link {
    padding-bottom: 1rem;
    gap: 2.5rem;
  }

  .hero-contant p {
    max-width: 100%;
  }

  .hero-contant h2 {
    overflow: visible;
    text-align: center;
  }

  #profileImg {
    max-width: 220px;
    border-radius: 150px;
  }

  /* About section */
  .about .container {
    flex-direction: column;
    max-width: 100%;
  }

  .about .heading {
    max-width: 90%;
    margin: 0 auto;
  }

  .about-left {
    max-width: 100%;
  }

  .heading p {
    max-width: 100%;
  }

  .about-right {
    position: relative;
  }

  .timeline-title {
    text-align: center;
  }

  .about-right::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 60px;
    bottom: 60px;
    width: 2px;
    background: var(--primary-color);
  }

  .timeline-item {
    position: relative;
    z-index: 1;
  }

  .timeline-item::before,
  .timeline-icon {
    display: none;
  }

  .skills .container {
    max-width: 100%;
  }

  .skills .heading p {
    max-width: 95%;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-category {
    max-width: 100%;
  }

  .achievements h2 {
    font-size: 1.8rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects h1 {
    font-size: 2rem;
  }

  .projects-header p {
    max-width: 100%;
  }

  .project-card {
    padding: 1rem;
  }

  .more-projects-content {
    padding: 1rem;
  }

  .contact .container {
    grid-template-columns: 1fr;
  }

  .contact .heading h1 {
    font-size: 2rem;
  }

  .info-card h3 {
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  section {
    padding: 60px 0 30px 0;
  }

  .footer .container {
    align-items: center;
    justify-content: center;
  }
}
