/* Resetare stiluri implicite și setări de bază */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


:root {
  --primary-color: #1b2941;
  --accent-color: #f3f3f3;
  --light-bg: #ccc;
  --dark-overlay: rgba(0, 0, 0, 0.6);
  --white: #fff;
}



body {
  font-family: Arial, sans-serif;
  overflow: hidden;
  /* ascunde scroll-ul cât timp se încarcă */
}

/* === PRELOADER === */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #0a0a0ae4;
  /* fundal întunecat */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #d27e39fd;
  z-index: 9999;
  transition: opacity 1s ease;
}

#preloader p {
  margin-top: 20px;
  font-size: 18px;
  letter-spacing: 1px;
}

/* === LOADER FACEBOOK STYLE === */
.lds-facebook {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
  color: #d27e39d1;
  /* poți schimba culoarea aici */
}

.lds-facebook,
.lds-facebook div {
  box-sizing: border-box;
}

.lds-facebook div {
  display: inline-block;
  position: absolute;
  left: 8px;
  width: 16px;
  background: currentColor;
  animation: lds-facebook 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}

.lds-facebook div:nth-child(1) {
  left: 8px;
  animation-delay: -0.24s;
}

.lds-facebook div:nth-child(2) {
  left: 32px;
  animation-delay: -0.12s;
}

.lds-facebook div:nth-child(3) {
  left: 56px;
  animation-delay: 0s;
}

@keyframes lds-facebook {
  0% {
    top: 8px;
    height: 64px;
  }

  50%,
  100% {
    top: 24px;
    height: 32px;
  }
}



.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: rgba(112, 119, 122, 0.3);
  /* culoare albastră translucidă */
  border: 2px solid #c5cbce;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
  backdrop-filter: blur(2px);
}


.cursor-bubble {
  position: fixed;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: rgba(255, 137, 2, 0.5);
  /* galben translucid */
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease;
  z-index: 9999;
}


.typed-container {
  margin-top: 10px;
  font-size: 1.25rem;
  color: #d27e39;
  /* culoare asemănătoare cu site */
  font-weight: 500;
  min-height: 30px;
  /* să nu sară conținutul la schimbare */
  font-family: 'Montserrat', sans-serif;
}




/* Setări globale */
html,
body {
  min-height: 100%;
  height: auto;
  overflow-x: hidden;
  font-family: 'Montserrat', sans-serif;
  scroll-behavior: smooth;
}


/* Secțiunea principală Hero cu fundal imagine și text central */
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('background.jpg');
  height: 100vh;
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 100px;
}


/* Bara de navigare (navbar) fixă în partea de sus */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 60px;
  color: #ccc;
}



/* Stiluri pentru titlul și sloganul logo-ului */
.logo {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Stil pentru butonul de download */
.cv-download-btn {
  padding: 10px 16px;
  background-color: #6e675fcc;
  color: white;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.cv-download-btn:hover {
  background-color: #e76909d3;
}


.logo h1 {
  font-size: 24px;
  font-weight: bold;
}

.logo img {
  height: 80px;
  /* sau cât vrei tu */
  object-fit: contain;
}

/* Meniu orizontal */
nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}



/* Linie animată la hover și activ */
.navbar nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: width 0.3s ease;
}

/* Hover */
.navbar nav ul li a:hover::after {
  width: 100%;
}

/* Active (pagina curentă sau scroll current section) */
.navbar nav ul li a.active::after {
  width: 100%;
  background-color: #f3f3f3;
}


.navbar.shrink {
  padding: 5px 30px;
  background-color: rgba(0, 0, 0, 0.85);
}








/* Textul din Hero */
.content {
  text-align: center;
  padding: 80px 20px 60px;
}

.subtitle {
  font-size: 20px;
  margin-bottom: 15px;
}

.title {
  font-size: 48px;
  font-weight: 700;
}

/* Secțiunea Connect care include About + Connect */
.services-section {
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  overflow: hidden;
}









/* --- About Me Section --- */


.about-section {
  min-height: 100vh;
  padding-top: 120px;
  /* ca să nu se suprapună sub navbar */
  padding-bottom: 80px;
  /* spațiu deasupra footerului */
  background-color: #2b2c2f;
  /* fundal negru */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
  gap: 60px;
}


.about-text {
  flex: 1;
  max-width: 50%;
}

.about-text h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #f3f3f3;
}

.about-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #ccc;
}

#pyramid-container {
  position: relative;
  width: 350px;
  height: 400px;
  flex-shrink: 0;
  perspective: 1000px;
}


