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

:root{
  --bg:#1f242d;
  --card:#323946;
  --main:#7cf03d;
  --white:#fff;
}

body{
  background:var(--card);
  color:var(--white);
}

/* HEADER */
header{
  position:fixed;
  width:100%;
  padding:20px 8%;
  background:var(--bg);
  display:flex;
  justify-content:space-between;
  align-items:center;
  z-index:100;
}

.logo{
  font-size:28px;
  font-weight:700;
  color:var(--white);
  text-decoration:none;
}

nav a{
  margin-left:30px;
  color:var(--white);
  text-decoration:none;
  font-size:18px;
  transition:.3s;
}

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

#menu-icon {
  font-size: 4rem;
  display: none

  
}

/* PORTFOLIO */
.portfolio{
  padding:150px 8% 50px;
}

.heading{
  text-align:center;
  font-size:40px;
  margin-bottom:60px;
}

.heading span{
  color:var(--main);
}

.portfolio-container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:60px;
}

/* LEFT SIDE */
.portfolio-detail{
  max-width:450px;
  transition:.5s;
}

.portfolio-detail .numb{
  font-size:60px;
  color:transparent;
  -webkit-text-stroke:1px white;
}

.portfolio-detail h3{
  font-size:30px;
  margin:10px 0;
}

.portfolio-detail p{
  font-size:16px;
  line-height:1.6;
}

.tech{
  margin:20px 0;
  color:var(--main);
  border-bottom:1px solid #fff;
  padding-bottom:10px;
}


.portfolio .live-github {
  display: flex;
  gap: 20px;
  margin-top: 25px;
}

.portfolio .live-github a {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--white);
  background: var(--bg);
  border-radius: 50%;
  text-decoration: none;
  transition: .3s ease;
}



/* TOOLTIP TEXT */
.portfolio .live-github a span {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #000;
  padding: 6px 14px;
  font-size: 14px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: .3s ease;
}

/* Show on hover */
.portfolio .live-github a:hover span {
  opacity: 1;
  font-size: 1.2rem;
}


/* Rotate ONLY the arrow icon */
.portfolio .live-github a:first-child i {
  transform: rotate(135deg);
}



/* CAROUSEL */
.carousel-wrapper{
  width:55%;
  position:relative;
  overflow:hidden;
}

.img-slide{
  display:flex;
  gap:5rem;
  transition:transform .7s ease;
}

.img-item{
  min-width:90%;
  border-radius:20px;
  overflow:hidden;
  transform:scale(.85);
  transition:.6s;
  opacity:.6;
}

.img-item.active{
  transform:scale(1);
  opacity:1;
}

.img-item img{
  width:100%;
  display:block;
}

/* ARROWS */
.navigation{
  position:absolute;
  width:100%;
  top:50%;
  transform:translateY(-50%);
  display:flex;
  justify-content:space-between;
}

.navigation button{
  background:var(--card);
  border:none;
  color:var(--white);
  font-size:28px;
  padding:10px;
  border-radius:50%;
  cursor:pointer;
  transition:.3s;
}

.navigation button:hover{
  color:var(--main);
}


footer .container {
  background:var(--bg);
  margin-top: 10rem;
}

footer .row {
  display: flex;
  justify-content: space-between;
  padding: 4rem 10rem;
  gap: 3rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li{
  font-size: 1.6rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-col h4:hover{
  color: var(--main-color);
}

.footer-col h4::before {
  content: "";
  width: 7rem;
  height: 0.2rem;
  position: absolute;
  background: var(--main);
  bottom: -1rem;
}

.footer-col ul li {
  padding: 1rem 0;
}

.footer-col ul li a {
  color: var(--white);
  text-decoration: none;
  font-size: 2rem;
  opacity: 0.7;
  transition: 0.5s;
}

.footer-col ul li a:hover {
  color: var(--main);
  opacity: 1.5;
}

.footer-col input {
  border: none;
  width: 25rem;
  height: 4.5rem;
  display: block;
  padding-left: 2rem;
  margin: 1.4rem 0;
  font-size: 2rem;
}

.footer-col .inputsubmit {
  padding: 0 2rem;
  background-color: var(--main);
  border: none;
  color: black;
  font-size: 2rem;
}

.col p {
  color: var(--white);
  font-size: 1.6rem;
  
}

.footer .col a {
  color: var(--white);
}

.row hr {
  color: var(--white-color);
}

.row .social-icons {
   border-radius: 50%;
  margin-top: -1.4rem;
  display: flex;
  justify-content: flex-start;
  text-align: left;
}

.row .social-icons i {
  display: inline-flex;
  padding: 0.8rem;
  border: 0.2rem solid var(--main);
  border-radius: 50%;
  font-size: 1.7rem;
  color: var(--main);
  margin: 0 0.8rem;
  transition: 0.5s;
  left: 7rem;
}

.row .social-icons i:hover {
  background: var(--main);
  color: var(--bg-color);
  box-shadow: 0 0 1rem var(--main);
}

.footer-line {
  border: none;
  border-top: 0.1rem solid var(--white);
  margin: 3rem 0;
}

.row .col p a {
  color: var(--white);
  margin-left: 3.9rem;
  font-size: 1.7rem;
  margin-right: 2rem;
  text-decoration: none;
}

.row .col p a:hover {
  color: var(--main);
}

.row .col {
  display: flex;
  gap: 3rem;
}



/* ================= RESPONSIVE GLOBAL ================= */

@media (max-width: 1024px) {
  html {
    font-size: 58%;
  }
}

/* ================= MOBILE NAVBAR & HEADER ================= */

@media (max-width: 900px) {

  /* Header scrolls with page */
  header {
    position: relative;
    padding: 2rem 5%;
  }

  /* Menu icon visible */
  #menu-icon {
    display: block;
    cursor: pointer;
    color: var(--white-color);
  }

  /* Navbar vertical and hidden by default */
  nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: var(--bg-color);
    display: flex;
    flex-direction: column; /* vertical menu */
    text-align: center;
    gap: 1rem;
    padding: 2rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 100;
  }

  /* Show menu when active */
  nav.active {
    max-height: 500px; /* enough for all links */
  }

  /* Navbar links styling */
  nav a {
    margin: 0;
    font-size: 2.2rem;
    padding: 1rem 0;
    border-top: 0.1rem solid var(--main-color);
    transition: 0.3s;
  }

  nav a:first-child {
    border-top: none;
  }

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


  .portfolio-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .portfolio-detail {
    max-width: 100%;
  }

  .carousel-wrapper {
    width: 100%;
    margin-top: 10px;
  }

  .img-item {
    min-width: 90%;
  }

  .portfolio .live-github {
    margin-bottom: 20px;
  }
  img-item {
    min-width: 100%;
    transform: scale(1);
    opacity: 1;
  }


footer .row {
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 4rem;
  }

  .footer-col h4{
    font-size: 4rem;
  }

  .footer-col ul li {
    font-size: 3rem;
  }

  .footer-col ul li a {
    font-size: 3rem;
  }

  .footer-col input {
    width: 80%;
    font-size: 3rem;
  }
  .row .col {
    justify-content: center;
    text-align: center;
  }

  .row .col p {
    justify-content: center;
    text-align: center;
    font-size: 3rem;
  }

  .row .col p a {
    font-size: 3rem;
    margin-left: 0;
    margin-top: 1rem;
    display: inline-block;
  }

  .social-icons {
    justify-content: center;
  }

  .social-icons i {
    font-size: 3rem;
    margin: 0 1rem;
  }
}




