/* ============================================================
   PORTFOLIO TEMPLATE - PROJECTS PAGE STYLESHEET
   ============================================================
   Author: Portfolio Template
   Version: 1.0
   Last Updated: December 2025
   
   TABLE OF CONTENTS:
   ----------------------------------------------------------
   1.  IMPORTS & FONTS
   2.  RESET & BASE STYLES
   3.  SCROLLBAR STYLES
   4.  HEADER & NAVBAR
       4.1 Logo Styles
       4.2 Navigation Menu
       4.3 Hamburger Menu (Mobile)
   5.  PROJECTS/WORK SECTION
       5.1 Section Header & Description
       5.2 Filter Buttons
       5.3 Project Grid
       5.4 Project Cards
       5.5 Project Card Hover Effects
       5.6 Project Description & Buttons
       5.7 Projects Media Queries
   6.  BACK TO HOME BUTTON
   7.  COMMON MEDIA QUERIES
   8.  SCROLL TO TOP BUTTON
   ============================================================ */


/* ============================================================
   1. IMPORTS & FONTS
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&display=swap');
@import url('theme-preset.css');


/* ============================================================
   2. RESET & BASE STYLES
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  outline: none;
  border: none;
  text-transform: capitalize;
  transition: all .2s linear;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background: var(--bg-white);
  font-family: var(--font-primary);
}

/* Text Selection Styles */
*::selection {
  background: var(--selection-bg);
  color: var(--selection-text);
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}


/* ============================================================
   3. SCROLLBAR STYLES
   ============================================================ */
html::-webkit-scrollbar {
  width: .8rem;
}

html::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

html::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
}


/* ============================================================
   4. HEADER & NAVBAR
   ============================================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.7rem 10%;
  height: 6.5rem;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-light);
}

/* Section Base Styles */
section {
  min-height: 100vh;
  padding: 2rem 9%;
}

/* Section Heading Styles */
.heading {
  font-size: 3.5rem;
  color: var(--heading-color);
  font-weight: 800;
  text-align: center;
}

.heading span {
  color: var(--heading-span-color);
}

/* ----------------------------------------------------------
   4.1 Logo Styles
   ---------------------------------------------------------- */
header .logo {
  font-size: 1.9rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-primary-color);
}

header .logo i {
  font-size: 2.2rem;
}

header .logo:hover {
  color: var(--accent-hover-color);
}

/* ----------------------------------------------------------
   4.2 Navigation Menu
   ---------------------------------------------------------- */
header .navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

header .navbar li {
  margin-left: 2.5rem;
}

header .navbar ul li a {
  font-size: 1.57rem;
  color: var(--text-primary-color);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04rem;
}

header .navbar ul li a.active,
header .navbar ul li a:hover {
  color: var(--main-color);
  border-bottom: .2rem solid var(--main-color);
  padding: .5rem 0;
}

/* ----------------------------------------------------------
   4.3 Hamburger Menu (Mobile)
   ---------------------------------------------------------- */
#menu {
  font-size: 3rem;
  cursor: pointer;
  color: rgb(24, 2, 63);
  display: none;
}

@media(max-width:768px) {
  #menu {
    display: block;
  }

  header .navbar {
    position: fixed;
    top: 6.5rem;
    right: -120%;
    width: 75%;
    height: 100%;
    text-align: left;
    align-items: flex-start;
    background-color: var(--bg-white);
  }

  header .navbar ul {
    flex-flow: column;
    padding: 1rem;
  }

  header .navbar ul li {
    text-align: center;
    width: 100%;
    margin: 1rem 0;
    border-radius: .5rem;
    width: 26rem;
  }

  header .navbar ul li a {
    display: block;
    padding: 1rem;
    text-align: left;
    color: var(--text-white);
    font-size: 2rem;
  }

  header .navbar ul li a.active,
  header .navbar ul li a:hover {
    padding: 1rem;
    color: var(--text-white);
    border-radius: .5rem;
    border-bottom: .5rem solid var(--main-color);
  }

  .fa-times {
    transform: rotate(180deg);
  }

  header .navbar.nav-toggle {
    right: 0;
  }
}


/* ============================================================
   5. PROJECTS/WORK SECTION
   ============================================================ */
.work {
  /* background: #010124; */
  background: var(--bg-work);
  margin-top: 5rem;
}

/* ----------------------------------------------------------
   5.1 Section Header & Description
   ---------------------------------------------------------- */
.work .projects-header {
  text-align: center;
  margin-bottom: 4rem;
  padding-top: 2rem;
}

.work .projects-header .subtitle {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--main-color);
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  margin-bottom: 1rem;
  position: relative;
}

.work .projects-header .subtitle::before,
.work .projects-header .subtitle::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1px;
  background: var(--main-color);
  opacity: 0.5;
}

.work .projects-header .subtitle::before {
  left: -50px;
}

.work .projects-header .subtitle::after {
  right: -50px;
}

.work .heading {
  color: #fff;
  font-size: 4.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}

.work .projects-header .description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.6rem;
  font-weight: 400;
  margin-top: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ----------------------------------------------------------
   5.2 Filter Buttons
   ---------------------------------------------------------- */