/* Stil general pentru fiecare imagine */
/* Imagine + titlu sub ea */
.pyramid-image {
  position: absolute;
  top: 50%;
  transform-style: preserve-3d;
  transform-origin: center center;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), left 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  filter: brightness(0.7);
  width: 255px;
  height: auto;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%) scale(0.85);
}

/* Imaginea propriu-zisă */
.pyramid-image img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: rgba(0, 0, 0, 0.5) 0px 10px 30px;
}

/* Titlul sub imagine */
.image-title {
  margin-top: 10px;
  font-weight: bold;
  font-size: 1.1rem;
  color: #ffffff;
  text-shadow: 0 0 3px black;
}


/* Imaginea centrala */
.pyramid-image.center {
  left: 50%;
  width: 300px;
  height: 375px;
  transform: translate(-50%, -50%) scale(1) rotateY(0deg);
  z-index: 3;
  filter: brightness(1);
}

/* Imaginea din stanga */
.pyramid-image.left {
  left: 5%;
  transform: translate(-50%, -50%) rotateY(45deg) scale(0.85);
}

/* Imaginea din dreapta */
.pyramid-image.right {
  left: 95%;
  transform: translate(-50%, -50%) rotateY(-45deg) scale(0.85);
}

/* === Caseta gri translucidă pentru text About Me === */
.about-text {
  position: relative;
  background-color: rgba(255, 255, 255, 0.05);
  /* gri translucid */
  padding: 30px;
  border-radius: 15px;
  border: 2px solid transparent;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

/* Efect portocaliu animat la hover pentru caseta About Me */
.about-text::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  border-radius: 18px;
  border: 2px solid orange;
  opacity: 0;
  transform: rotate(0deg);
  transition: opacity 0.3s, transform 0.6s ease;
  z-index: 0;
}

.about-text:hover::before {
  opacity: 1;
  transform: rotate(360deg);
}

/* Să nu suprapună textul peste bordura animată */
.about-text p,
.about-text h2 {
  position: relative;
  z-index: 1;
}






/* Efect portocaliu și mărire la hover pentru imaginea întreagă */
/* Eliminăm efectele anterioare */
.pyramid-image::before {
  content: none;
}

/* Efect glow portocaliu discret sub imagine la hover */
.pyramid-image:hover img {
  box-shadow: 0 0 20px 6px rgba(255, 140, 0, 0.5);
  transition: box-shadow 0.4s ease-in-out;
}




.skills-section {
  height: 100vh;
  overflow: hidden;
  position: relative;
  background-color: black;
  color: #d3d3cc;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  padding: 80px 60px;
  flex-wrap: wrap;
  min-height: 100vh;
  gap: 40px;
}

.skills-section .left {
  flex: 1;
  font-size: clamp(20px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  white-space: normal;
  color: #d3d3cc;
  text-align: left;
  transition: font-size 0.3s ease;
}

.skills-section .left span {
  color: #d3d3cc;
  transition: color 0.3s ease;
}

/* Clasa aplicată literei când o vrem portocalie */
.skills-section .left span.colored {
  color: orange;
  transition: color 0.3s ease;
}


.skills-section .right {
  flex: 2;
  padding-left: 40px;
  overflow-y: auto;
  max-height: 100%;
}

.skills-title-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 40px;
}

.skills-title {
  position: relative;
  color: white;
  font-size: 60px;
  z-index: 2;
}


.skills-background {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 100px;
  color: rgba(255, 165, 0, 0.1);
  /* portocaliu deschis transparent */
  z-index: 1;
  pointer-events: none;
}

.skills-columns {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.skills-columns>div {
  flex: 1;
  min-width: 200px;
}

.skills-columns h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: rgba(197, 86, 26, 0.909);
}

.skills-columns li {
  font-family: monospace;
  color: white;
  font-size: 16px;
  list-style: none;
  margin-bottom: 6px;
  white-space: pre;
}

#animated-skills-text span {
  display: block;
  margin-bottom: 8px;
  line-height: 1.2;
}


/* Cursor animat ca la masina de scris */
.typewriter-cursor::after {
  content: '|';
  animation: blink 0.8s infinite;
  margin-left: 2px;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}








