:root {
  --white: #ffffff;
  --black: #000000;
  --blue: #3A59D0;
  --blue-soft: #dce5ff;
  --bg-1: #030507;
  --bg-2: #07111a;
  --bg-3: #0b1823;
  --text-soft: #cbd7e2;
  --border-soft: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(255, 255, 255, 0.045);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  --radius-lg: 28px;
  --radius-md: 18px;
  --transition: 0.35s ease;
  --max-width: 1200px;
}

/* RESET */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #030507;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--white);
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2), var(--bg-3));
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

main {
  background:
    radial-gradient(circle at top left, rgba(58, 89, 208, 0.09), transparent 28%),
    radial-gradient(circle at top right, rgba(58, 89, 208, 0.06), transparent 28%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2), var(--bg-3));
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* GENERAL SECTIONS */

.section {
  padding: 110px 20px;
  background: transparent;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-label {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-heading h1,
.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.08;
  margin-bottom: 15px;
}

.section-heading p {
  color: var(--text-soft);
}

/* NAVBAR */

.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(4, 8, 12, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links > a {
  padding: 12px 0;
  transition: var(--transition);
}

.nav-links > a:hover {
  color: var(--blue);
}

/* DROPDOWN MENU */

.dropdown {
  position: relative;
  padding: 12px 0;
}

.dropdown-toggle {
  background: transparent;
  border: none;
  color: var(--white);
  font: inherit;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.dropdown-toggle:hover {
  color: var(--blue);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 270px;
  background: #0a121b;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
  z-index: 1000;
}

.dropdown:hover .dropdown-menu {
  display: flex;
}

.dropdown-menu a {
  padding: 10px 12px;
  border-radius: 10px;
  transition: var(--transition);
}

.dropdown-menu a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--blue);
}

/* MOBILE MENU */

.menu-toggle {
  display: none;
  background: transparent;
  color: var(--white);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  background: #08111a;
}

.mobile-menu.show {
  display: flex;
}

.mobile-services-title {
  color: var(--blue);
  font-weight: 700;
  margin-top: 8px;
}

/* HOME HERO */

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.78), rgba(7,17,26,0.74)),
    radial-gradient(circle at top right, rgba(58, 89, 208, 0.35), transparent 32%);
}

.hero-content {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 50px;
  align-items: center;
}

.hero-logo {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  overflow: hidden;
  border: 3px solid rgba(58, 89, 208, 0.6);
  box-shadow: 0 0 60px rgba(58, 89, 208, 0.25);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 35px;
}

.hero-tag {
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-text h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1;
  margin-bottom: 18px;
}

.hero-description {
  max-width: 720px;
  color: var(--text-soft);
  margin-bottom: 24px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-badges span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.word-reveal {
  position: relative;
  display: inline-block;
  color: #ffffff; /* culoarea initiala, cat timp inca nu s-a animat */
  animation: word-reveal-color 0.6s ease-out forwards;
  animation-delay: 0.6s; /* cat asteapta pana porneste, dupa incarcarea paginii */
}

.word-reveal::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px; /* mutat mai sus fata de -4px, ca sa nu prinda diacritica */
  width: 100%;
  height: 3px; /* mai subtire, de la 5px */
  background: #3A59D0;
  border-radius: 2px;

  transform: scaleX(0);
  transform-origin: left;
  animation: word-reveal-line 0.7s ease-out forwards;
  animation-delay: 0.7s;
}

@keyframes word-reveal-color {
  to {
    color: #3A59D0;
  }
}

@keyframes word-reveal-line {
  to {
    transform: scaleX(1);
  }
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(255,255,255,0.18);
}

/* MAIN GRIDS */

.team-grid,
.services-grid,
.contact-wrap,
.portfolio-grid-mixed {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.team-grid,
.contact-wrap {
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.services-grid {
  grid-template-columns: repeat(3, 1fr);
}

.graphic-design-card {
  grid-column: 2;
}

.portfolio-grid-mixed {
  grid-template-columns: repeat(3, minmax(260px, 360px));
  justify-content: center;
}

/* CARDS */

.service-card,
.team-card,
.contact-info,
.contact-form,
.portfolio-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.service-card {
  padding: 28px;
  text-align: center;
}

.service-card h3 {
  margin-bottom: 12px;
}

.service-card p,
.team-info p,
.contact-info p,
.portfolio-body p {
  color: var(--text-soft);
}

/* TEAM */

.team-image {
  height: 360px;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.andrei-photo {
  object-position: center 35%;
}

.monica-photo {
  object-position: center 35%;
}

.team-info {
  padding: 24px;
  text-align: center;
}

/* CONTACT + INFO BOXES */

.contact-info,
.contact-form {
  padding: 30px;
}

.contact-points {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}

.contact-point span {
  color: var(--blue);
  font-weight: 700;
}

/* FORM */

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  color: var(--white);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  outline: none;
}

.form-group select option {
  color: #000;
}

.form-btn {
  width: 100%;
  border: none;
  cursor: pointer;
}

.form-status {
  margin-top: 14px;
  color: var(--blue);
  min-height: 24px;
}

/* SERVICE PAGE HERO */

.page-hero {
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(760px, 1.4fr);
  align-items: center;
  gap: 110px;
  min-height: 70vh;
  padding-top: 120px;
  padding-bottom: 120px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 10%, rgba(58, 89, 208, 0.28), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(58, 89, 208, 0.15), transparent 32%);
}

.page-hero .section-heading {
  max-width: 720px;
  margin: 0;
  text-align: left;
  position: relative;
  z-index: 2;
}

.page-hero .section-heading h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 1.05;
  margin-bottom: 24px;
}

