* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: "Quicksand", sans-serif;
  text-decoration: none;
}

body {
  overflow-x: hidden;
  background-color: #f9f9f9;
}

/* ===== Header Section ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 20px 0;
  width: 100%;
  background-color: #eaf3ff;
  border-bottom: 0.5px solid #000000;
}

.wrapper {
  width: 1280px;
  max-width: 95%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo i {
  height: 45px;
  width: 45px;
  background-color: #007ced;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
  padding: 10px;
  margin-right: 5px;
  cursor: pointer;
  text-align: center;
}

.logo .logo-text {
  font-size: 24px;
  font-weight: 500;
  color: #000000;
}

/* Navigation */
nav .navlinks {
  list-style-type: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

nav .navlinks li {
  display: inline-block;
}

.navlinks li a {
  color: #000000;
  margin-right: 2.5rem;
  position: relative;
  transition: color 0.3s ease;
  font-weight: bold;
}

.navlinks li a:hover {
  color: #007ced;
}

.navlinks li a.active {
  color: #007ced;
  font-weight: bold;
}

.navlinks li a.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #007ced;
  animation: underline 0.3s ease;
}

@keyframes underline {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* ===== Hero Section (Aside) ===== */
aside.hero-header {
  width: 100%;
  min-height: 100vh;
  background: #f0f8ff;
  color: #ffffff;
  display: flex;
  align-items: center;
}

.container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-top: 4rem;
  flex-wrap: wrap;
}

.hero-pic {
  width: 350px;
  height: 450px;
  border-radius: 10%;
  overflow: hidden;
  border: 2px solid #80c1ff;
  box-shadow: 5px 7px 25px #80c1ff;
}

.hero-pic img {
  height: 140%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  transition: 0.5s;
}

.hero-pic img:hover {
  transform: scale(1.2);
}

.hero-text {
  max-width: 500px;
  display: flex;
  flex-direction: column;
  margin-left: 100px;
}

.hero-text h5 {
  color: black;
  font-size: 16px;
}

.hero-text h5 span {
  color: #007ced;
}

.hero-text h1 {
  color: #007ced;
  font-size: 3rem;
}

.hero-text p {
  color: black;
}

/* Buttons */
.btn-group {
  margin: 45px 0;
}

.btn-group .btn {
  border-color: #d5d5d5;
  color: #fff;
  background-color: #007ced;
  padding: 12px 25px;
  margin: 5px 0;
  margin-right: 7px;
  border-radius: 30px;
  border: 2px solid #e5e5e5;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-group .btn:hover {
  background-color: #007ced;
  transform: translateY(-2px);
}

.btn.active {
  border-color: #007ced;
}

/* Social Icons */
.hero-text .social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.hero-text .social i {
  font-size: 3rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.hero-text .social i:hover {
  transform: scale(1.2);
}

/* ===== Portfolio Section (Article) ===== */
article.portfolio-section {
  padding: 80px 0;
  background-color: #f0f8ff;
  text-align: center;
}

article.portfolio-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #007ced;
}

article.portfolio-section p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 40px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 0 20px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(138, 7, 7, 0.2);
}

.portfolio-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay .btn {
  background-color: #007ced;
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.portfolio-overlay .btn:hover {
  background-color: #80c1ff;
  color: #fff;
}

/* ===== Contact Section ===== */
.contact-section {
  padding: 80px 0;
  background-color: #f0f8ff;
  text-align: center;
}

.contact-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #007ced;
}

.contact-section p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 40px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #007ced;
  box-shadow: 0 0 8px rgba(0, 124, 237, 0.3);
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form button {
  padding: 10px 20px;
  background-color: #007ced;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-form button:hover {
  background-color: #005bb5;
  transform: translateY(-2px);
}

/* ===== Footer Section ===== */
.footer-section {
  background-color: #eaf3ff;
  color: #fff;
  padding: 30px 0;
}

.footer-section .wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* About Us */
.footer-about {
  flex: 1;
  max-width: 300px;
  text-align: center;
}

.footer-about h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #007ced;
}

.footer-about p {
  font-size: 1rem;
  color: #000000;
  line-height: 1.6;
}

/* Alternative Link */
.footer-links {
  flex: 1;
  max-width: 300px;
  text-align: center;
}

.footer-links h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #007ced;
}

.footer-links ul {
  list-style-type: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  color: #000000;
  font-size: 1rem;
  font-weight: bold;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: #007ced;
}

/* Follow Me */
.footer-social {
  flex: 1;
  max-width: 300px;
  text-align: center;
}

.footer-social h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #007ced;
}

.footer-social .social-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.footer-social .social-icons a {
  font-size: 1.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social .social-icons a:hover {
  transform: scale(1.2);
}

.footer-social .social-icons .fa-github {
  color: #333;
}

.footer-social .social-icons .fa-linkedin {
  color: #0a66c2;
}

.footer-social .social-icons .fa-instagram {
  color: #e4405f;
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  border-top: 1px solid #444;
  padding-top: 15px;
}

.footer-bottom p {
  font-weight: bold;
  color: #000000;
}

/* Responsive Design */
@media (max-width: 768px) {
  .wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo {
    margin-bottom: 20px;
  }

  .navlinks {
    flex-direction: column;
    align-items: flex-start;
  }

  .navlinks li {
    margin-bottom: 10px;
  }

  .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    margin-left: 0;
    margin-top: 20px;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-about,
  .footer-links,
  .footer-social {
    max-width: 100%;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .hero-pic {
    width: 250px;
    height: 350px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 0.9rem;
  }

  .btn-group .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 0 10px;
  }
}
