/* ===================================== PROJECT HERO SECTION START===================================== */

/* Core Section Setup */
#kgsherop {
    position: relative;
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #000;
}

.kgsherop-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Background Image */
.kgsherop-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay */
.kgsherop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
    z-index: 1;
}

/* ================= CONTENT POSITION (BOTTOM) ================= */
.kgsherop-content {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    color: #ffffff;
    width: 90%;
}

/* Subtitle */
.kgsherop-subheading {
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-family: "Raleway", sans-serif;
}

/* Main Title */
.kgsherop-title {
    font-size: 50px;
    font-weight: 400;
    margin: 0;
    font-family: "Italiana", serif;
}

/* Brand */
.kgsherop-brand {
    font-size: 18px;
    margin-top: 5px;
    letter-spacing: 1px;
    font-family: "Raleway", sans-serif;
}

/* ================= LETTER ANIMATION ================= */

.kgs-animate span {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    animation: kgsLetterUp 0.6s ease forwards;
}

@keyframes kgsLetterUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1024px) {
    .kgsherop-title {
        font-size: 50px;
    }
}

@media (max-width: 768px) {
    #kgsherop {
        height: 70vh;
    }

    .kgsherop-title {
        font-size: 35px;
    }

    .kgsherop-subheading {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .kgsherop-content {
        bottom: 40px;
    }
}

@media (max-width: 480px) {
    #kgsherop {
        height: 60vh;
    }

    .kgsherop-title {
        font-size: 28px;
    }

    .kgsherop-brand {
        font-size: 14px;
    }

    .kgsherop-content {
        bottom: 30px;
    }
}

/* ===================================== PROJECT LEFT SIDE BUTTON SECTION START===================================== */

#kgs-side-button-section {
    position: fixed;
    left: 0;
    top: 65%;
    transform: translateY(-50%);
    z-index: 9999;
}

/* Container */
.kgs-side-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Button */
.kgs-side-btn {
    position: relative;
    background: #CD9933;
    color: #ffffff;
    text-decoration: none;
    font-family: "Raleway", sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
    padding: 14px 10px;
    display: inline-block;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Vertical Text */
.kgs-side-btn span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    display: inline-block;
    position: relative;
    z-index: 2;
}

/* ✨ SHINE EFFECT */
.kgs-side-btn::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.6) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: rotate(25deg);
    animation: kgsShine 3s infinite;
}

/* Shine Animation */
@keyframes kgsShine {
    0% {
        left: -75%;
    }
    100% {
        left: 125%;
    }
}

/* Hover Effect */
.kgs-side-btn:hover {
    background: #0A3616;
    color: #fff;
}

/* Stop shine on hover (optional premium feel) */
.kgs-side-btn:hover::before {
    animation: none;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
    .kgs-side-btn {
        font-size: 11px;
        padding: 10px 8px;
    }
}

/* ===================================== PROJECT ABOUT SECTION START===================================== */
/* ================= SECTION ================= */

#kgsprojabout-section {
    position: relative;
    width: 100%;
    padding: 30px 20px;
    text-align: center;
    background-color: #f5f5f5;
    overflow: hidden;
}

/* 🔥 BACKGROUND IMAGE (FULL COVER - NO REPEAT) */
#kgsprojabout-section::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: url("/assets/images/projbg.webp"); /* 🔁 fix path if needed */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

    opacity: 1;
    z-index: 0;
}

/* 🔥 OPTIONAL OVERLAY */
#kgsprojabout-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0); /* change to 0.7 if text not visible */
    z-index: 1;
}

/* ================= CONTAINER ================= */

.kgsprojabout-container {
    position: relative;
    max-width: 900px;
    margin: auto;
    z-index: 2;
}

/* ================= TYPOGRAPHY ================= */

.kgsprojabout-title {
    font-family: "Italiana", serif;
    font-size: 38px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #111;
}

.kgsprojabout-text {
    font-family: "Raleway", sans-serif;
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 20px;
    color: #333;
}

.kgsprojabout-small {
    font-family: "Raleway", sans-serif;
    font-size: 14px;
    margin-top: 25px;
    color: #333;
}

.kgsprojabout-link {
    font-family: "Raleway", sans-serif;
    font-size: 14px;
    margin-top: 8px;
    color: #333;
}

.kgsprojabout-line {
    width: 90%;
    max-width: 1000px;
    height: 2px;
    background: #CD9933;
    margin: 40px auto 0;
}

/* ================= SCROLL ANIMATION ================= */

.kgsprojabout-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

/* 🔥 Activated on scroll */
.kgsprojabout-fade-up.kgsprojabout-active {
    opacity: 1;
    transform: translateY(0);
}

/* Delay for stagger effect */
.kgsprojabout-fade-up:nth-child(1) { transition-delay: 0.2s; }
.kgsprojabout-fade-up:nth-child(2) { transition-delay: 0.4s; }
.kgsprojabout-fade-up:nth-child(3) { transition-delay: 0.6s; }
.kgsprojabout-fade-up:nth-child(4) { transition-delay: 0.8s; }
.kgsprojabout-fade-up:nth-child(5) { transition-delay: 1s; }

/* ================= RESPONSIVE ================= */

