@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Poppins:wght@300;500;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: #0e1420;
  color: #ffffff;
  background-image: url("img-background/background.png");
}

#background-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

@keyframes glowFade {
  0%,
  100% {
    opacity: 0.3;
    filter: drop-shadow(0 0 4px white);
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 12px white);
  }
}

.motif-glow {
  animation: glowFade 4s ease-in-out infinite;
  transition: opacity 1s ease;
}

header {
  position: relative;
  height: auto;
  overflow: visible;
}


.video-band {
  position: relative;
  width: 100%;  
  height: 50vh; 
  max-height: 420px; 
  overflow: hidden; 
  background: #000; 
}


.video-band video {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  object-position: center top;  
}

nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  position: absolute;
  top: 30px;
  width: 100%;
  z-index: 20;
  padding-left: 12px;
}

.nav-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  color: #fff;
  font-weight: 500;
  font-family: "Orbitron", sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 48px;
  height: 48px;
  overflow: hidden;
  transition: all 0.3s ease;
  padding: 0 15px;
  backdrop-filter: blur(4px);
}

.nav-btn .full {
  opacity: 0;
  white-space: nowrap;
  color: #fff;
  margin-left: 10px;
  transition: opacity 0.3s ease;
  font-size: 0.85rem;
}

.nav-btn:hover {
  width: 140px;
  background: rgba(52, 152, 219, 0.1);
  border-color: #3498db;
  box-shadow: 0 0 12px rgba(52, 152, 219, 0.4);
}

.nav-btn:hover img {
  opacity: 0;
}

.nav-btn:hover .full {
  opacity: 1;
}

.nav-btn:hover .short {
  filter: brightness(1.5);
}

.nav-btn .short {
  transition: opacity 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  margin: 0 auto;
  padding: 0 200px;
  box-sizing: border-box;
  z-index: 2;
  position: relative;
}

.content {
  background: #132038;
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: space-between;
  padding: 30px 40px;
  border-radius: 12px;
  margin-top: 30px;
  gap: 30px;
  min-height: 700px;
}

.left-section {
  width: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  box-shadow: none;
  padding: 0;
}

.profile-photo {
  width: 100%;
  display: flex;
  justify-content: center;
}

.main-photo {
  width: 500px;
  height: 500px;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  border: none;
  position: relative;
  animation: electricFlow 4s infinite ease-in-out;
}

.right-section {
  width: 55%;
  background: #0e1420;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 3px #3498db;
}

