/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root {
  --primary: #0072ff;
  --secondary: #00c6ff;
  --bg-light: #f9f9f9;
  --text-dark: #222;
}

body {
  background: var(--bg-light);
  color: var(--text-dark);
  scroll-behavior: smooth;
}

/* HEADER */
header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  text-align: center;
  padding-bottom: 2rem;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 1rem;
  flex-wrap: wrap;
}

.hero-text h1 {
  font-size: 2.5rem;
}

.hero-text p {
  font-size: 1.1rem;
  margin: 0.5rem 0 1.2rem;
}

.hero-image img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid white;
  object-fit: cover;
}

header nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

header nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

header nav a:hover {
  color: #ffe600;
}

/* SECTIONS */
section {
  padding: 4rem 1rem;
}

.container {
  max-width: 1000px;
  margin: auto;
}

h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 2rem;
}

/* PROJECTS */
.projects-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-10px);
}

.icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  margin-top: 1rem;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  transform: scale(1.05);
}

/* CONTACT FORM */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: auto;
}

form input,
form textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
}

form button {
  font-size: 1rem;
  cursor: pointer;
}

/* FOOTER */
footer {
  background: #111;
  color: white;
  text-align: center;
  padding: 1.5rem;
}

.socials {
  margin-top: 1rem;
}

.socials a {
  color: white;
  margin: 0 10px;
  font-size: 1.5rem;
  transition: 0.3s;
}

.socials a:hover {
  color: var(--secondary);
}

/* ANIMATIONS */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards;
}

.fade-in.delay-1 { animation-delay: 0.2s; }
.fade-in.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
