/* =========================================
   1. VARIABLES & RESET (PREMIUM PALETTE)
   ========================================= */
:root {
    /* Brand Colors */
    --primary-color: #F4C430; /* Construction Yellow */
    --primary-dark: #D4A000;  /* Darker Gold for Hovers */
    --accent-color: #FFD700;  /* Bright highlight */
    
    /* Neutral Colors */
    --dark-color: #1a1a1a;    /* Premium Black (Not absolute black) */
    --darker-color: #0f0f0f;  /* Deepest Black */
    --grey-text: #555555;     /* Soft Grey for reading */
    --light-bg: #f4f6f8;      /* Very subtle blue-grey background */
    --white: #ffffff;
    
    /* Functional Colors */
    --wa-color: #25D366;
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    /* Effects */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05); /* Bayangan lembut */
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.1); /* Bayangan saat hover */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Transisi halus */
    --radius: 8px; /* Sudut membulat yang konsisten */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--dark-color);
    line-height: 1.7; /* Spasi baris lebih lega */
    background-color: var(--white);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* =========================================
   2. TYPOGRAPHY (PREMIUM STYLE)
   ========================================= */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px; /* Sedikit rapat agar tegas */
    color: var(--dark-color);
}

p {
    margin-bottom: 15px;
    color: var(--grey-text);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section { padding: 100px 0; } /* Padding lebih besar = Lebih lega/mewah */

.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--darker-color); color: var(--white); }
.text-center { text-align: center; }

/* Section Header Styling */
.section-header {
    text-align: center;
    max-width: 768px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

/* Garis bawah kuning yang elegan */
.section-header h2::after {
    content: '';
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* =========================================
   3. BUTTONS (MODERN INTERACTIVE)
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 50px; /* Tombol kapsul */
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #ffdb58);
    color: var(--dark-color);
    box-shadow: 0 4px 15px rgba(244, 196, 48, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(244, 196, 48, 0.6);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--dark-color);
    transform: translateY(-3px);
}

.full-width { width: 100%; justify-content: center; }

/* =========================================
   4. NAVBAR (GLASSMORPHISM)
   ========================================= */
.navbar {
    background-color: rgba(26, 26, 26, 0.95); /* Semi transparan */
    backdrop-filter: blur(10px); /* Efek Blur Kaca */
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
    font-weight: 800;
}

.logo span {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #ccc;
    text-transform: uppercase;
    display: block;
    margin-top: 5px;
}

.nav-menu ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
}

/* Efek garis bawah animasi saat hover menu */
.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.btn-nav {
    background-color: var(--primary-color);
    color: var(--dark-color) !important;
    padding: 10px 25px !important;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-nav:hover {
    background-color: var(--white) !important;
}

.btn-nav::after { display: none; } /* Hilangkan garis bawah utk tombol */

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* =========================================
   5. HERO SECTION (PARALLAX & ANIMATION)
   ========================================= */
.hero {
    height: 90vh;
    min-height: 600px;
    /* Parallax Effect: Fixed background */
    background: url('./assets/img/crane3.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed; 
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Gradient Overlay agar teks lebih terbaca dibanding solid color */
    background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    animation: fadeInUp 1s ease-out; /* Animasi Masuk */
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    color: #ddd;
    font-weight: 300;
}

.badge {
    display: inline-block;
    background-color: rgba(244, 196, 48, 0.15);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
}
.logo-link{
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
}
.logo-img{
    width:44px;
    height:44px;
    object-fit:contain;
    border-radius:8px;
    display:block;
}
.logo-text{
    font-family:'Montserrat',sans-serif;
    font-weight:700;
    font-size:.95rem;
    line-height:1.2;
    color:var(--dark-color);
}
@media (max-width:768px){
    .logo-img{
        width:38px;
        height:38px;
    }
    .logo-text{
        font-size:.82rem;
    }
}

.text-white {
    color: #fff;
}
.hero-buttons { display: flex; gap: 20px; }

/* =========================================
   6. CARDS & GRIDS (SERVICES, FLEET, FEATURES)
   ========================================= */
.services-grid, .fleet-grid, .features-grid {
    display: grid;
    gap: 30px;
}

.services-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.features-grid { grid-template-columns: repeat(4, 1fr); }
.fleet-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

/* Base Card Style */
.service-card, .feature-box, .fleet-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03); /* Border sangat halus */
    position: relative;
    overflow: hidden;
}

/* Hover Effect: Lift Up */
.service-card:hover, .feature-box:hover, .fleet-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(244, 196, 48, 0.3);
}

/* Tambahkan garis aksen kuning di bawah card */
.service-card::after, .feature-box::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 0%; height: 4px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover::after, .feature-box:hover::after { width: 100%; }

