@font-face {
  font-family: "Atlantis";
  src: url("fonts/Atlantis.ttf") format("truetype");
}

body {
  margin: 0;
  background-color: #CADC9F;
  font-family: "Atlantis", sans-serif;
  color: #0f380f;
  font-size: 18px;
}

.top-bar {
  background-color: #0f380f;
  padding: 30px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.portal-button {
  background-color: transparent;
  color: #CADC9F;
  text-decoration: none;
  padding: 12px 24px;
  border: 2px solid #CADC9F;
  border-radius: 4px;
  font-size: 1.6rem;
  transition: all 0.3s ease;
}

.portal-button:hover {
  background-color: #CADC9F;
  color: #0f380f;
}

.welcome-text {
  color: #CADC9F;
  font-size: 1.8rem;
  font-weight: bold;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

.Title {
  text-align: center;
  margin: 80px 0 50px;
  position: relative;
}

.Title h1 {
  font-size: 4.5rem;
  letter-spacing: 0.16em;
  position: relative;
  display: inline-block;
}

.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: #0f380f;
  animation: sparkle 2s infinite;
}

.sparkle::before,
.sparkle::after {
  content: '';
  position: absolute;
  background-color: #0f380f;
}

.sparkle::before {
  width: 8px;
  height: 2px;
  top: 3px;
  left: 0;
}

.sparkle::after {
  width: 2px;
  height: 8px;
  top: 0;
  left: 3px;
}

.sparkle:nth-child(1) {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.sparkle:nth-child(2) {
  top: 20%;
  right: 10%;
  animation-delay: 0.5s;
}

.sparkle:nth-child(3) {
  top: 60%;
  left: 15%;
  animation-delay: 1s;
}

.sparkle:nth-child(4) {
  top: 70%;
  right: 8%;
  animation-delay: 1.5s;
}

.sparkle:nth-child(5) {
  top: 40%;
  left: 8%;
  animation-delay: 0.8s;
}

.sparkle:nth-child(6) {
  top: 50%;
  right: 12%;
  animation-delay: 1.3s;
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1) rotate(180deg);
  }
}

.hero {
  padding: 80px 0;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.TMWMS {
  font-size: 2.8rem;
  position: relative;
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, #0f380f 0%, #1a4d1a 100%);
  color: #CADC9F;
  border: 3px solid #0f380f;
  box-shadow:
    inset 0 0 0 2px #CADC9F,
    4px 4px 0 0 #8fac4e;
  clip-path: polygon(
    0 8px, 8px 8px, 8px 0,
    calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px,
    100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 100%,
    8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px)
  );
}


.intro {
  font-size: 1.6rem;
  line-height: 1.75;
  max-width: 800px;
}

section h2 {
  font-size: 2.8rem;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

section h2::before,
section h2::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: #0f380f;
  top: 50%;
  transform: translateY(-50%);
}

section h2::before {
  left: -30px;
  box-shadow:
    0 0 0 2px #0f380f,
    4px 0 0 0 #CADC9F,
    -4px 0 0 0 #CADC9F,
    0 4px 0 0 #CADC9F,
    0 -4px 0 0 #CADC9F;
}

section h2::after {
  right: -30px;
  box-shadow:
    0 0 0 2px #0f380f,
    4px 0 0 0 #CADC9F,
    -4px 0 0 0 #CADC9F,
    0 4px 0 0 #CADC9F,
    0 -4px 0 0 #CADC9F;
}


.profile-img {
  width: 350px;
  height: auto;
  border: 4px solid #0f380f;
  box-shadow:
    inset 0 0 0 3px #CADC9F,
    8px 8px 0 0 #8fac4e;
  position: relative;
}

.TIS,
.SkillsSection,
.ProjectsSection,
.contactsection {
  padding: 90px 0;
  position: relative;
}

.TIS::before,
.SkillsSection::before,
.ProjectsSection::before,
.contactsection::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 2px,
    rgba(15, 56, 15, 0.03) 2px,
    rgba(15, 56, 15, 0.03) 4px
  );
  pointer-events: none;
  z-index: 1;
}

.TIS .container,
.SkillsSection .container,
.ProjectsSection .container,
.contactsection .container {
  position: relative;
  z-index: 2;
}

.TIS p {
  max-width: 1000px;
  font-size: 1.5rem;
  line-height: 1.7;
}

.skills-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
}

.skills-list li {
  font-size: 1.5rem;
  margin-bottom: 0;
  padding: 15px 20px;
  background-color: #0f380f;
  color: #CADC9F;
  border: 3px solid #CADC9F;
  position: relative;
  transition: all 0.2s ease;
}

.skills-list li::before {
  content: '▸';
  margin-right: 10px;
  font-size: 1.2rem;
}

.skills-list li:hover {
  transform: translateX(5px);
  box-shadow: -4px 4px 0 0 #8fac4e;
}


a {
  color: #0f380f;
  text-decoration: underline;
  transition: all 0.2s ease;
}

a:hover {
  color: #1a4d1a;
  text-shadow: 1px 1px 0 #CADC9F;
}

.ProjectsSection ul {
  list-style: none;
  padding: 0;
}

.ProjectsSection li {
  font-size: 1.5rem;
  margin-bottom: 20px;
  padding: 20px;
  background-color: #0f380f;
  border: 3px solid #CADC9F;
  transition: all 0.2s ease;
}

.ProjectsSection li:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 0 0 #8fac4e;
}

.ProjectsSection a {
  color: #CADC9F;
  text-decoration: none;
  font-weight: bold;
  display: block;
}

.ProjectsSection a:hover {
  color: #fff;
  text-shadow: 0 0 8px #CADC9F;
}

.contactsection p {
  font-size: 1.4rem;
  line-height: 2;
}

.separator {
  width: 70%;
  height: 2px;
  margin: 0 auto;
  background: repeating-linear-gradient(
    to right,
    #0f380f,
    #0f380f 6px,
    transparent 6px,
    transparent 12px
  );
  opacity: 0.35;
}

@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .intro {
    max-width: 100%;
  }

  .profile-img {
    width: 250px;
  }
}
