/*to do list 
-go to top when open a project
-change the font of the text


*/

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Open Sans',sans-serif;
}

html {
  scroll-behavior: smooth;
}

body{
  background-color: #1a1a1a;
  overflow-x: hidden;
}

/* Navigation */
.navbar {
  padding: 1.5rem 0;
  transition: all 0.3s;
  background-color: rgba(0, 0, 0, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  max-width: 100% !important;
  height: auto !important;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 100% !important;
  margin: 0 auto;
  padding: 0 2rem;
}

.navbar-brand {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ff6b35 !important;
  letter-spacing: 3px;
  transition: all 0.3s;
  text-decoration: none;
  text-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.navbar-brand:hover {
  color: #ff8c42 !important;
  text-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
  transform: scale(1.05);
}

.navbar-nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.3s;
  position: relative;
  text-decoration: none;
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: #ff6b35 !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-return {
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  padding: 0.5rem 1.2rem !important;
  border-radius: 25px;
  margin-left: 1rem;
  transition: all 0.3s;
  color: #fff !important;
  font-weight: 700;
}

.nav-return:hover {
  transform: translateX(-5px);
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
  background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
  color: #fff !important;
}

.nav-return::after {
  display: none;
}

.nav-return i {
  margin-right: 0.5rem;
}

/* Projects Hero Section */
.projects-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  text-align: center;
}

.projects-badge {
  display: inline-block;
  color: #ff6b35;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  animation: fadeIn 0.8s ease-out;
}

.projects-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.projects-subtitle {
  font-size: 1.3rem;
  color: #b3b3b3;
  max-width: 700px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}



/*
#ProjetsList
*/
.projetsList {
  width: 100%;
  display: grid;
  place-items: center;
  padding: 80px 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.projetsRow {
  display: flex;
  flex-wrap: wrap;
  width: 90%;
  max-width: 1400px;
  gap: 2rem;
  justify-content: center;
}

.projetsColumn {
  width: 100%;
  padding: 0;
  text-align: center;
  z-index: 1;
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.projetsColumn:nth-child(1) { animation-delay: 0.1s; }
.projetsColumn:nth-child(2) { animation-delay: 0.2s; }
.projetsColumn:nth-child(3) { animation-delay: 0.3s; }
.projetsColumn:nth-child(4) { animation-delay: 0.4s; }
.projetsColumn:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.projetsCard {
  position: relative;
  border: none;
  width: 100%;
  height: 400px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a2a2a;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
}

.projetsCard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.3) 0%, rgba(255, 140, 66, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 1;
}

.projetsCard:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(255, 107, 53, 0.3);
}

.projetsCard:hover::before {
  opacity: 1;
}

.projetIcon-wrapper {
  z-index: 2;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 50px;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.4s;
  background: rgba(0, 0, 0, 0.4);
}

.projetsCard:hover .projetIcon-wrapper {
  background: rgba(0, 0, 0, 0.6);
  color: #ff6b35;
}

.projetsCard:hover .iconLines {
  transform: scale(1.3);
  color: #ff6b35;
}

.iconLines {
  transition: all 0.4s;
}

.projetName {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 24px;
  font-weight: 700;
  color: #ff6b35;
  transition: all 0.4s;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.serviceDescription {
  z-index: 3;
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 22px;
  font-weight: 600;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  transition: all 0.4s;
}

.projetsCard:hover .serviceDescription {
  bottom: 35px;
  color: #ff6b35;
}

/* Expanded Project View */
.projetsLisExpanded {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  min-height: 0;
  display: none;
}

.projetsLisExpanded:has(.projetExpanded[style*="display: flex"]),
.projetsLisExpanded:has(.projetExpanded[style*="display: block"]) {
  display: block;
  min-height: 100vh;
}

.projetExpanded {
  width: 100%;
  height: auto;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
}

.exitIconProjets {
  position: absolute;
  top: 40px;
  right: 40px;
  cursor: pointer;
  justify-items: center;
  align-items: center;
  font-size: 2.5em;
  color: #fff;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: all 0.3s;
  box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

.exitIconProjets:hover {
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.6);
}

.projetInfo {
  display: flex;
  width: 90%;
  max-width: 1400px;
  height: auto;
  flex-direction: column;
  justify-items: center;
  align-items: center;
  justify-content: space-between;
  background: rgba(42, 42, 42, 0.8);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.projetTitleDiv {
  display: flex;
  align-items: center;
  height: auto;
  margin: 0 0 3em 0;
  font-family: 'Montserrat', sans-serif;
}

.projetTitle {
  font-size: 3.5em;
  font-weight: 800;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.projetIMG {
  width: 100%;
  height: auto;
}

.projetDescriptionDiv {
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0;
}

.projetDescrptionTitle {
  font-size: 2em;
  margin-top: 2em;
  font-family: 'Roboto', sans-serif;
  color: #ff6b35;
  font-weight: 700;
}

.projetDescription {
  font-size: 1.2em;
  margin: 2em 2em;
  font-family: 'Roboto Slab', serif;
  color: #e0e0e0;
  line-height: 1.8;
  text-align: justify;
}

.projetDate {
  font-size: 1.3em;
  margin: 2em 0;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  color: #ff6b35;
  padding: 0.5rem 1.5rem;
  background: rgba(255, 107, 53, 0.1);
  border-radius: 50px;
  border: 2px solid #ff6b35;
}

.architecteCredit {
  display: block;
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(255, 107, 53, 0.1);
  border-left: 4px solid #ff6b35;
  border-radius: 5px;
  color: #fff;
  font-style: italic;
}
/* Project Background Images */
#workDone1 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('projetsFG/Andrei_C_projets1FGroung.png');
  background-size: cover;
  background-position: center;
}

#workDone2 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('projetsFG/Andrei_C_projets2FGroung.png');
  background-size: cover;
  background-position: center;
}

#workDone3 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('projetsFG/Andrei_C_projets3FGroung.png');
  background-size: cover;
  background-position: center;
}

