@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

* {
  padding: 0;
  margin: 0;
  outline: none;
  border: none;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #18181B;
}

img {
  width: 100%;
}

header nav {
  max-width: 100%;
  margin: auto;
  padding: 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(24, 24, 27, 0.8);
}

.nav-logo {
  max-width: 200px;
  padding-left: 1rem;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-left: auto;
  padding-right: 2rem;
}

.link a {
  position: relative;
  padding-bottom: none;
  color: #fff;
}

.link a::after {
  content: "";
  position: absolute;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #1d4ed8;
  transition: all 0.3s ease;
}

.link a:hover::after {
  width: 100%;
}

.loading-screen {
  position: relative;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
  background-color: #040019;
  width: 100%;
  height: 100%;
  transform: scaleY(0) skewX(0);
  transform-origin: top left;
}

.loading-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 10;
  pointer-events: none;
}

.heading-container {
  max-width: 80%;
  margin: auto;
  position: relative;
  padding-top: 40px;
}

footer {
  max-width: 100%;
  margin: auto;
  border-top: 1px solid #030303;
  margin-top: 40px;
}

footer ul {
  list-style: none;
  text-align: center;
}

footer ul li {
  display: inline-block;
  margin-right: 20px;
}

footer ul li a {
  color: black;
}

footer ul li a:hover {
  text-decoration: underline;
}

