/* about.css */

/* Reset dan base style - tidak ada perubahan */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Raleway", sans-serif;
  color: #ffffff;
  background-color: #0a0a0a;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Hero section dengan video background (sama seperti di home.css) */
.hero {
  position: relative;
  height: 50vh; /* Lebih pendek dari homepage */
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Video background styling - tidak ada perubahan */
.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

#bg-video {
  position: absolute;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Fallback styling jika video error - tidak ada perubahan */
.video-fallback {
  background-image: url("../assets/images/fallback-image.jpg");
  background-size: cover;
  background-position: center;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.8),
    rgba(0, 0, 0, 0.5)
  );
}

/* Hero content styling */
.hero-content {
  max-width: 800px;
  text-align: center;
  padding: 0 20px;
  z-index: 2;
  animation: fadeIn 1.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  font-family: "Orbitron", sans-serif;
  font-size: 60px;
  font-weight: 900;
  letter-spacing: 5px;
  margin-bottom: 20px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(125, 95, 255, 0.8);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px rgba(125, 95, 255, 0.8);
  }
  to {
    text-shadow: 0 0 20px rgba(125, 95, 255, 1),
      0 0 30px rgba(125, 95, 255, 0.7);
  }
}

.tagline {
  font-size: 22px;
  font-weight: 300;
  margin-bottom: 20px;
  color: #e0e0e0;
}

/* Container untuk semua konten */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* About content section */
.about-content {
  padding: 60px 0;
  background-color: #0c0c14;
  position: relative;
}

/* Ambient background elements */
.about-content::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(125, 95, 255, 0.03);
  filter: blur(100px);
  z-index: 0;
  top: -100px;
  right: 10%;
}

/* Profile card */
.profile-card {
  background: rgba(15, 15, 25, 0.5);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(125, 95, 255, 0.2);
  position: relative;
  z-index: 1;
}

/* Profile header with image and basic info */
.profile-header {
  display: flex;
  align-items: center;
  padding: 40px;
  background: rgba(10, 10, 18, 0.7);
  border-bottom: 1px solid rgba(125, 95, 255, 0.2);
}

.profile-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #7d5fff;
  box-shadow: 0 0 20px rgba(125, 95, 255, 0.5);
  margin-right: 40px;
  flex-shrink: 0;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info {
  flex: 1;
}

.dev-name {
  font-family: "Orbitron", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.dev-title {
  font-size: 18px;
  color: #7d5fff;
  margin-bottom: 20px;
  font-weight: 500;
}

.dev-education {
  display: flex;
  align-items: center;
  font-size: 16px;
  color: #b3b3cc;
}

.education-icon {
  display: flex;
  align-items: center;
  margin-right: 10px;
  color: #7d5fff;
}

.education-icon svg {
  width: 20px;
  height: 20px;
}

/* Profile body with sections */
.profile-body {
  padding: 40px;
}

.section {
  margin-bottom: 40px;
}

.section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-family: "Orbitron", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #7d5fff;
  margin-bottom: 25px;
  letter-spacing: 3px;
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: #7d5fff;
}

.section-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #b3b3cc;
  margin-bottom: 20px;
}

.section-content p:last-child {
  margin-bottom: 0;
}

/* Skills section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.skill-item {
  display: flex;
  align-items: center;
}

.skill-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7d5fff;
  margin-right: 15px;
  flex-shrink: 0;
}

.skill-icon svg {
  width: 24px;
  height: 24px;
}

.skill-info {
  flex: 1;
}

.skill-info h4 {
  font-family: "Orbitron", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.skill-bar {
  height: 6px;
  background: rgba(125, 95, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, #7d5fff, #5d3fff);
  border-radius: 3px;
  transition: width 1s ease;
}

/* Timeline section */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(125, 95, 255, 0.3);
}

.timeline-item {
  position: relative;
  margin-bottom: 25px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -39px;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #7d5fff;
  box-shadow: 0 0 10px rgba(125, 95, 255, 0.5);
}

.timeline-content h4 {
  font-family: "Orbitron", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 15px;
  color: #b3b3cc;
}

/* Profile footer with social links and contact */
.profile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 40px;
  background: rgba(10, 10, 18, 0.7);
  border-top: 1px solid rgba(125, 95, 255, 0.2);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(125, 95, 255, 0.1);
  color: #7d5fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.social-icon:hover {
  background: rgba(125, 95, 255, 0.3);
  transform: translateY(-3px);
}

