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

html {
  scroll-behavior: smooth;
}

body {
  background: #0c0808;
  color: #e35a0a;
}

/* Header */
#header {
  width: 100%;
  height: 100vh;
  background-image: url('bg.jpeg');
  background-size: cover;
  background-position: center;
  position: relative;
}

#header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 8, 8, 0.6); /* dark overlay for readability */
}

.container {
  padding: 10px 10%;
  position: relative;
  z-index: 2;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo{
  display: flex;
  height: 79px;

}
.logo img{
  height: 100%;
  border-radius: 50%;
}

nav ul li {
  display: inline-block;
  list-style: none;
  margin: 10px 20px;
}

nav ul li a {
  color: #fbfeff;
  text-decoration: none;
  font-size: 18px;
  position: relative;
}

nav ul li a::after {
  content: '';
  width: 0;
  height: 3px;
  background: #ff004f;
  position: absolute;
  left: 0;
  bottom: -6px;
  transition: 0.3s;
}

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

.header-text {
  margin-top: 20%;
  font-size: 20px;
  color: #fff;
  background: rgba(0,0,0,0.4);
  display: inline-block;
  padding: 15px 25px;
  border-radius: 8px;
}

.header-text h1 {
  font-size: 60px;
  margin-top: 20px;
}

.header-text h1 span {
  color: #ff004f;
}

/* About */
#about {
  padding: 80px 0;
  color: #ababaa;
}

.row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.about-col-1 {
  flex-basis: 35%;
}

.about-col-1 img {
  width: 100%;
  border-radius: 15px;
}

.about-col-2 {
  flex-basis: 60%;
}

.sub-title {
  font-size: 60px;
  font-weight: 600;
  color: #fff;
}

.tab-titles {
  display: flex;
  margin: 20px 0 40px;
}

.tab-links {
  margin-right: 50px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
}

.tab-links::after {
  content: '';
  width: 0;
  height: 3px;
  background: #ff004f;
  position: absolute;
  left: 0;
  bottom: -8px;
  transition: 0.5s;
}

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

.tab-contents {
  display: none;
}

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

.tab-contents ul li {
  list-style: none;
  margin: 10px 0;
}

.tab-contents ul li span {
  color: #ff004f;
  font-size: 14px;
}

/* Skills Section */
.skills-container {
  display: flex;
  gap: 40px;
  margin-top: 20px;
  flex-wrap: wrap; /* stacks on mobile */
}

.skills-box {
  flex: 1;
  background: #1e1e1e;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #550820;
}

.skills-box h3 {
  color: #ff004f;
  margin-bottom: 10px;
}

.skills-box ul {
  list-style: none;
  padding: 0;
}

.skills-box ul li {
  margin-bottom: 8px;
  color: #ddd;
}

/* --- PROJECTS --- */
#projects {
  padding: 0px 0;
  background-color: #0c0808;
  color: #fff;
  text-align: center;
}

/* Filter Buttons */
.filter-btns {
  text-align: center;
  margin-bottom: 30px;
}
.filter-btns button {
  margin: 5px;
  padding: 10px 20px;
  border: 1px solid #ff004f;
  background: transparent;
  color: #fff;
  cursor: pointer;
  border-radius: 25px;
  font-size: 14px;
  transition: all 0.3s ease;
}
.filter-btns button:hover,
.filter-btns button.active {
  background: #ff004f;
  color: #fff;
  transform: scale(1.05);
}

/* Project Slider */
.project-slider {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  padding: 10px;
  margin: auto;

}

.tight-section {
  margin-bottom: 20px;
  padding-bottom: 10px;
}

.project-list {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center; /* centers the cards */
  gap: 10px; /* optional: small gap between cards */
  transition: transform 0.5s ease-in-out;

}

.project-card {
  flex: 0 0 300px; 
  background: #1e1e1e;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #2a2a2a;
  transition: transform 0.5s, box-shadow 0.3s;
  margin: 0 -139px 6px 0px;
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.project-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
  color: #ff004f;
}

.project-card p {
  font-size: 14px;
  color: #ddd;
  line-height: 1.4;
}

.project-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 6px 18px rgba(255, 0, 79, 0.4);
}

/* Slider controls */
.slider-controls {
  text-align: center;
  margin-top: 20px;
}
.slider-controls button {
  background: #ff004f;
  color: #fff;
  border: none;
  padding: 12px 16px;
  margin: 0 5px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 18px;
  transition: background 0.3s;
}
.slider-controls button:hover {
  background: #e60043;
}

/* Dots / Pagination */
.project-dots {
  text-align: center;
  margin-top: 15px;
}
.project-dots .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  background: #666;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.project-dots .dot.active {
  background: #ff004f;
  transform: scale(1.2);
}

/* Buttons */
.btn {
  display: inline-block;
  border: 1px solid #ff004f;
  padding: 12px 35px;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  transition: background 0.5s, transform 0.3s;
}

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

.btn.btn2 {
  background: #ff004f;
}

/* Contact */
.contact-left {
  color: #fff;
  flex-basis: 35%;
}

.contact-right {
  flex-basis: 60%;
  color: #fff;
}

.contact-left p {
  margin-top: 30px;
}

.contact-left p i {
  color: #ff004f;
  margin-right: 15px;
  font-size: 25px;
}

.social-icons {
  margin-top: 30px;
}

