/* =======================================================
   GLOBAL STYLES
======================================================= */

body {
    font-family: "Poppins", sans-serif;
    scroll-behavior: smooth;
}

section {
    padding: 70px 0;
}

@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }
}

/* =======================================================
   NAVBAR
======================================================= */

#header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

#header .navbar {
    padding: 0.5rem 0;
    background: transparent !important;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
}

#header .navbar .nav-link {
    color: #ffffff;
    font-weight: 500;
}

#header .navbar .nav-link:hover {
    color: #dad8d8;
}

/* When scrolling */
#header.scrolled {
    position: fixed;
    background: rgba(95, 96, 97, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

/* =======================================================
   HERO SECTION
======================================================= */

#hero {
    min-height: 100vh;
    background: url("T/Image/TgcTeam.png") center center / cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    color: #fff;
    padding-top: 0;
}

#hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

#hero .container {
    position: relative;
    z-index: 2;
}

/* Responsive Hero Typography */
#hero h1 {
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

#hero p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
}

@media (max-width: 768px) {
    #hero .btn {
        width: 100%;
        max-width: 260px;
    }
}

/* =======================================================
   BRANDS TEXT
======================================================= */

/* Brand Text Base */
.brand-text {
    font-weight: 700;
    font-size: 1.25rem;
    white-space: nowrap;
}

/* Trilintas - White */
.brand-white {
    color: #111111;
}

/* Cargo - Blue */
.brand-blue {
    color: #0d6efd; /* Bootstrap primary blue */
}

/* Mobile adjustment */
@media (max-width: 576px) {
    .brand-text {
        font-size: 1rem;
    }
}

/* =======================================================
   CARDS
======================================================= */

.card {
    border: none;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card img {
    height: 220px;
    object-fit: cover;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .card img {
        height: 180px;
    }
}


/* =======================================================
   ICON BOX (Layanan)
======================================================= */

.icon-box i {
    font-size: 32px;
    color: #007bff;
    margin-bottom: 10px;
}

.icon-box h4 {
    font-weight: 600;
    margin-bottom: 10px;
}


/* =======================================================
   FOOTER
======================================================= */

footer {
    background-color: #111;
    font-size: 14px;
    background: linear-gradient(45deg, rgba(58, 58, 59, 0.9) 0%, rgba(53, 40, 236, 0.9) 100%), url("T/Image/Las.png") center center no-repeat;
    background-size: cover;
}

footer a {
    color: #ffffff;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffc107;
}


/* =======================================================
   BACK TO TOP BUTTON
======================================================= */

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: #007bff;
    color: #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #ffc107;
    color: #000;
}

@media (max-width: 576px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        right: 20px;
        bottom: 20px;
    }
}

/* =======================================================
   UNDERLINED
======================================================= */

/* H2 Underline Style */
h2 {
    position: relative;
    text-align: center;
    font-weight: 700;
    margin-bottom: 1rem;
}

h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;  /* distance below the text */
    width: 50px;    /* underline width */
    height: 3px;    /* thickness */
    background-color: #0d6efd; /* blue underline */
    border-radius: 2px;
}

/* Optional: make underline adapt to text width */
h2.underline-full::after {
    width: 100%;
}