/* Base Styles */
:root {
  --primary-color: #ff7b00;
  --secondary-color: #e0e0e0;
  --dark-color: #111827;
  --light-color: #f9fafb;
  --success-color: #22c55e;
  --danger-color: #ef4444;
  --gray-color: #a0a0a0;
  --body-color: #121212;
  --card-bg-color: #1e1e1e;
  --text-color: #e0e0e0;
  --border-color: #333;
  --hover-color: rgba(255, 123, 0, 0.15);
  --transition: all 0.3s ease;
  --animation-duration: 0.8s;
}

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

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--body-color);
  opacity: 1;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 50px;
  position: relative;
}

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

section {
  padding: 100px 0;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--hover-color);
  transition: all 0.4s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.small-btn {
  padding: 8px 16px;
  font-size: 14px;
}

.primary-btn {
  background-color: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
}

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

.secondary-btn {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(18, 18, 18, 0.5);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 18, 18, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: -1;
}

/* Additional styling for the header when scrolled */
header.scrolled {
  background: rgba(18, 18, 18, 0.8);
  border-bottom: 1px solid var(--border-color);
}

header.scrolled::before {
  background: rgba(18, 18, 18, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* For browsers that don't support backdrop-filter */
@supports not (
  (backdrop-filter: blur(15px)) or (-webkit-backdrop-filter: blur(15px))
) {
  header {
    background: rgba(18, 18, 18, 0.95);
    border-bottom: 1px solid var(--primary-color);
  }
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  transition: var(--transition);
}

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

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 3px 0;
  border-radius: 3px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a1f29 0%, #353e52 50%, #1f263a 100%);
  position: relative;
  color: var(--light-color);
  padding-top: 80px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 60%,
      var(--hover-color) 0%,
      transparent 40%
    ),
    radial-gradient(circle at 80% 30%, var(--hover-color) 0%, transparent 40%);
  z-index: 0;
  animation: pulse 8s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--hover-color) 0%,
    rgba(255, 153, 76, 0.03) 100%
  );
  top: -200px;
  right: -200px;
  z-index: 0;
  animation: float 15s ease-in-out infinite;
}

.hero .floating-circle {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--hover-color) 0%,
    rgba(255, 153, 76, 0.05) 100%
  );
  bottom: -100px;
  left: 10%;
  z-index: 0;
  animation: float-reverse 20s ease-in-out infinite;
  opacity: 0.4;
}

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

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(-20px, 20px) rotate(5deg);
  }
  50% {
    transform: translate(-40px, -20px) rotate(0deg);
  }
  75% {
    transform: translate(-20px, -40px) rotate(-5deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

@keyframes float-reverse {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(20px, -20px) rotate(-5deg);
  }
  50% {
    transform: translate(40px, 20px) rotate(0deg);
  }
  75% {
    transform: translate(20px, 40px) rotate(5deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 56px;
  line-height: 1.2;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  animation: typing 3.5s steps(40, end);
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
}

/* Section Common Styles */
.section-subtitle {
  text-align: center;
  margin-bottom: 40px;
}

.section-subtitle p {
  font-size: 18px;
  color: var(--gray-color);
  max-width: 600px;
  margin: 0 auto;
}

/* About Section Redesign */
.about {
  position: relative;
  overflow: hidden;
}

.about::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 300px;
  height: 300px;
  background: var(--hover-color);
  border-radius: 50%;
  transform: translate(-150px, 150px);
  z-index: 0;
}

.about-card {
  background: var(--card-bg-color);
  border-radius: 15px;
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 40px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1;
  opacity: 0; /* Initially hidden */
}

.about-image-container {
  position: relative;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(-60px);
}

.about-image-wrapper {
  width: 100%;
  max-width: 320px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

.about-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.about-image-wrapper:hover img {
  transform: scale(1.05);
}

.about-shape {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff9e4c 100%);
  opacity: 0.8;
  clip-path: polygon(0 0, 90% 0, 50% 100%, 0% 100%);
  z-index: 1;
}

.about-content-container {
  padding: 40px 40px 40px 0;
  opacity: 0;
  transform: translateX(60px);
}

.about-content-container h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--secondary-color);
  position: relative;
  display: inline-block;
}

.about-content-container h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.about-content-container p {
  margin-bottom: 20px;
  color: var(--gray-color);
  line-height: 1.8;
  text-align: justify;
  hyphens: auto;
  word-spacing: normal;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 15px;
  border-radius: 10px;
  background-color: var(--card-bg-color);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--primary-color);
}

