/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  color: #323232;
  width: 100vw;
  min-width: 360px;
  overflow-x: hidden;
  font-family: sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header Section */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #161616;
  color: #f0f0f0;
  padding: 8px 16px;
  height: 80px;
}

header div {
  display: inline-flex;
  justify-content: space-around;
  align-items: center;
  gap: 8px;
}

header div h1 {
  font: 48px "Courier New";
  text-transform: uppercase;
  text-shadow:
    0 0  8px #0c200f,
    0 0 16px #0c200f,
    0 0 24px #0c200f,
    0 0 32px #0d2818,
    0 0 40px #0d2818;
  filter: blur(0.5px);
}

.logo {
  display: block;
  width: 64px;
  height: 64px;
}

header nav {
  display: flex;
  gap: 12px;
}

header nav a {
  padding: 12px 20px;
  font-weight: 600;
  transition: all 0.3s ease;
  background: #323232;
  border-radius: 16px;
}

header nav a:hover {
  color: #88f8ff;
  background: #646464;
  text-decoration: underline wavy;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 112px 16px 80px;
  background: linear-gradient(128deg, #181818, #484848);
  color: #f8f8f8;
}

.hero h2 {
  font-size: 3.2em;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.6em;
  max-width: 576px;
  margin-bottom: 32px;
  color: #c8c8c8;
}

.hero-btn {
  padding: 16px 32px;
  background-color: #00c0cf;
  color: #0c0c0c;
  font-weight: bold;
  border-radius: 8px;
  transition: 0.4s;
}

.hero-btn:hover {
  background-color: #00d0d8;
  transform: translateY(-4px);
  box-shadow: 0 4px 16px #00f0ff;
}

/* Projects Section */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  padding: 80px 5%;
  background: #f8f8f8;
}

.card {
  background: #b0b0b0;
  padding: 24px 16px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 2px 16px #00f0ff;
  transition: 0.4s;
}

.card:hover {
  background-color: #c8c8c8;
  transform: translateY(-4px);
  box-shadow: 0 4px 16px #00f0ff;
}

.card h3 {
  margin-bottom: 8px;
  color: #004044;
}

.card p {
  color: #202224;
  margin-bottom: 16px;
}

.card a{
  padding: 8px 16px;
  background-color: #00a0ac;
  color: #0c0c0c;
  font-weight: bold;
  border-radius: 8px;
  transition: 0.4s;
 }

/* About Section */
.about {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 64px 8%;
  background: #eeeeee;
  border-radius: 64px;
  margin: 32px;
  min-width: 360px;
}

.about img {
  flex: 1 1 192px;
  border-radius: 64px;
  max-height: 512px;
  max-width: 512px;
  min-width: 256px;
  min-height: 256px;
}

.about-text {
  flex: 1 1 192px;
  min-width: 256px;
}

.about-text h2 {
  font-size: 2em;
  margin-top: 16px;
  margin-bottom: 16px;
}

.about-text p {
  color: #202224;
}

/* Contact Section */
.contact {
  padding: 64px 8%;
  text-align: center;
  background: linear-gradient(128deg, #404040, #484848);
  color: #c8c8c8;
}

.contact h2 {
  font-size: 2em;
  margin-bottom: 16px;
  color: #e0e0e0;
}

.contact p {
  margin-bottom: 24px;
  color: #d8d8d8;
}

.contact-btn {
  padding: 16px 32px;
  background-color: #00c0cf;
  color: #0c0c0c;
  font-weight: bold;
  border-radius: 8px;
  transition: 0.4s;
}

.contact-btn:hover {
  background-color: #00d0d8;
  transform: translateY(-4px);
  box-shadow: 0 4px 16px #00f0ff;
}

/* Footer Section */
footer {
  padding: 48px 8%;
  text-align: center;
  background: #181818;
  color: #8f8f8f;
}

/* Responsive Behaviour */
@media (max-width: 792px) {
  .logo {
    display: none;
  }

  header div {
    width: auto;
  }
  
  header nav {
	gap: 8px;
  }

  header div h1 {
    font: 32px courier-new;
  }
}

@media (max-width: 540px) {
  .logo {
    display: block;
  }
  
  header div h1 {
	display: none;
  }

  header div {
    width: auto;
  }
  
  header nav {
	gap: 8px;
  }
}

@media (max-width: 480px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 12px;
    gap: 8px;
  }

  header div {
    width: 100%;
    justify-content: center;
  }

  header nav {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
  }

  header nav a {
    display: block;
    width: 100%;
    text-align: center;
  }

  header div h1 {
	display: block;
	font: 40px courier-new;
  }

  .logo {
    display: block;
  }
}
