/* styles.css */
:root {
    --red: #8c0000;
}

/* Gaya minimalis dengan latar belakang transparan */
::-webkit-scrollbar {
    width: 8px;
    /* Lebar scroll bar */
}

::-webkit-scrollbar-track {
    background: transparent;
    /* Latar belakang track */
}

::-webkit-scrollbar-thumb {
    background: #333;
    /* Warna handle */
    border-radius: 10px;
    /* Sudut melengkung */
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
    /* Warna handle saat hover */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    outline: none;
    border: none;
    text-decoration: none;
    text-transform: none;
    transition: .2s linear;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
    overflow-x: hidden;
}

section {
    padding: 2rem 9%;
}

.heading {
    text-align: center;
    font-size: 4rem;
    color: #333;
    padding: 0.75rem;
    margin: 2rem 0;
    background: rgba(197, 63, 63, 0.1);
}

.heading span {
    color: var(--red);
}

.btn {
    display: inline-block;
    margin-top: 1rem;
    border-radius: 5rem;
    background: #333;
    color: #fff;
    padding: .9rem 3.5rem;
    cursor: pointer;
    font-size: 1.7rem;
    text-align: center;
}

.btn:hover {
    background: var(--red);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 2rem 9%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.1);
}

header .logo {
    font-size: 3rem;
    color: #333;
    font-weight: bolder;
}

header .logo span {
    color: var(--red);
}

header .navbar a {
    font-size: 2rem;
    padding: 0 1.5rem;
    color: #666;
}

header .navbar a:hover {
    color: var(--red);
}

.home .content {
    max-width: 50rem;
}

.home .content h3 {
    font-size: 5rem;
    color: #333;
}

.home .content span {
    font-size: 3.5rem;
    color: var(--red);
    padding: 1rem 0;
    line-height: 1.5;
}

.home .content p {
    font-size: 1.5rem;
    color: #000000;
    padding: 1rem 0;
    line-height: 1.5;
    padding-bottom: 25px;
}

.home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding: 0 50px;
    background-size: cover;
    background-position: center;
    /* background-color: #fff7ea; */
}

.abstract-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    /* Lebar dari bentuk lonjong */
    height: 600px;
    /* Tinggi dari bentuk lonjong */
    background-color: #999;
    /* Warna dari bentuk abstrak */
    border-bottom-left-radius: 100%;
    /* Membuat bentuk setengah lonjong */
    z-index: -1;
    /* Letakkan di belakang konten */
}

.home .content {
    flex: 1;
    padding-left: 25px;
}

.home .image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    padding-right: 25px;
}

.home .image img {
    max-width: 90%;
    height: auto;
    margin-top: 50px;
}


h1 {
    color: #333;
    margin-top: 80px;
    /* Menyesuaikan margin atas agar tidak tertutup navbar */
}

.about {
    padding-left: 10rem;
    padding-right: 10rem;
}

.about .row {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2rem 0;
    padding-bottom: 6rem;
}

.offl {
    text-align: right;
}

.about .row .video-container {
    flex: 1 1 40rem;
    position: relative;
}

.about .row .video-container video {
    width: 100%;
    border: 1.5rem solid #fff;
    border-radius: 2.5rem;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
    height: 100%;
    object-fit: cover;
}

.about .row .content {
    flex: 1 1 40rem;
}

.about .row .content h3 {
    font-size: 3rem;
    color: #333;
    padding-top: 10px;
    padding-bottom: 10px;
}

.about .row .content p {
    font-size: 1.5rem;
    color: #999;
    padding: 5rem 0;
    padding-top: 1rem;
    line-height: 1.5;
}

.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 70%;
    height: 50%;
    margin: 0 auto;
    /* Menempatkan video-container di tengah */
}

.video-container img {
    width: 100%;
    height: 100%;
    border: 1.5rem solid #fff;
    border-radius: .5rem;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
    object-fit: cover;
}

.text-img {
    display: flex;
    align-items: flex-start;
    margin-top: -30px;
    gap: 20px;
    /* Jarak antara gambar dan teks */
}

.text-img img {
    width: 300px;
    /* Atur ukuran gambar */
    height: auto;
}

.text-img p {
    flex: 1;
    /* Membuat teks menempati ruang di samping gambar */
}

