/*
|--------------------------------------------------------------------------
| File: asset/css/style.css
| Deskripsi: Berisi seluruh kode CSS utama untuk styling website ini.
|           Meliputi reset, layout, section gambar dan teks, efek hover,
|           animasi, serta styling ikon sosial media. Semua aturan dasar dan
|           tampilan utama didefinisikan di sini, sedangkan kode responsive
|           dipisahkan ke file lain.
|--------------------------------------------------------------------------
*/


/* =============================== */
/*         RESET & BASE            */
/* =============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  width: 100%;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-display: swap;
}

body {
  background-color: #070707;
  height: 100vh;
  width: 100vw;
  position: relative;
  overflow-x: hidden;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =============================== */
/*         LAYOUT CONTAINER        */
/* =============================== */
.container {
  display: flex;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* =============================== */
/*         TEXT SECTION            */
/* =============================== */
.text-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0 2rem 2rem;
  background-color: #070707;
  min-width: 550px;
  overflow: visible;
}

/* =============================== */
/*         IMAGE SECTION           */
/* =============================== */
.image-section {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 2rem 3rem 3rem 2rem;
  background-color: #070707;
  min-width: 0;
  flex-shrink: 0;
}

.image-container {
  width: 80%;
  height: 80%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  position: relative;
}

.profile-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
}

/* =============================== */
/*         ABOUT IMAGE HOVER       */
/* =============================== */
.about-images {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  margin: 3rem 0 2rem 0;
}

.about-image-hover {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.10);
  cursor: pointer;
  background: #222;
}

.about-image-hover img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1);
}

.about-image-hover img.top {
  opacity: 1;
  z-index: 2;
}
.about-image-hover img.bottom {
  opacity: 0;
  z-index: 1;
}
.about-image-hover:hover img.top {
  opacity: 0;
}
.about-image-hover:hover img.bottom {
  opacity: 1;
}

@keyframes border-pulse {
  0% {
    box-shadow: 0 0 0 0 #ff6b6b, 0 0 0 0 rgba(255,107,107,0.5);
  }
  60% {
    box-shadow: 0 0 0 18px rgba(255,107,107,0.18), 0 0 0 36px rgba(255,107,107,0.10);
  }
  100% {
    box-shadow: 0 0 0 32px rgba(255,107,107,0), 0 0 0 64px rgba(255,107,107,0);
  }
}

/* =============================== */
/*         TEXT CONTENT            */
/* =============================== */
.content {
  color: #ffffff;
  max-width: 600px;
  min-width: 400px;
  width: 100%;
  text-align: left;
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

.content h1 {
  font-size: 2.8rem;
  font-weight: 500;
  margin-bottom: 0.3em;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.content .highlight {
  font-size: 2.4rem;
  font-weight: 800;
  color: #ff6b6b;
  margin-bottom: 0.8em;
  display: block;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.3;
  position: relative;
  min-height: auto;
  white-space: nowrap;
  width: 100%;
  min-width: 400px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.typing-text {
  display: inline-block;
  min-width: 380px;
  text-align: left;
}

.cursor {
  display: inline-block;
  color: #ff6b6b;
  animation: blink 1s infinite;
  font-weight: 300;
  margin-left: 2px;
}

.typing-cursor {
  display: inline-block;
  color: #ff6b6b;
  font-weight: 400;
  margin: 0 2px;
  font-size: inherit;
  line-height: inherit;
  text-shadow: 0 0 0 #ff6b6b;
  animation: cursor-blink 1s infinite;
}

.typing-cursor.blink {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@keyframes cursor-blink {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

.content p {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.7;
  color: #b0b0b0;
  margin-top: 1.5rem;
  max-width: 480px;
  letter-spacing: 0.005em;
}

/* =============================== */
/*         SOCIAL MEDIA ICONS      */
/* =============================== */
.social-icons {
  display: flex;
  gap: 1.2rem;
  margin-top: 2rem;
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #2a2a2a;
  transition: all 0.5s ease;
  text-decoration: none;
  border: 2px solid #404040;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  z-index: 1;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ff6b6b;
  border-radius: 50%;
  opacity: 0;
  transform: scale(1);
  z-index: 2;
  pointer-events: none;
  transition: none;
}

.social-link:hover {
  border-color: #ff6b6b;
  background-color: #ff6b6b;
  animation: border-pulse 1.3s cubic-bezier(0.4,0,0.2,1) infinite forwards;
  opacity: 1;
}

@keyframes pulse-bg {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.25;
    transform: scale(1.4);
  }
  100% {
    opacity: 0;
    transform: scale(1.7);
  }
}

.social-link:hover::before {
  opacity: 0.5;
  animation: pulse-bg 0.7s;
}

.social-link:active {
  transition: all 0.15s ease;
  transform: scale(0.95);
}

.social-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) saturate(0) invert(0.6);
  transition: all 0.5s ease;
  z-index: 3;
  position: relative;
  transform-origin: center center;
}

.social-link:hover .social-icon {
  filter: brightness(0) invert(1);
  transform: rotateY(360deg);
  animation-play-state: running;
}

/* Enable SVG animations on hover */
.social-link:hover .social-icon * {
  animation-play-state: running !important;
}

/* Pause SVG animations by default */
.social-icon * {
  animation-play-state: paused;
}


@import url('responsive.css');

/* =============================== */
/*     DEVICE WARNING OVERLAY      */
/* =============================== */
.device-warning {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(7, 7, 7, 0.92);
  z-index: 9999;
  backdrop-filter: blur(6px);
  text-align: center;
}

.device-warning.is-visible {
  display: flex;
}

.device-warning__content {
  width: min(480px, 100%);
  background: rgba(12, 12, 12, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.65);
}

.device-warning__icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 5px 12px rgba(255, 107, 107, 0.4));
}

.device-warning__content h2 {
  font-size: 1.6rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.device-warning__content p {
  color: #cfcfcf;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.device-warning__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  width: 100%;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 24px rgba(255, 107, 107, 0.35);
}

.device-warning__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(255, 107, 107, 0.45);
}

.device-warning__button:active {
  transform: translateY(0);
  box-shadow: 0 10px 20px rgba(255, 107, 107, 0.35);
}

body.device-warning-active {
  overflow: hidden;
}