/* Icon Box Styling */
.icon-box, .feature-icon {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, #fff8db, #fff);
    color: var(--primary-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    border-radius: 20px; /* Squircle */
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(244, 196, 48, 0.15);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    margin-top: 20px;
    color: var(--dark-color);
    font-weight: 700;
    gap: 5px;
}

.link-arrow i { transition: transform 0.3s; color: var(--primary-color); }
.link-arrow:hover i { transform: translateX(5px); }

/* =========================================
   7. ABOUT & STATS
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.sub-title {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.check-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-weight: 500;
}

.check-list i {
    color: var(--primary-color);
    background: rgba(244, 196, 48, 0.1);
    padding: 5px;
    border-radius: 50%;
    font-size: 0.8rem;
    margin-top: 4px;
}

.stats {
    display: flex;
    gap: 50px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0;
    line-height: 1;
}

.stat-item p { margin: 0; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

.about-image img {
    border-radius: var(--radius);
    box-shadow: 20px 20px 0px rgba(244, 196, 48, 0.2); /* Aksen background kotak */
}

/* =========================================
   8. PORTFOLIO & GALLERY
   ========================================= */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 25px; }
.portfolio-item { position: relative; border-radius: var(--radius); overflow: hidden; height: 280px; cursor: pointer; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.portfolio-item:hover img { transform: scale(1.1); }

.overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.4s;
}

.portfolio-item:hover .overlay { opacity: 1; }
.overlay h4 { margin-bottom: 5px; color: var(--primary-color); transform: translateY(20px); transition: 0.4s; }
.overlay p { margin: 0; color: #ddd; transform: translateY(20px); transition: 0.4s 0.1s; }
.portfolio-item:hover .overlay h4, .portfolio-item:hover .overlay p { transform: translateY(0); }

/* =========================================
   9. FAQ & CONTACT (CLEAN FORM)
   ========================================= */
details {
    background-color: var(--white);
    margin-bottom: 20px;
    padding: 20px 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid #eee;
    transition: var(--transition);
}

details[open] { border-left: 4px solid var(--primary-color); }

summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    position: relative;
    padding-right: 30px;
    font-size: 1.1rem;
}

summary::after {
    content: '+';
    position: absolute;
    right: 0;
    font-weight: 300;
    font-size: 1.5rem;
    color: var(--primary-color);
    line-height: 1;
}

details[open] summary::after { content: '-'; }

/* Form Styles */
.contact-form-box {
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
    display: block;
}

.form-control, .form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus, .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(244, 196, 48, 0.1);
}

/* =========================================
   10. FOOTER
   ========================================= */
footer {
    background-color: #111; /* Almost black */
    color: #888;
    padding: 80px 0 30px;
    text-align: center;
    border-top: 5px solid var(--primary-color);
}

.footer-logo h3 { color: var(--white); letter-spacing: 1px; }
.footer-links { margin: 40px 0; display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.footer-links a { color: #ccc; font-weight: 500; text-transform: uppercase; font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary-color); }
.copyright { border-top: 1px solid #222; padding-top: 30px; font-size: 0.85rem; }

/* =========================================
   11. FLOATING WA (PULSE ANIMATION)
   ========================================= */
.float-wa {
    position: fixed;
    width: 60px; height: 60px;
    bottom: 30px; right: 30px;
    background-color: var(--wa-color);
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 100;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.float-wa:hover { transform: scale(1.1); }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =========================================
   12. RESPONSIVE / MOBILE
   ========================================= */
@media (max-width: 992px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-content h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    /* Navbar Mobile */
    .mobile-toggle { display: block; }
    
    .nav-menu {
        position: absolute;
        top: 100%; left: 0;
        width: 100%;
        background-color: var(--dark-color);
        display: none;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active { display: block; animation: slideDown 0.3s ease; }
    
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .nav-menu ul { flex-direction: column; gap: 15px; align-items: flex-start; }
    .nav-menu a { display: block; width: 100%; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .btn-nav { margin-top: 10px; width: 100%; text-align: center; }

    /* Layout Adjustments */
    .hero-content h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    
    .about-grid, .contact-wrapper { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .about-image { order: -1; margin-bottom: 30px; }
    
    .section { padding: 60px 0; }
    .section-header h2 { font-size: 2rem; }
}

.btn-area-wrap{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.btn-area{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:10px;
  font-size:0.95rem;
  text-decoration:none;
  white-space:nowrap;
  background-color: var(--primary-color);
  color: #0f0f0f;
}

@media (max-width: 600px){
  .btn-area{
    width:100%;
    justify-content:center;
  }
}