/* Global Styles */
:root {
  --primary-color: #3498db;
  --secondary-color: #d1d4d8;
  --secondary1-color: #979ca1;
  --accent-color: #e74c3c;
  --light-color: #efecf1;
  --dark-color: #2c3e50;
  --gray-color: #a195a6;
  --white-color: #3e0f53;
  --black-color: #000000;
  --body-color: #363434;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--body-color);
  font-size: 1.6rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.body-container {
  background-color: var(--white-color);
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  flex: 1;
}

.container {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  max-width: 1400px;
  margin: 0 auto;
}

/* Typography */
h1 {
  font-size: 3.2rem;
  line-height: 1.2;
}

h2 {
  font-size: 2.8rem;
  line-height: 1.3;
}

h3 {
  font-size: 2.4rem;
}

h4 {
  font-size: 2rem;
}

h5 {
  font-size: 1.5rem;
  color: var(--secondary1-color);
}

.hidden {
  opacity: 0;
}

p {
  margin-bottom: 1.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 5rem;
  color: var(--secondary-color);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 8rem;
  height: 0.4rem;
  background-color: var(--primary-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
  border-radius: 0.4rem;
  font-size: 1.6rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background-color: #2980b9;
  transform: translateY(-0.3rem);
  box-shadow: var(--box-shadow);
}

.btn-outline {
  background-color: transparent;
  border: 0.2rem solid var(--primary-color);
  color: var(--primary-color);
}

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

.btn-small {
  padding: 0.8rem 1.6rem;
  font-size: 1.4rem;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  min-height: 8rem;
  padding: 0 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo a {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--secondary-color);
  text-decoration: none;
}

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

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links li {
  margin-left: 3rem;
}

.nav-links a {
  color: var(--dark-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.6rem;
  transition: var(--transition);
  position: relative;
}

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

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 0;
  height: 0.2rem;
  background-color: var(--primary-color);
  transition: var(--transition);
}

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

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger .line {
  width: 2.5rem;
  height: 0.3rem;
  background-color: var(--dark-color);
  margin: 0.5rem;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 60rem;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #aa7bc0 0%, #2e0741 100%);
  padding-top: 8rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  gap: 4rem;
}

.hero-text {
  flex: 1;
  text-align: center;
}

.hero-text h4 {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.hero-text h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.hero-text h2 {
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.hero-text p {
  font-size: 1.8rem;
  margin-bottom: 3rem;
  color: var(--secondary-color);
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2rem 3rem rgba(0, 0, 0, 0.2);
  animation: float 3s ease-in-out infinite;
}

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

/* About Section */
.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5rem;
}

.about-image {
  flex: 1;
  text-align: center;
}

.img {
  width: 25rem;
  height: 25rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--box-shadow);
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
  color: var(--secondary-color);
  text-align: center;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
  color: var(--secondary1-color);
  text-align: center;
}

.about-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0 3rem;
}

.info-item {
  display: flex;
  justify-content: center;
  align-items: baseline;
}

.info-item span {
  font-weight: 600;
  margin-right: 1rem;
  color: var(--secondary-color);
}

.info-item p {
  color: var(--secondary1-color);
  text-align: left;
}

/* Skills Section */
/* .skills {
  position: relative;
  overflow: hidden;
} */

.skills-content {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
  min-height: 40rem;
  justify-content: center;
}

/* 
.skills-column {
  flex: 0 0 100%;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.skills-column h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--secondary-color);
}

.skill-item {
  margin-bottom: 2rem;
  width: 100%;
  max-width: 35rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  color: var(--secondary1-color);
  margin-bottom: 0.8rem;
} */

.progress-bar {
  height: 1rem;
  background-color: #f1f1f1;
  border-radius: 0.5rem;
  overflow: hidden;
}

.progress {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 0.5rem;
  transition: width 1s ease-in-out;
}

.btn-dot {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-circle {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background-color: var(--secondary1-color);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-circle.active {
  background-color: var(--primary-color);
}

.btn-scrow-prev,
.btn-scrow-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-scrow-prev:hover,
.btn-scrow-next:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-scrow-prev {
  left: 2rem;
}

.btn-scrow-next {
  right: 2rem;
}

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

.projects-grid {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
  justify-content: center;
  gap: 3rem;
}

.project-card {
  flex: 0 0 100%;
  padding: 0 1rem;
  background-color: #dadceb;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  border-radius: 0.8rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.project-card:hover {
  transform: translateY(-1rem);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.2);
}

.project-image {
  height: 20rem;
  overflow: hidden;
  width: 100%;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.project-info {
  padding: 2rem;
  width: 100%;
  max-width: 35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-info h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--body-color);
}

.project-info p {
  color: var(--body-color);
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
}

.project-tech {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  width: 100%;
}

.project-tech span {
  background-color: #f1f1f1;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 1.4rem;
  color: var(--dark-color);
}

.project-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-project-prev,
.btn-project-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-project-prev:hover,
.btn-project-next:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-project-prev {
  left: 2rem;
}

.btn-project-next {
  right: 2rem;
}

/* Contact Section */
.contact-content {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
  color: var(--secondary-color);
  text-align: center;
}

.contact-info p {
  margin-bottom: 3rem;
  font-size: 1.6rem;
  color: var(--secondary-color);
  text-align: center;
}

.contact-details {
  margin-bottom: 3rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.contact-item i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-right: 2rem;
  width: 3rem;
  text-align: center;
}

.contact-item-text {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.contact-item h4 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.contact-item p {
  color: var(--secondary1-color);
  margin-bottom: 0;
  text-align: left;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  background-color: #f1f1f1;
  border-radius: 50%;
  color: var(--dark-color);
  font-size: 1.8rem;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-0.5rem);
}

/* Footer */
footer {
  background: linear-gradient(135deg, #aa7bc0 0% 0%, #2e0741 100%);
  color: var(--secondary-color);
  padding: 3rem 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-logo a {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white-color);
  text-decoration: none;
  margin-bottom: 2rem;
}

.footer-logo span {
  color: var(--primary-color);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem 0;
  justify-content: center;
}

.footer-links a {
  color: var(--white-color);
  text-decoration: none;
  font-size: 1.6rem;
  transition: var(--transition);
}

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

/* Responsive Styles */
@media (min-width: 600px) {
  .container {
    padding: 2rem 4rem;
  }

  .hero-text h1 {
    font-size: 4.5rem;
  }

  .about-info {
    grid-template-columns: repeat(2, 1fr);
  }

  /* .skills-column {
    flex: 0 0 50%;
  } */

  .project-card {
    flex: 0 0 50%;
  }
}

@media (min-width: 768px) {
  .hero-content {
    flex-direction: row;
    text-align: left;
  }

  .hero-text {
    text-align: left;
    padding-right: 5rem;
  }

  .hero-buttons {
    justify-content: flex-start;
  }

  .about-content {
    flex-direction: row;
    align-items: flex-start;
  }

  .about-text h3,
  .about-text p {
    text-align: left;
  }

  .info-item {
    justify-content: flex-start;
  }

  .contact-content {
    flex-direction: row;
  }

  .contact-info h3,
  .contact-info p,
  .contact-item {
    justify-content: flex-start;
    text-align: left;
  }

  .social-links {
    justify-content: flex-start;
  }
}

@media (min-width: 992px) {
  .container {
    padding: 2rem 7rem;
  }

  h1 {
    font-size: 4.8rem;
  }

  .project-card {
    flex: 0 0 33.333%;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
    z-index: 1001;
  }

  .hamburger.active .line:nth-child(1) {
    transform: rotate(-45deg) translate(-0.5rem, 0.6rem);
  }

  .hamburger.active .line:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .line:nth-child(3) {
    transform: rotate(45deg) translate(-0.5rem, -0.6rem);
  }

  .nav-links {
    position: fixed;
    top: 8rem;
    left: -100%;
    width: 100%;
    height: calc(100vh - 8rem);
    background-color: var(--white-color);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 4rem;
    transition: var(--transition);
  }

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

  .nav-links li {
    margin: 1.5rem 0;
  }

  body.menu-active::before {
    content: "";
    position: fixed;
    top: 8rem;
    left: 0;
    width: 100%;
    height: calc(100vh - 8rem);
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 2rem;
  }

  .hero {
    padding-top: 8rem;
    height: auto;
    min-height: auto;
  }

  .hero-text h1 {
    font-size: 3.5rem;
  }

  .hero-text h2 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  /* .btn {
    width: 100%;
  } */

  .img {
    width: 20rem;
    height: 20rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  .btn-scrow-prev,
  .btn-project-prev {
    left: 0.5rem;
  }

  .btn-scrow-next,
  .btn-project-next {
    right: 0.5rem;
  }
}

/* Skills Section */
.skills-section {
  background-color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 80px 20px;
}

.skills-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skills-title {
  position: absolute;
  top: 55px;
  letter-spacing: 20px;
  color: #a1bbdf;
  font-size: 20px;
  text-transform: uppercase;
  margin-bottom: 40px;
}

/* Update your existing skills section styles with these animations */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 30px;
  width: 100%;
  margin-top: 80px;
  perspective: 1000px;
}

.skill-item {
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  transition: all 0.5s ease;
  transform-style: preserve-3d;
}

.skill-icon {
  width: 80px;
  height: 80px;
  cursor: pointer;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.skill-icon img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.skill-item h5 {
  position: absolute;
  bottom: -25px;
  opacity: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--secondary-color);
  text-align: center;
  width: 100%;
  transition: all 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hover animations */
.skill-item:hover .skill-icon {
  transform: translateY(-10px) scale(1.1);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.2);
}

.skill-item:hover .skill-icon img {
  transform: scale(1.1);
}

.skill-item:hover h5 {
  opacity: 1;
  bottom: -30px;
}

/* Pulse animation for attention */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.skill-item:nth-child(odd) {
  animation: floatUp 1s ease-out forwards;
}

.skill-item:nth-child(even) {
  animation: floatDown 1s ease-out forwards;
}

@keyframes floatUp {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes floatDown {
  0% {
    transform: translateY(-20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Sequential animation for skills */
.skill-item {
  opacity: 0;
}

.skill-item.animate {
  animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skill-item:hover .skill-icon {
  filter: grayscale(100%);
}

/* Dark Mode */
.dark .skills-section {
  background-color: #1a1a2e;
  color: #ffffff;
}

.dark .skills-title {
  color: #6b7280;
}
