* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/*  TOGGLING DARK/LIGHT MODE  */
#color-change-content {
	display: flex;
	justify-content: flex-end;
}

#color-change-text {
	margin: 5px;
	height: 35px;
	display: flex;
	justify-content: center;
	align-items: center;
	color: white;
	font-size: 12px;
}

#color-button {
	margin: 5px;
	width: 35px;
	height: 35px;

	border: 1px solid black;
	border-radius: 50%;
	cursor: pointer;
	background-color: #f5f5f5;
	box-shadow: 1px 1px 1px grey;
	transition: 0.5s all;
}
/*
#color-button:hover {
	background-color: #CDCDCD;
}
*/
#color-button:hover,
#color-button:focus {
  box-shadow: 0 0.5em 0.5em -0.4em var(--hover);
  transform: translateY(-0.15em);
  background-color: #CDCDCD;
}

#color-icon {
	width: 25px;
	height: 25px;
	transform: translate(4px, 4px);
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  color: #e0e0e0;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.1) 1px,
    transparent 1px
  );
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

.hero-content {
  text-align: center;
  z-index: 1;
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #6366f1, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lightModeTitleText {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  background: linear-gradient(145deg, #ec4899, #004e85, #1e1668);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: 1.3rem;
  color: #a0aec0;
  margin-bottom: 2rem;
}

.hero .description {
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.8;
  color: #cbd5e0;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.scroll-indicator::after {
  content: "↓";
  font-size: 2rem;
  color: #6366f1;
}

/* Skills Section */
.skills-section {
  padding: 100px 0;
  background: rgba(17, 24, 39, 0.5);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #f7fafc;
}

.skills-category {
  margin-bottom: 4rem;
}

.category-title {
  font-size: 1.5rem;
  color: #6366f1;
  margin-bottom: 1.5rem;
  padding-left: 10px;
  border-left: 4px solid #6366f1;
}

.skill-item {
  margin-bottom: 1.5rem;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.skill-name {
  color: #e2e8f0;
  font-weight: 500;
}

.skill-level {
  color: #8b5cf6;
  font-weight: 600;
}

.skill-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 10px;
  transition: width 1.5s ease;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* About Section */
.about-section {
  padding: 100px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.about-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 15px;
  border: 2px solid rgba(99, 102, 241, 0.2);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.about-card-title {
  color: #8b5cf6;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.about-card p {
  line-height: 1.6;
  color: #cbd5e0;
}

/* Contact Section */
.contact-section {
  padding: 100px 0;
  background: rgba(17, 24, 39, 0.5);
}

.contact-form {
  max-width: 600px;
  margin: 3rem auto 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.label-contact {
	display: block;
	margin-bottom: 0.5rem;
	color: #e2e8f0;
	font-weight: 500;
}
.label-contact-dark {
	display: block;
	margin-bottom: 0.5rem;
	color: #481475;
	font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(99, 102, 241, 0.3);
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(45deg, #6366f1, #8b5cf6);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

.success-message {
  display: none;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #6ee7b7;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  text-align: center;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

/*
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #f7fafc;
}
*/

/*
.container {
  max-width: 2000px;
  margin: 0 auto;
  padding: 0 20px;
}
*/
.portfolio-section {
  padding: 100px 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.portfolio-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem;
  max-height: 1000px;
  width: auto;
  margin: 5%;
  border-radius: 15px;
  border: 2px solid rgba(99, 102, 241, 0.2);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  text-align: center;
  cursor: pointer;
}

.portfolio-card h1{
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}
.card-picture {
  width: 90%;
  border: 2px solid rgba(99, 102, 241, 0.3);
  border-radius: 25px;
}

.project-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 8px 16px;
  border-radius: 8px;
  background: #6366f1;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.project-btn:hover {
  background: #4f46e5;
}

#portfolio-modal {
  display: none; /* Hidden by default * - none-to not show - block-to show*/
  background-color: rgba(28, 9, 87, 0.5);
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 20px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  text-align: center;
}

#por-mod-container {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  width: 75%;
  margin: auto;
  overflow: auto;
  border: 2px solid rgba(99, 102, 241, 0.3);
  border-radius: 25px;
  text-align: center;
  padding-bottom: 20px;
}

#por-mod-container:hover {
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

#por-mod-container:hover #modal-picture {
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.8);
}

/* Portfolio project gallery navigation buttons */
#prev, #next {
  background-color: white;
  border: 1px solid black;
  width: 3.5em;
  height: 3.5em;
  margin: auto;
  border-radius: 50%;
}

#prev {
  margin-right: -25px;
  z-index: 5;
  cursor: pointer;
}
#next {
  margin-left: -25px;
  z-index: 5;
  cursor: pointer;
}

#prev:hover, #next:hover {
  background-color: #302b63;
  border: 1.5px solid #efedff;
  color: #efedff;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
  transition: 0.3s all ease-out allow-discrete;
}

#modal-picture {
  width: 70%;
  border: 2px solid rgba(99, 102, 241, 0.3);
  border-radius: 25px;
  animation: fadeInRight 1s ease;
}

@keyframes fadeInRight {
  from {
  opacity: 0;
  transform: translateX(-15px);
  }
  to {
  opacity: 1;
  transform: translateX(0);
  }
}

@keyframes fadeInLeft {
  from {
  opacity: 0;
  transform: translateX(15px);
  }
  to {
  opacity: 1;
  transform: translateX(0);
  }
}

/* Card modal close button */
.close {
  color: #aaaaaa;
  float: right;
  margin-right: 20px;
  font-size: 38px;
  font-weight: 900;
}
.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.technology-icons{
  width: 5%;
}

.technology-icons:hover,
.technology-icons:focus {
  transform: translateY(-0.15em);
  transition: 0.4s all;
}

#por-mod-images {
  display: flex;
}

@media (max-width: 768px) {

  #por-mod-container {
    width: 95%;
  }

  #por-mod-title {
    font-size: 1.4rem;
  }

  #por-mod-about,
  #por-mod-technologies,
  #por-mod-features-challanges {
    font-size: 0.9rem;
  }

  #prev, #next {
    width: 2.5em;
    height: 2.5em;
  }

  #modal-picture {
    width: 95%;
  }

}