.highlight-item:hover {
  transform: translateY(-5px);
  background-color: var(--hover-color);
}

.highlight-item i {
  font-size: 24px;
  color: white;
  margin-bottom: 10px;
}

.highlight-item span {
  font-weight: 500;
  font-size: 14px;
}

.about-content-container .social-links {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

/* Social Links Redesign */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-links.animate {
  animation: fadeInUp 0.8s ease 1.4s forwards;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff9e4c 100%);
  color: white;
  font-size: 18px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(255, 123, 0, 0.2);
}

.social-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 0.4s ease;
}

.social-icon:hover::before {
  clip-path: circle(100% at 50% 50%);
}

.social-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(255, 123, 0, 0.3);
}

/* Custom colors for different social platforms */
.social-icon .fa-github {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.social-icon .fa-linkedin-in {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.social-icon .fa-twitter {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.social-icon .fa-stack-overflow {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.social-icon .fa-medium-m {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

social-icon .fa-dribbble {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

@media (max-width: 992px) {
  .about-card {
    grid-template-columns: 1fr;
  }

  .about-image-container {
    padding: 40px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .about-content-container {
    padding: 0 40px 40px 40px;
  }

  .about-shape {
    clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%);
  }
}

@media (max-width: 576px) {
  .about-image-container {
    padding: 30px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .about-content-container {
    padding: 0 30px 30px 30px;
  }

  .about-image-wrapper {
    max-width: 100%;
  }

  .highlight-item {
    padding: 10px;
  }
}

/* About Card Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animation triggered class */
.about-card.animate {
  animation: fadeInUp 1s ease forwards;
}

.about-image-container.animate {
  animation: fadeInLeft 1.2s ease 0.2s forwards;
}

.about-content-container.animate {
  animation: fadeInRight 1.2s ease 0.4s forwards;
}

.highlight-item.animate:nth-child(1) {
  animation: fadeInUp 0.8s ease 0.6s forwards;
}

.highlight-item.animate:nth-child(2) {
  animation: fadeInUp 0.8s ease 0.8s forwards;
}

.highlight-item.animate:nth-child(3) {
  animation: fadeInUp 0.8s ease 1s forwards;
}

.highlight-item.animate:nth-child(4) {
  animation: fadeInUp 0.8s ease 1.2s forwards;
}

/* Skills Section */
.skills {
  background-color: var(--card-bg-color);
  position: relative;
  overflow: hidden;
}

.skills::before {
  content: "";
  position: absolute;
  top: 100px;
  right: 0;
  width: 300px;
  height: 300px;
  background: var(--hover-color);
  border-radius: 50%;
  transform: translate(150px, 0);
  z-index: 0;
}

.skills-card {
  background: var(--card-bg-color);
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

.skills-header {
  text-align: center;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.skills-header h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--secondary-color);
  position: relative;
  display: inline-block;
}

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

.skills-header p {
  color: var(--gray-color);
  font-size: 16px;
  line-height: 1.7;
}

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

.skill-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 12px;
  background-color: var(--card-bg-color);
  transition: all 0.3s ease;
  opacity: 1;
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--primary-color);
}

.skill-item:hover {
  background-color: var(--hover-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}

.skill-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff9e4c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skill-icon i {
  font-size: 28px;
  color: white !important; /* Force white color for all icons */
}

/* Override Devicon colored classes to ensure they appear white */
.skill-icon i[class*="colored"] {
  color: white !important;
}

.skill-info {
  flex: 1;
}

.skill-info h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 600;
}

.progress-bar {
  height: 10px;
  background-color: var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin-top: 5px;
}

.progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color) 0%, #ff9e4c 100%);
  border-radius: 10px;
  position: relative;
  transition: width 1.5s ease-in-out;
}

.progress-value {
  position: absolute;
  right: 0;
  top: -28px;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-color);
  background-color: var(--hover-color);
  padding: 2px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Add a percentage indicator in the center of the bar for better visibility */
.progress::after {
  content: attr(data-percent);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 10px;
  font-weight: bold;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.skill-item:hover .progress::after {
  opacity: 1;
}

@media (max-width: 768px) {
  .skills-container {
    grid-template-columns: 1fr;
  }

  .skills-card {
    padding: 30px;
  }
}

/* CV Section */
.cv {
  padding: 100px 0;
  background-color: var(--card-bg-color);
}

.cv-card {
  background-color: var(--body-color);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.cv-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.cv-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.cv-icon {
  font-size: 80px;
  color: var(--primary-color);
  text-align: center;
  min-width: 120px;
}

.cv-info {
  flex: 1;
}

.cv-info h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

.cv-info p {
  font-size: 1.1rem;
  color: var(--gray-color);
  margin-bottom: 25px;
  line-height: 1.6;
}

.cv-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.cv-detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  background-color: var(--card-bg-color);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.cv-detail-item:hover {
  background-color: var(--hover-color);
  border-color: var(--primary-color);
}

.cv-detail-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.cv-detail-item span {
  font-size: 0.95rem;
  color: var(--text-color);
}

.cv-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.cv-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: 2px solid transparent;
}

.cv-actions .primary-btn {
  background-color: var(--primary-color);
  color: white;
}

.cv-actions .primary-btn:hover {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.cv-actions .secondary-btn {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-color);
}

.cv-actions .secondary-btn:hover {
  background-color: var(--border-color);
  color: var(--dark-color);
}

/* Mobile Responsiveness for CV Section */
@media (max-width: 768px) {
  .cv {
    padding: 60px 0;
  }
  
  .cv-card {
    padding: 25px;
  }
  
  .cv-content {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }
  
  .cv-icon {
    font-size: 60px;
    min-width: auto;
  }
  
  .cv-info h3 {
    font-size: 1.5rem;
  }
  
  .cv-details {
    grid-template-columns: 1fr;
  }
  
  .cv-actions {
    justify-content: center;
  }
  
  .cv-actions .btn {
    flex: 1;
    justify-content: center;
    min-width: 140px;
  }
}

/* Projects Section */
.projects {
  position: relative;
  overflow: hidden;
}

.projects::before {
  content: "";
  position: absolute;
  bottom: 100px;
  left: 0;
  width: 300px;
  height: 300px;
  background: var(--hover-color);
  border-radius: 50%;
  transform: translate(-150px, 150px);
  z-index: 0;
}

.projects-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.project-card {
  background-color: var(--card-bg-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

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

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--hover-color),
    rgba(255, 123, 0, 0.8)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

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

.overlay-content {
  display: flex;
  gap: 20px;
}

.overlay-btn {
  width: 50px;
  height: 50px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 20px;
  transition: all 0.3s ease;
  transform: translateY(20px);
  opacity: 0;
}

.project-card:hover .overlay-btn {
  transform: translateY(0);
  opacity: 1;
}

.project-card:hover .overlay-btn:first-child {
  transition-delay: 0.1s;
}

.project-card:hover .overlay-btn:last-child {
  transition-delay: 0.2s;
}

.overlay-btn:hover {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.project-info {
  padding: 30px;
}

.project-category {
  display: inline-block;
  font-size: 14px;
  color: var(--primary-color);
  background-color: var(--hover-color);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 15px;
}

.project-info h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.project-info p {
  color: var(--gray-color);
  margin-bottom: 20px;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.project-tech span {
  background-color: var(--card-bg-color);
  color: var(--gray-color);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.project-tech span:hover {
  background-color: var(--hover-color);
  color: var(--primary-color);
  transform: translateY(-3px);
}

.project-links {
  display: flex;
  gap: 15px;
}

.project-links .btn {
  padding: 10px 20px;
  font-size: 14px;
}

/* Project Cards Responsive Layout */
@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .projects-wrapper {
    overflow-x: auto;
    padding-bottom: 20px; /* Space for scrollbar */
  }

  .projects-grid {
    display: flex;
    flex-wrap: nowrap;
    grid-template-columns: none;
    gap: 20px;
    padding: 10px 5px;
    width: max-content;
  }

  .project-card {
    width: 300px;
    flex: 0 0 auto;
  }

  .project-image {
    height: 200px;
  }

  /* Show scrollbar indicator */
  .projects-wrapper:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--hover-color);
    border-radius: 2px;
    opacity: 0.5;
  }
}

@media (max-width: 576px) {
  .project-card {
    width: 280px;
  }

  .project-image {
    height: 180px;
  }

  .project-info {
    padding: 20px;
  }
}

/* Add some visual indicators for horizontal scroll on mobile */
@media (max-width: 768px) {
  .projects-wrapper::-webkit-scrollbar {
    height: 4px;
  }

  .projects-wrapper::-webkit-scrollbar-track {
    background: var(--card-bg-color);
    border-radius: 10px;
  }

  .projects-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
  }

  /* Add fade effect to indicate there's more to scroll */
  .projects:before, .projects:after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none;
  }

  .projects:before {
    left: 0;
    background: linear-gradient(to right, var(--body-color), transparent);
  }

  .projects:after {
    right: 0;
    background: linear-gradient(to left, var(--body-color), transparent);
  }
}

@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact Section */
.contact {
  background-color: var(--card-bg-color);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: var(--hover-color);
  border-radius: 50%;
  transform: translate(200px, -200px);
  z-index: 0;
}

.contact-wrapper {
  position: relative;
  z-index: 1;
}

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

.contact-subtitle {
  font-size: 18px;
  color: var(--gray-color);
  max-width: 600px;
  margin: 0 auto;
}

.contact-content {
  display: flex;
  justify-content: center;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  background: var(--card-bg-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 1100px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

/* Contact Methods Layout - Center alignment */
.contact-methods {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff9e4c 100%);
  color: white;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-method-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
  opacity: 1;
  transform: translateY(0);
}

.contact-icon {
  background: rgba(255, 255, 255, 0.2);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.contact-info {
  text-align: center;
}

.contact-info a {
  word-break: break-word;
}

/* Social links in contact section */
.contact-social {
  margin-top: 40px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-social h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

.contact-methods .social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.contact-form-container {
  padding: 50px 40px;
}

contact-form-container h3 {
  font-size: 22px;
  color: var(--secondary-color);
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

contact-form-container h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

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

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  transition: all 0.3s ease;
  background-color: var(--card-bg-color);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: var(--body-color);
  box-shadow: 0 0 0 4px var(--hover-color);
}

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

#contactForm .btn {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

#contactForm .btn i {
  font-size: 16px;
}

#contactForm .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 123, 0, 0.2);
}

/* Responsive Contact Section */
@media (max-width: 992px) {
  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-methods {
    padding: 40px;
  }

  .contact-social {
    margin-top: 30px;
  }

  .contact-form-container {
    padding: 40px;
  }

  .contact-form-container h3 {
    text-align: center;
    display: block;
  }

  .contact-form-container h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form-container {
    padding: 30px 25px;
  }

  .contact-methods {
    padding: 35px 25px;
  }

  .contact-info a,
  .contact-info p {
    font-size: 15px;
  }
}

@media (max-width: 576px) {
  .contact-card {
    border-radius: 10px;
  }

  .contact-methods {
    padding: 30px 20px;
  }

  .contact-form-container {
    padding: 25px 20px;
  }

  .contact-icon {
    width: 50px;
    height: 50px;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px 15px;
    font-size: 14px;
  }

  .form-group label {
    font-size: 14px;
  }

  #contactForm .btn {
    padding: 12px;
    font-size: 15px;
  }

  .contact-methods .social-links a {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* Footer */
footer {
  background-color: var(--body-color);
  color: var(--text-color);
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 992px) {
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .about-image {
    margin: 0 auto;
    max-width: 400px;
  }

  .hero-content h1 {
    font-size: 48px;
  }
}

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

  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    flex-direction: column;
    width: 100%;
    gap: 0;
    background-color: var(--card-bg-color);
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 15px 0;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content p {
    font-size: 18px;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .btn {
    width: 100%;
  }

  .section-title {
    font-size: 28px;
  }

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

@media (max-width: 576px) {
  section {
    padding: 70px 0;
  }

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

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

/* Animation Styles */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation for sections and elements */
section,
.skill-item,
.project-card,
.contact-item,
.contact-method-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

section.animate,
.skill-item.animate,
.project-card.animate,
.contact-item.animate,
.contact-method-item.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations */
.skill-item:nth-child(2) {
  transition-delay: 0.1s;
}
.skill-item:nth-child(3) {
  transition-delay: 0.2s;
}
.skill-item:nth-child(4) {
  transition-delay: 0.3s;
}
.skill-item:nth-child(5) {
  transition-delay: 0.4s;
}
.skill-item:nth-child(6) {
  transition-delay: 0.5s;
}

.project-card:nth-child(2) {
  transition-delay: 0.2s;
}
.project-card:nth-child(3) {
  transition-delay: 0.4s;
}

.contact-method-item:nth-child(2) {
  transition-delay: 0.1s;
}
.contact-method-item:nth-child(3) {
  transition-delay: 0.2s;
}

/* Progress bar animation */
.skill-item.animate .progress {
  animation: progressBar 1.5s ease-in-out forwards;
}

@keyframes progressBar {
  from {
    width: 0;
  }
}

/* Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background-color: var(--primary-color);
  width: 0%;
  z-index: 2000;
  transition: width 0.1s ease;
}
