/* Preloader*/
/* Preloader Responsive Video Styles */
#preloader {
  position: fixed;
  z-index: 9999;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #111;
  opacity: 1;
  transition: opacity 0.8s ease-out;
}
#preloaderVideo {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 0;
  left: 0;
}

/* Mobile View (below 768px) */
@media (max-width: 768px) {
  #preloader {
    height: 100dvh;
  }
  #preloaderVideo {
    width: 100vw;
    height: 100dvh;
    min-width: 100vw;
    min-height: 100dvh;
    max-width: 100vw;
    max-height: 100dvh;
    object-fit: cover;
    object-position: center center;
  }
}

/* Tablet and smaller desktop */
@media (max-width: 900px) and (min-width: 769px) {
  #preloader, #preloaderVideo {
    width: 100vw;
    height: 100vh;
  }
}
/* ------------
  Header
--------------- */

.main-header {
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-logo {
  height: 55px;
  width: auto;
  object-fit: contain;
  z-index: 1001;
}

.nav-menu {
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  font-size: 0.95rem;
  letter-spacing: 1px;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--highlight-color);
}

.nav-menu li:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  padding-right: 1.5rem;
}

header.main-header {
  transition: transform 0.3s ease-in-out;
  transform: translateY(0);
}

header.main-header.hide {
  transform: translateY(-100%);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
  background: none;
  border: none;
  padding: 8px;
  outline: none;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

@media (max-width: 992px) {
  .hamburger {
    display: flex !important;
  }
  .nav-menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    transition: top 0.3s ease-in-out;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
  }
  body.no-scroll {
    overflow: hidden;
  }
  .nav-menu.active {
    top: 0;
    opacity: 1;
    visibility: visible;
  }
  .nav-menu li {
    border-right: none !important;
    padding-right: 0;
    transform: translateY(20px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
  }
  .nav-menu.active li {
    transform: translateY(0);
    opacity: 1;
  }
  .nav-menu.active li:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav-menu.active li:nth-child(2) {
    transition-delay: 0.2s;
  }
  .nav-menu.active li:nth-child(3) {
    transition-delay: 0.3s;
  }
  .nav-menu.active li:nth-child(4) {
    transition-delay: 0.4s;
  }
  .nav-menu.active li:nth-child(5) {
    transition-delay: 0.5s;
  }
  .nav-menu a {
    font-size: 1.2rem;
    padding: 1rem;
    display: block;
    text-align: center;
    color: #ffffff;
  }
}

@media (min-width: 993px) {
  .hamburger {
    display: none;
  }
  .nav-menu {
    display: flex !important;
    position: static;
    background: transparent;
    height: auto;
    opacity: 1;
    visibility: visible;
  }
  .nav-menu li {
    transform: none;
    opacity: 1;
  }
}

/* -Hero Section- */
.second-section {
  background-image: var(--hero-bg);
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.second-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.second-content {
  position: relative;
  z-index: 1;
}

.logo-wrap {
  width: var(--logo-size);
  height: var(--logo-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo {
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-top-right {
  position: absolute;
  top: 20px;
  right: 20px;
  width: var(--logo-small);
  height: auto;
  z-index: 10;
}

.logo-top-right img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.card-box {
  padding: 4rem 7rem;
  border-radius: 0 150px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 50px rgba(0, 255, 180, 0.4);
  backdrop-filter: blur(5px);
  display: inline-block;
  text-align: center;
  max-width: 1000px;
  background: transparent;
}

.horse-icon {
  width: 90px;
}

.name-title {
  font-family: "Humanist521BT", sans-serif;
  font-size: 3rem;
  letter-spacing: 4px;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.name-title .highlight {
  color: var(--highlight-color);
}

.roles-typewriter {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cursor {
  display: inline-block;
  margin-left: 2px;
  color: var(--highlight-color);
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 1200px) {
  .card-box {
    padding: 3rem 5rem;
    border-radius: 0 100px 0 0;
    max-width: 800px;
  }
  .name-title {
    font-size: 2rem;
  }
}

@media (max-width: 992px) {
  .card-box {
    padding: 2.5rem 4rem;
    border-radius: 0 80px 0 0;
    max-width: 650px;
  }
  .name-title {
    font-size: 1.8rem;
    letter-spacing: 3px;
  }
}

@media (max-width: 768px) {
  .roles-typewriter {
    font-size: 0.95rem;
  }
  .card-box {
    padding: 2rem 2.5rem;
    border-radius: 0 60px 0 0;
    max-width: 500px;
  }
  .name-title {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }
  .horse-icon {
    width: 40px;
  }
}

@media (max-width: 576px) {
  .card-box {
    padding: 1.5rem 1.8rem;
    border-radius: 0 40px 0 0;
    max-width: 100%;
  }
  .name-title {
    font-size: 1.3rem;
    letter-spacing: 3px;
  }
  .horse-icon {
    width: 35px;
  }
}

/* About Section */
.about {
  background-image: var(--hero-bg);
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0px;
}

.about-container {
  position: relative;
  margin-top: -100px;
}

.about-logo {
  height: 270px;
}

.profile-img {
  cursor: pointer;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.8),
    0 0 60px rgba(255, 255, 255, 0.6), 0 0 90px rgba(255, 255, 255, 0.4);
  border: 1px solid #fff;
  transition: transform 0.3s ease;
}

.profile-img:hover {
  transform: rotate3d(1, 1, 1, 10deg) scale(1.1);
}

.profile-name {
  font-family: "CinzelDecorative-Regular", serif;
  font-size: 2.5rem;
  margin-top: 2rem;
  letter-spacing: 2px;
  line-height: 2rem;
}

.profile-surname {
  font-family: "Humanist521BT";
  text-transform: uppercase;
  font-size: 1.5rem;
  letter-spacing: 6px;
  color: var(--highlight-color);
}

.about-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #ffffff;
  margin-bottom: 30px;
}

.about-text {
  overflow: hidden;
  display: block;
  position: relative;
}

.about-text span {
  display: block;
  transform: translateY(100%);
  opacity: 0;
  animation: slideUp 0.8s ease-out forwards;
  animation-play-state: paused;
}

.about-text span:nth-child(1) {
  animation-delay: 0.5s;
}

.about-text span:nth-child(2) {
  animation-delay: 0.9s;
}

.about-text span:nth-child(3) {
  animation-delay: 0.7s;
}

@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
  from {
    transform: translateY(100%);
    opacity: 0;
  }
}

.animate-in span {
  animation-play-state: running;
}

.tagline {
  font-family: "Humanist521BT";
  font-size: 1.5rem;
  letter-spacing: 3px;
  color: #ffffff;
  text-align: right;
  font-weight: 500;
}

.creativity {
  font-weight: 500;
  color: #ffd563;
}

@media (max-width: 768px) {
  .about {
    height: auto;
    padding-bottom: 20px;
  }
  .profile-img {
    width: 200px;
    height: 200px;
  }
  .about-logo {
    height: 210px;
  }
  .about-me {
    display: flex;
    justify-content: center;
  }
  .tagline {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 10px;
  }
  .text-content {
    text-align: left;
  }
}

/* Skill Section */
.skills {
  background: url("/assets/images/bg-2.png");
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.icon-badge {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  flex: 0 0 56px;
  gap: 20px;
}

.icon-badge img {
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
}

.skills-left {
  margin-top: 0px;
}

.skill-head {
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.skill-sub {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  letter-spacing: 1px;
  text-align: center;
}

.divider {
  height: 1px;
  background: rgba(233, 245, 243, 0.14);
}

.skills-logo {
  height: 100vh;
}

@media (max-width: 576px) {
  .display-4 {
    font-size: 2.25rem;
  }
}

@media (max-width: 992px) {
  .skills {
    height: auto;
    padding: 40px 0;
  }
  .skills-left {
    margin-top: 0px;
  }
  .skills-logo {
    height: 50vh;
  }
  .skills-text {
    position: relative;
    margin-top: -80px;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

/* Projects Section */
.project {
  background: url("/assets/images/bg-2.png");
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 40px 0;
  display: flex;
  align-items: center;
}

.project::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.project .container {
  position: relative;
  z-index: 2;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.section-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.project-card {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 35px 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.095);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-5px) scale(1);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.196);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.1) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.project-card:hover .card-icon {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.074) 0%,
    rgba(255, 255, 255, 0.09) 100%
  );
  transform: scale(1);
}

.card-icon i {
  font-size: 28px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.project-card h3 {
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 4px;
  margin-bottom: 18px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.project-card p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin-bottom: 25px;
  font-size: 0.95rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.95);
  padding: 8px 16px;
  border-radius: 25px;
  letter-spacing: 1px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.project-card:hover .tag {
  background: rgba(255, 255, 255, 0.119);
  border-color: rgba(255, 255, 255, 0.106);
  transform: translateY(-2px);
}

.stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
}

@media (max-width: 1199.98px) {
  .section-title {
    font-size: 2.5rem;
  }
  .project-card {
    padding: 30px 25px;
  }
}

@media (max-width: 991.98px) {
  .section-title {
    font-size: 2.2rem;
  }
  .project-card {
    padding: 25px 20px;
    margin-bottom: 20px;
  }
  .card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }
  .card-icon i {
    font-size: 24px;
  }
}

@media (max-width: 767.98px) {
  .project {
    padding: 80px 0;
  }
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }
  .section-subtitle {
    font-size: 1rem;
  }
  .project-card {
    padding: 25px;
    border-radius: 15px;
  }
  .project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
  }
  .project-card p {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }
  .tag {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
}

@media (max-width: 575.98px) {
  .project {
    padding: 60px 0;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .project-card {
    padding: 20px;
  }
  .card-icon {
    width: 55px;
    height: 55px;
  }
  .card-icon i {
    font-size: 22px;
  }
}

@supports not (backdrop-filter: blur(20px)) {
  .project-card {
    background: rgba(255, 255, 255, 0.9);
  }
  .project-card:hover {
    background: rgba(255, 255, 255, 0.95);
  }
  .card-icon {
    background: rgba(255, 255, 255, 0.8);
  }
  .tag {
    background: rgba(255, 255, 255, 0.7);
  }
}

/* Contact Section */
.contact {
  background: url("/assets/images/bg-2.png");
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 20px !important;
}

.contact-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.glass-form {
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 40px;
  width: 100%;
  max-width: 550px;
}

.glass-form h2 {
  color: white;
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
  font-weight: 600;
}

.glass-form input,
.glass-form select,
.glass-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  font-size: 16px;
  outline: none;
}

.glass-form input::placeholder,
.glass-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.glass-form select {
  color: rgba(255, 255, 255, 0.7);
}

.glass-form select option {
  background: #667eea;
  color: white;
}

.glass-form input:focus,
.glass-form select:focus,
.glass-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.2);
}

