/* ========================================
   TELERAD PACS ENTERPRISE STYLE
   THEME: CUSTOMIZED TO LOGO (CLEAN LIGHT HEADER)
======================================== */

:root {
    /* Palet warna disesuaikan dengan Logo Telerad */
    --primary: #084B6E;        /* Deep Slate Blue (Teks TELERAD) */
    --primary-dark: #042D45;   /* Versi lebih gelap untuk gradient */
    
    --secondary: #F2B705;      /* Golden Yellow (Simbol & Panah) */
    --secondary-dark: #D19D00; /* Versi lebih gelap untuk efek hover tombol */
    
    --dark: #121212;           /* Hitam pekat (Blade radiasi) */
    --light: #F2F6F8;          /* Abu-abu kebiruan sangat muda untuk background */
    --white: #ffffff;
    
    --text: #333333;           /* Warna teks standar */
    
    /* Bayangan dengan sedikit *tint* biru agar lebih elegan */
    --shadow: 0 10px 30px rgba(8, 75, 110, 0.08);
}

/* ========================================
   RESET, TYPOGRAPHY & SCROLLBAR
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Mencegah section tertutup header saat menu diklik */
    scroll-padding-top: 90px; 
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Custom Scrollbar Premium */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--light);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    transition: all 0.3s ease; /* Transisi dipindah ke sini */
}

ul {
    list-style: none;
}

/* ========================================
   CONTAINER
======================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ========================================
   HEADER
======================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(255, 255, 255, 0.98); 
    backdrop-filter: blur(10px);
    box-shadow: 0 3px 15px rgba(0,0,0,.08);
    transition: all 0.4s ease;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo img {
    height: 55px;
    filter: none; 
}

nav ul {
    display: flex;
    gap: 30px;
}

nav ul li a {
    color: var(--primary); 
    font-weight: 600;
}

nav ul li a:hover {
    color: var(--secondary-dark); 
}

/* Menu Aktif */
nav ul li a.active {
    color: var(--secondary-dark);
    position: relative;
}

nav ul li a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 3px;
    background: var(--secondary-dark);
    border-radius: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.language-switch {
    display: flex;
    gap: 5px;
}

.language-switch button {
    border: none;
    background: var(--secondary);
    color: var(--dark);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
}

.language-switch button:hover {
    background: var(--secondary-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.mobile-menu {
    display: none;
    color: var(--primary); 
    font-size: 24px;
    cursor: pointer;
}

/* ========================================
   HERO
======================================== */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(4, 45, 69, 0.88), rgba(8, 75, 110, 0.88)), url('../assets/hero/hero-bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px; 
}

.hero-content {
    color: var(--white);
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    background: rgba(242, 183, 5, 0.1);
    border: 1px solid var(--secondary);
    color: var(--secondary);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 70px;
    line-height: 1.1;
    color: var(--white);
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero h2 {
    font-size: 32px;
    margin-top: 20px;
    margin-bottom: 20px;
    color: var(--secondary);
}

.hero p {
    font-size: 18px;
    opacity: .9;
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.hero-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: var(--secondary);
    color: var(--dark);
}

.btn-primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(242, 183, 5, 0.4);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

/* ========================================
   SECTION SETTINGS
======================================== */
.section {
    padding: 100px 0;
}

.gray {
    background: var(--light);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    color: var(--primary);
    font-size: 40px;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

/* ========================================
   GRID LAYOUTS
======================================== */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* ========================================
   CARDS
======================================== */
.card, .product-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    border-bottom: 4px solid transparent;
    transition: all 0.3s ease; /* Transisi dipindah ke sini */
}

.card i {
    font-size: 45px;
    color: var(--secondary);
    margin-bottom: 20px;
}

.card h3, .product-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.card p, .product-card p {
    color: var(--text);
}

.card:hover, .product-card:hover {
    border-bottom: 4px solid var(--secondary);
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(8, 75, 110, 0.15);
}

/* ========================================
   ABOUT SECTION
======================================== */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-card {
    background: var(--primary);
    color: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
}

.about-card h3 {
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 24px;
}

/* ========================================
   FEATURES
======================================== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-item {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    font-weight: 500;
    color: var(--primary);
    border-left: 3px solid var(--secondary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-item:hover {
    transform: translateY(-5px) scale(1.02);
    background: var(--primary);
    color: var(--white);
    border-left-color: var(--white);
    box-shadow: 0 10px 20px rgba(8, 75, 110, 0.2);
}

/* ========================================
   GALLERY
======================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(8, 75, 110, 0.25);
    z-index: 10;
    position: relative;
}

/* ========================================
   WORKFLOW
======================================== */
.workflow {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.workflow-item {
    background: var(--primary);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.workflow-item:hover {
    background: var(--secondary);
    color: var(--dark);
    transform: translateY(-3px);
}

.arrow {
    font-size: 24px;
    color: var(--secondary);
    font-weight: bold;
}

/* ========================================
   STATS
======================================== */
.stats {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    text-align: center;
}

.stat-card h2 {
    color: var(--secondary);
    font-size: 55px;
    line-height: 1.2;
}

.stat-card p {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* ========================================
   FORM & CONTACT
======================================== */
form {
    max-width: 700px;
    margin: auto;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

form input, form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #dce1e5;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background: #fdfdfd;
    transition: all 0.3s;
}

form input:focus, form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(8, 75, 110, 0.1); /* Ring fokus lebih elegan */
}

form button {
    width: 100%;
    font-size: 18px;
    letter-spacing: 0.5px;
}

/* ========================================
   FOOTER
======================================== */
footer {
    background: #042d45; 
    color: var(--white);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    height: 48px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); 
}

footer p {
    color: #a0a0a0;
}

footer h4 {
    margin-bottom: 20px;
    color: var(--secondary); 
    font-size: 20px;
}

footer ul li {
    margin-bottom: 12px;
}

footer ul li a {
    color: #a0a0a0;
    display: inline-block; /* Diperlukan untuk transform translateX */
}

footer ul li a:hover {
    color: var(--secondary);
    transform: translateX(6px); /* Mengganti padding menjadi transform agar lebih mulus */
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 25px;
    margin-top: 40px;
    color: #a0a0a0;
    font-size: 14px;
}

/* ========================================
   FLOATING WA & LIGHTBOX
======================================== */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 32px;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0,0,0,.3);
    transition: all 0.3s;
}

.floating-wa:hover {
    transform: scale(1.1);
    background: #1ebd5a;
}

#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(4, 45, 69, 0.95); 
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

#lightbox span {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 50px;
    cursor: pointer;
    transition: color 0.3s;
}

#lightbox span:hover {
    color: var(--secondary);
}

/* ========================================
   BACK TO TOP
======================================== */
#backToTop {
    position: fixed;
    bottom: 110px;
    right: 35px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    cursor: pointer;
    display: none;
    z-index: 998;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

#backToTop:hover {
    background: var(--secondary);
    color: var(--dark);
    transform: translateY(-3px);
}