/* ================================
   MAIN.CSS — Cynthiaction Style (Animated)
   ================================ */

/* ====== Base ====== */
body {
    font-family: 'Source Sans Pro', Arial, sans-serif;
    background-color: #111;
    color: #f5f5f5;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    opacity: 0;
    animation: fadeInBody 1s ease-in forwards;
}

@keyframes fadeInBody {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* ====== Header & Navigation ====== */
.tm-site-header {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 2000;
    /* dinaikkan sedikit supaya di atas elemen lain */
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    padding: 14px 0;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeDown 1s ease-in-out;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tm-logo {
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.tm-logo:hover {
    transform: rotate(10deg) scale(1.05);
}

.tm-site-name {
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 1px;
    color: #fff;
    margin: 0;
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background: #ffcc00;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: #ffcc00 !important;
}

.navbar-nav .nav-item.active .nav-link {
    color: #ffcc00 !important;
}

.navbar-toggler {
    font-size: 1.5rem;
    color: #fff;
    border: none;
    outline: none;
}

/* ====== Video Background ====== */
#tm-video-container {
    position: relative;
    overflow: hidden;
}

#tm-video {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    animation: fadeInVideo 2s ease-in;
}

@keyframes fadeInVideo {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.tm-welcome-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 500;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    animation: fadeUp 1.5s ease-in;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tm-btn-cta {
    display: inline-block;
    color: white;
    border: 2px solid white;
    padding: 12px 24px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin-top: 30px;
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
}

.tm-btn-cta:hover {
    background-color: white;
    color: #000;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
}

/* ====== Content Layout ====== */
.tm-content-container {
    background-color: #fff;
    color: #333;
    padding: 50px 30px;
    border-radius: 12px;
    margin-top: 100px;
    position: relative;
    z-index: 1000;
    animation: fadeInSection 1s ease-in;
}

@keyframes fadeInSection {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tm-page-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #222;
}

p {
    line-height: 1.6;
}

/* ====== Card & Gallery ====== */
.card {
    background-color: #f8f9fa;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    animation: fadeInCard 0.8s ease-in;
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== Live Status ====== */
#liveStatus {
    background-color: #f1f1f1;
    padding: 12px 18px;
    border-left: 5px solid #3498db;
    border-radius: 5px;
    animation: fadeIn 0.8s ease-in;
}

#livePreview iframe {
    border-radius: 10px;
    margin-top: 15px;
}

/* ====== Footer ====== */
.site-footer {
    background: linear-gradient(180deg, #0d0d0d 0%, #111 100%);
    color: #ddd;
    padding: 60px 20px 30px;
    font-size: 15px;
    letter-spacing: 0.3px;
    margin-top: 60px;
    opacity: 0;
    animation: fadeInFooter 1s ease-in 0.3s forwards;
}

@keyframes fadeInFooter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
}

.footer-section {
    flex: 1 1 300px;
    min-width: 250px;
}

.footer-title {
    font-size: 18px;
    color: #ffcc00;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
}

.footer-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background-color: #ffcc00;
    margin-top: 6px;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 8px 0;
}

.footer-section ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffcc00;
    transform: translateX(5px);
}

/* ====== Social Icons ====== */
.social-links {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    background-color: #222;
    transition: all 0.3s ease;
    font-size: 18px;
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.6);
}

.social-icon.ig:hover {
    background: #E1306C;
}

.social-icon.tiktok:hover {
    background: #000;
}

.social-icon.twitter:hover {
    background: #1DA1F2;
}

/* ====== Footer Bottom ====== */
.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    color: #777;
    font-size: 14px;
    animation: fadeIn 1.5s ease-in;
}

/* ====== Animations Utility ====== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ====== Responsive ====== */
@media (max-width: 991px) {
    .tm-site-name {
        font-size: 1.4rem;
    }

    .tm-site-header {
        padding: 10px 0;
        background: rgba(0, 0, 0, 0.9);
    }

    .tm-logo {
        width: 45px;
        height: 45px;
    }

    .navbar-collapse {
        background: rgba(0, 0, 0, 0.85);
        border-radius: 8px;
        padding: 15px;
    }

    .navbar-nav .nav-link {
        padding: 10px 0;
        text-align: center;
    }

    .tm-content-container {
        padding: 30px 20px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    /* ====== Fix header overlap ====== */
    main,
    .tm-content-container {
        margin-top: 130px !important;
        /* beri jarak supaya tidak tertutup header */
    }

    @media (max-width: 768px) {

        main,
        .tm-content-container {
            margin-top: 100px !important;
            /* sedikit lebih kecil di mobile */
        }
    }

}