:root {
  --bg: rgb(247, 246, 246);
  --text: #111;
  --gray: #555;
  --border: #e5e5e5;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  --radius: 12px;
  --max-width: 1100px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}

section {
  width: 100%;
  padding: 80px 20px;
  border-bottom: 1px solid var(--border);
}

.container {
  max-width: var(--max-width);
  margin: auto;
}

h1,
h2,
h3 {
  font-weight: 600;
}
h1 {
  font-size: 2.8rem;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
p {
  color: var(--gray);
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: 0.2s;
  background: white;
}
.btn:hover {
  background: #f7f7f7;
  transform: scale(1.1);
  transition: transform 0.2s ease-in-out;
}

/* Hero */
.hero {
  text-align: center;
  padding: 200px 0px 80px 0px;
}

/* Projects */
.project-card {
  border: 1px solid var(--border);
  background: white;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: 0.2s;
  text-align: center;
}

.project-card img {
  width: 60%;
  height: 350px;
  object-fit: contain;
}

.project-card:hover {
  transform: scale(1.02);
  transition: transform 0.2s ease-in-out;
}
.tags {
  margin: 10px 0;
  font-size: 0.9rem;
}
.project-links a {
  margin-right: 12px;
}

/* About */
.about-wrap {
  display: flex;
  gap: 30px;
}
.about-photo img {
  width: 255px;
  height: 320px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.about-photo:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease-in-out;
}
.skills-grid {
  display: grid;
  margin-top: 20px;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

/* Resume */
.resume-section ul {
  margin: 10px 0 20px 20px;
}

/* Contact */
form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  max-width: 500px;
}
input,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
textarea {
  height: 140px;
}

.socials a {
  margin-right: 15px;
}

/* Navigation */
.site-nav {
  width: 100%;
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  background: #fff;
  z-index: 10;
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}
.nav-links {
  display: flex;
  gap: 25px;
}
.brand {
  font-weight: 600;
}

/* Utilities */
.btn--mt {
  margin-top: 25px;
}
.mt-20 {
  margin-top: 20px;
}

/* Contact section */
#contact {
  background: white;
}
.contact-title {
  text-align: center;
  margin-bottom: 40px;
}
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: center;
}
.contact-card {
  flex: 1;
  min-width: 320px;
  max-width: 520px;
  background: transparent;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  box-shadow: none;
}
.contact-heading {
  margin-bottom: 20px;
}
.contact-form {
  display: grid;
  gap: 18px;
  max-width: 500px;
}
.textarea-lg {
  height: 160px;
}
.social-card {
  flex: 1;
  min-width: 260px;
  max-width: 350px;
  background: transparent;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  box-shadow: none;
  height: fit-content;
}
.social-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1.05rem;
}
.social-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.social-icon {
  font-size: 1.5rem;
}

.btn--w150 {
  width: 150px;
}

/* Footer */
.site-footer {
  padding: 20px 20px;
  text-align: center;
  background: var(--bg);
}

/* Animated text styles */
.animated-text {
  display: inline-block;
  margin-left: 10px;
  color: var(--gray);
  font-size: 2.5rem;
  animation: fadeInOut 3s ease-in-out infinite;
}

@keyframes fadeInOut {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 150px 20px 60px 20px;
  }

  .about-wrap {
    flex-direction: column;
    align-items: center;
  }

  .about-photo img {
    width: 200px;
    height: auto;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .contact-grid {
    flex-direction: column;
    gap: 30px;
  }

  .social-list {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .btn {
    padding: 10px 18px;
  }

  .project-card img {
    width: 100%;
    height: auto;
  }

  .social-item {
    font-size: 0.9rem;
  }
}
