* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --text-color: #1f2937;
  --light-bg: #f3f4f6;
  --white: #ffffff;
  --success-color: #10b981;
  --error-color: #ef4444;
  --primary-gray: #555;
  --primary-beige: #d8d8b6;
  --primary-rose: #e4c4c4;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

button {
  transform: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--white);
  z-index: 1000;
  padding: 1rem 2rem;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

/* Hamburger Icon */
.hamburger {
  display: none;
  cursor: pointer;
  transform: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

.logo img {
  max-width: 40px;
  max-height: 40px;
  margin-right: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.language-switch {
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-btn:hover,
.lang-btn.active {
  background: var(--primary-color);
  color: var(--white);
}

.hero {
  height: 100vh;
  background: linear-gradient(rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.2)),
    url("https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero-content {
  padding: 2rem;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 1rem;
  backdrop-filter: blur(5px);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

section {
  padding: 5rem 2rem;
}

section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.team-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.team-member {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
}

.member-image {
  font-size: 5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.member-image-img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.team-member h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.secondary-subtitle{
  font-size: clamp(0.725rem, 1.6vw, 1rem);
  color: var(--primary-beige);
  margin-bottom: 1rem;
}

@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-in {
  animation: slideInUp 1s ease-out forwards;
  animation-delay: 2s;
  opacity: 0;
}


.role {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.experience {
  color: var(--text-color);
  margin-bottom: 1rem;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  min-height: 10rem;
}


.flip-card {
  width: 100%;
  perspective: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}


.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}


.skills-container {
  background: var(--light-bg);
  border-radius: 12px;
  padding: 0.2rem 0.5rem;
  max-height: 32px;
}

.skills-container-back{
  background: transparent;
  border-radius: 12px;
  padding: 0.2rem 0.5rem;
  height: 100%;
  min-height: 48px;
}

.flip-back {
  transform: rotateY(180deg);
  background: transparent;
  border-radius: 12px;
  position: absolute;
  display: flex;
  align-items: center;
  top:0;
  padding: 0.2rem 0.5rem;
  min-height: 48px;
}

.flip-front{
  height: auto;
}

.services {
  background: var(--light-bg);
}

.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.service-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-card h3 {
  margin-bottom: 1rem;
}

.project-carousel {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.project-card {
  background: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.project-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.project-card h3 {
  padding: 1rem;
  margin: 0;
}

.project-card p {
  padding: 0 1rem 1rem;
}

.swiper-pagination {
  margin-top: 20px;
  bottom: 10px;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--primary-color);
  font-size: 2.5rem;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: background-color 0.3s ease;
}

.swiper-button-next {
  right: 10px;
}

.swiper-button-prev {
  left: 10px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--secondary-color);
}
.swiper-pagination-bullet-active {
  background: var(--primary-color);
}

.contact {
  background: var(--light-bg);
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-message-modal {
  width: 100%;
  height: 100%;
  color: var(--error-color);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1000;
  background-color: var(--white);
  max-width: 600px;
  opacity: 1;
  border-radius: 16px;
  visibility: hidden;
  font-size: clamp(1rem, 2vw, 2rem);
  font-weight: bold;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 4px;
  border: 1px solid var(--error-color);
}

.success-message-modal-real{
  width: 100%;
  height: 100%;
  color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1000;
  background-color: var(--white);
  max-width: 600px;
  opacity: 1;
  visibility: hidden;
  font-size: clamp(1rem, 2vw, 2rem);
  font-weight: bold;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 4px;

}

.success-message-thankyou {
  position: fixed;
  top: 20%;
  left: 6%;
}

.success-message-backtoyou {
  position: fixed;
  top: 50%;
  left: 10%;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: 0.3s;
  pointer-events: none;
}

.success-message-thankyou-real{
  position: fixed;
  top: 30%;
  left: 10%;
  transform: translateY(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: 0.3s;
  pointer-events: none;
}

.success-message-backtoyou-real {
  position: fixed;
  top: 50%;
  left: 10%;
  transform: translateY(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: 0.3s;
  pointer-events: none;
}

.success-message-backtoyou-real-eventually{
  position: fixed;
  top: 60%;
  left: 10%;
  transform: translateY(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: 0.3s;
  pointer-events: none;
}

.success-message-backtoyou.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.error-message-modal {
  width: 100%;
  height: 100%;
  color: var(--error-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  background-color: var(--white);
  max-width: 500px;
  opacity: 1;
  border-radius: 16px;
  visibility: hidden;
  font-size: 2rem;
  font-weight: bold;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 4px;
  text-align: center;
}


.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: scroll;

}



/* Modal Content */
.modal-content {
  background-color: var(--white);
  padding: 2rem;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  max-height: 90%;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
  position: relative;
  margin-top: 20px;
}

.close-modal-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--error-color);
  cursor: pointer;
  transition: color 0.3s ease;
}
.close-modal-button:hover {
  color: var(--primary-color);
}

.modal h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.input-label-input-container {
  margin-bottom: 1.2rem;
}

.input-label-input-container label {
  font-size: 1rem;
  color: var(----primary-gray);
  display: block;
  margin-bottom: 0.5rem;
}

.input-label-input-container input {
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
  border: 1px solid var(--primary-gray);
  border-radius: 5px;
  transition: border 0.3s ease;
}

.input-label-input-container input:focus {
  border-color: var(--primary-color);
  outline: none;
}

#modal-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1.2rem;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.open {
  opacity: 1;
  visibility: visible;
  display: block;
}

#modal-submit:hover {
  background-color: var(--secondary-color);
}

.modal.open {
  opacity: 1;
  visibility: visible;
  display: block;
}

.modal.open .modal-content {
  transform: translateY(0);
}


@keyframes fadeIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#swipper-description {
  padding-bottom: 24px;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#contact-form input,
#contact-form textarea {
  padding: 1rem;
  border: 1px solid var(--primary-gray);
  border-radius: 0.5rem;
  font-size: 1rem;
}

#contact-form textarea {
  height: 150px;
  resize: vertical;
}

.success-message {
  margin-top: 1rem;
  padding: 1rem;
  background-color: var(--success-color);
  color: var(--white);
  border-radius: 0.5rem;
  text-align: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.success-message.hidden {
  opacity: 0;
  display: none;
}

#flying-owl {
  position: fixed;
  top: 0;
  left: -200px;
  width: 100px;
  height: auto;
  z-index: 9999;
  pointer-events: auto;
  opacity: 0;
}

#flying-owl img {
  width: 100%;
  height: auto;
}

.fly-owl-animation {
  animation: fly-across 10s linear forwards;
}

@keyframes fly-across {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(110vw) translateY(-50vh) rotate(360deg);
    opacity: 0;
  }
}

.owl-section {
  cursor: pointer;
  z-index: 9999;
}


/* Footer */
footer {
  background: var(--text-color);
  color: var(--white);
  padding: 3rem 2rem 1rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--white);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Buttons */
.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background: var(--secondary-color);
}

