@import url("https://fonts.googleapis.com/css2?family=Anton&family=Roboto:wght@300;400;500&display=swap");

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

body {
  font-family: "Roboto", sans-serif;
  background-color: #f5f5f5;
  color: #111;
  scroll-behavior: smooth;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.loader {
  width: 50px;
  height: 50px;
  border: 5px solid #fff;
  border-top: 5px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Header */
header {
  display: flex;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid #ddd;
}
header .logo {
  font-family: "Anton", sans-serif;
  font-size: 2rem;
  letter-spacing: 2px;
}
header nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}
header nav a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
  text-transform: uppercase;
  transition: color 0.3s;
}
header nav a:hover {
  color: #555;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
  padding: 3rem;
  align-items: center;
  gap: 2rem;
}
.hero-content h1 {
  font-family: "Anton", sans-serif;
  font-size: 5rem;
  text-transform: uppercase;
  line-height: 1;
}
.hero-content p {
  margin: 1rem 0;
  font-size: 1.2rem;
  color: #555;
}
.hero-content .btn {
  display: inline-block;
  padding: 10px 20px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}
.hero-content .btn:hover {
  background: #333;
}
.hero-image img {
  width: 644px;
  height: 444px;
  object-fit: cover;
  border-top-right-radius: 50px;
  border-bottom-left-radius: 50px;
}

/* Sections */
section {
  padding: 4rem 3rem;
}
h2 {
  font-family: "Anton", sans-serif;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* About */
.about {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 50vh;
  padding: 2rem 3rem;
}

.about p {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: #555;
  font-size: 1.1rem;
}

/* Projects */
.projects .project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.project-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.project-item:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
.project-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.project-item .btn {
  display: inline-block;
  padding: 8px 16px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}
.project-item .btn:hover {
  background: #333;
}

/* Contact */
.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}
.contact input,
.contact textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.contact button {
  padding: 10px 20px;
  background: #111;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}
.contact button:hover {
  background: #333;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem 3rem;
  background: #111;
  color: #fff;
}
footer a {
  color: #fff;
  margin: 0 0.5rem;
  text-decoration: none;
  transition: color 0.3s;
}
footer a:hover {
  color: #bbb;
}

.btn {
  border-top-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
