/* --- 1. Global Setup & Variables --- */
:root {
    --primary-color: #8B0000;
    --background-color: #0d0d0d;
    --background-light: #1a1a1a;
    --text-color: #f0f0f0;
    --text-color-light: #c0c0c0;
    --white: #ffffff;
    
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    
    --transition-speed: 0.3s;
    --transition-timing: ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}


/* --- 2. Header & Layout --- */
.header-rinoria {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #630606;
    background: linear-gradient(90deg, rgba(99, 6, 6, 1) 0%, rgba(112, 13, 13, 1) 50%, rgba(94, 9, 9, 1) 100%);
    background-image: radial-gradient(circle at 70% 40%, rgba(139, 0, 0, 0.5), var(--background-color) 70%);
}
/*Logo*/
.logo, .main-nav, .hamburger-btn, .social-icons, .spline-credit { 
    position: absolute; 
    z-index: 100; 
}

.logo { 
    top: 40px; 
    left: 60px; 
}

.logo-icon { 
    width: 30px; 
    height: 47px; 
    color: var(--text-color); 
    transition: transform var(--transition-speed) var(--transition-timing); 
}

.logo:hover .logo-icon { 
    transform: scale(1.1) rotate(10deg); 
}
/*Navigasi*/
.main-nav { 
    top: 40px; 
    right: 60px; 
    display: flex; 
    gap: 40px; 
}

.main-nav a { 
    font-size: 1.1rem; 
    font-weight: 600; 
    position: relative; 
    padding-bottom: 2px; 
}

.main-nav a::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 50%; 
    width: 0; 
    height: 2px; 
    background-color: var(--white); 
    transition: all var(--transition-speed) var(--transition-timing); 
    transform: translateX(-50%); 
}

.main-nav a:hover::after { 
    width: 100%; 
}

/*Deskripsi Web*/
.hero-text { 
    position: absolute; 
    z-index: 10; 
    padding-left: 200px;
    top: 50%; 
    transform: translateY(-50%); 
    width: 35%; 
    max-width: 550px; 
}
.sub-headline { 
    font-size: 1rem; 
    color: var(--text-color-light); 
    margin-bottom: 10px; 
}

.headline-primary { 
    font-size: 2.8rem; 
    font-weight: 700; 
    color: var(--white); 
    margin-bottom: 5px; 
}

.headline-secondary { 
    font-family: var(--font-secondary); 
    font-size: 4.5rem; 
    font-weight: 700; 
    color: var(--white); 
    margin-bottom: 20px; 
    line-height: 1; 
}

.description { 
    font-size: 1.05rem; 
    line-height: 1.6; 
    color: var(--text-color-light); 
    margin-bottom: 30px; 
}

.cta-buttons { 
    display: flex; 
    gap: 20px; 
    margin-top: 30px; 
}

.btn { 
    padding: 15px 30px; 
    border-radius: 10px; 
    font-weight: 600; 
    font-size: 1rem; 
    display: flex; 
    align-items: center; 
    gap: 10px; transition: all var(--transition-speed) var(--transition-timing); 
}

.btn-primary { 
    background-color: var(--text-color); 
    color: var(--primary-color); 
    border: none; 
}

.btn-primary:hover { 
    background-color: var(--white); 
    transform: translateY(-3px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.2); 
}

.btn-secondary { 
    display: inline-block;
    background: transparent; 
    color: var(--text-color); 
    border: 2px solid var(--text-color);
    text-transform: uppercase;
    transition: all .55s ease;
}

.btn-secondary:hover { 
    background: #940A0A;
    border: 1px solid white; 
    transform: translateY(-3px); 
}

.btn-secondary:active {
    background-color: var(--primary-color);
    color: var(--white);                   
    border-color: var(--primary-color);
    transform: translateY(1px);
}

/*Maskot Rinoria*/
.hero-image { 
    position: absolute; 
    top: 0; 
    right: 0; 
    width: 65%; 
    height: 100vh; 
    z-index: 5; 
}

spline-viewer { 
    width: 100% !important; 
    height: 100% !important;  
}

/*Body*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

/*About*/
.about-section {
    font-family: 'Poppins', sans-serif; 
    display: flex;
    max-width: 1300px;
    width: 100%;
    background-color: #1e1e1e;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    margin: 150px auto; 
}

.video-container-about {  
    flex-basis: 50%;
}