.social-icons a {
  text-decoration: none;
  font-size: 30px;
  margin-right: 15px;
  color: #f0ecec;
  display: inline-block;
  transition: transform 0.5s, color 0.3s;
}

.social-icons a:hover {
  color: #ff004f;
  transform: translateY(-5px) scale(1.1);
}

/* Contact Form */
.contact-right form {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.contact-right input,
.contact-right textarea {
  width: 100%;
  border: none;
  outline: none;
  background: #262626;
  padding: 15px;
  margin: 10px 0;
  color: #fff;
  font-size: 16px;
  border-radius: 6px;
}

.contact-right button {
  background: #ff004f;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-right button:hover {
  background: #e60043;
}

/* Scroll-to-top */
#scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #ff004f;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  text-align: center;
  line-height: 45px;
  cursor: pointer;
  display: none;
  z-index: 999;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#scroll-top:hover {
  background: #e60043;
}

/* Responsive */
nav .fa-solid {
  display: none;
}
  
  footer {
    text-align: center;
    padding: 20px;
    background-color: rgba(43, 125, 143, 0.2);
    font-size: 0.9em;
    color: #555;
  }

  footer a {
    color: #d10000;
    text-decoration: none;
  }

  footer a:hover {
    color: #ff004f;
  }


/* Links */
a {
  color: #ff004f;
  text-decoration: none;
}

a:hover {
  color: #e60043;
}

/* --- TABLETS / SMALL LAPTOPS (≤768px) --- */
@media only screen and (max-width: 768px) {
  #header {
    height: 60vh;
    background-size: cover;
    background-position: center;
  }

  .header-text {
    margin-top: 28%;
    font-size: 16px;
    padding: 12px 15px;
    border-radius: 8px;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
  }

  .header-text h1 {
    font-size: 24px;
    line-height: 1.4;
  }

  .header-text p {
    font-size: 14px;
  }

  /* Navigation */
  nav .fa-solid {
    display: block;
    font-size: 25px;
    color: #fff;
    z-index: 1100;
    cursor: pointer;
  }

  nav ul {
    background: #1e1e1e;
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100vh;
    padding-top: 60px;
    flex-direction: column;
    align-items: flex-start;
    transition: right 0.4s ease;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1050;
  }

  nav ul li {
    width: 100%;
    margin: 18px 0;
  }

  nav ul li a {
    font-size: 18px;
    padding-left: 20px;
    display: block;
    width: 100%;
    color: #fff;
  }

  nav ul #menu-close {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 28px;
    color: #ff004f;
    cursor: pointer;
  }

  /* About Section */
  .row {
    flex-direction: column;
    align-items: center;
  }

  .about-col-1,
  .about-col-2 {
    flex-basis: 100%;
    text-align: center;
  }

  .about-col-1 img {
    width: 90%;
    max-width: 250px;
    margin: 15px auto;
    display: block;
    border-radius: 8px;
  }

  .sub-title {
    font-size: 28px;
    margin-bottom: 12px;
  }

  .about-col-2 {
    font-size: 14px;
  }

  .tab-links {
    font-size: 14px;
    margin-right: 12px;
  }

  .tab-contents {
    padding: 10px;
  }

  /* Projects Section */
  .project-card {
    flex: 0 0 90%;
    margin: 15px auto;
  }

  .project-card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
  }

  .slider-controls button {
    font-size: 20px;
    padding: 8px 12px;
  }

  /* Contact Section */
  .contact-left,
  .contact-right {
    flex-basis: 100%;
    text-align: center;
    margin-bottom: 20px;
  }

  .contact-left p {
    font-size: 14px;
    margin: 6px 0;
  }

  form input,
  form textarea {
    font-size: 14px;
    padding: 12px;
    width: 100%;
    margin-bottom: 12px;
  }

  .social-icons a {
    font-size: 28px;
    margin: 8px;
  }

  .btn {
    padding: 10px 25px;
    font-size: 14px;
  }

  #scroll-top {
    width: 40px;
    height: 40px;
    font-size: 16px;
    bottom: 20px;
    right: 20px;
  }

  footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    background-color: rgba(43, 125, 143, 0.2);
    color: #555;
  }

  footer a {
    color: #d10000;
  }

  footer a:hover {
    color: #ff004f;
  }
}

/* --- MOBILE PHONES (≤480px) --- */
@media only screen and (max-width: 480px) {
  #header {
    height: 65vh;
  }

  .header-text {
    margin-top: 50%;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 6px;
  }

  .header-text h1 {
    font-size: 24px;
    line-height: 1.3;
  }

  .header-text p {
    font-size: 12px;
  }

  nav .fa-solid {
    font-size: 22px;
  }

  nav ul {
    width: 220px;
    padding-top: 55px;
  }

  nav ul li a {
    font-size: 16px;
    padding-left: 15px;
  }

  .about-col-1 img {
    width: 80%;
  }

  .about-col-2 {
    font-size: 13px;
  }

  .tab-links {
    font-size: 13px;
  }

  .project-card img {
    height: 140px;
  }

  .contact-left p,
  form input,
  form textarea {
    font-size: 13px;
    padding: 10px;
  }

  .btn {
    padding: 8px 20px;
    font-size: 13px;
  }

  .social-icons a {
    font-size: 24px;
    margin: 8px;
  }

  #scroll-top {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  footer {
    font-size: 0.85em;
  }
}
