/* ========== HERO SECTION ========== */

.hero {
    height: 60vh;
    background: url('assets/images/about/about banner.webp') center/cover no-repeat;
    position: relative;
}

.overlay {
    background: rgba(0, 0, 0, 0.4);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.overlay h1 {
    font-size: 60px;
    font-weight: 300;
    letter-spacing: 3px;
}

.overlay p {
    margin-top: 10px;
    font-size: 16px;
    max-width: 600px;
}


/* ========== ABOUT SECTION ========== */

.about {
    background: #f4f1ec;
    text-align: center;
    padding: 80px 20px;
}

.sub-title {
    color: #caa45f;
    letter-spacing: 3px;
    font-size: 14px;
    margin-bottom: 10px;
}

.about h2 {
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 20px;
    color: white;
}

.description {
    max-width: 800px;
    margin: 10px auto;
    color: #ffffff;
    line-height: 1.6;
}

.btn {
    margin-top: 30px;
    padding: 12px 30px;
    border: 1px solid #caa45f;
    background: transparent;
    color: #000;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    background: #caa45f;
    color: #fff;
}


/* ========== IMAGE GALLERY ========== */

.gallery {
    display: flex;
    gap: 20px;
    padding: 40px;
    background: #eee;
}

.gallery img {
    width: 33.33%;
    height: 300px;
    object-fit: cover;
}


/* ========== COUNTER SECTION ========== */

.counter-section {
    background: linear-gradient(to right, #6dafe2, #474545);
    color: #caa45f;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 60px 20px;
    text-align: center;
}

.counter-box {
    flex: 1;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.counter-box:last-child {
    border-right: none;
}

.counter {
    font-size: 50px;
    font-weight: 300;
}

.counter-box p {
    color: #fff;
    font-size: 14px;
    letter-spacing: 2px;
    margin-top: 10px;
}


/* ========== VISION & MISSION CARDS (container) ========== */

.resort-vm-section {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 20px;
}

.vm-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}


/* each card = half width on large screens */

.vm-card {
    flex: 1 1 400px;
    max-width: 580px;
    background: #ffffffdd;
    backdrop-filter: blur(3px);
    background: linear-gradient(145deg, #fffaf2, #fff);
    border-radius: 40px 40px 40px 40px;
    box-shadow: 0 40px 60px -20px rgba(0, 40, 30, 0.3), 0 10px 20px -5px rgba(0, 0, 0, 0.1);
    padding: 40px 35px;
    transition: all 0.3s ease;
    border: 1px solid rgba(210, 180, 140, 0.2);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    animation: floatIn 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
}

.vm-card:nth-child(1) {
    animation-delay: 0.2s;
}

.vm-card:nth-child(2) {
    animation-delay: 0.5s;
}

@keyframes floatIn {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* decorative wave / resort style lines */

.vm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #0b4f6c, #20a4a4, #f2b84b, #f26b4b);
    border-radius: 40px 40px 0 0;
}


/* icon header */

.card-icon {
    font-size: 3.8rem;
    line-height: 1;
    margin-bottom: 20px;
    color: #0f6b7e;
    display: inline-block;
    background: rgba(15, 107, 126, 0.1);
    padding: 15px 22px;
    border-radius: 100px;
    transition: transform 0.2s ease;
    animation: iconPop 0.8s ease-out 0.6s both;
}

.vm-card:nth-child(2) .card-icon {
    color: #d97746;
    background: rgba(217, 119, 70, 0.1);
}

@keyframes iconPop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}


/* titles */

.card-title {
    font-size: 2.6rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.card-title span {
    background: linear-gradient(135deg, #1a4e5f, #0e3b47);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vm-card:nth-child(2) .card-title span {
    background: linear-gradient(135deg, #b85e2e, #a3491b);
    /* For Chrome, Safari */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Standard support (important fix) */
    background-clip: text;
    color: transparent;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: #1e7e83;
    border-radius: 4px;
    animation: lineGrow 0.7s ease-out 1s forwards;
    transform: scaleX(0);
    transform-origin: left;
}

.vm-card:nth-child(2) .card-title::after {
    background: #e98a4e;
}

@keyframes lineGrow {
    to {
        transform: scaleX(1);
    }
}


/* description text */

.card-desc {
    font-size: 1.18rem;
    line-height: 1.6;
    color: #2f3e46;
    margin: 30px 0 25px;
    opacity: 0;
    animation: fadeInText 1s ease forwards 1.1s;
}

.vm-card:nth-child(2) .card-desc {
    animation-delay: 1.3s;
}

@keyframes fadeInText {
    to {
        opacity: 1;
    }
}

.card-desc i {
    color: #09814e;
    margin-right: 6px;
    font-size: 1.3rem;
    vertical-align: middle;
}


/* mini list / highlights */

.highlight-list {
    list-style: none;
    margin: 30px 0 20px;
    opacity: 0;
    animation: slideList 0.9s ease forwards 1.4s;
}

.vm-card:nth-child(2) .highlight-list {
    animation-delay: 1.6s;
}

@keyframes slideList {
    0% {
        opacity: 0;
        transform: translateX(-15px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.highlight-list li {
    font-size: 1.1rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2b4a4f;
}

.highlight-list li i {
    width: 28px;
    color: #1d848a;
    font-size: 1.4rem;
}

.vm-card:nth-child(2) .highlight-list li i {
    color: #dc7a4b;
}


/* small resort motif (umbrella / wave) */

.resort-motif {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 3.5rem;
    opacity: 0.1;
    transform: rotate(5deg);
    pointer-events: none;
    transition: 0.3s;
}

.vm-card:hover .resort-motif {
    opacity: 0.2;
    transform: rotate(0deg) scale(1.1);
}


/* additional natural gradient border */

.vm-card {
    background: #fffdf9;
    border: 2px solid transparent;
    background-clip: padding-box;
    border-image: repeating-linear-gradient(30deg, #c3b59f, #aac7bf, #f3cf9e) 30;
    border-image-slice: 1;
}


/* little floating leaves (just for fun) */

.bg-leaf {
    position: absolute;
    font-size: 2rem;
    color: #43734a;
    opacity: 0.1;
    z-index: 0;
    user-select: none;
}

.leaf-1 {
    top: 20px;
    left: 20px;
    transform: rotate(-15deg);
    animation: sway 8s infinite alternate ease-in-out;
}

.leaf-2 {
    bottom: 10px;
    left: 60px;
    transform: rotate(40deg);
    animation: sway 12s infinite alternate;
}

@keyframes sway {
    0% {
        transform: rotate(-5deg) translateY(0);
    }
    100% {
        transform: rotate(15deg) translateY(-10px);
    }
}


/* ========== PHILOSOPHY SECTION (dual image + content) ========== */

.philosophy {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 10%;
    gap: 60px;
    flex-wrap: wrap;
    background: #fff;
}


/* LEFT IMAGES */

.image-box {
    position: relative;
    width: 500px;
    max-width: 100%;
}

.image-box img {
    width: 100%;
    border-radius: 6px;
}


/* FIRST IMAGE */

.img1 {
    position: relative;
    z-index: 1;
}


/* SECOND IMAGE OVERLAP */

.img2 {
    position: absolute;
    bottom: -130px;
    right: -40px;
    width: 40px;
    border: 10px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}


/* RIGHT CONTENT */

.content {
    max-width: 500px;
}

.content .sub-title {
    color: #caa45f;
    letter-spacing: 3px;
    font-size: 14px;
    margin-bottom: 10px;
}

.content h1 {
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 20px;
}

.text {
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
}

.content button {
    margin-top: 20px;
    padding: 12px 30px;
    border: 1px solid #caa45f;
    background: transparent;
    cursor: pointer;
    transition: 0.3s;
}

.content button:hover {
    background: #caa45f;
    color: #fff;
}


/* ========== RESPONSIVE MEDIA QUERIES ========== */


/* Tablet View (max-width: 992px) */

@media (max-width: 992px) {
    /* Hero */
    .overlay h1 {
        font-size: 48px;
    }
    .overlay p {
        font-size: 15px;
        padding: 0 15px;
    }
    /* About */
    .about {
        padding: 60px 20px;
    }
    .about h2 {
        font-size: 34px;
    }
    /* Gallery */
    .gallery {
        flex-wrap: wrap;
        gap: 15px;
        padding: 30px;
    }
    .gallery img {
        width: calc(50% - 10px);
        height: 280px;
    }
    /* Counter */
    .counter-section {
        flex-wrap: wrap;
        gap: 30px;
        padding: 40px 20px;
    }
    .counter-box {
        flex: 0 0 45%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 20px;
    }
    .counter-box:last-child {
        border-bottom: none;
    }
    /* VM Cards */
    .vm-card {
        padding: 30px 25px;
        max-width: 90%;
        margin: 0 auto;
    }
    .card-title {
        font-size: 2.2rem;
    }
    .card-icon {
        font-size: 3rem;
        padding: 12px 18px;
    }
    .highlight-list li {
        font-size: 1rem;
    }
    /* Philosophy section */
    .philosophy {
        padding: 60px 5%;
        gap: 40px;
        flex-direction: column;
    }
    .image-box {
        width: 80%;
        margin: 0 auto;
    }
    .img2 {
        width: 35px;
        bottom: -80px;
        right: -20px;
        border-width: 6px;
    }
    .content {
        text-align: center;
        max-width: 90%;
    }
    .content h1 {
        font-size: 40px;
    }
    .content .sub-title {
        justify-content: center;
        display: inline-block;
    }
}


/* Mobile View (max-width: 768px) */

@media (max-width: 768px) {
    /* Hero */
    .hero {
        height: 50vh;
    }
    .overlay h1 {
        font-size: 36px;
        letter-spacing: 2px;
    }
    .overlay p {
        font-size: 14px;
        max-width: 90%;
    }
    /* About */
    .about {
        padding: 50px 16px;
    }
    .about h2 {
        font-size: 28px;
    }
    .description {
        font-size: 15px;
        padding: 0 10px;
    }
    .btn {
        padding: 10px 24px;
        font-size: 14px;
    }
    /* Gallery */
    .gallery {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    .gallery img {
        width: 100%;
        height: 240px;
    }
    /* Counter Section */
    .counter-section {
        flex-direction: column;
        gap: 30px;
        padding: 40px 16px;
    }
    .counter-box {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 25px;
    }
    .counter-box:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    .counter {
        font-size: 42px;
    }
    .counter-box p {
        font-size: 13px;
    }
    /* VM cards container */
    .resort-vm-section {
        padding: 40px 16px;
    }
    .vm-grid {
        gap: 25px;
    }
    .vm-card {
        padding: 25px 20px;
        max-width: 100%;
    }
    .card-title {
        font-size: 1.9rem;
    }
    .card-desc {
        font-size: 1rem;
        margin: 20px 0 20px;
    }
    .highlight-list li {
        font-size: 0.95rem;
        gap: 8px;
    }
    .highlight-list li i {
        font-size: 1.2rem;
        width: 24px;
    }
    .card-icon {
        font-size: 2.6rem;
        padding: 10px 16px;
        margin-bottom: 15px;
    }
    .resort-motif {
        font-size: 2.5rem;
        bottom: 12px;
        right: 12px;
    }
    /* Philosophy section (mobile) */
    .philosophy {
        padding: 50px 20px;
        gap: 30px;
    }
    .image-box {
        width: 95%;
    }
    .img2 {
        width: 28px;
        bottom: -45px;
        right: -12px;
        border-width: 5px;
    }
    .content h1 {
        font-size: 32px;
    }
    .text {
        font-size: 15px;
    }
    .content button {
        padding: 10px 24px;
        font-size: 14px;
    }
}


/* Small Mobile (max-width: 480px) */

@media (max-width: 480px) {
    .overlay h1 {
        font-size: 28px;
    }
    .overlay p {
        font-size: 13px;
    }
    .about h2 {
        font-size: 24px;
    }
    .sub-title {
        font-size: 12px;
        letter-spacing: 2px;
    }
    .description {
        font-size: 14px;
    }
    .counter {
        font-size: 36px;
    }
    .vm-card {
        padding: 22px 18px;
    }
    .card-title {
        font-size: 1.7rem;
    }
    .card-desc {
        font-size: 0.95rem;
    }
    .highlight-list li {
        font-size: 0.9rem;
        flex-wrap: wrap;
    }
    .content h1 {
        font-size: 28px;
    }
    .text {
        font-size: 14px;
    }
    .btn,
    .content button {
        padding: 8px 20px;
    }
    .gallery img {
        height: 200px;
    }
}


/* Desktop large optimization (1200px+) - keep original elegance */

@media (min-width: 1200px) {
    .philosophy {
        padding: 100px 12%;
        gap: 80px;
    }
    .image-box {
        width: 550px;
    }
    .content h1 {
        font-size: 52px;
    }
}


/* Extra fix for image-box overlapping on tablet landscape */

@media (min-width: 769px) and (max-width: 1024px) {
    .img2 {
        width: 38px;
        bottom: -100px;
        right: -30px;
    }
    .image-box {
        width: 70%;
    }
    .philosophy {
        flex-direction: row;
        justify-content: center;
    }
}