/* ======================================================
   CORE.CSS — ASYRAF.RF
   Base Layout, Typography, Structure
   ====================================================== */

/* ========== CSS RESET ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========== ROOT VARIABLES ========== */
:root {
  --bg: #020403;
  --text: #e6fff4;
  --muted: #9fbfb4;
  --accent: #00ff9c;

  --max-width: 1200px;
  --section-gap: 120px;
  --radius: 10px;
}

/* ========== BODY ========== */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ========== LINKS ========== */
a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ========== GLOBAL LAYOUT ========== */
section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-gap) 24px;
  position: relative;
}

section.full {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ========== HEADINGS ========== */
h1, h2, h3, h4 {
  font-family: "Courier New", monospace;
  letter-spacing: 1px;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 16px;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 24px;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

/* ========== PARAGRAPH ========== */
p {
  color: var(--muted);
  max-width: 760px;
  margin-bottom: 16px;
}

/* ========== HERO ========== */
#hero {
  text-align: center;
}

#hero .tagline {
  color: var(--accent);
  text-align: center;
  font-weight: 600;
  margin-bottom: 12px;
}

#hero .intro {
  max-width: 700px;
  margin: 0 auto 32px;
}

/* ========== CTA BUTTONS ========== */
.cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta a {
  padding: 12px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  transition: 0.3s ease;
}

.cta a:hover {
  background: var(--accent);
  color: #000;
  text-decoration: none;
}

/* ========== CARDS ========== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(0,255,156,0.25);
  background: rgba(0,0,0,0.35);
}

/* ========== SKILLS GRID ========== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

/* ========== TIMELINE ========== */
.timeline {
  list-style: none;
  position: relative;
  padding-left: 20px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(0,255,156,0.3);
}

.timeline li {
  margin-bottom: 32px;
  padding-left: 24px;
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
}

.timeline span {
  display: block;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 6px;
}

/* ========== PROJECTS ========== */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* Container Utama */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Styling Setiap Gambar/Card Proyek */
.projects img {
  width: 100%;
  height: 200px;
  object-fit: cover; /* Agar gambar tidak gepeng */
  border: 2px solid rgba(0, 255, 156, 0.3);
  border-radius: 12px;
  background: #000;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: grayscale(80%) brightness(0.8); /* Efek awal agak gelap */
  cursor: pointer;
}

/* Efek Saat Hover */
.projects img:hover {
  filter: grayscale(0%) brightness(1.1);
  transform: translateY(-10px) scale(1.03);
  border-color: var(--accent); /* Menggunakan variabel warna neon kamu */
  box-shadow: 0 0 20px rgba(0, 255, 156, 0.4), 
              0 0 40px rgba(0, 255, 156, 0.1);
}

/* ========== LISTS ========== */
ul {
  padding-left: 20px;
}

li {
  margin-bottom: 10px;
  color: var(--muted);
}

/* ========== SOCIALS ========== */
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.socials a {
  border: 1px solid rgba(0,255,156,0.4);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 0.8rem;
}

/* ========== FOOTER ========== */
footer {
  text-align: center;
  padding: 40px 16px;
  font-size: 0.75rem;
  color: #6f8f85;
  border-top: 1px solid rgba(0,255,156,0.15);
}

/* ========== UTILITY ========== */
.center {
  text-align: center;
}

.hidden {
  display: none;
}
