* {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  background: #080808;
  color: #fff;
}

/******************************* Header Section **************************************************************/
#header {
  width: 100%;
  height: 100vh;
  background-image: url(images/main/background.jpg);
  background-size: cover;
  background-position: center;
}
.container {
  padding: 10px 10%;
}

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

.logo {
  width: 140px;
}

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

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

nav ul li a::after {
  content: "";
  width: 0%;
  height: 3px;
  background: #ffffff;
  position: absolute;
  left: 0;
  bottom: -6px;
  transition: 0.5s;
}

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

.header-text {
  margin-top: 20%;
  font-size: 30px;
}

.header-text h1 {
  font-size: 60px;
  margin-top: 20px;
}
.header-text h1 span {
  color: #17a4cb;
}

/******************************* About me Section **************************************************************/

#about {
  padding: 80px 0;
  color: #ababab;
}

.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%;
}

.subtitle {
  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: #17a4cb;
  position: absolute;
  left: 0;
  bottom: -8px;
  transition: 0.5s;
}

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

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

.tab-contents ul li span {
  color: #17a4cb;
  font-size: 20px;
}
.tab-contents ul li {
  font-size: 23px;
}

.tab-contents {
  display: none;
}

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

/******************************* Skills Section **************************************************************/
#skills {
  padding: 30px 0;
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 40px;
  margin-top: 50px;
}

.skills-list div {
  background-color: #262626;
  padding: 40px;
  font-size: 13px;
  font-weight: 300;
  border-radius: 10px;
  transition: background 0.5s, transform 0.5s;
}

.skills-list div i {
  font-size: 50px;
  margin-bottom: 30px;
}

.skills-list div p{
  font-size: 18px;
  padding-bottom: 20px;
}

.skills-list div p i{
  font-size: 18px;
  margin-bottom: 0px;
  padding-right: 15px;
}


h2 {
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 15px;
}

.skills-list div a {
  text-decoration: none;
  color: #fff;
  font-size: 12px;
  margin-top: 20px;
  display: inline-block;
}

.skills-list div:hover {
  background: #17a4cb;
  transform: translateY(-10px);
}

/******************************* Main Page Projects Section **************************************************************/

#projects {
  padding: 50px 0;
}

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

.work {
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.work img {
  width: 100%;
  border-radius: 10px;
  display: block;
  transition: transform 0.5s;
}

.layer {
  width: 100%;
  height: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.6), #17a4cb);
  border-radius: 10px;
  position: absolute;
  left: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 25px;
  text-align: center;
  font-size: 14px;
  transition: height 0.5s;
}

.layer h3 {
  font-weight: 500;
  margin-bottom: 20px;
}

/*.layer a{
    margin-top: 20px;
    color: #17a4cb;
    text-decoration: none;
    font-size: 18px;
    line-height: 35px;
    background: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    text-align: center;
}
*/
.work:hover img {
  transform: scale(1.1);
}

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

.btn {
  display: block;
  margin: 20px auto;
  width: fit-content;
  border: 1px solid #fff;
  padding: 14px 50px;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  transition: background 0.5s;
}

.btn:hover {
  background: #ffffff;
  color: #17a4cb;
}

/******************************* Main Page Contact Section **************************************************************/

.contact-left {
  flex-wrap: 35%;
}

.contact-right {
  flex-wrap: 65%;
}

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

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

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

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

.social-icons a:hover {
  color: #17a4cb;
  transform: translateY(-5px);
}

.butn {
  display: block;
  margin: 50px auto;
  width: fit-content;
  border: 1px solid #17a4cb;
  padding: 17px 40px;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  transition: background 0.5s;
}

.butn.btn2 {
  display: inline-block;
  background: #17a4cb;
  font-size: 17px;
}

.butn.btn3 {
  display: inline-block;
  background: #17a4cb;
}

.contact-right form {
  width: 100%;
}

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

form .btn3 {
  padding: 14px 60px;
  font-size: 18px;
  margin-top: 20px;
  cursor: pointer;
}

#msg {
  color: #61b752;
  font-size: 18px;
  margin-top: -40px;
  display: block;
}

#msg.error {
  color: #ff6b6b;
}

.btn3:disabled {
  opacity: 0.5;
  filter: grayscale(100%);
  cursor: not-allowed;
  pointer-events: none;
}

.copyright {
  width: 100%;
  text-align: center;
  padding: 12px 0;
  background: #262626;
  font-weight: 100;
  margin-top: 15px;
}

/************ project pages css *******************/

#proj-header {
  width: 100%;
  height: 82vh;
  background-image: url(images/main/diff-background.jpg);
  background-size: cover;
  background-position: center;
}