#workDone4 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('projetsFG/Andrei_C_projets4FGroung.png');
  background-size: cover;
  background-position: center;
}

#workDone5 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('projetsFG/Andrei_C_projets5FGroung.png');
  background-size: cover;
  background-position: center;
}

/* Video Styles */
.divVideoProjets {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  background: #000;
}

.videoProjetsV {
  width: auto;
  max-width: 100%;
  height: 950px;
  border-radius: 15px;
  display: block;
}

.videoProjetsH {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  display: block;
}

.divVideoProjets video {
  cursor: pointer;
  transition: all 0.3s;
}

.divVideoProjets:hover {
  box-shadow: 0 15px 50px rgba(255, 107, 53, 0.3);
}

/* Slider Images */
.img {
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 10px;
}

.img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

/* Image Sliders */
[class*="slider"] {
  width: 100%;
  position: relative;
  margin: 2rem 0;
  padding: 2rem 0;
}

[class*="list"] {
  width: 100%;
  height: auto;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

[class*="item"] {
  width: 100%;
  height: auto;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

[class*="item"] img {
  width: auto;
  max-width: 100%;
  max-height: 80vh;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

/* Slider Buttons */
.buttons {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 10;
  pointer-events: none;
}

.buttons button {
  pointer-events: all;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  border: none;
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.buttons button:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.6);
}

.buttons button:active {
  transform: scale(0.95);
}

/* Slider Dots */
[class*="dots"] {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

[class*="dots"] li {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

[class*="dots"] li:hover {
  background: rgba(255, 107, 53, 0.6);
  transform: scale(1.2);
}

[class*="dots"] li.active {
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  border: 2px solid #fff;
  width: 14px;
  height: 14px;
}

.fullscreen video {
  transform: scale(2);
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding: 40px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
}

.lightbox-modal[style*="display: block"] {
  display: flex !important;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  transition: all 0.3s;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.lightbox-close:hover,
.lightbox-close:focus {
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.6);
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 50px rgba(255, 107, 53, 0.3);
}

#lightboxCaption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #fff;
  padding: 20px 0;
  font-size: 1.2rem;
  font-weight: 500;
}

/* Lightbox Animation */
.lightbox-content,
#lightboxCaption {
  animation: zoomIn 0.3s;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media only screen and (max-width: 768px) {
  .lightbox-content {
    max-width: 95%;
    max-height: 80%;
  }
  
  .lightbox-close {
    top: 10px;
    right: 15px;
    font-size: 40px;
    width: 50px;
    height: 50px;
  }
  
  #lightboxCaption {
    font-size: 1rem;
  }
}






/* Responsive Design */
@media screen and (min-width: 768px) {
  .projetsColumn {
    flex: 0 0 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
  }
}

@media screen and (min-width: 992px) {
  .projetsColumn {
    flex: 0 0 calc(33.33% - 1.5rem);
    max-width: calc(33.33% - 1.5rem);
  }
}

@media(max-width: 992px) {
  .projects-title {
    font-size: 2.5rem;
  }
  
  .projects-subtitle {
    font-size: 1.1rem;
  }
  
  .projetDescription {
    margin-inline: 1rem;
  }
  
  .projetTitle {
    font-size: 2.5em;
  }
  
  .exitIconProjets {
    width: 50px;
    height: 50px;
    font-size: 2em;
    top: 30px;
    right: 30px;
  }
}

@media(max-width: 768px) {
  .projects-hero {
    padding: 120px 0 60px;
  }
  
  .projects-title {
    font-size: 2rem;
  }
  
  .projects-badge {
    font-size: 1rem;
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  .navbar {
    padding: 1rem 0;
  }
  
  .navbar .container {
    padding: 0 1.5rem;
  }
  
  .navbar-brand {
    font-size: 1.4rem;
  }
  
  .navbar-nav {
    gap: 1.5rem;
  }
  
  .nav-link {
    font-size: 0.85rem;
    letter-spacing: 1px;
  }
  
  .projetsCard {
    height: 300px;
  }
  
  .projetInfo {
    width: 95%;
    padding: 2rem 1.5rem;
  }
  
  .buttons button {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .buttons {
    padding: 0 1rem;
  }
}

@media(max-width: 650px) {
  .videoProjetsV {
    height: 500px;
  }
  
  .projetsRow {
    width: 95%;
  }
}

@media(max-width: 576px) {
  .projects-title {
    font-size: 1.8rem;
  }
  
  .projects-subtitle {
    font-size: 1rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .navbar {
    padding: 0.8rem 0;
  }
  
  .navbar .container {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
    letter-spacing: 2px;
  }
  
  .navbar-nav {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-link {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
  }
  
  .projetDescription {
    font-size: 1em;
    text-align: left;
  }
  
  .projetTitle {
    font-size: 2em;
  }
  
  .serviceDescription {
    font-size: 18px;
  }
  
  .exitIconProjets {
    width: 45px;
    height: 45px;
    font-size: 1.5em;
    top: 20px;
    right: 20px;
  }
  
  .buttons button {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
  
  .buttons {
    padding: 0 0.5rem;
  }
  
  [class*="dots"] li {
    width: 10px;
    height: 10px;
  }
  
  [class*="dots"] li.active {
    width: 12px;
    height: 12px;
  }
  
  [class*="item"] img {
    max-width: 100%;
  }
}