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

:root {
  --primary-color: #00e8f8;
  --primary-dark: #00b8c4;
  --background-color: #1f252e;
  --background-light: #2a3240;
  --text-color: #ffffff;
  --text-secondary: #b0b0b0;
  --transition: all 0.3s ease-in-out;
}

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

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.2rem 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(31, 37, 46, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
}

.logo a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

.logo a:hover {
  color: var(--primary-color);
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  transition: var(--transition);
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

nav a:hover::after,
nav a.active::after {
  width: 70%;
}

nav a.active,
nav a:hover {
  color: var(--primary-color);
}

#click {
  display: none;
}

.menu {
  display: none;
  cursor: pointer;
}

.menu i {
  color: var(--primary-color);
  font-size: 1.8rem;
}

/* ===== SECTIONS ===== */
section {
  padding: 5rem 10%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.underline {
  height: 3px;
  width: 80px;
  background-color: var(--primary-color);
  margin: 0 auto;
  position: relative;
}

.underline::before {
  content: "";
  position: absolute;
  height: 7px;
  width: 7px;
  background-color: var(--primary-color);
  border-radius: 50%;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
}

/* ===== HOME ===== */
.home {
  padding-top: 8rem;
}

.main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.detail {
  flex: 1;
  min-width: 300px;
}

.main h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.main h1 span:first-child {
  font-size: 1.8rem;
  font-weight: 400;
  opacity: 0.9;
}

.highlight {
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 10px;
  background-color: rgba(0, 232, 248, 0.2);
  bottom: 5px;
  left: 0;
  z-index: -1;
  border-radius: 10px;
}

.main p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.social {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.social a {
  color: var(--primary-color);
  font-size: 1.2rem;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social a:hover {
  color: var(--background-color);
  background-color: var(--primary-color);
  box-shadow: 0 0 20px var(--primary-color);
  transform: translateY(-5px);
}

.cta-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--primary-color);
  color: var(--background-color);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--primary-color);
}

.cta-button:hover {
  background-color: transparent;
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 232, 248, 0.2);
}

.images {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  position: relative;
}

.profile-image {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--primary-color);
  box-shadow: 0 0 30px rgba(0, 232, 248, 0.3);
  transition: var(--transition);
}

.profile-image:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(0, 232, 248, 0.5);
}

/* ===== ABOUT ===== */
.about-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

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

.about-card {
  background-color: var(--background-light);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  border-bottom: 3px solid var(--primary-color);
}

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

.about-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.about-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== PROJECTS ===== */
.project-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.tab-btn {
  background-color: transparent;
  color: var(--text-color);
  border: 2px solid var(--primary-color);
  padding: 0.7rem 2rem;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
  background-color: var(--primary-color);
  color: var(--background-color);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* UI/UX Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  height: 250px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background-color: var(--background-light);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-card-content {
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.project-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.project-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.project-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 232, 248, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-card-overlay {
  opacity: 1;
}

.project-card-overlay span {
  color: var(--background-color);
  font-weight: 600;
  font-size: 1.2rem;
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--background-color);
  border-radius: 30px;
}

/* Graphic Design Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  height: 200px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item-content {
  height: 100%;
  width: 100%;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay span {
  color: var(--text-color);
  font-size: 0.9rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  animation: zoom 0.3s;
}

@keyframes zoom {
  from {
    transform: scale(0.1);
  }
  to {
    transform: scale(1);
  }
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close-modal:hover {
  color: var(--primary-color);
}

#modalCaption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* ===== CONTACT ===== */
.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--background-light);
  padding: 1.5rem 2rem;
  border-radius: 10px;
  min-width: 250px;
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-bottom: 3px solid var(--primary-color);
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.contact-social {
  display: flex;
  gap: 1.5rem;
}

.contact-social a {
  color: var(--primary-color);
  font-size: 1.5rem;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.contact-social a:hover {
  color: var(--background-color);
  background-color: var(--primary-color);
  box-shadow: 0 0 20px var(--primary-color);
  transform: translateY(-5px);
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--background-light);
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
}

/* ===== RESPONSIVE ===== */
@media only screen and (max-width: 992px) {
  header {
    padding: 1.2rem 5%;
  }

  section {
    padding: 5rem 5%;
  }

  .main h1 {
    font-size: 2.5rem;
  }
}

@media only screen and (max-width: 768px) {
  .menu {
    display: block;
  }

  nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--background-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 999;
  }

  #click:checked ~ nav {
    left: 0;
  }

  nav a {
    font-size: 1.2rem;
    margin: 1rem 0;
  }

  .main {
    flex-direction: column-reverse;
    text-align: center;
  }

  .social {
    justify-content: center;
  }

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

  .project-grid,
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media only screen and (max-width: 576px) {
  .main h1 {
    font-size: 2rem;
  }

  .main h1 span:first-child {
    font-size: 1.5rem;
  }

  .profile-image {
    width: 280px;
    height: 280px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .contact-item {
    width: 100%;
  }
}
