/* =============================================
   EXTERNAL STYLE SHEET - Web Profil
   Pemrograman Web IF200103
   ============================================= */

/* === IMPORT FONT === */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=DM+Sans:wght@300;400;500&display=swap');

/* === CSS VARIABLES === */
:root {
  --bg-primary: #0d0d0d;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --accent: #c8a96e;
  --accent-light: #e8c98e;
  --text-primary: #f0ece4;
  --text-muted: #888;
  --border: rgba(200, 169, 110, 0.2);
  --nav-height: 70px;
}

/* =============================================
   PENGATURAN BACKGROUND
   ============================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(200, 169, 110, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(200, 169, 110, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
}

.section-bg-alt {
  background-color: var(--bg-secondary);
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(200, 169, 110, 0.02) 40px,
    rgba(200, 169, 110, 0.02) 41px
  );
}

/* =============================================
   PENGATURAN FONT
   ============================================= */
body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: 1.4rem; }

.font-display { font-family: 'Playfair Display', serif; }
.font-mono { font-family: 'Courier New', monospace; font-size: 0.85em; }

/* =============================================
   PENGATURAN TEXT
   ============================================= */
p {
  color: var(--text-muted);
  max-width: 65ch;
  margin-bottom: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-light);
}

.text-accent { color: var(--accent); }
.text-primary { color: var(--text-primary); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.75rem; }

/* =============================================
   NAVBAR
   ============================================= */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  transition: background 0.3s ease;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 100px 0;
}

.page-wrapper {
  padding-top: var(--nav-height);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--accent);
  color: #0d0d0d;
}

.btn-primary:hover {
  background: var(--accent-light);
  color: #0d0d0d;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(200, 169, 110, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #0d0d0d;
  transform: translateY(-2px);
}

/* =============================================
   PENGATURAN TABLE
   ============================================= */
.table-wrapper {
  overflow-x: auto;
  border-radius: 2px;
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead {
  background: var(--bg-card);
}

thead th {
  padding: 16px 20px;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
}

tbody tr {
  border-bottom: 1px solid rgba(200, 169, 110, 0.08);
  transition: background 0.2s ease;
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background: rgba(200, 169, 110, 0.05);
}

tbody td {
  padding: 14px 20px;
  color: var(--text-muted);
  vertical-align: middle;
}

tbody td:first-child {
  color: var(--text-primary);
  font-weight: 400;
}

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.card-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1rem;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-tagline {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s ease both;
}

.hero h1 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-line {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  animation: lineGrow 1.5s ease 1s both;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  animation: bounce 2s ease infinite 2s;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* =============================================
   FORM KONTAK
   ============================================= */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 8px;
}

input, textarea, select {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.08);
}

textarea { resize: vertical; min-height: 130px; }

/* =============================================
   TRANSISI & ANIMASI
   ============================================= */

/* Fade In Down */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Fade In Up */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Fade In */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Line Grow */
@keyframes lineGrow {
  from { transform: translateY(-50%) scaleY(0); opacity: 0; }
  to { transform: translateY(-50%) scaleY(1); opacity: 1; }
}

/* Bounce */
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

/* Glow Pulse */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(200, 169, 110, 0.1); }
  50% { box-shadow: 0 0 40px rgba(200, 169, 110, 0.3); }
}

/* Float */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* Shimmer */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Spin Slow */
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Slide In Left */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Slide In Right */
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Scale In */
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Typewriter cursor blink */
@keyframes blink {
  50% { opacity: 0; }
}

/* Animated decorative ring */
.deco-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  animation: spinSlow 20s linear infinite;
}

/* Animate on scroll class */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Shimmer text */
.shimmer-text {
  background: linear-gradient(
    90deg,
    var(--text-primary) 0%,
    var(--accent-light) 40%,
    var(--text-primary) 60%,
    var(--text-primary) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* Profile image float */
.profile-img-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto;
}

.profile-img-wrapper .deco-ring:nth-child(1) {
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  animation-duration: 15s;
}

.profile-img-wrapper .deco-ring:nth-child(2) {
  width: 80%;
  height: 80%;
  top: 10%; left: 10%;
  animation-duration: 10s;
  animation-direction: reverse;
}

.profile-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  animation: float 6s ease-in-out infinite;
}

/* Section titles */
.section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--accent);
}

/* Grid layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Divider */
.divider {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 1.5rem 0;
}

/* Footer */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Stat box */
.stat-box {
  text-align: center;
  padding: 30px;
  border: 1px solid var(--border);
  animation: glowPulse 3s ease-in-out infinite;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
  display: block;
}

/* Contact info */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
  background: var(--accent);
  color: #0d0d0d;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

/* Notification */
.notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--accent);
  color: #0d0d0d;
  padding: 14px 24px;
  font-size: 0.85rem;
  font-weight: 500;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 9999;
}

.notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .hero-line {
    display: none;
  }

  .card {
    padding: 28px;
  }
}