.page-hero .section-heading p {
  max-width: 680px;
  font-size: 1.05rem;
}

.page-hero .contact-wrap {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 2;
}

.page-hero .contact-info,
.page-hero .contact-form {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* PORTFOLIO MEDIA - DEFAULT VIDEO VERTICAL */

.portfolio-media {
  aspect-ratio: 9 / 16;
  width: 100%;
  background: #000;
  overflow: hidden;
}

/* PORTFOLIO MEDIA - SOCIAL POST 4:5 */

.post-media {
  aspect-ratio: 4 / 5;
}

.portfolio-media video,
.portfolio-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* PORTFOLIO MEDIA - PHOTO 16:9 */

.photo-media {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
  overflow: hidden;
}

.photo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* PORTFOLIO MEDIA - LOGO 4:3 */

.logo-media {
  aspect-ratio: 4 / 3;
  width: 100%;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-media img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  object-position: center;
  padding: 0;
}

/* PORTFOLIO BODY */

.portfolio-body {
  padding: 22px;
}

.portfolio-type {
  color: var(--blue);
  font-weight: 700;
  display: inline-block;
  margin-bottom: 10px;
}

/* PHOTO PAGE GRID */

.photo-grid {
  grid-template-columns: repeat(3, minmax(260px, 420px));
  justify-content: center;
}

.photo-grid .lifestyle-card {
  grid-column: 2;
}

/* FOOTER */

.footer {
  padding: 22px 20px;
  text-align: center;
  color: var(--text-soft);
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* SCROLL ANIMATIONS */

.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: all 0.9s ease;
}

.reveal-up {
  transform: translateY(55px);
}

.reveal-left {
  transform: translateX(-65px);
}

.reveal-right {
  transform: translateX(65px);
}

.reveal-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* TABLET */

@media (max-width: 1200px) {
  .page-hero {
    grid-template-columns: 1fr;
    gap: 55px;
    text-align: center;
  }

  .page-hero .section-heading {
    margin: 0 auto;
    text-align: center;
  }

  .page-hero .section-heading p {
    margin: 0 auto;
  }

  .page-hero .contact-wrap {
    max-width: 950px;
    margin: 0 auto;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  
  .graphic-design-card {
  grid-column: 1 / -1;
  max-width: 420px;
  width: 100%;
  justify-self: center;
}

  .hero-grid,
  .services-grid,
  .portfolio-grid-mixed,
  .contact-wrap {
    grid-template-columns: 1fr 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(260px, 420px));
  }

  .photo-grid .lifestyle-card {
    grid-column: 1 / -1;
    max-width: 420px;
    width: 100%;
    justify-self: center;
  }
}

/* MOBILE */

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .graphic-design-card {
  grid-column: auto;
  max-width: none;
}

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
    padding-top: 90px;
    padding-bottom: 80px;
  }

  .hero-grid,
  .services-grid,
  .portfolio-grid-mixed,
  .contact-wrap,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-logo {
    max-width: 240px;
    margin: 0 auto;
  }

  .hero-text {
    text-align: center;
  }

  .hero-badges,
  .hero-buttons {
    justify-content: center;
  }

  .section {
    padding: 85px 18px;
  }

  .team-image {
    height: 300px;
  }

  .page-hero {
    padding-top: 90px;
    padding-bottom: 90px;
    gap: 40px;
  }

  .page-hero .contact-wrap {
    grid-template-columns: 1fr;
  }

  .page-hero .section-heading h1 {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid .lifestyle-card {
    grid-column: auto;
    max-width: none;
  }
}

/* SERVICE CARDS - HOVER EFFECT */

.service-card {
  cursor: pointer;
  transition: transform 0.35s ease, background-color 0.35s ease;
}

.service-card:hover {
  transform: translateY(-12px);
  background: var(--white);
}

.service-card:hover h3 a,
.service-card:hover p {
  color: var(--black);
}

/* TEAM CARDS - HOVER EFFECT */

.team-card {
  cursor: pointer;
  transition: transform 0.35s ease, background-color 0.35s ease;
}

.team-card:hover {
  transform: translateY(-12px);
  background: var(--white);
}

.team-card:hover .team-info h3,
.team-card:hover .team-info p {
  color: var(--black);
}

/* PAGE HERO INFO CARDS - HOVER EFFECT */

.page-hero .contact-info,
.page-hero .contact-form {
  cursor: pointer;
  transition: transform 0.35s ease, background-color 0.35s ease;
}

.page-hero .contact-info:hover,
.page-hero .contact-form:hover {
  transform: translateY(-12px);
  background: var(--white);
}

.page-hero .contact-info:hover h2,
.page-hero .contact-info:hover p,
.page-hero .contact-form:hover h2,
.page-hero .contact-form:hover p {
  color: var(--black);
}

/* PORTFOLIO CARDS - HOVER EFFECT */

.portfolio-card {
  cursor: pointer;
  transition: transform 0.35s ease, background-color 0.35s ease;
}

.portfolio-card:hover {
  transform: translateY(-12px);
  background: var(--white);
}

.portfolio-card:hover .portfolio-body h3,
.portfolio-card:hover .portfolio-body p {
  color: var(--black);
}

.page-hero .contact-info h2,
.page-hero .contact-form h2 {
  margin-bottom: 14px;
}

@media (max-width: 768px) {

  .hero-logo img {
    width: 170px;
    height: auto;
  }

  .hero-text h1 {
    font-size: 1.85rem;
    line-height: 1.15;
  }
}

@media (max-width: 768px) {
  .contact-point {
    min-width: 0;
  }

  .contact-point p {
    font-size: 0.82rem;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }
}