.video-container-about video { /* Video About */
    width: 70%;
    border-radius: 20px;
    border-bottom-right-radius: 20px;
    height: 100%;
    object-fit: cover;
    display: block;
}

.text-content-about {
    flex-basis: 50%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff; 
}

.text-content-about h2 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: #ffffff;
}

.text-content-about p {
    font-size: 1rem;
    color: #cccccc;
    line-height: 1.6;
    margin: 0 0 32px 0;
}

.cta-button-about {
    background-color: #630606;
    color: #ffffff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: bold;
    display: inline-block;
    align-self: flex-start;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button-about:hover {
    background-color: #8B0000;
    transform: translateY(-2px);
}


@media (max-width: 768px) {
    .solution-card {
        flex-direction: column;
    }

    .text-content {
        padding: 32px;
    }

    .text-content h2 {
        font-size: 2rem;
    }
}

/*Produk Slideshow*/
.slider{
    height: 100vh;
    margin-top: 15px;
    position: relative;
}

.slider .list .item{
    position: absolute;
    inset: 0 0 0 0;
    overflow: hidden;
    opacity: 0;
    transition: 5s;
}

.slider .list .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider .list .item::after{
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
    background-image: linear-gradient(
        to top, black 20%, transparent
    );
}

.slider .list .item .content{
    position: absolute;
    left: 10%;
    top: 20%;
    width: 500px;
    max-width: 80%;
    z-index: 1;
}

.slider .list .item .content p:nth-child(1){
    text-transform: uppercase;
    letter-spacing: 10px;
}

.slider .list .item .content h2{
    font-size: 70px;
    margin: 0;
}

.slider .list .item.active{
    opacity: 1;
    z-index: 10;
}
@keyframes showContent {
    to{
        transform: translateY(0);
        filter: blur(0);
        opacity: 1;
    }
}

.slider .list .item.active p:nth-child(1),
.slider .list .item.active h2,
.slider .list .item.active p:nth-child(3){
    transform: translateY(30px);
    filter: blur(30px);
    opacity: 0;
    animation: showContent .5s .7s ease-in-out 1 forwards;
}

.slider .list .item.active h2{
    animation-delay: 1s;
}
.slider .list .item.active p:nth-child(3){
    animation-duration: 1.3s;
}

.arrows{
    position: absolute;
    top: 30%;
    right: 50px;
    z-index: 100;
}
.arrows button{
    display: none;
    background-color: #c0c0c0;
    border: none;
    font-family: monospace;
    width: 40px;
    border-radius: 5px;
    font-size: x-large;
    color: white;
    transition: .5s;
    cursor: pointer;
}
.arrows button:hover{
    background-color: #eee;
    color: black;
}

.thumbnail{
    position: absolute;
    bottom: 50px;
    z-index: 11;
    display: flex;
    gap: 10px;
    width: 100%;
    height: 150px;
    padding: 0 50px;
    box-sizing: border-box;
    overflow: auto;
    justify-content: center;
    cursor: pointer;
}
.thumbnail::-webkit-scrollbar{
    width: 0;
}
.thumbnail .item{
    width: 150px;
    height: 100px;
    filter: brightness(.5);
    transition: .5s;
    flex-shrink: 0;
}
.thumbnail .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}
.thumbnail .item .active{
    filter: brightness(1.5);
}
.thumbnail .item .content{
    position: absolute;
    inset: auto 10px 10px 10px;
}

@media screen and (max-width: 678px){
    .thumbnail{
        justify-content: start;
    }
    .slider .list .item .content h2{
        font-size: 60px;
    }
    .arrows{
        top: 10%;
    }
}


/* SERVICE  */
.services-section {
    padding: 100px 0;
    background-color: var(--background-color);
    border-top: 1px solid #2a2a2a; /* Garis pemisah halus */
}

.section-title-service {
    text-align: center;
    margin-bottom: 60px;
}

.section-title-service span {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.section-title-service h2 {
    font-family: var(--font-secondary);
    font-size: 3rem;
    color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background-color: var(--background-light);
    padding: 40px;
    border-radius: 12px;
    text-align: left;
    border: 1px solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color); 
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 25px;
    color: var(--primary-color); 
}

.service-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-color-light);
    line-height: 1.7;
    font-size: 1rem;
}

/* News        */
.news-section {
    padding: 100px 0;
    background-color: var(--background-dark); 
}