.main-title {
  font-family: "Orbitron", sans-serif;
  color: #ffffff;
  font-size: 3rem;
  text-align: center;
  margin: 20px 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.bio-content {
  display: flex;
  gap: 40px;
  margin-top: 30px;
}

.bio-text {
  flex: 2;
  font-weight: 300;
  line-height: 1.8;
}

.bio-text p {
  margin-bottom: 20px;
}

.skills-software {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.skills-title,
.software-title {
  font-family: "Orbitron", sans-serif;
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.skills-list {
  list-style-type: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skills-list li {
  background: #132038;
  border: 1px solid #3498db;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 0.9rem;
}

.position {
  display: block;
  font-weight: 300;
  color: #e0e0e0;
  font-size: 0.9rem;
}

.container2 {
  background: #132038;
  backdrop-filter: blur(6px);
  margin-top: 20px;
  padding: 30px 40px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  min-height: 750px;
}

.filters {
  list-style-type: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.filters button {
  background-color: transparent;
  color: #3498db;
  border: 1px solid #3498db;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  transition: all 0.3s ease;
}
.filter-btn {
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 rgba(52, 152, 219, 0);
}

.filter-btn:hover {
  box-shadow: 0 0 10px rgba(52, 152, 219, 0.7);
  background: #ffffff;
  color: #3498db;
  transform: scale(1.1);
}

.filter-btn:hover {
  background: #ffffff;
  color: #3498db;
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(52, 152, 219, 0.7);
  background: #ffffff;
  color: #3498db;
  transform: scale(1.1);
}

.filters button.active {
  background-color: #3498db;
  color: #ffffff;
}

.card-caption {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: white;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 10px;
  border-radius: 5px;
}

.gallery {
  width: 100%;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px;
  margin: 0 auto;
}

.image-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #3498db;
  cursor: pointer;
  display: block;
  background: radial-gradient(circle, rgba(52, 152, 219, 0.2), transparent);
  box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.image-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(52, 152, 219, 0.6),
    0 0 10px rgba(255, 255, 255, 0.2);
  background: radial-gradient(circle, rgba(52, 152, 219, 0.3), transparent);
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.1) brightness(1.1) contrast(1.2);
  transition: transform 0.3s ease;
}

.image-card:hover img {
  transform: scale(1.05);
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes modalZoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-content {
  animation: modalZoomIn 0.6s ease forwards;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 1);
  overflow: auto;
  margin: 0;
}

.modal-content {
  display: block;
  max-height: 100vh;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 50px auto;
  box-shadow: 0 0 80px rgba(255, 100, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.modal-scrollbox {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 50px;
}

.modal-img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.modal-img-long {
  max-height: none;
}

.close-btn {
  position: fixed;
  top: 20px;
  right: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 26px;
  line-height: 40px;
  text-align: center;
  color: white;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10000;
}

.close-btn:hover {
  background: rgba(255, 80, 80, 0.6);
  transform: scale(1.1);
}

.signature-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  pointer-events: none;
}

.signature-image {
  max-width: 500px;
  max-height: 300px;
  opacity: 1;
  filter: drop-shadow(0 0 5px rgb(255, 255, 255)) brightness(1);
}

.contact-content {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.contact-text {
  font-weight: 300;
  line-height: 1.8;
  max-width: 500px;
  text-align: center;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: "Orbitron", sans-serif;
  color: #3498db;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
  background: #0e1420;
  border: 1px solid #3498db;
  border-radius: 5px;
  padding: 12px;
  color: #ffffff;
  font-size: 0.9rem;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  box-shadow: 0 0 8px rgba(52, 152, 219, 0.5);
}

.contact-btn {
  background: #3498db;
  color: #ffffff;
  border: none;
  padding: 12px 25px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1rem;
  font-family: "Orbitron", sans-serif;
  transition: all 0.3s ease;
  align-self: center;
}

.contact-btn:hover {
  background: #2980b9;
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

.contact-info {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  text-align: center;
}

.contact-info h3 {
  font-family: "Orbitron", sans-serif;
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-info p {
  font-weight: 300;
  margin-bottom: 10px;
}

.contact-info a {
  color: #3498db;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.social-icon img {
  width: 30px;
  height: 30px;
  filter: invert(67%) sepia(51%) saturate(576%) hue-rotate(123deg);
  transition: all 0.3s ease;
}

.social-icon:hover img {
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%)
    contrast(103%);
  transform: scale(1.1);
}

footer {
  padding: 20px;
  text-align: center;
  background: #132038;
  margin-top: 50px;
}

@media (max-width: 768px) {
  .signature-image {
    max-width: 200px;
    max-height: 100px;
  }
}

@media (max-width: 768px) {
  @media (max-width: 768px) {
  }

  .nav-btn {
    width: 100% !important;
    height: 45px;
    justify-content: flex-start;
    padding-left: 15px;
  }

  .nav-btn .full {
    position: static;
    opacity: 1;
    margin-left: 15px;
  }

  .nav-btn .short {
    display: flex;
  }
}

@media (max-width: 1200px) {
  .container {
    padding: 0 100px;
  }

  .content {
    flex-direction: column;
    align-items: center;
  }

  .left-section,
  .right-section {
    width: 100%;
  }

  .bio-content {
    flex-direction: column;
  }

  .container2 {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .main-title {
    font-size: 2rem;
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .image-card {
    width: 150px;
    height: 150px;
  }
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 20, 32, 0.6);
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 5;
  padding-bottom: 10px;
}

.card-hover-text {
  color: white;
  font-family: "Orbitron", sans-serif;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  text-align: center;
  padding: 5px 15px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  max-width: 90%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.image-card:hover .card-overlay {
  opacity: 1;
}

.image-card:hover .card-hover-text {
  opacity: 1;
  transform: translateY(0);
}

.modal-info-btn {
  margin: 30px auto 20px;
  display: block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #ff4400, #ff7700);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-family: "Orbitron", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 100, 0, 0.3);
}

.modal-info-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 120, 0, 0.5);
}

.modal-info-box {
  max-width: 700px;
  margin: 0 auto 30px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: #eee;
  font-family: "Roboto", sans-serif;
  text-align: left;
  line-height: 1.7;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  overflow: hidden;
  opacity: 0;
  max-height: 0;
  z-index: 3;
  position: relative;
  backdrop-filter: blur(5px);
}

.modal-info-box.active {
  opacity: 1;
  max-height: 1000px;
}

.modal-info-box h3 {
  font-size: 20px;
  color: #ff8c42;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 5px;
}

.modal-info-box ul {
  list-style: none;
  padding: 0;
}

.modal-info-box li::before {
  content: "➤";
  color: #ff4400;
  margin-right: 10px;
}




.logo-nav-wrapper {
  position: relative;
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 20px 40px;
}

.logo-nav-wrapper .nav-left,
.logo-nav-wrapper .nav-right {
  display: flex;
  gap: 10px;
}

.logo-nav-wrapper .logo-center {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.logo-nav-wrapper .logo-button.large {
  width: 100px;
  height: 100px;
  background-image: url("img-header/kf.png");
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  border: 2px solid #3498db;
  box-shadow: 0 0 10px #3498db;
}

.nav-btn.fancy {
  display: flex;
  align-items: center;
  justify-content: center; 
  gap: 10px;
  padding: 0 20px;
  width: auto;              
  min-width: 120px;         
  height: 52px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-btn.fancy span {
  opacity: 1;               
  color: #fff;
  font-size: 0.9rem;
  font-family: "Orbitron", sans-serif;
}

.nav-btn.fancy:hover {
  background: rgba(52, 152, 219, 0.1);
  box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}
.nav-btn.fancy img.nav-icon {
  width: 24px;
  height: 24px;
  filter: brightness(1.2) invert(1);
  transition: transform 0.3s ease;
  display: inline-block;
  vertical-align: middle;
}
.nav-btn.fancy:hover span {
  opacity: 1;
}
.nav-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  width: 100%;
}
.footer-contact {
  background: #0e1420;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

.footer-col h4 {
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #8fbce3;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.f-link {
  color: #ffffff;
  background: rgba(52, 152, 219, 0.1);
  border: 1px solid #3498db;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.f-link:hover {
  background: #3498db;
  color: #fff;
  box-shadow: 0 0 10px rgba(52, 152, 219, 0.4);
}

footer hr {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 20px auto;
  width: 80%;
}

.icon-link:hover {
  background: #3498db;
  box-shadow: 0 0 10px rgba(52, 152, 219, 0.4);
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(52, 152, 219, 0.1);
  border: 1px solid #3498db;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  padding: 0;
  transition: all 0.3s ease;
}

.social-icon {
  width: 16px;
  height: 16px;
  filter: invert(1);
}
.software-section {
  display: flex;
  flex-direction: column;
}

.software-title {
  font-family: "Orbitron", sans-serif;
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.software-item-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.software-item {
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 0.9rem;
  color: #ffffff;
}

.icon:hover {
  filter: drop-shadow(0 0 10px #3498db);
  transform: scale(1.1);
}

.animated-icon {
  animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}
.software-icons {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  margin-top: 30px;
}

.icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  filter: drop-shadow(0 0 6px #3498db);
}

.animated-icon {
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.video-grid {
  width: 100%;
  max-width: 1200px;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin: 0 auto;
  justify-content: center;
}


.video-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}


.video-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(52, 152, 219, 0.6), 0 0 10px rgba(255, 255, 255, 0.2);
  background: radial-gradient(circle, rgba(52, 152, 219, 0.3), transparent);
}

.video-card iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: none;
  display: block;
}

.youtube-section {
  min-height: auto !important;
}

.container2 {
  min-height: auto;
}