.btn-overlay {
    display: inline-block;
    margin-top: 1rem;
    border-radius: 5rem;
    background: #333;
    color: #fff;
    padding: .9rem 3.5rem;
    cursor: pointer;
    font-size: 1.7rem;
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.btn-overlay:hover {
    background: var(--red);
}

.icons-container {
    background: #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.icons-container .icons {
    background: #fff;
    border: .1rem solid rgba(0, 0, 0, .1);
    padding: 2rem;
    display: flex;
    align-items: center;
    flex: 1 1 25rem;
}

.icons-container .icons img {
    height: 5rem;
    margin-right: 2rem;
}

.icons-container .icons h3 {
    color: #333;
    padding-bottom: .5rem;
    font-size: 1.5rem;
}

.icons-container .icons spam {
    color: #555;
    font-size: 1.3rem;
}

.contact .row {
    display: flex;
    flex-wrap: wrap;
    padding: 2em 1em;
    text-align: center;
}

.contact .row .column {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 .5em;
}

.contact .row .column .card {
    box-shadow: 0 0 2.4em rgba(25, 0, 58, 0.1);
    padding: 3.5em 1em;
    border-radius: 0.6em;
    color: #1f003b;
    cursor: pointer;
    transition: 0.3s;
    padding-top: 5rem;
    background-color: #ffffff;
}

.contact .row .column .card .img-container {
    width: 12em;
    height: 12em;
    background-color: #a993ff;
    padding: 0.5em;
    padding-top: 5rem;
    border-radius: 50%;
    margin: 0 auto 2em auto;
}

.contact .row .column .card img {
    width: 12em;
    height: 12em;
    border-radius: 50%;
    margin: -5rem;
}

.contact .row .column .card h3 {
    padding-top: 5rem;
    font-weight: 1000;
    font-size: 1.75rem;
    padding-bottom: 2rem;
}

.contact .row .card p {
    font-weight: 300;
    text-transform: uppercase;
    margin: 0.5em 0 2em 0;
    letter-spacing: 2px;
    font-size: 1rem;
}

.contact .row .icons {
    width: 50%;
    min-width: 180px;
    padding-top: 5rem;
    margin: auto;
    display: flex;
    justify-content: space-between;
}

.contact .row .card a {
    text-decoration: none;
    color: inherit;
    font-size: 1.4em;
}

.contact .row .card:hover {
    background: linear-gradient(#8c0000, #c27878);
    color: #ffffff;
}

.contact .row .card:hover .img-container {
    transform: scale(1.15);
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
}

.newmodal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
}

.newmodal-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #888;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #333;
}

.input-field {
    margin-bottom: 15px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Modal Content */
.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 50%;
    max-width: 550px;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease-in-out;
    /* Ensure the circle doesn't affect layout */
}

/* Close Button */
.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
}
/* Modal Background */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Title and Description */
.modal-title {
    padding: 0 3%;
    font-size: 2.7rem;
    /* Larger font size for the title */
    margin-bottom: 10px;
}

.modal-description {
    padding: 0 3%;
    font-size: 2rem;
    /* Larger font size for the description */
    margin-bottom: 20px;
}

/* Flexbox for modal body */
.modal-body {
    display: flex;
    align-items: center;
    /* Vertically center the image and buttons */
    gap: 20px;
    /* Space between image and buttons */
}

/* Image styles */
.modal-img {
    max-width: 250px;
    /* Adjust width as needed */
    height: auto;
}

/* Flexbox for buttons */
.modal-buttons {
    display: flex;
    flex-direction: column;
    /* Stack buttons and text vertically */
    gap: 10px;
    /* Space between buttons and text */
    width: 50%;
}


.btn-3 {
    scale: 1;
    line-height: 1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--clr);
    color: #fff;
    border-radius: 10rem;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 24px 12px 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color 0.3s;
}

