@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;500;600;700;800;900;1000&display=swap");

:root {
  --primary-color: #ff8c00;
  --secondary-color: #f8f9fa;
  --accent-color: #ff6b00;
  --white-color: #ffffff;
  --white-secondary-color: #fafaff;
  --black-color: #000000;
  --gray-color: #6c757d;
  --dark-color: #212529;
  --light-gray-color: #f0f0f0;
  --dark-gray-color: #333333;
  --light-blue-color: #e0f7fa;

  --header-height: 4rem;
  --section-padding: 6rem 0;

  --transition: all 0.3s ease-in-out;
}

/* Loading State Styles */
.loading-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading-container.hidden {
  opacity: 0;
}

.loading-content {
  text-align: center;
}

.loading-logo {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.loading-spinner {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.spinner-circle {
  width: 1rem;
  height: 1rem;
  background-color: var(--primary-color);
  border-radius: 50%;
  animation: bounce 0.5s ease-in-out infinite;
}

.spinner-circle:nth-child(2) {
  animation-delay: 0.1s;
}

.spinner-circle:nth-child(3) {
  animation-delay: 0.2s;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1rem);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Nunito", sans-serif;
  height: 100%;
  width: 100%;
  color: var(--dark-color);
  background-color: var(--white-secondary-color);
}

/* header */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: var(--primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  height: var(--header-height);
  max-width: 1200px;
  padding: 0 2rem;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white-secondary-color);
  transition: var(--transition);
}

.nav-logo:hover {
  color: var(--white-color);
  transform: translateY(-2px);
}

/* Language Switcher Styles */
.language-switcher {
  position: relative;
  margin-right: 1rem;
}

.language-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: var(--white-secondary-color);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 5px;
  transition: var(--transition);
}

.language-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.flag-icon {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.language-btn:hover .flag-icon,
.lang-option:hover .flag-icon {
  transform: scale(1.1);
}

.current-lang {
  font-weight: 600;
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--white-color);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  padding: 0.5rem;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1000;
}

.language-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.8rem;
  border: none;
  background: none;
  color: var(--dark-color);
  cursor: pointer;
  transition: var(--transition);
  border-radius: 5px;
}

.lang-option:hover {
  background-color: var(--light-gray-color);
}

.lang-option span {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Mobile Responsive Styles for Language Switcher */
@media screen and (max-width: 768px) {
  .language-switcher {
    margin-right: 0.5rem;
  }

  .language-btn {
    padding: 0.3rem;
  }

  .current-lang {
    display: none;
  }

  .language-dropdown {
    right: -10px;
  }
}

/* Styles for the navigation menu */
.nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  margin: 0;
}

/* Navbar link hover effect */
.nav-link {
  font-size: 1.1rem;
  color: var(--white-secondary-color);
  font-weight: 500;
  text-decoration: none;
  position: relative; /* Required for the ::after pseudo-element */
  transition: color var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px; /* Adjust the distance of the line from the text */
  width: 0; /* Start with no line */
  height: 2px; /* Thickness of the line */
  background-color: var(--white-color);
  transition: width 0.3s ease-in-out; /* Smooth animation for the line */
}

.nav-link:hover {
  color: var(--white-color); /* Change text color on hover */
}

.nav-link:hover::after {
  width: 100%; /* Expand the line to full width on hover */
}

/* Active link */
.active-link {
  color: var(--white-color);
  font-weight: bold;
}

/* Hamburger Icon */
.hamburger {
  display: none;
  font-size: 2rem;
  color: var(--white-color);
  cursor: pointer;
  z-index: 110;
}

.hamburger i {
  transition: var(--transition);
}

.hamburger:hover i {
  transform: scale(1.1);
}

/* Mobile Menu */
.nav-menu {
  position: fixed;
  top: 0;
  right: -100%; /* Hidden off-screen */
  width: 70%; /* Menu width */
  height: 100%;
  background-color: var(--primary-color);
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  z-index: 110; /* Ensure the menu is above the blur */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2rem;
  transition: right 0.3s ease-in-out;
}