.section-title-left {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 40px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block; 
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--background-light);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; 
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.2); 
}

.card-link {
    display: flex;
    flex-direction: column;
    height: 100%; 
    color: inherit; 
}

.card-link:hover {
    color: inherit;
}

.card-image {
    height: 200px; 
    width: 100%;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.card-content {
    padding: 20px;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--text-color-light);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.meta-tag {
    font-weight: 700;
    color: var(--primary-color); 
}

.card-content h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    color: var(--white);
    line-height: 1.4;
    margin: 0;
    flex-grow: 1; 
    transition: color 0.3s ease;
}

.card-link:hover .card-content h3 {
    color: var(--gold); 
}

.view-more-btn {
    display: block;
    width: fit-content;
    margin: 60px auto 0 auto; 
    padding: 10px 25px;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--primary-color);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.view-more-btn:hover {
    color: var(--white);
    border-bottom-color: var(--gold);
}

/* Mobile view */
@media (max-width: 992px) {
    .section-title-service h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 80px 0;
    }

    .service-card {
        padding: 30px;
    }

    .service-card h3 {
        font-size: 1.5rem;
    }
}

/* --- Footer --- */
.site-footer {
    background-color: var(--background-light);
    padding: 80px 0 0 0;
    color: var(--text-color-light);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-socials {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    background-color: #333;
    border-radius: 50%;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.footer-socials a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.icon-socialmedia{
    display: 100%;
    object-fit: cover;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    transition: color var(--transition-speed), padding-left var(--transition-speed);
}

.footer-col ul a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-col .fa-map-marker-alt, .footer-col .fa-envelope {
    margin-right: 10px;
    color: var(--primary-color);
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
    border: 1px solid #333;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #333;
    margin-top: 20px;
}

/* --- RESPONSIVE STYLES --- */

/* Hamburger Menu styling */
.hamburger-btn { 
    display: none; 
    background: none; 
    border: none; 
    cursor: pointer; 
    top: 30px; 
    right: 20px; 
    width: 30px; 
    height: 22px; 
    flex-direction: column; 
    justify-content: space-between; 
}

.hamburger-btn .line { 
    width: 100%; 
    height: 3px; 
    background-color: var(--white); 
    border-radius: 2px; 
    transition: all var(--transition-speed) var(--transition-timing); 
}

@media (max-width: 992px) {
    .header-rinoria { 
        display: flex; 
        flex-direction: column; 
        height: auto; 
    }

    .hero-text, .hero-image { 
        position: relative; 
        width: 100%; 
        left: auto; 
        right: auto; 
        top: auto; 
        transform: none; 
        text-align: center; 
    }

    .hero-image { 
        order: 1; 
        height: 60vh; 
        min-height: 400px; 
    }

    .hero-text { 
        order: 2; 
        padding: 40px 20px 80px 20px; 
    }

    .cta-buttons { 
        justify-content: center; 
    }

    .hamburger-btn { 
        display: flex; 
    }

    .main-nav { 
        position: fixed; 
        top: 0; 
        right: 0; 
        width: 70%; 
        max-width: 300px; 
        height: 100vh; 
        background-color: rgba(13, 13, 13, 0.9); 
        backdrop-filter: blur(10px); 
        flex-direction: column; 
        justify-content: center; 
        align-items: center; 
        gap: 40px; 
        transform: translateX(100%); 
        transition: transform var(--transition-speed) var(--transition-timing); 
    }

    .nav-active .main-nav { 
        transform: translateX(0); 
    }

    .nav-active .hamburger-btn .line-1 { 
        transform: translateY(9.5px) rotate(45deg); 
    }

    .nav-active .hamburger-btn .line-2 { 
        opacity: 0; 
    }

    .nav-active .hamburger-btn .line-3 { 
        transform: translateY(-9.5px) rotate(-45deg); 
    }

    .social-icons { 
        bottom: 20px; 
        top: auto; 
        left: 50%; 
        transform: translateX(-50%); 
        flex-direction: row; 
        width: auto; 
        gap: 40px; 
    }
    
    .section-title h2 { 
        font-size: 2.5rem; 
    }

    .footer-grid { 
        grid-template-columns: 1fr; 
    }
    
}

@media (max-width: 768px) {
    .headline-primary { font-size: 2.2rem; }
    .headline-secondary { font-size: 3.5rem; }
}