.connect-section {
  padding: 100px 0;
  background: radial-gradient(circle at top, #111 0%, #000 100%);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.connect-container {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 40px;
  border-radius: 20px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 0 25px 4px rgba(255, 140, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.connect-form h3 {
  font-size: 28px;
  color: white;
  margin-bottom: 30px;
}

.connect-form form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  flex-direction: row;
  /* pe orizontală */
  gap: 20px;
}

.form-row input {
  flex: 1;
  /* se extind egal */
}


.form-row input,
textarea {
  width: 100%;
  padding: 15px;
  font-size: 14px;
  border: none;
  border-radius: 12px;
  background-color: #1f1f1f;
  color: white;
  outline: none;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button {
  background-color: #fff;
  color: #000;
  font-weight: 600;
  font-size: 16px;
  padding: 14px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s ease;
}

button:hover {
  background-color: #da5e0cda;
  color: #fff;
}












/* Footer social fix pe ecran */
.social-footer {
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  display: flex;
  gap: 40px;
  padding: 10px 0;
  background-color: rgba(129, 122, 122, 0.7);
  backdrop-filter: blur(4px);
}

.social-footer img {
  width: 32px;
  height: 32px;
  filter: brightness(100%) invert(100%);
  transition: transform 0.3s;
  cursor: pointer;
}

.social-footer img:hover {
  transform: scale(1.2);
}



/* ========== RESPONSIVE DESIGN ========== */

/* General form adjustment */
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }

  .projects-section {
    padding-top: 120px;
    min-height: auto;
    /* 🟢 lasă pagina să crească pe mobil */
  }
}



.projects-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  /* 🟢 schimbat din 'center' */
  padding: 100px 20px 60px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  color: white;
  min-height: 100vh;
  /* 🟢 restaurăm această linie pentru desktop */
  box-sizing: border-box;
}




.projects-section h2 {
  margin-top: 80px;
  font-size: 36px;
  margin-bottom: 60px;
}


.projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}



.project-card {
  background-color: #2e2e2e;
  border-radius: 10px;
  padding: 20px;
  width: 400px;
  max-width: 90%;
  box-shadow: 40px 40px 120px rgba(240, 234, 234, 0.2);
  transition: transform 0.3s;
  text-align: start;
  font-family: 'Montserrat', sans-serif;
  color: #f0f0f0;
  text-decoration-color: #1b2941;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.project-card h3 {
  font-size: 22px;
  margin-bottom: 20px;
  text-align: center;
  font-family: 'Lucida Sans', sans-serif;
  font-style: oblique;
}

.project-card video {
  width: 100%;
  object-fit: cover;
  /* Taie marginile și centrează */
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
  padding-top: 20px;
}





.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.overlay-content {

  background: #c9c1c1c2;
  padding: 30px 50px;
  font-size: 20px;
  font-weight: bold;
  color: rgba(118, 69, 8, 0.888);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.hidden {
  display: none;
}



.loader {
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  display: none;
  margin: 20px auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}





/* ================= Media Queries Responsive ================== */

/* Tablete și ecrane medii */
@media (max-width: 992px) {
  .navbar {
    padding: 5px 30px;
  }

  .logo h1 {
    font-size: 20px;
  }

  nav ul {
    gap: 20px;
  }

  .content {
    margin-top: 250px;
    margin-bottom: 60px;
  }

  .title {
    font-size: 38px;
  }

  .subtitle {
    font-size: 18px;
  }

  .about-container {
    flex-direction: column;
    padding: 60px 20px 40px;
  }

  .about-title,
  .about-text {
    width: 100%;
    text-align: center;
  }

  .about-text p {
    text-align: center;
  }

  .projects-section h2 {
    font-size: 28px;
    margin-top: 60px;
    margin-bottom: 40px;
  }

  .project-card {
    width: 320px;
    padding: 15px;
  }
}


/* Telefoane mobile */
@media (max-width: 480px) {
  .navbar {
    padding: 5px 15px;
  }

  .logo h1 {
    font-size: 16px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
  }

  .content {
    margin-top: 150px;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .title {
    font-size: 24px;
  }

  .subtitle {
    font-size: 14px;
  }

  .about-container {
    flex-direction: column;
    padding: 30px 10px 20px;
  }

  .about-title,
  .about-text {
    width: 100%;
    text-align: center;
  }

  .projects-section {
    padding-top: 120px;
    /* 🔼 crește spațiul de sus ca să nu fie sub navbar */
  }

  .projects-section h2 {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .projects-grid {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .project-card {
    width: 100%;
    max-width: 320px;
    padding: 10px;
  }

  .connect-section,
  .connect-form,
  .connect-image {
    padding: 20px 10px !important;
  }

  /* Fonturi formular */
  .connect-form h3 {
    font-size: 20px !important;
  }

  button {
    width: 100%;
    padding: 12px 0;
  }

  .social-footer {
    flex-direction: column;
    gap: 20px;
    position: static;
    background-color: rgba(129, 122, 122, 1);
  }

  .social-footer {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    padding: 8px 0;
    flex-wrap: wrap;
    position: fixed;
    bottom: 0;
    background-color: rgba(129, 122, 122, 0.9);
  }

  .social-footer img {
    width: 28px;
    height: 28px;
  }

  .connect-form h3 {
    font-size: 24px;
  }

  .connect-form,
  .connect-section {
    padding: 30px 20px;
  }

  .skills-section {
    padding: 40px 20px 20px 20px;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* puțin mai aerisit */
  }

  .skills-section .left {
    font-size: 28px !important;
    margin-bottom: 0;
    display: flex !important;
    justify-content: center; /* centrare orizontală */
    align-items: center;     /* centrare verticală */
    text-align: center !important;
    padding-top: 20px; /* distanță față de bara de sus */
    width: 100%;
  }

  #animated-skills-text {
    font-size: 26px !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    margin: 0 auto !important;
    padding: 0 10px;
  }

  #animated-skills-text span {
    display: inline !important;
    margin-right: 6px !important;
    margin-bottom: 0 !important;
    line-height: 1.2 !important;
  }

  #animated-skills-text .line1,
  #animated-skills-text .line2,
  #animated-skills-text .line3 {
    display: inline !important;
    margin-right: 6px !important;
    margin-bottom: 0 !important;
  }

  #animated-skills-text br {
    display: none !important;
  }
}