.nav-menu.open {
  right: 0; /* Slide in */
}

.close-menu {
  display: none; /* Hidden by default */
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--white-color);
  cursor: pointer;
  margin-bottom: 1rem;
}

.close-menu i {
  transition: var(--transition);
}

.close-menu:hover i {
  transform: scale(1.1);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.nav-link {
  font-size: 1.2rem;
  color: var(--white-color);
  text-align: left;
  padding: 0.5rem 1rem;
  width: 100%;
  transition: background-color 0.3s ease-in-out;
}

.nav-link:hover {
  /* background-color: rgba(255, 255, 255, 0.1); */
  border-radius: 5px;
}

/* Blur Effect for Outside Section */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: calc(100% - 70%); /* Cover the area outside the menu */
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dark opacity */
  backdrop-filter: blur(5px); /* Add blur effect */
  z-index: 100; /* Ensure the blur is below the menu */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

/* General Section Styling */
section {
  padding: 6rem 2rem; /* Add more space between sections */
  text-align: center;
}

/* Section Animation */
.section {
  opacity: 0; /* Initially hidden */
  transform: translateY(50px); /* Start slightly below */
  transition: opacity 0.6s ease, transform 0.6s ease; /* Smooth transition */
}

.section.visible {
  opacity: 1; /* Fully visible */
  transform: translateY(0); /* Move to original position */
}

/* Section Background Colors */
.home {
  position: relative;
  background-color: var(--primary-color);
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 2rem;
}

.home-container {
  margin: 0 auto;
  width: calc(100% - 4rem);
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.home-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-subtitle {
  font-size: 1.5rem;
  color: var(--white-secondary-color);
  margin-bottom: 1rem;
  font-weight: 400;
  opacity: 0.9;
  min-height: 2rem; /* Add height for Typed.js */
}

.home-title {
  visibility: visible;
  opacity: 1;
  transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  transition: all, opacity 2s cubic-bezier(0.5, 0, 0, 1),
    transform 2s cubic-bezier(0.5, 0, 0, 1);
  font-size: 6rem;
  color: var(--white-secondary-color);
  line-height: 0.9;
  margin-bottom: 2rem;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.home-description {
  font-size: 1.1rem;
  color: var(--white-secondary-color);
  margin-bottom: 2.5rem;
  max-width: 450px;
  line-height: 1.6;
}

.home-button {
  display: inline-block;
  background-color: var(--white-color);
  color: var(--primary-color);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: fit-content;
}

.home-button:hover {
  background-color: var(--accent-color);
  color: var(--white-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.home-img {
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-img img {
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  transform: translateY(0);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0);
  }
}

.home-scroll {
  visibility: visible;
  opacity: 1;
  transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  transition: all, opacity 2s cubic-bezier(0.5, 0, 0, 1) 0.2s,
    transform 2s cubic-bezier(0.5, 0, 0, 1) 0.2s;
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.home-scroll-button {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white-secondary-color);
  font-size: 1.1rem;
  transition: var(--transition);
  gap: 0.5rem;
}

.home-scroll-button:hover {
  transform: translateY(-5px);
  color: var(--white-color);
}

.home-scroll-button i {
  animation: scrollDown 2s ease infinite;
}

@keyframes scrollDown {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Section Container */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
}

/* About Section */
.about {
  background-color: var(--dark-gray-color);
  color: var(--white-color);
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

.about .section-title {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 2.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.about .section-description {
  color: var(--white-secondary-color);
  margin-bottom: 3rem;
  font-size: 1.1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--white-secondary-color);
  text-align: left;
  margin-bottom: 1rem;
}

.about-text p:first-of-type {
  margin-top: 1rem;
}

.about-text p:last-of-type {
  margin-bottom: 0;
}

.about-img {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px; /* Add padding for the border animation */
}

.about-img::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 3px; /* Border width */
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--accent-color),
    #ff8c00,
    #ff6b00
  );
  border-radius: 15px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotate 4s linear infinite;
}

@keyframes rotate {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.about-img img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.about-img img:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Add a subtle glow effect */
.about-img::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 15px;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--accent-color),
    #ff8c00,
    #ff6b00
  );
  filter: blur(20px);
  opacity: 0.3;
  z-index: 0;
  animation: glow 4s ease-in-out infinite;
}