.language-switch {
  margin-top: 0.125rem;
  display: flex;
  align-items: center;
}
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 24px;
  font-weight: bold;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
  z-index: 1000;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background-color: var(--primary-color);
}

.arrow-up {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 10px solid var(--white);
}

#language-select {
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  border-radius: 0.25rem;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%232563eb' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1.5em;
  padding-right: 2rem;
}

#language-select:hover {
  color: var(--primary-color);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
}

.random-joke-popup {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  padding: 20px;
  color: var(--white);
  border-radius: 10px;
  display: none;
  z-index: 1000;
  text-align: center;
}

.random-joke-popup .popup-content {
  font-size: 18px;
}

.random-joke-popup button.close-popup {
  margin-top: 10px;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

.random-joke-popup button.close-popup:hover {
  background-color: var(--secondary-color);
  transition: background-color 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-content {
    gap: 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.25rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 1rem;
  }

  .hamburger {
    display: block;
  }

  .nav-links.active {
    display: flex;
  }

  .swiper-button-next,
  .swiper-button-prev {
    display: none;
    z-index: 0 !important;
  }
  section {
    padding: 2rem 1rem;
  }
  .modal-content {
    padding: 1.5rem;
    max-height: 100%;
    margin-top: 0;
    border-radius: 0;
  }

  .modal h2 {
    font-size: 1.5rem;
  }

  .input-label-input-container input {
    padding: 0.7rem;
  }

  #modal-submit {
    font-size: 1rem;
  }

  .success-message-thankyou-real{
    left: 6%;
  }
  
  .success-message-backtoyou-real {
    left: 6%;
  }
  
  .success-message-backtoyou-real-eventually{
    left: 6%;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 1rem;
  }

  .modal h2 {
    font-size: 1.2rem;
  }

  .input-label-input-container input {
    padding: 0.6rem;
  }

  #modal-submit {
    font-size: 0.9rem;
  }
}