/* ===== MENU RESPONSIVE ===== */

.menu-toggle {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
  z-index: 1001;
}



/* Tablete mici și telefoane mari */
@media (max-width: 768px) {
  .navbar {
    padding: 5px 20px;
  }

  .logo h1 {
    font-size: 18px;
  }

  nav ul {
    gap: 15px;
    font-size: 14px;
  }

  .content {
    margin-top: 200px;
    margin-bottom: 40px;
  }

  .title {
    font-size: 32px;
  }

  .subtitle {
    font-size: 16px;
  }

  .about-container {
    padding: 40px 15px 30px;
  }

  .projects-section {
    padding-top: 120px;
    min-height: auto;
  }

  .projects-section h2 {
    margin-top: 40px;
    font-size: 24px;
    margin-bottom: 30px;
  }

  .projects-grid {
    gap: 20px;
    justify-content: center;
  }

  .project-card {
    width: 280px;
    padding: 15px;
  }


  .menu-toggle {
    display: block;
  }

  nav#navbar-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 20px 0;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 1000;
  }

  nav#navbar-menu.open {
    display: flex;
  }

  nav#navbar-menu ul {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  nav#navbar-menu ul li a {
    font-size: 18px;
  }

  .about-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
  }

  .about-text {
    max-width: 100%;
  }

  #pyramid-container {
    max-width: 280px;
    height: 320px;
  }

  .pyramid-image {
    width: 200px;
  }

  .pyramid-image.center {
    width: 240px;
    height: 300px;
  }

  .pyramid-image.left {
    left: 12%;
  }

  .pyramid-image.right {
    left: 88%;
  }

  .connect-container {
    flex-direction: column;
    text-align: center;
  }

  .connect-image,
  .connect-form {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .connect-image img {
    max-width: 100%;
  }

  .social-footer {
    position: static;
    background-color: rgba(129, 122, 122, 1);
  }

  .skills-section {
    padding: 40px 20px 20px 20px;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* puțin mai aerisit */
  }

  .skills-section .left {
    font-size: 28px !important;
    margin-bottom: 0;
    display: flex !important;
    justify-content: center; /* centrare orizontală */
    align-items: center;     /* centrare verticală */
    text-align: center !important;
    padding-top: 20px; /* distanță față de bara de sus */
    width: 100%;
  }

  #animated-skills-text {
    font-size: 26px !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    margin: 0 auto !important;
    padding: 0 10px;
  }

  #animated-skills-text span {
    display: inline !important;
    margin-right: 6px !important;
    margin-bottom: 0 !important;
    line-height: 1.2 !important;
  }

  #animated-skills-text .line1,
  #animated-skills-text .line2,
  #animated-skills-text .line3 {
    display: inline !important;
    margin-right: 6px !important;
    margin-bottom: 0 !important;
  }

  #animated-skills-text br {
    display: none !important;
  }
}