/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

.title:hover {
    text-shadow: 0 0 10px rgba(255,255,255,0.7);
    transition: 0.3s ease;
}

.title {
  font-size: 28px;
  font-weight: 700;
  position: relative;
  display: inline-block;
  color: #ffffff;
  letter-spacing: 1.5px;
}

.title.glitch {
  animation: glitch 500ms infinite;
}

@keyframes glitch {
  0% { text-shadow: 2px 0 red, -2px 0 cyan; }
  20% { text-shadow: -2px 0 red, 2px 0 cyan; }
  40% { text-shadow: 2px 0 blue, -2px 0 lime; }
  60% { text-shadow: -2px 0 purple, 2px 0 pink; }
  100% { text-shadow: 0 0 0; }
}




/* Body / Background */
body {
    font-family: Arial, sans-serif;
    background: #000000;
    color: #ffffff;

    /* Gives the whole page better readability */
    line-height: 1.6;
    font-size: 17px;
}


header {
  background: #151b2a;
  color: #e5e5e5;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
  padding: 20px 50px;
}


.title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1.5px;
  display: inline-block;
  font-size: 30px;
  line-height: 1.3;
}

.title .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
}


/* NAVIGATION LINKS */
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: rgb(0, 217, 255);
  font-weight: 500;
}

/* invisible underline */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: rgb(255, 255, 255);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

/* hover underline */
.nav-link:hover::after {
  transform: scaleX(1);
}


/* Sections */
section {
    padding: 80px 20px;   /* more breathing room */
}

.section-block {
    margin-top: 20px;
    margin-bottom: 40px;
}


/* Squares */
.square {
  background: #ffffff;
  color: #000000;
  padding: 40px;
  width: 80%;
  max-width: 850px;
  line-height: 1.6;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);

  opacity: 0;
  transform: translateX(-100px);

  transition: box-shadow 0.3s ease;
}

.square > *:not(:last-child) {
    margin-bottom: 15px;
}

.square h2 {
    font-size: 26px;
    margin-bottom: 18px;
    font-weight: 700;
}

.square p, .square li {
  margin-bottom: 16px;
}


.square ul {
    margin-left: 20px;
    margin-top: 10px;
}

.square li {
    margin-bottom: 8px;
    font-size: 17px;
}


.square:hover {
  box-shadow: 0 6px 25px rgba(255,255,255,0.15);
}

.square {
  position: relative;
  overflow: hidden;
}

.square::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(120deg, #6ab7ff, #ffffff, #6ab7ff);
  background-size: 300% 300%;
  animation: borderGlow 6s ease infinite;
  z-index: -1;
}

@keyframes borderGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}



/* Project cards */
.project-card a {
    display: inline-block;
    margin-top: 10px;

    padding: 8px 15px;
    border-radius: 6px;
    background: #007bff;
    color: white;
    font-weight: 600;

    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease;
}

.project-card a:hover {
    background: #005fcc;
    transform: scale(1.04);
}

.project-card {
    padding: 25px;
    margin: 25px 0;
}

.project-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.project-card p {
    margin-bottom: 12px;
    line-height: 1.5;
}


#backToTop {
  position: fixed;
  right: 25px;
  bottom: 25px;
  padding: 12px 16px;
  font-size: 18px;
  border: none;
  border-radius: 50%;
  background: #007bff;
  color: white;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.2s ease;
}

#backToTop:hover {
  transform: scale(1.15);
  background: #005fcc;
}

html {
  scroll-behavior: smooth;
}



/* Footer */
footer {
  background: #282c34;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 60px;
  font-size: 14px;
  letter-spacing: 0.5px;
}