.btn-3 .button__icon-wrapper {
    flex-shrink: 0;
    width: 25px;
    height: 25px;
    position: relative;
    color: var(--clr);
    background-color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.btn-3:hover {
    background-color: #8c0000;
}

.btn-3:hover .button__icon-wrapper {
    color: #8c0000;
}

.btn-3 .button__icon-svg--copy {
    position: absolute;
    transform: translate(-150%, 150%);
}

.btn-3:hover .button__icon-svg:first-child {
    transition: transform 0.3s ease-in-out;
    transform: translate(150%, -150%);
}

.btn-3:hover .button__icon-svg--copy {
    transition: transform 0.3s ease-in-out 0.1s;
    transform: translate(0);
}

/* ================================
   RESPONSIVE DESIGN - MOBILE STYLES
   ================================ */

/* Tablet styles */
@media (max-width: 768px) {
    html {
        font-size: 55%;
    }
    
    section {
        padding: 2rem 5%;
    }
    
    header {
        padding: 1.5rem 5%;
        flex-direction: column;
        gap: 1rem;
    }
    
    header .logo {
        font-size: 2.5rem;
    }
    
    header .navbar {
        display: flex;
        gap: 1rem;
    }
    
    header .navbar a {
        font-size: 1.6rem;
        padding: 0 1rem;
    }
    
    .home {
        flex-direction: column;
        padding: 0 2rem;
        text-align: center;
        min-height: auto;
        padding-top: 16rem;
    }
    
    .abstract-shape {
        width: 400px;
        height: 400px;
    }
    
    .home .content {
        padding-left: 0;
        margin-bottom: 3rem;
    }
    
    .home .content h3 {
        font-size: 4rem;
    }
    
    .home .content span {
        font-size: 2.8rem;
    }
    
    .home .image {
        padding-right: 0;
        justify-content: center;
    }
    
    .about {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .about .row {
        flex-direction: column;
        gap: 3rem;
    }
    
    .about .row .content h3 {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .offl {
        text-align: center;
    }
    
    .text-img {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .text-img img {
        width: 200px;
    }
    
    .video-container {
        width: 100%;
    }
    
    .icons-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .icons-container .icons {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem;
    }
    
    .icons-container .icons img {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .contact .row {
        flex-direction: column;
    }
    
    .contact .row .column {
        flex: 1 1 100%;
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .modal-content {
        width: 80%;
        margin: 20% auto;
    }
    
    .modal-body {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-img {
        max-width: 200px;
    }
    
    .modal-buttons {
        width: 100%;
    }
    
    .heading {
        font-size: 3rem;
    }
}

/* Mobile styles */
@media (max-width: 480px) {
    html {
        font-size: 50%;
    }
    
    section {
        padding: 2rem 3%;
    }
    
    header {
        padding: 1rem 3%;
    }
    
    header .logo {
        font-size: 2rem;
    }
    
    header .navbar a {
        font-size: 1.4rem;
        padding: 0 0.5rem;
    }
    
    .home {
        padding: 0 1rem;
        padding-top: 16rem;
    }
    
    .abstract-shape {
        width: 250px;
        height: 250px;
    }
    
    .home .content h3 {
        font-size: 3rem;
    }
    
    .home .content span {
        font-size: 2.2rem;
    }
    
    .home .content p {
        font-size: 1.4rem;
    }
    
    .about {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .about .row .content h3 {
        font-size: 2rem;
    }
    
    .about .row .content p {
        font-size: 1.3rem;
        padding: 2rem 0;
    }
    
    .text-img img {
        width: 150px;
    }
    
    .btn {
        padding: 0.8rem 2.5rem;
        font-size: 1.5rem;
    }
    
    .btn-3 {
        padding: 10px 20px 10px 14px;
        font-size: 12px;
    }
    
    .icons-container .icons {
        padding: 2rem 1rem;
    }
    
    .icons-container .icons h3 {
        font-size: 1.3rem;
    }
    
    .contact .row .column .card {
        padding: 2.5em 0.5em;
    }
    
    .contact .row .column .card .img-container {
        width: 10em;
        height: 10em;
        padding-top: 4rem;
    }
    
    .contact .row .column .card img {
        width: 10em;
        height: 10em;
        margin: -4rem;
    }
    
    .contact .row .column .card h3 {
        font-size: 1.5rem;
        padding-top: 4rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 15% auto;
        padding: 15px;
    }
    
    .modal-title {
        font-size: 2.2rem;
    }
    
    .modal-description {
        font-size: 1.6rem;
    }
    
    .modal-img {
        max-width: 150px;
    }
    
    .heading {
        font-size: 2.5rem;
        padding: 0.5rem;
    }
    
    .newmodal-content {
        width: 95%;
        padding: 20px;
    }
}

/* Extra small mobile devices */
@media (max-width: 320px) {
    html {
        font-size: 45%;
    }
    
    header .navbar {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    header .navbar a {
        font-size: 1.2rem;
        padding: 0.5rem;
    }
    
    .home .content h3 {
        font-size: 2.5rem;
    }
    
    .home .content span {
        font-size: 1.8rem;
    }
    
    .abstract-shape {
        width: 200px;
        height: 200px;
    }
    
    .about .row .content h3 {
        font-size: 1.8rem;
    }
    
    .heading {
        font-size: 2rem;
    }
    
    .modal-title {
        font-size: 1.8rem;
    }
    
    .modal-description {
        font-size: 1.4rem;
    }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .home {
        flex-direction: row;
        min-height: 70vh;
        padding-top: 8rem;
    }
    
    .home .content {
        margin-bottom: 0;
    }
    
    .abstract-shape {
        width: 300px;
        height: 300px;
    }
}

/* Fix for hamburger menu if needed */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Improve touch targets for mobile */
@media (max-width: 768px) {
    .btn, .close-btn, header .navbar a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .close-btn {
        padding: 0.5rem;
    }
}

/* ================================
   AOS OVERFLOW FIX
   ================================ */

/* Prevent AOS animations from causing horizontal overflow */
[data-aos] {
    overflow-x: hidden;
}

/* Specific fixes for AOS fade animations */
[data-aos="fade-right"],
[data-aos="fade-left"],
[data-aos="fade-up-right"],
[data-aos="fade-up-left"],
[data-aos="fade-down-right"],
[data-aos="fade-down-left"],
[data-aos="zoom-in-right"],
[data-aos="zoom-in-left"] {
    overflow: hidden;
}

/* Container constraints for AOS elements */
.about .row,
.contact .row,
.icons-container {
    overflow-x: hidden;
}

/* Ensure all sections don't exceed viewport width */
section {
    overflow-x: hidden;
    max-width: 100vw;
    box-sizing: border-box;
}

/* Specific fix for elements that might cause overflow */
.about .row .content,
.about .row .video-container,
.contact .row .column,
.icons-container .icons {
    max-width: 100%;
    box-sizing: border-box;
}

/* Prevent text-img elements from overflowing */
.text-img {
    max-width: 100%;
    overflow: hidden;
}

.text-img img {
    max-width: 100%;
    height: auto;
}