.contact-info {
  display: flex;
}

.contact-link {
  display: flex;
  align-items: center;
  color: #7d5fff;
  transition: all 0.3s ease;
}

.contact-link svg {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

.contact-link:hover {
  color: #ffffff;
}

/* Developer message section */
.developer-message {
  padding: 80px 0;
  background-color: #0a0a12;
  position: relative;
  overflow: hidden;
}

.developer-message::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(125, 95, 255, 0.03);
  filter: blur(100px);
  z-index: 0;
  bottom: -100px;
  left: 10%;
}

.message-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.section-title-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

.developer-message .section-title {
  text-align: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
}

.developer-message .section-title::after {
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
}

.message-text {
  font-size: 18px;
  line-height: 1.8;
  color: #b3b3cc;
}

.message-text p {
  margin-bottom: 25px;
}

.signature {
  margin-top: 40px;
}

.signature img {
  height: 60px;
  max-width: 100%;
}

/* ====== MEDIA QUERIES UNTUK RESPONSIVITAS ====== */

/* Tablet (768px - 1023px) */
@media screen and (max-width: 1023px) {
  h1 {
    font-size: 48px;
    letter-spacing: 3px;
  }

  .tagline {
    font-size: 20px;
  }

  .profile-header {
    padding: 30px;
  }

  .profile-image {
    width: 150px;
    height: 150px;
    margin-right: 30px;
  }

  .profile-body {
    padding: 30px;
  }

  .dev-name {
    font-size: 28px;
  }

  .skills-grid {
    gap: 20px;
  }
}

/* Mobile Landscape (576px - 767px) */
@media screen and (max-width: 767px) {
  .hero {
    height: 40vh;
  }

  h1 {
    font-size: 36px;
    letter-spacing: 2px;
  }

  .tagline {
    font-size: 18px;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  .profile-image {
    margin-right: 0;
    margin-bottom: 20px;
    width: 140px;
    height: 140px;
  }

  .dev-name {
    font-size: 26px;
  }

  .dev-education {
    justify-content: center;
  }

  .profile-body {
    padding: 30px 20px;
  }

  .section-title {
    font-size: 20px;
    letter-spacing: 2px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .profile-footer {
    flex-direction: column;
    gap: 20px;
    padding: 25px 20px;
  }

  .social-links {
    justify-content: center;
  }

  .contact-info {
    justify-content: center;
  }

  .developer-message {
    padding: 60px 0;
  }

  .message-text {
    font-size: 16px;
  }
}

/* Mobile Portrait (until 575px) */
@media screen and (max-width: 575px) {
  .hero {
    height: 35vh;
  }

  h1 {
    font-size: 30px;
    letter-spacing: 1px;
    margin-bottom: 10px;
  }

  .tagline {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .profile-image {
    width: 120px;
    height: 120px;
  }

  .dev-name {
    font-size: 24px;
  }

  .dev-title {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .dev-education {
    font-size: 14px;
  }

  .section-title {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .section-content p {
    font-size: 15px;
  }

  .skill-item {
    margin-bottom: 5px;
  }

  .skill-icon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
  }

  .skill-icon svg {
    width: 18px;
    height: 18px;
  }

  .skill-info h4 {
    font-size: 15px;
  }

  .timeline {
    padding-left: 25px;
  }

  .timeline-dot {
    left: -32px;
    width: 14px;
    height: 14px;
  }

  .timeline-content h4 {
    font-size: 15px;
  }

  .timeline-content p {
    font-size: 14px;
  }

  .message-text {
    font-size: 15px;
  }

  .signature img {
    height: 50px;
  }
}

/* Untuk layar sangat kecil (< 360px) */
@media screen and (max-width: 359px) {
  h1 {
    font-size: 24px;
  }

  .tagline {
    font-size: 14px;
  }

  .container {
    padding: 0 15px;
  }

  .profile-header,
  .profile-body,
  .profile-footer {
    padding: 20px 15px;
  }

  .dev-name {
    font-size: 22px;
  }

  .section-title {
    font-size: 16px;
  }

  .social-icon {
    width: 36px;
    height: 36px;
  }

  .contact-link span {
    font-size: 14px;
  }
}

/* Fix untuk video pada orientasi landscape di mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .hero {
    height: 70vh;
  }
}