.work .filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  align-items: center;
  margin: 0 auto 4rem auto;
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 5rem;
  max-width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.work .filter-tabs .filter-btn {
  padding: 1rem 2.2rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: 5rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: 0.02rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.work .filter-tabs .filter-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.work .filter-tabs .filter-btn.active {
  background: #fff;
  color: #0a0a2e;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ----------------------------------------------------------
   5.3 Project Grid
   ---------------------------------------------------------- */
.work .box-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem;
}

.grid-item {
  width: 380px;
  margin: 1rem;
}

/* ----------------------------------------------------------
   5.4 Project Cards
   ---------------------------------------------------------- */
.work .box-container .box {
  flex: 1 1 30rem;
  border-radius: .5rem;
  box-shadow: 0 .7rem 1rem rgba(0, 0, 0, .3);
  position: relative;
  overflow: hidden;
  height: 30rem;
  background: #fff;
  border: none;
}

.work .box-container .box img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* ----------------------------------------------------------
   5.5 Project Card Hover Effects
   ---------------------------------------------------------- */
.work .box-container .box .content {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 85%;
  left: 0;
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
}

.work .box-container .box .content .tag {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 4.5rem;
  width: 100%;
  padding-left: 1rem;
  background: var(--accent-gold);
}

.work .box-container .box .content .tag h3 {
  font-size: 2rem;
}

.work .box-container .box:hover .content {
  top: 25%;
}

/* ----------------------------------------------------------
   5.6 Project Description & Buttons
   ---------------------------------------------------------- */
.work .desc {
  margin: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.work .desc p {
  font-size: 1.5rem;
}

.work .desc .btns {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 2rem;
}

.work .desc .btns .btn {
  line-height: 0;
  display: inline;
  padding: 1.5rem 2.5rem;
  border-radius: .5rem;
  font-size: 1.5rem;
  color: #fff;
  background: rgb(12, 12, 12);
  margin-right: 2rem;
}

.work .desc .btns .btn:hover {
  background: #310ae0f5;
}

/* ----------------------------------------------------------
   5.7 Projects Media Queries
   ---------------------------------------------------------- */
/* Tablet Responsive */
@media screen and (max-width: 992px) {
  .work .heading {
    font-size: 3.8rem;
  }
  
  .work .projects-header .subtitle::before,
  .work .projects-header .subtitle::after {
    width: 30px;
  }
  
  .work .projects-header .subtitle::before {
    left: -40px;
  }
  
  .work .projects-header .subtitle::after {
    right: -40px;
  }
}

@media screen and (max-width: 768px) {
  .work .heading {
    font-size: 3.2rem;
  }
  
  .work .projects-header .description {
    font-size: 1.4rem;
    padding: 0 2rem;
  }

  .work .filter-tabs {
    max-width: 95%;
    padding: 0.5rem;
    gap: 0.5rem;
    border-radius: 1.5rem;
  }
  
  .work .filter-tabs .filter-btn {
    padding: 0.9rem 1.6rem;
    font-size: 1.3rem;
  }
}

@media screen and (max-width: 576px) {
  .work .projects-header {
    margin-bottom: 3rem;
  }
  
  .work .projects-header .subtitle {
    font-size: 1.2rem;
    letter-spacing: 0.2rem;
  }
  
  .work .projects-header .subtitle::before,
  .work .projects-header .subtitle::after {
    display: none;
  }
  
  .work .heading {
    font-size: 2.8rem;
  }
  
  .work .projects-header .description {
    font-size: 1.3rem;
  }

  .work .filter-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    background: transparent;
    border: none;
    gap: 0.8rem;
    padding: 0;
    max-width: 100%;
  }
  
  .work .filter-tabs .filter-btn {
    padding: 1rem 1.8rem;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
  
  .work .filter-tabs .filter-btn.active {
    background: #fff;
    border-color: transparent;
  }
}

@media screen and (max-width: 450px) {
  .work .heading {
    font-size: 2.4rem;
  }

  .work .box-container {
    margin: 0rem;
  }

  .grid-item {
    width: 100%;
    margin: 1rem 0;
  }

  .work .box-container .grid-item .box {
    width: 100% !important;
  }
  
  .backbtn .btn {
    padding: 1.5rem 3rem;
  }
  
  .backbtn .btn span {
    font-size: 1.5rem;
  }
}


/* ============================================================
   6. BACK TO HOME BUTTON
   ============================================================ */
.backbtn {
  display: flex;
  justify-content: center;
  margin-bottom: 4rem;
  margin-top: 5rem;
}

.backbtn .btn {
  position: relative;
  line-height: 1.5;
  padding: 1.4rem 3rem;
  border-radius: 5rem;
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  text-align: center;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 500;
}

.backbtn .btn span {
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: 0.02rem;
}

.backbtn .btn i {
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

.backbtn .btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.backbtn .btn:hover i {
  transform: translateX(-4px);
}

@media screen and (max-width: 576px) {
  .backbtn .btn {
    padding: 1.2rem 2.5rem;
    font-size: 1.3rem;
  }
  
  .backbtn .btn span {
    font-size: 1.3rem;
  }
}


/* ============================================================
   7. COMMON MEDIA QUERIES
   ============================================================ */
@media(max-width:450px) {
  html {
    font-size: 55%;
  }

  body {
    padding-right: 0;
  }

  section {
    padding: 2rem;
  }
}


/* ============================================================
   8. SCROLL TO TOP BUTTON
   ============================================================ */
#scroll-top {
  position: fixed;
  top: -140%;
  right: 2rem;
  padding: 1rem 1.5rem;
  font-size: 2rem;
  background: var(--accent-yellow);
  color: rgb(13, 0, 44);
  border-radius: 5rem;
  transition: 1s linear;
  z-index: 1000;
}

#scroll-top.active {
  top: calc(100% - 12rem);
}


/* ============================================================
   END OF STYLESHEET
   ============================================================ */