/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  background: linear-gradient(
    135deg,
    #000000 0%,
    #1a1a2e 25%,
    #16213e 50%,
    #0f3460 75%,
    #1a1a2e 100%
  );
  background-attachment: fixed;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Video Background */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

#bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

#bg-video.loaded {
  opacity: 0.25;
}

/* Fallback overlay to ensure readability */
.video-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* Additional overlay for better text readability */
.video-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(26, 26, 46, 0.2) 25%,
    rgba(22, 33, 62, 0.2) 50%,
    rgba(15, 52, 96, 0.2) 75%,
    rgba(26, 26, 46, 0.3) 100%
  );
  z-index: 1;
}

/* Container */
.container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  z-index: 2;
}

/* Profile Section */
.profile-section {
  max-width: 900px;
  width: 100%;
  padding: 50px 40px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 25px;
  backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 3;
}

/* Profile Content Layout */
.profile-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.profile-text {
  flex: 1;
  text-align: left;
}

.profile-image {
  flex-shrink: 0;
}

#profile-pic {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(-20px);
}

#profile-pic:hover {
  transform: translateY(-20px) scale(1.05);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Profile Info */
.name {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.role {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #64b5f6;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.description {
  font-size: 1.2rem;
  color: #e0e0e0;
  line-height: 1.8;
  margin-bottom: 0;
}

.description strong {
  color: #927d7d;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 40px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.6rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Specific social media colors on hover */
.social-icon:hover .fa-instagram {
  color: #e4405f;
}

.social-icon:hover .fa-twitter {
  color: #1da1f2;
}

.social-icon:hover .fa-linkedin {
  color: #0077b5;
}

.social-icon:hover .fa-github {
  color: #333;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.resume-btn {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

.resume-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(15, 52, 96, 0.6);
  border-color: rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, #0f3460 0%, #16213e 50%, #1a1a2e 100%);
}

.contact-btn {
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 50%, #000000 100%);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2d2d2d 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 20px 10px;
  }

  .profile-section {
    padding: 30px 20px;
    border-radius: 20px;
  }

  .profile-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .profile-text {
    text-align: center;
  }

  .name {
    font-size: 2.5rem;
  }

  .role {
    font-size: 1.5rem;
  }

  .description {
    font-size: 1.1rem;
  }

  #profile-pic {
    width: 180px;
    height: 180px;
    transform: translateY(-15px);
  }

  .social-icons {
    gap: 20px;
  }

  .social-icon {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }

  .action-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .btn {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }

  /* Reduce video opacity on mobile for better readability */
  #bg-video.loaded {
    opacity: 0.15;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 15px 10px;
  }

  .profile-section {
    padding: 25px 15px;
    border-radius: 15px;
  }

  .name {
    font-size: 2rem;
  }

  .role {
    font-size: 1.3rem;
  }

  .description {
    font-size: 1rem;
  }

  #profile-pic {
    width: 150px;
    height: 150px;
    transform: translateY(-10px);
  }

  .social-icon {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }

  .social-icons {
    gap: 15px;
  }

  /* Further reduce video opacity on small mobile screens */
  #bg-video.loaded {
    opacity: 0.1;
  }
}

/* Disable video on very small screens or slow connections */
@media (max-width: 320px) {
  #bg-video {
    display: none !important;
  }
}

/* Smooth scrolling for the page */
html {
  scroll-behavior: smooth;
}

/* Animation for when page loads */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-section {
  animation: fadeInUp 0.8s ease-out;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
  background: #666;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #888;
}
