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

body {
  background: #0f172a;
  color: #e2e8f0;
  line-height: 1.6;
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* NAVBAR */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
}

nav ul li a {
  text-decoration: none;
  color: #e2e8f0;
  font-weight: 500;
  position: relative;
}

nav ul li a::after {
  content: "";
  width: 0;
  height: 2px;
  background: #38bdf8;
  position: absolute;
  left: 0;
  bottom: -5px;
  transition: 0.3s;
}

nav ul li a:hover::after {
  width: 100%;
}

/* HEADER */
#header {
  height: 100vh;
  background: linear-gradient(to right, #020617, #0f172a);
}

.header-text {
  margin-top: 15%;
}

.header-text p {
  font-size: 18px;
  color: #94a3b8;
}

.header-text h1 {
  font-size: 48px;
  margin-top: 10px;
}

.header-text span {
  color: #38bdf8;
}

/* ABOUT */
.about-me {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
}

#about-img img {
  width: 100%;
  border-radius: 15px;
}

#about-info h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

#about-info ul li {
  margin-bottom: 10px;
}

/* TABS */
.tab-title {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.tab-links {
  cursor: pointer;
  font-weight: 500;
  position: relative;
}

.tab-links::after {
  content: "";
  width: 0;
  height: 2px;
  background: #38bdf8;
  position: absolute;
  left: 0;
  bottom: -5px;
  transition: 0.3s;
}

.tab-links.active-link::after {
  width: 100%;
}

.tab-contents {
  display: none;
  margin-top: 20px;
}

.tab-contents.active-tab {
  display: block;
}

.tab-contents ul li {
  margin-bottom: 10px;
}

.tab-contents span {
  color: #38bdf8;
  font-weight: bold;
}

/* SERVICES */
#service {
  padding: 60px 0;
}

.sub-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  color: #38bdf8;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.service-list div {
  background: #1e293b;
  padding: 25px;
  border-radius: 15px;
  transition: 0.3s;
}

.service-list div:hover {
  transform: translateY(-10px);
  background: #334155;
}

.service-list i {
  font-size: 30px;
  margin-bottom: 15px;
  color: #38bdf8;
}

.service-list h2 {
  margin-bottom: 10px;
}

.service-list a {
  color: #38bdf8;
  text-decoration: none;
  font-size: 14px;
}

/* PORTFOLIO */
#portfolio {
  padding: 60px 0;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.work {
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.work img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: 0.5s;
}

.work:hover img {
  transform: scale(1.1);
}

.layer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(rgba(0,0,0,0.7), #38bdf8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: 0.4s;
  text-align: center;
}

.work:hover .layer {
  height: 100%;
}

.layer h3 {
  margin-bottom: 10px;
}

.layer a {
  margin-top: 10px;
  color: white;
  font-size: 18px;
}

/* BUTTON */
.btn {
  display: inline-block;
  background: #38bdf8;
  color: #0f172a;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  margin-top: 20px;
}

.btn:hover {
  background: #0ea5e9;
  color: white;
}

/* CONTACT */
.row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-left, .contact-right {
  flex: 1;
}

.contact-left p {
  margin: 10px 0;
}

.social-icons a {
  margin-right: 10px;
  font-size: 20px;
  color: #38bdf8;
}

form input, form textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: none;
  border-radius: 8px;
  background: #1e293b;
  color: white;
}

button {
  border: none;
  cursor: pointer;
}

/* FOOTER */
.copyright {
  text-align: center;
  padding: 20px;
  background: #020617;
  margin-top: 40px;
}
#hide {
  display: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .about-me {
    grid-template-columns: 1fr;
  
  }
  #hide {
    display: block;
  }

  .header-text h1 {
    font-size: 32px;
  }

  nav ul {
    flex-direction: column;
    position: absolute;
    right: -200px;
    top: 0;
    background: #020617;
    width: 200px;
    height: 100vh;
    padding-top: 50px;
    transition: 0.3s;
  }
}

.tab-links.active-link::after{
    width: 50%;
}