.glass-form button {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: white;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 3px;
}

.glass-form button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Form Validation Styles */
.form-group {
  position: relative;
  margin-bottom: 15px;
}

.error-message {
  display: block;
  color: #ff6b6b;
  font-size: 0.8rem;
  margin-top: 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.error-message.show {
  opacity: 1;
}

.glass-form input.error,
.glass-form select.error,
.glass-form textarea.error {
  border-color: #ff6b6b;
  box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

.glass-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.glass-form button:disabled:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.2);
}

.glass {
  display: inline-block;
  padding: 5px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Hover effects for glass icons */
.glass:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Enhanced glass effect with gradient overlay */
.glass::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  border-radius: 12px;
  z-index: 1;
  pointer-events: none;
}

/* Ensure images stay above the overlay */
.glass img {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  filter: brightness(1.1);
}

.glass:hover img {
  filter: brightness(1.2) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Remove default image styling */
.social-icons {
  gap: 15px;
}

/* Contact Information Section */
.contact-info-section {
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 30px;
  margin-top: 20px;
}

.contact-info-section h3 {
  color: white;
  font-family: "CinzelDecorative-Regular", serif;
  font-size: 1.5rem;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.contact-details {
  color: white;
}

.email-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.email-contact i {
  color: var(--highlight-color);
  font-size: 1.2rem;
}

.email-link {
  color: var(--highlight-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.email-link:hover {
  color: white;
  text-shadow: 0 0 10px rgba(255, 213, 99, 0.5);
  transform: scale(1.05);
}

.contact-note {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin: 0;
  font-style: italic;
}

@media (max-width: 768px) {
  .glass-form {
    padding: 30px 20px;
  }
  
  .contact-info-section {
    padding: 20px;
  }
  
  .contact-info-section h3 {
    font-size: 1.3rem;
  }
  
  .email-contact {
    flex-direction: column;
    gap: 5px;
  }
  
  .email-link {
    font-size: 1rem;
  }
}