@media (max-width: 1024px) {
    .kgsprojabout-title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    #kgsprojabout-section {
        padding: 30px 15px;
    }

    .kgsprojabout-title {
        font-size: 24px;
    }

    .kgsprojabout-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .kgsprojabout-title {
        font-size: 20px;
    }

    .kgsprojabout-text {
        font-size: 13px;
        line-height: 1.7;
    }
}

/* ===================================== PROJECT AMENITIES SECTION START===================================== */
/* ================= GOOGLE FONTS ================= */
@import url('https://fonts.googleapis.com/css2?family=Italiana&family=Raleway:wght@300;400;500;600&display=swap');

/* ================= SECTION ================= */
.amenities-container {
    background-color: #031d12; /* Deeper Forest Green */
    padding: 30px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
    font-family: 'Raleway', sans-serif;
}

/* ================= DYNAMIC BACKGROUND PATTERN ================= */
.bg-pattern {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    transform: translate(-50%, -50%);
    background-image: 
        repeating-linear-gradient(45deg, rgba(212, 175, 55, 0.03) 0px, rgba(212, 175, 55, 0.03) 1px, transparent 1px, transparent 40px),
        repeating-linear-gradient(-45deg, rgba(212, 175, 55, 0.03) 0px, rgba(212, 175, 55, 0.03) 1px, transparent 1px, transparent 40px);
    animation: bgRotate 100s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes bgRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ================= TITLE ================= */
.section-title {
    position: relative;
    z-index: 2;
    font-family: 'Italiana', serif;
    color: #ffffff;
    font-size: 2.5rem;
    letter-spacing: 8px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: #D4AF37;
    margin: 20px auto;
}

/* ================= SLIDER BOX ================= */
.slider-box {
    width: 100%;
    position: relative;
    z-index: 2;
    /* Soft edges for the slider */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.slider-track {
    display: flex;
    width: max-content;
    animation: infiniteScroll 40s linear infinite;
    padding: 40px 0;
}

/* ================= ENHANCED ITEM ================= */
.amenity-item {
    width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 10px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gold-icon {
    font-size: 45px;
    margin-bottom: 20px;
    color: #D4AF37;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
    transition: all 0.4s ease;
    animation: float 4s ease-in-out infinite;
}

.amenity-item span {
    color: #ffffff;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
    opacity: 0.7;
    transition: opacity 0.4s ease;
}

/* ================= ACTIVE STATE (CENTER EFFECT) ================= */
/* Since pure CSS can't detect "center" easily, we use a hover 
   and a center glow box to simulate focus.
*/
.amenity-item:hover {
    transform: translateY(-15px) scale(1.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.amenity-item:hover span {
    opacity: 1;
    color: #D4AF37;
}

.amenity-item:hover .gold-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.8));
}

/* ================= ANIMATIONS ================= */
@keyframes infiniteScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-240px * 12)); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Responsive fixes */
@media (max-width: 768px) {
    .amenity-item { width: 180px; }
    @keyframes infiniteScroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-180px * 12)); }
    }
}

  /* ===================================== PROJECT LOCATION SECTION START===================================== */
 /* ================= SECTION ================= */
#kgs-location-section {
    width: 100%;
    padding: 35px 20px;
    background: #f5f5f5;
}

/* ================= TITLE ================= */
.kgs-location-title {
    text-align: center;
    font-size: 34px;
    margin-bottom: 25px;
    color: #1c3d2b;
    font-family: "Italiana", serif;
    letter-spacing: 1.5px;
    animation: fadeDown 1s ease;
}

/* ================= CONTAINER ================= */
.kgs-location-container {
    max-width: 1150px;
    margin: auto;
    display: flex;
    gap: 25px;
    align-items: stretch;
}

/* ================= LEFT ================= */
.kgs-location-left {
    flex: 1;
    display: flex;
    animation: fadeLeft 1s ease;
}

.kgs-location-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    font-family: "Raleway", sans-serif;
}

.kgs-location-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    margin-bottom: 8px;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 14.5px;
    color: #333;
    transition: all 0.3s ease;
    border-left: 4px solid #CD9933;
}

/* ICON STYLE */
.kgs-location-list li i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f0ec;
    color: #CD9933;
    border-radius: 50%;
    font-size: 14px;
    transition: 0.3s;
}

/* HOVER */
.kgs-location-list li:hover {
    transform: translateX(6px);
    background: #1c3d2b;
    color: #fff;
}

.kgs-location-list li:hover i {
    background: #ffffff;
    color: #1c3d2b;
    transform: scale(1.1);
}

/* ================= RIGHT ================= */
.kgs-location-right {
    flex: 1;
    display: flex;
    animation: fadeRight 1s ease;
}

.kgs-location-right iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* ================= ANIMATIONS ================= */
@keyframes fadeLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-25px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================= RESPONSIVE ================= */

/* 🔥 TABLET FIX */
@media (max-width: 992px) {
    .kgs-location-container {
        flex-direction: column;
    }

    /* 🔥 KEY FIX */
    .kgs-location-right iframe {
        height: 400px;  /* 👈 increase map height */
    }
}

/* 🔥 MOBILE FIX */
@media (max-width: 576px) {

    #kgs-location-section {
        padding: 25px 15px;
    }

    .kgs-location-title {
        font-size: 24px;
    }

    .kgs-location-list li {
        font-size: 13.5px;
        padding: 10px;
    }

    .kgs-location-list li i {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    /* 🔥 KEY FIX */
    .kgs-location-right iframe {
        height: 320px; /* 👈 increase map height */
    }
}