.proj-title {
  text-align: center;
  font-size: 60px;
  font-weight: 600;
  color: #fff;
}

#proj img {
  display: block;
  margin: auto auto; /* centers horizontally */
  max-width: 90vw;
  max-height: 60vh;
  width: auto;
  height: auto;
}

/* Targets explaination part of projects pages */
#explaination {
  padding: 40px 0;
}

.exp-row {
  flex: 1 1 480px;
}

.proj-h2{
  color: #17a4cb;
}

/* Targets explaination with image on the left side */
.exp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem; /* space between cols */
  flex-wrap: nowrap; /* keep in one line on wide screens */
  padding-bottom: 25px;
}

/* Generic columns */
.exp-row .col {
  flex: 1 1 480px; /* grow/shrink, nice min width */
}

/* Images in cols */
.exp-row .col img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px; /* optional polish */
}

/* Flip order for alternating layout */
.exp-row.reverse {
  flex-direction: row-reverse;
  padding-top: 20px;
}

/* controlls intro pagraph styling */
/* .intro{
    font-size: 30px;
    padding-bottom: 20px;
    text-align: left;
} */

.body {
  font-size: 25px;
  line-height: 35px;
  color: #dadada;
  text-align: justify;
  padding-bottom: 25px;
}

/* .outro{
    font-size: 30px;
    padding-bottom: 20px;
    text-align: left;
} */

/* =======================
   Reusable Gallery Card
   ======================= */

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.gallery-card .gallery-thumb {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.45s ease;
}

/* overlay container itself stays transparent; panels come from pseudos */
.gallery-card .gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* buttons enabled only when overlay shown */
  opacity: 0;
  background: transparent;
  transition: opacity 0.3s ease;
  z-index: 1;
}

/* two sliding color layers */
.gallery-card .gallery-overlay::before,
.gallery-card .gallery-overlay::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 16%; /* how far each panel reaches */
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
  z-index: 0; /* keep behind buttons/icons */
}

/* left panel */
.gallery-card .gallery-overlay::before {
  left: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(23, 164, 203, 0.4) 45%,
    rgba(23, 164, 203, 0) 90%
  );
  transform: translateX(-100%);
}

/* right panel */
.gallery-card .gallery-overlay::after {
  right: 0;
  background: linear-gradient(
    270deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(23, 164, 203, 0.4) 45%,
    rgba(23, 164, 203, 0) 90%
  );
  transform: translateX(100%);
}

/* show overlay + slide panels in (desktop hover / mobile tap class) */
.gallery-card:hover .gallery-overlay,
.gallery-card.overlay-show .gallery-overlay {
  opacity: 1;
  pointer-events: auto;
}
.gallery-card:hover .gallery-overlay::before,
.gallery-card.overlay-show .gallery-overlay::before,
.gallery-card:hover .gallery-overlay::after,
.gallery-card.overlay-show .gallery-overlay::after {
  opacity: 1;
  transform: translateX(0);
}
.gallery-card:hover .gallery-thumb,
.gallery-card.overlay-show .gallery-thumb {
  transform: scale(1.03);
}

/* --- Overlay controls (NO circles, bigger, black) --- */
.edge-btn,
.zoom-btn {
  position: absolute;
  border: 0;
  background: rgba(0, 0, 0, 0.55); /* circle background */
  border-radius: 999px;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: #ffffff; /* color of icons */
  font-size: clamp(18px, 2.6vw, 30px); /* size */
  line-height: 1;
  padding: 6px 8px;
  cursor: pointer;
  z-index: 2; /* above panels */
}

.zoom-btn {
  width: 56px;
  height: 56px;
}

.edge-btn.prev {
  top: 50%;
  left: 12px;
  transform: translate(-12px, -50%); /* slide-in start */
  transition: transform 0.3s ease;
}
.edge-btn.next {
  top: 50%;
  right: 12px;
  transform: translate(12px, -50%);
  transition: transform 0.3s ease;
}
.gallery-card:hover .edge-btn.prev,
.gallery-card.overlay-show .edge-btn.prev {
  transform: translate(0, -50%);
}
.gallery-card:hover .edge-btn.next,
.gallery-card.overlay-show .edge-btn.next {
  transform: translate(0, -50%);
}

/* center magnifier (no bg) */
.zoom-btn {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  transition: transform 0.25s ease;
}

.zoom-btn:hover {
  transform: translate(-50%, -50%) scale(1);
}

.gallery-card.single .edge-btn { display: none; }

/* Touch devices: slightly lighter tint */
@media (hover: none) {
  .gallery-card .gallery-overlay::before {
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(23, 164, 203, 0.35) 45%,
      rgba(23, 164, 203, 0) 90%
    );
  }
  .gallery-card .gallery-overlay::after {
    background: linear-gradient(
      270deg,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(23, 164, 203, 0.35) 45%,
      rgba(23, 164, 203, 0) 90%
    );
  }
}

/* Motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .gallery-thumb,
  .gallery-overlay,
  .gallery-overlay::before,
  .gallery-overlay::after,
  .edge-btn,
  .zoom-btn {
    transition: none !important;
  }
}




/* =======================
   Lightbox (Modal)
   ======================= */

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75); /* page stays visible underneath */
}
.lightbox.open {
  display: block;
}

.lb-stage {
  position: absolute;
  inset: 64px 0 64px 0; /* room for close + edge arrows */
  display: grid;
  place-items: center;
}

.lb-img {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  display: block;
}

.lb-caption {
  position: absolute;
  left: 50%;
  bottom: 0px;
  transform: translateX(-50%);
  max-width: min(92vw, 900px);
  color: #e8e8e8;
  font-size: clamp(14px, 1.8vw, 18px);
  text-align: center;
}

/* Close (white, no circle, big) */
.lb-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: none;
  color: #fff;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1;
  cursor: pointer;
}

/* NAV arrows at SCREEN edges (white, no circles, big) */
.lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 999px;
  background: rgba(151, 151, 151, 0.899);
  color: #fff; /* white */
  font-size: clamp(25px, 3vw, 39px);
  line-height: 1;
  cursor: pointer;
}
.lb-nav.left {
  left: 10px;
}
.lb-nav.right {
  right: 10px;
}
.lb-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.lightbox.single .lb-nav      { display: none; }

/* Motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .gallery-thumb,
  .gallery-overlay,
  .gallery-overlay::before,
  .gallery-overlay::after,
  .edge-btn,
  .zoom-btn {
    transition: none !important;
  }
}

/* Phone screen CSS*/

nav .fa-solid {
  display: none;
}

@media only screen and (max-width: 600px) {
  #header {
    background-image: url(images/main/phone-background.jpg);
  }

  .header-text {
    margin-top: 100%;
    padding-top: 125px;
    font-size: 16px;
  }

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

  nav .fa-solid {
    display: block;
    font-size: 25px;
  }

  nav ul {
    background: #17a4cb;
    position: fixed;
    top: 0;
    right: -200px;
    width: 200px;
    height: 100vh;
    padding-top: 50px;
    z-index: 2;
    transition: right 0.5s;
  }

  nav ul li {
    display: block;
    margin: 25px;
  }

  nav ul .fa-solid {
    position: absolute;
    top: 25px;
    left: 25px;
    cursor: pointer;
  }

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

  .subtitle {
    font-size: 40px;
  }

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

  .about-col-1 {
    margin-bottom: 30px;
  }

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

  .tab-links {
    font-size: 19px;
    margin-right: 20px;
  }

  .contact-left,
  .contact-right {
    flex-basis: 100%;
  }

  .copyright {
    font-size: 14px;
  }

  /************ project pages css *******************/
  #proj-header {
    background-image: url(images/main/diff-phone-background.jpg);
    background-size: cover;
    background-position: center;
    height: auto; /* override the 82vh */
    padding: 16px 0 25px; /* small vertical breathing room */
  }

  /* Title sizing & spacing */
  .proj-title {
    margin: 5px auto 0;
    text-align: center;
    font-size: clamp(22px, 6vw, 28px);
  }

  /* Hero image – full width, keep aspect, centered */
  #proj img {
    display: block;
    width: min(92vw, 560px); /* responsive width cap */
    height: auto; /* DON'T fix height on mobile */
    margin: 12px auto 0;
  }

  /* controlls gap between the explaination start and title end */
  #explaination {
    padding-top: 15px;
  }

  /* 2) Force rows to STACK and fill width */
  .exp-row {
    display: flex;
    flex-direction: column !important; /* stack image above text */
    align-items: stretch;
    gap: 16px; /* replaces awkward margins */
  }

  /* Make every column become full-width blocks */
  .exp-row .col {
    flex: 0 0 auto;
    width: 100%;
  }

  /* Images inside rows – full width, no floaty gaps */
  .exp-row .col img {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 10px;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    border-radius: 12px; /* optional polish */
  }

  /* 3) Tame paragraph size/line length on phones */
  .intro {
    font-size: clamp(14px, 4vw, 17px);
    line-height: 1.55;
    margin: 0; /* avoid extra gaps */
    text-align: left; /* easier to read than centered */
  }

  .body {
    font-size: clamp(14px, 4vw, 17px);
    line-height: 1.55;
    margin: 0; /* avoid extra gaps */
    text-align: left; /* easier to read than centered */
  }
}
