/* MEDANTRON - MAIN STYLESHEET */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --bg-main: #08090b;
  --bg-secondary: #101216;
  --bg-card: #171a20;
  --bg-card-hover: #20242b;
  --gold: #ffff00;
  --gold-light: #f4d38d;
  --gold-dark: #9d7534;
  --text-primary: #f5f5f5;
  --text-secondary: #a9adb5;
  --text-muted: #777e89;
  --border: rgba(255, 255, 255, 0.1);
  --border-gold: rgba(215, 172, 89, 0.35);
  --container-width: 1200px;
  --header-height: 88px;
  --radius: 16px;
  --transition: all 0.3s ease;
}

/* GLOBAL RESET */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: Inter, Arial, sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background: var(--gold);
  color: #08090b;
}

/* CONTAINER & SECTION */

.container {
  width: min(90%, var(--container-width));
  margin-inline: auto;
}

.section {
  padding: 110px 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 55px;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -1.2px;
  margin-bottom: 20px;
}

.section-heading p:not(.eyebrow) {
  color: var(--text-secondary);
  font-size: 1rem;
}

.eyebrow {
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* =========================================
   HEADER
========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--header-height);
  background: rgba(8, 9, 11, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.header-content {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  line-height: 1.3;
}

.brand-name {
  color: var(--gold);
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: 2px;
}

.brand-tagline {
  color: var(--text-secondary);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 2.1px;
}

/* HEADER LOGO */

.site-header .brand.brand-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  flex: 0 1 auto;
  min-width: 0;
  text-align: left;
}

.site-header .header-logo {
  display: block;
  width: 88px;
  height: 88px;
  max-width: none;
  object-fit: contain;
  flex-shrink: 0;
}

.site-header .brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  width: auto;
}

.site-header .brand-name {
  display: block;
  color: #ffff00;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 1px;
  white-space: nowrap;
}

.site-header .brand-tagline {
  display: block;
  color: #aaa;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.3;
  margin-top: 5px;
  white-space: nowrap;
  max-width: 100%;
}

/* NAVIGATION */

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-shrink: 0;
}

.main-nav a {
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 600;
  transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold);
}

/* MOBILE MENU */

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 5px 0;
  background: var(--gold);
}

/* =========================================
   HERO SECTION
========================================= */

.hero {
  position: relative;
  min-height: 690px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 75% 40%,
      rgba(215, 172, 89, 0.12),
      transparent 48%
    ),
    linear-gradient(135deg, #101319, #08090b 70%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 55px 55px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 90px;
  padding-bottom: 100px;
}

.hero h1 {
  max-width: 920px;
  font-size: clamp(3rem, 7vw, 6.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -3px;
  color: var(--gold);
}

.hero h1 span {
  display: block;
  max-width: 880px;
  margin-top: 20px;
  color: var(--text-primary);
  font-size: clamp(1.7rem, 3.6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -1.5px;
}

.hero-description {
  max-width: 680px;
  margin-top: 30px;
  color: var(--text-secondary);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 35px;
}

/* =========================================
   BUTTONS
========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 27px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #111;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(215, 172, 89, 0.18);
}

.btn-outline {
  border-color: var(--border-gold);
  color: var(--gold-light);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(215, 172, 89, 0.1);
  transform: translateY(-3px);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 4px;
}

/* =========================================
   ABOUT SECTION
========================================= */

.about-preview {
  background: var(--bg-main);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.feature-card {
  padding: 35px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-secondary);
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-5px);
}

.feature-card h3 {
  margin-bottom: 15px;
  color: var(--gold-light);
  font-size: 1.2rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.94rem;
}

/* =========================================
   SERVICES SECTION
========================================= */

.services-preview {
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
}

.service-card {
  position: relative;
  min-height: 240px;
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
}

.service-number {
  display: block;
  margin-bottom: 22px;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2px;
}

.service-card h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
  font-weight: 800;
}

.service-card p {
  max-width: 460px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.section-action {
  margin-top: 45px;
  text-align: center;
}

/* ==========================================
   MEDANTRON - PORTFOLIO
========================================== */

.portfolio-preview {
  background: var(--bg-main);
}

.portfolio-placeholder {
  padding: 80px 30px;
  text-align: center;
  border: 1px dashed var(--border-gold);
  border-radius: var(--radius);
  background:
    radial-gradient(
      circle at center,
      rgba(215, 172, 89, 0.06),
      transparent 65%
    ),
    var(--bg-secondary);
}

.portfolio-placeholder h3 {
  margin-bottom: 15px;
  color: var(--gold-light);
  font-size: 1.65rem;
}

.portfolio-placeholder p {
  max-width: 560px;
  margin: 0 auto 30px;
  color: var(--text-secondary);
}

/* FOTO PORTOFOLIO - TIDAK TERPOTONG */

#projects-grid .project-card {
  overflow: hidden;
}

#projects-grid .project-card .project-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  cursor: zoom-in;
}

/* RESPONSIVE FOTO */

@media (max-width: 768px) {
  #projects-grid .project-card .project-image {
    height: 220px;
  }
}

@media (max-width: 480px) {
  #projects-grid .project-card .project-image {
    height: 200px;
  }
}

/* CTA */
.contact-cta {
  background:
    linear-gradient(135deg, rgba(215, 172, 89, 0.12), transparent 60%),
    var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-content {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.cta-content h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.25;
  letter-spacing: -1px;
}
.cta-content p:not(.eyebrow) {
  margin-bottom: 32px;
  color: var(--text-secondary);
}
/* FOOTER */
.site-footer {
  padding: 65px 0 30px;
  background: #060709;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  text-align: center;
}
.footer-brand h2 {
  color: var(--gold);
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 2px;
}
.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}
.footer-nav a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer-nav a:hover {
  color: var(--gold);
}
.copyright {
  width: 100%;
  padding-top: 25px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
}
.official-slogan {
  max-width: 800px;
  margin-top: 25px;
  color: var(--gold-light);
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  font-weight: 800;
  letter-spacing: 1.2px;
  line-height: 1.8;
}
.footer-slogan {
  margin-top: 12px;
  color: var(--gold-light) !important;
  font-size: 0.78rem !important;
  font-weight: 700;
  letter-spacing: 1px;
}