@keyframes glow {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.5;
  }
}

/* Skills Section */
.skills {
  background-color: var(--black-color);
  color: var(--white-color);
  padding: var(--section-padding);
}

.skills .section-title {
  margin-bottom: 2rem;
}

.skills-description {
  margin-bottom: 3.5rem;
  font-size: 1.1rem;
  color: var(--white-secondary-color);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.skill-card {
  background-color: var(--dark-gray-color);
  color: var(--white-color);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  padding: 2.2rem 1.8rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  height: 100%;
}

.skill-card i {
  font-size: 3.2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.skill-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--white-color);
}

/* Skill Bar Styles */
.skill-bar-container {
  width: 100%;
  margin-top: 0.5rem;
}

.skill-bar {
  width: 100%;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.skill-level {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 4px;
  transition: width 1.5s ease-in-out;
}

.skill-percentage {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--white-secondary-color);
  font-weight: 600;
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.skill-card:hover i {
  transform: scale(1.1);
}

.skill-card:hover .skill-level {
  animation: skillFill 1.5s ease-in-out forwards;
}

@keyframes skillFill {
  from {
    width: 0;
  }
  to {
    width: var(--skill-level);
  }
}

/* Responsive adjustments for skills section */
@media screen and (max-width: 1200px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
  }
}

@media screen and (max-width: 900px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media screen and (max-width: 576px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .skill-card {
    padding: 1.8rem 1.5rem;
  }

  .skill-card i {
    font-size: 2.8rem;
  }

  .skill-card h3 {
    font-size: 1.2rem;
  }

  .skill-card p {
    font-size: 0.9rem;
  }
}

/* Portfolio Section */
.portfolio {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b00 100%);
  color: var(--white-color);
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

.portfolio::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0 0 L100 0 L100 100 L0 100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
  opacity: 0.1;
  z-index: 1;
}

.portfolio .section-title {
  color: var(--white-color);
  margin-bottom: 1rem;
  font-size: 2.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
}

.portfolio .section-description {
  color: var(--white-secondary-color);
  margin-bottom: 3rem;
  font-size: 1.1rem;
  position: relative;
  z-index: 2;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  position: relative;
  z-index: 2;
}

.portfolio-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  background-color: rgba(255, 255, 255, 0.15);
}

.portfolio-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-item-content {
  padding: 1.5rem;
}