.projects {
  margin-top: 3rem;
  display: grid;
  justify-content: space-between;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.projects .card {
  padding: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  margin: 0.5rem;
  border: 2px solid transparent;
  border-radius: 15px;
  transition: all 0.3s ease;
  background-color: #27272a;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.projects .card:hover {
  border-color: #fff;
  background-color: #27272a;
}

.projects .card iconify-icon {
  display: inline-block;
  background-color: #1e40af;
  padding: 2px 9px;
  margin-bottom: 0.75rem;
  font-size: 1.75rem;
  color: #fff;
  border-radius: 5px;
}

.projects .card h4 {
  margin-bottom: 0.5rem;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
}

.projects .card p {
  color: #ffffff;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.projects .card a {
  color: #fff;
  transition: all 0.3s ease;
  position: flex-end;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.projects .card a:hover {
  color: #1e40af;
}

.projects .card .top-of-image {
  position: relative;
  text-align: left;
  bottom: 10px;
}

.projects .card .content {
  flex: 1;
}

.projects .card .img-content {
  height: 200px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.projects .card .img-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.contact .card {
  padding: 3rem 2rem;
  background-color: #27272a;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.contact .card:hover {
  background-color: #323232;
  border-color: #fff;
}

.contact .card .content {
  flex: 1;
  margin-bottom: 2rem;
}

.contact .card h4 {
  margin-bottom: 1rem;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 500;
}

.contact .card h3 {
  color: #fff;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 600;
}

.contact .card p {
  color: #fff;
  margin-bottom: 0.75rem;
}

.contact .card a {
  text-align: center;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact .card p i {
  color: #ccc;
  font-size: 1.2rem;
  margin-right: 0.3rem;
}

.contact .card button {
  color: #fff;
  background-color: transparent;
  border: 2px solid #fff;
}

.contact .card button:hover {
  background-color: #1e40af;
  border-color: #1e40af;
}

footer {
  position: relative;
  display: grid;
  grid-template-columns: 400px repeat(3, 1fr);
  gap: 2rem;
}

.copyright {
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
  color: #fff;
  font-size: 0.8rem;
  text-align: center;
}

.btn {
  display: inline-block;
  white-space: nowrap;
  padding: 1rem 2rem;
  font-size: 1rem;
  color: #fff;
  background-color: #27272a;
  border: 1px solid #fff;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  background-color: #1d4ed8;
  color: #fff;
}

section {
  height: 100vh;
  padding-top: 6rem;
}

nav.transparent {
  background-color: transparent;
}

.homepage-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
}

.text-content {
  flex: 1;
  max-width: 600px;
  padding-right: 2rem;
}

.image-content {
  flex: 1;
  padding-left: 2rem;
}

.image-content img {
  width: 100%;
}

.blur {
  position: absolute;
  box-shadow: 0 0 1000px 100px #17027e;
  z-index: -100;
}

header .container,
section .container {
  position: relative;
  padding-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 2rem;
}

.header {
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  line-height: 4rem;
  text-align: center;
  margin: 0 auto;
  align-items: center;
  gap: 2rem;
}

header .content h4 {
  margin-bottom: 1rem;
  color: #ccc;
  font-size: 1rem;
  font-weight: 600;
}

header .content h1 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 3rem;
  font-weight: 700;
  line-height: 4rem;
}

header .content h1 span {
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px #fff;
}

header .content p {
  margin-bottom: 2rem;
  color: #ccc;
}

header .image {
  position: relative;
}

header .image::before {
  content: "o";
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 56rem;
  font-weight: 400;
  line-height: 15rem;
  color: #5D5D5D;
  opacity: 0.2;
  z-index: -1;
}

header .image img {
  margin: auto;
  display: block;
  max-width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  margin-top: 100px;
}

section h2 .header {
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  line-height: 4rem;
  text-align: center;
}

section .header {
  margin-bottom: 1rem;
  color: #fff;
  text-align: center;
  font-size: 2.25rem;
  font-weight: 600;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Tablet and Desktop Navigation */
@media (max-width: 1024px) {
  .heading-container {
    max-width: 90%;
  }
}

/* Tablet (769px - 1024px) */
@media (max-width: 1024px) {
  header nav {
    padding: 1rem;
    gap: 1rem;
  }

  .nav-logo {
    max-width: 150px;
  }

  .nav-links {
    gap: 2rem;
    padding-right: 1rem;
  }

  .projects {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }

  .projects .card {
    margin: 0.25rem;
  }

  .contact {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  section .header {
    font-size: 2rem;
  }

  header .content h1 {
    font-size: 2.5rem;
    line-height: 3rem;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  header .container,
  section .container {
    gap: 1.5rem;
  }
}

/* Small Tablet and Large Mobile (481px - 768px) */
@media (max-width: 768px) {
  .heading-container {
    max-width: 95%;
  }

  header nav {
    padding: 1rem;
  }

  .nav-logo {
    max-width: 120px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    background-color: rgba(24, 24, 27, 0.95);
    width: 100%;
    gap: 0;
    padding: 1rem;
    margin-left: 0;
    border-top: 1px solid #333;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid #333;
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links li a {
    display: block;
  }

  .hamburger {
    display: flex;
  }

  section {
    height: auto;
    padding-top: 4rem;
    padding-bottom: 2rem;
  }

  header .container,
  section .container {
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }

  header .image {
    grid-area: auto;
  }

  header .image img {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    display: block;
    margin-top: 2rem;
  }

  header .image::before {
    font-size: 25rem;
    line-height: 10rem;
  }

  header .content h1 {
    font-size: 2rem;
    line-height: 2.5rem;
  }

  header .content p {
    font-size: 0.95rem;
  }

  section .header {
    font-size: 1.75rem;
  }

  .projects {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 2rem;
  }

  .projects .card {
    margin: 0;
    padding: 0.75rem;
  }

  .projects .card h4 {
    font-size: 1rem;
  }

  .projects .card p {
    font-size: 0.85rem;
  }

  .projects .card .img-content {
    height: 150px;
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .contact .card {
    padding: 2rem 1.5rem;
  }

  .contact .card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
  }

  footer .column {
    text-align: center;
  }

  footer .logo {
    max-width: 100px;
    margin: auto;
  }
}

/* Mobile (320px - 480px) */
@media (max-width: 480px) {
  .heading-container {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  header nav {
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .nav-logo {
    max-width: 100px;
    padding-left: 0.5rem;
  }

  .nav-links {
    top: 60px;
  }

  .link a {
    font-size: 0.95rem;
  }

  section {
    padding-top: 3.5rem;
    padding-bottom: 1.5rem;
    min-height: auto;
  }

  header .container {
    padding-top: 2rem;
    gap: 1rem;
  }

  header .content h1 {
    font-size: 1.5rem;
    line-height: 2rem;
    margin-bottom: 0.75rem;
  }

  header .content h4 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  header .content p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  header .image img {
    max-width: 100%;
    margin-top: 1rem;
  }

  header .image::before {
    font-size: 20rem;
    line-height: 8rem;
  }

  section .header {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  section .container {
    padding-top: 2rem;
    gap: 1rem;
  }

  .projects {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: 1.5rem;
  }

  .projects .card {
    margin: 0;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .projects .card iconify-icon {
    padding: 2px 6px;
    font-size: 1.25rem;
  }

  .projects .card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
  }

  .projects .card p {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }

  .projects .card .img-content {
    height: 130px;
    margin-bottom: 0.75rem;
  }

  .projects .card .visit-link {
    margin-top: auto;
  }

  .contact {
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .contact .card {
    padding: 1.5rem 1rem;
  }

  .contact .card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
  }

  .contact .card h4 {
    font-size: 0.95rem;
  }

  .contact .card p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    min-height: 40px;
    width: 100%;
  }

  footer {
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  footer .logo {
    max-width: 80px;
    margin: auto;
  }

  .copyright {
    padding: 0.75rem 0.5rem;
    font-size: 0.75rem;
  }
}

a {
  text-decoration: none;
  color: white;
}