.portfolio-item h3 {
  color: var(--white-color);
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.portfolio-item p {
  color: var(--white-secondary-color);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.portfolio-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.portfolio-item-tag {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.portfolio-item-links {
  display: flex;
  gap: 1rem;
}

.portfolio-item-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.portfolio-item-link:hover {
  background-color: var(--white-color);
  color: var(--primary-color);
}

.portfolio-item-link i {
  font-size: 1.1rem;
}

/* Contact Section */
.contact {
  background-color: var(--dark-gray-color);
  color: var(--white-color);
  padding: var(--section-padding);
}

.contact .section-title {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.contact .section-description {
  color: var(--white-secondary-color);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1.2rem;
  border: 2px solid var(--gray-color);
  border-radius: 8px;
  font-size: 1rem;
  background-color: var(--dark-color);
  color: var(--white-color);
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.2);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--gray-color);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-button {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 1.2rem 2.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 1rem;
}

.contact-button:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact .social-links {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.contact .social-links a {
  font-size: 1.8rem;
  color: var(--white-color);
  transition: var(--transition);
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact .social-links a:hover {
  color: var(--primary-color);
  background-color: var(--white-color);
  transform: translateY(-5px);
}

/* Social Links */
.social-links {
  margin-top: 2rem;
}

.social-links a {
  font-size: 1.5rem;
  color: var(--white-color);
  margin: 0 1rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--dark-gray-color);
}

/* Footer Section */
.footer {
  background-color: var(--black-color);
  color: var(--white-color);
  padding: 4rem 2rem 2rem;
  position: relative;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo-link {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.footer-logo-link:hover {
  color: var(--accent-color);
}

.footer-logo img {
  width: 100%;
  max-width: 150px;
  height: auto;
  border-radius: 10px;
  transition: var(--transition);
}

.footer-logo img:hover {
  transform: scale(1.05);
}

.footer-links {
  display: flex;
  justify-content: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link {
  color: var(--white-secondary-color);
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition);
  padding: 0.5rem;
}

.footer-link:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-link {
  font-size: 1.5rem;
  color: var(--white-secondary-color);
  transition: var(--transition);
  background-color: rgba(255, 255, 255, 0.1);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link:hover {
  color: var(--primary-color);
  background-color: var(--white-color);
  transform: translateY(-5px);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  color: var(--white-secondary-color);
}

/* Responsive adjustments for about and footer sections */
@media screen and (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .about-text {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
  }

  .about-text p {
    text-align: left;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-logo {
    margin-bottom: 1rem;
  }

  .footer-nav {
    margin: 1rem 0;
  }
}

@media screen and (max-width: 768px) {
  .about {
    padding: 4rem 1rem;
  }

  .about-content {
    padding: 0 1rem;
  }

  .about-text p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .footer {
    padding: 3rem 1rem 1.5rem;
  }

  .footer-nav {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-social {
    margin-top: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .about-img img {
    max-width: 200px;
  }

  .footer-logo img {
    max-width: 120px;
  }

  .social-link {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 768px) {
  .home {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
  }

  .home-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .home-description {
    margin-left: auto;
    margin-right: auto;
  }

  .home-title {
    font-size: 4.5rem;
  }

  .home-img {
    order: -1;
    margin: 2rem auto;
  }

  .home-img img {
    width: 250px;
  }

  .home-button {
    margin: 0 auto;
  }

  .contact-form {
    padding: 2rem;
  }

  .contact-button {
    padding: 1rem 2rem;
  }

  .contact .social-links {
    gap: 1.5rem;
  }

  .contact .social-links a {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .portfolio-item {
    max-width: 500px;
    margin: 0 auto;
  }

  .portfolio-item img {
    height: 180px;
  }
}

@media screen and (max-width: 576px) {
  .home {
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 3rem;
  }

  .home-title {
    font-size: 3.5rem;
  }

  .home-img img {
    width: 200px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .home {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
  }

  .home-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .home-img {
    order: -1;
    margin: 2rem auto;
  }

  .home-title {
    font-size: 4rem;
  }

  .home-description {
    font-size: 1rem;
    margin: 0 auto;
    max-width: 600px;
  }

  .home-button {
    margin: 0 auto;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 769px) {
  .nav-menu {
    position: static;
    width: auto;
    height: auto;
    background: none;
    box-shadow: none;
    flex-direction: row; /* Row layout for desktop */
    align-items: center;
    padding: 0;
    transition: none;
  }

  .nav-list {
    display: flex; /* Ensure the menu items are in a row */
    flex-direction: row; /* Row layout for desktop */
    gap: 1rem; /* Reduce space between menu items */
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .nav-link {
    font-size: 1rem; /* Slightly smaller font size */
    padding: 0.3rem 0.8rem; /* Reduce padding for a tighter look */
    color: var(--white-secondary-color);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition);
  }

  .nav-link:hover {
    color: var(--white-color); /* Change text color on hover */
    background-color: transparent; /* Ensure no background effect */
  }

  .hamburger,
  .close-menu {
    display: none !important; /* Force hide hamburger and close icons on desktop */
  }

  .overlay {
    display: none; /* Hide overlay on desktop */
  }
}

/* Animation Showcase Section */
.animation-showcase {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b00 100%);
  color: var(--white-color);
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

.animation-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 2rem;
}

/* Code Window Styles */
.code-window {
  background-color: var(--dark-gray-color);
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  transform: perspective(1000px) rotateX(5deg);
  transition: transform 0.3s ease;
}

.code-window:hover {
  transform: perspective(1000px) rotateX(0deg);
}

.window-header {
  background-color: #2d2d2d;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.window-buttons {
  display: flex;
  gap: 0.5rem;
}

.window-button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ff5f56;
}

.window-button:nth-child(2) {
  background-color: #ffbd2e;
}

.window-button:nth-child(3) {
  background-color: #27c93f;
}

.window-title {
  color: var(--white-secondary-color);
  font-size: 0.9rem;
  margin-left: 1rem;
}

.code-content {
  padding: 2rem;
  font-family: 'Fira Code', monospace;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--white-secondary-color);
}

.code-line {
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateX(-20px);
  animation: fadeInLine 0.5s ease forwards;
}

.code-line:nth-child(1) { animation-delay: 0.1s; }
.code-line:nth-child(2) { animation-delay: 0.2s; }
.code-line:nth-child(3) { animation-delay: 0.3s; }
.code-line:nth-child(4) { animation-delay: 0.4s; }
.code-line:nth-child(5) { animation-delay: 0.5s; }
.code-line:nth-child(6) { animation-delay: 0.6s; }
.code-line:nth-child(7) { animation-delay: 0.7s; }
.code-line:nth-child(8) { animation-delay: 0.8s; }
.code-line:nth-child(9) { animation-delay: 0.9s; }
.code-line:nth-child(10) { animation-delay: 1s; }
.code-line:nth-child(11) { animation-delay: 1.1s; }

.keyword { color: #ff79c6; }
.variable { color: #bd93f9; }
.property { color: #8be9fd; }
.string { color: #f1fa8c; }

/* Floating Elements */
.animation-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.floating-element {
  position: absolute;
  font-size: 3rem;
  color: var(--white-color);
  opacity: 0.8;
  animation: float 6s ease-in-out infinite;
}

.floating-element.html { top: 20%; left: 10%; animation-delay: 0s; }
.floating-element.css { top: 30%; right: 15%; animation-delay: 1s; }
.floating-element.js { bottom: 25%; left: 20%; animation-delay: 2s; }
.floating-element.laravel { top: 40%; right: 25%; animation-delay: 3s; }
.floating-element.wordpress { bottom: 35%; right: 10%; animation-delay: 4s; }

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

@keyframes fadeInLine {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive adjustments */
@media screen and (max-width: 1024px) {
  .animation-container {
    flex-direction: column;
    gap: 2rem;
  }

  .code-window {
    max-width: 100%;
  }

  .floating-element {
    font-size: 2.5rem;
  }
}

@media screen and (max-width: 768px) {
  .animation-container {
    min-height: 400px;
  }

  .code-content {
    font-size: 0.9rem;
    padding: 1.5rem;
  }

  .floating-element {
    font-size: 2rem;
  }
}

@media screen and (max-width: 480px) {
  .code-content {
    font-size: 0.8rem;
    padding: 1rem;
  }

  .floating-element {
    font-size: 1.5rem;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  opacity: 1;
}

.modal-content {
  position: relative;
  background-color: var(--white-color);
  margin: 15% auto;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-50px);
  transition: transform 0.3s ease;
}

.modal.show .modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--gray-color);
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: var(--primary-color);
}

.modal-message {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
  padding: 1rem 0;
}

.modal-message.success {
  color: #28a745;
}

.modal-message.error {
  color: #dc3545;
}
