@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,300;0,400;0,500;0,600;1,100;1,300&display=swap");

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

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

html::-webkit-scrollbar {
    width: 1rem;
}

html::-webkit-scrollbar-track {
    background: #fff;
}

html::-webkit-scrollbar-thumb {
    background: #10221b;
}

section {
    padding: 5rem 9%;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 2rem 9%;
    z-index: 1000;
    display: flex;
    align-items: center;
    background: #fff;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.header.active {
    background: #fff;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.header .logo {
    text-decoration: none;
    margin-right: auto;
    font-size: 2.5rem;
    color: #10221b;
    font-weight: bolder;
}

.header .logo i {
    color: #219150;
}

.header .navbar a {
    text-decoration: none;
    margin-left: 2rem;
    font-size: 1.7rem;
    color: #10221b;
}

.header .navbar a:hover {
    color: #219150;
}

.header .navbar #nav-close {
    font-size: 5rem;
    cursor: pointer;
    color: #10221b;
    display: none;
}

.header .icons a,
.header .icons div {
    font-size: 2.5rem;
    margin-left: 2rem;
    cursor: pointer;
    color: #10221b;
}

.header .icons a:hover,
.header .icons div:hover {
    color: #219150;
}

.header #menu-btn {
    display: none;
}

/* Search Form */
.search-form {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transform: translateY(-110%);
}

.search-form.active {
    transform: translateY(0%);
}

.search-form #close-search {
    position: absolute;
    top: 1.5rem;
    right: 2.5rem;
    cursor: pointer;
    color: #fff;
    font-size: 6rem;
}

.search-form #close-search:hover {
    color: #219150;
}

.search-form form {
    width: 70rem;
    margin: 0 2rem;
    padding-bottom: 2rem;
    border-bottom: 0.2rem solid #fff;
    display: flex;
    align-items: center;
}

.search-form form input {
    width: 100%;
    font-size: 2rem;
    color: #fff;
    text-transform: none;
    background: none;
    padding-right: 2rem;
}

.search-form form input::placeholder {
    color: #aaa;
}

.search-form form label {
    font-size: 3rem;
    cursor: pointer;
    color: #fff;
}

.search-form form label:hover {
    color: #219150;
}

/* Button Styles */
.btn {
    margin-top: 1rem;
    display: inline-block;
    border: 0.2rem solid #10221b;
    color: #10221b;
    cursor: pointer;
    background: none;
    font-size: 1.7rem;
    padding: 1rem 3rem;
}

.btn:hover {
    background: #10221b;
    color: #fff;
}

.heading {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 4rem;
    color: #10221b;
}

/* Map Styles */
.blur {
    width: 100vw;
    height: 750px;
    background: url(../images/mainmap2.jpg);
    background-size: cover;
    background-position: center;
}

.align {
    width: 100vw;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}

.main {
    position: relative;
    width: 498px;
    height: 664px;
    background: url(../images/map1.jpg) no-repeat center center;
    background-size: cover;
    border-radius: 15px;
}

/* Landmark Animation */
.main img {
    animation: shake 5s;
    animation-iteration-count: infinite;
    width: 30px;
    height: 30px;
    vertical-align: middle;
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(1px, 1px) rotate(-1deg); }
    20% { transform: translate(1px, 1px) rotate(1deg); }
    30% { transform: translate(-1px, -1px) rotate(0deg); }
    40% { transform: translate(1px, 1px) rotate(1deg); }
    50% { transform: translate(-1px, -1px) rotate(-1deg); }
    60% { transform: translate(1px, 1px) rotate(0deg); }
    70% { transform: translate(-1px, -1px) rotate(-1deg); }
    80% { transform: translate(1px, 1px) rotate(1deg); }
    90% { transform: translate(-1px, -1px) rotate(0deg); }
    100% { transform: translate(1px, 1px) rotate(-1deg); }
}

/* Landmark Positions */
.main .jaffna {
    position: absolute;
    top: 30px;
    right: 70%;
    left: 30%;
}

.main .kandy {
    position: absolute;
    top: 350px;
    right: 52%;
    left: 48%;
}

.main .trinco {
    position: absolute;
    top: 158px;
    right: 46%;
    left: 54%;
}

.main .galle {
    position: absolute;
    top: 570px;
    right: 68%;
    left: 32%;
}

.main .colombo {
    position: absolute;
    top: 425px;
    right: 77%;
    left: 23%;
}

.main .katharagama {
    position: absolute;
    top: 510px;
    right: 40%;
    left: 60%;
}

.main .nuwaraeliya {
    position: absolute;
    top: 400px;
    right: 48%;
    left: 52%;
}

.main .anuradhapura {
    position: absolute;
    top: 197px;
    right: 61%;
    left: 39%;
}

/* Cards Section */
.wrapper {
    margin: 10vh;
}

.city {
    text-align: center;
    margin-bottom: 3rem;
}

.city h1 {
    font-size: 3.5rem;
    color: #10221b;
    font-weight: 700;
}

.card {
    border: none;
    transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
    overflow: hidden;
    border-radius: 20px;
    min-height: 450px;
    box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.2);
}

.card.card-has-bg {
    transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
    background-size: 120%;
    background-repeat: no-repeat;
    background-position: center center;
}

.card.card-has-bg:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: inherit;
}

.card.card-has-bg:hover {
    transform: scale(0.98);
    box-shadow: 0 0 5px -2px rgba(0, 0, 0, 0.3);
    background-size: 130%;
    transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
}

.card.card-has-bg:hover .card-img-overlay {
    transition: all 800ms cubic-bezier(0.19, 1, 0.22, 1);
    background: linear-gradient(0deg, rgba(4, 68, 114, 0) 0%, rgba(4, 68, 114, 0) 100%);
}

.card .card-footer {
    background: none;
    border-top: none;
}

.card .card-footer .media img {
    border: solid 3px rgba(255, 255, 255, 0.3);
}

.card .card-meta {
    color: #26BD75;
    font-size: 1.2rem;
}

.card .card-body {
    transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
}

.card:hover {
    cursor: pointer;
    transition: all 800ms cubic-bezier(0.19, 1, 0.22, 1);
}

.card:hover .card-body {
    margin-top: 30px;
    transition: all 800ms cubic-bezier(0.19, 1, 0.22, 1);
}

.card .card-img-overlay {
    transition: all 800ms cubic-bezier(0.19, 1, 0.22, 1);
    background: linear-gradient(0deg, rgba(35, 79, 109, 0) 0%, rgba(69, 95, 113, 0) 100%);
}

.card-title {
    font-size: 2rem !important;
    font-weight: 600;
}

.card-body small {
    font-size: 1.2rem;
}

.media-body h6 {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
}

.media-body small {
    font-size: 1.1rem;
}

/* Footer Styles */
.footer {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../images/ftr2.jpg) no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 5rem 9%;
}

.footer .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 1.5rem;
}

.footer .box-container .box h3 {
    font-size: 2.2rem;
    padding-bottom: 2rem;
    color: #fff;
}

.footer .box-container .box a {
    display: block;
    font-size: 1.4rem;
    color: #fff;
    padding-bottom: 1.5rem;
    text-decoration: none;
}

.footer .box-container .box a i {
    color: #219150;
    padding-right: .5rem;
    transition: .2s linear;
}

.footer .box-container .box a:hover i {
    padding-right: 2rem;
}

.footer .box-container .box a:hover {
    color: #219150;
}

.footer .credit {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: .1rem solid rgba(255, 255, 255, 0.3);
    font-size: 2rem;
    color: #fff;
}

.footer .credit span {
    color: #219150;
}

/* Scroll to Top */
.to-top {
    background: #10221b;
    position: fixed;
    bottom: 16px;
    right: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: all .4s;
    cursor: pointer;
    z-index: 1000;
}

.to-top.active {
    bottom: 32px;
    pointer-events: auto;
    opacity: 1;
}

.to-top:hover {
    background: #219150;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .header {
        padding: 2rem;
    }
    section {
        padding: 3rem 2rem;
    }
}

@media (max-width: 991px) {
    html {
        font-size: 55%;
        scroll-padding-top: 7rem;
    }
}

@media (max-width: 768px) {
    .header #menu-btn {
        display: inline-block;
    }
    .header .navbar {
        position: fixed;
        top: 0;
        left: -110%;
        background: #fff;
        z-index: 10000;
        width: 35rem;
        height: 100%;
        display: flex;
        flex-flow: column;
        align-items: center;
        justify-content: center;
    }
    .header .navbar.active {
        left: 0;
        box-shadow: 0 0 0 100vw rgba(0, 0, 0, 0.8);
    }
    .header .navbar a {
        margin: 1rem 0;
        font-size: 3rem;
    }
    .header .navbar #nav-close {
        display: block;
        position: absolute;
        top: 1rem;
        right: 2rem;
    }
    
    .wrapper {
        margin: 5vh;
    }
    
    .to-top {
        font-size: 18px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 500px) {
    .main {
        width: 360px;
        height: 480px;
    }
    
    .blur {
        height: 630px;
    }
    
    /* Adjusted landmark positions for mobile */
    .main .jaffna {
        top: 15px;
        right: 70%;
        left: 30%;
    }  
    .main .kandy {
        top: 220px;
        right: 52%;
        left: 48%;
    }
    .main .trinco {
        top: 112px;
        right: 44%;
        left: 56%;
    }
    .main .galle {
        top: 400px;
        right: 68%;
        left: 32%;
    }
    .main .colombo {
        top: 300px;
        right: 77%;
        left: 23%;
    }
    .main .katharagama {
        top: 350px;
        right: 38%;
        left: 62%;
    }
    .main .nuwaraeliya {
        top: 280px;
        right: 48%;
        left: 52%;
    }
    .main .anuradhapura {
        top: 130px;
        right: 61%;
        left: 39%;
    }
    
    .wrapper {
        margin: 5vh 2vh;
    }
    
    .card {
        min-height: 350px;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }
    
    .card {
        min-height: 300px;
    }
}

@media (max-width: 380px) {
    .main {
        width: 320px;
        height: 430px;
    }
    
    .blur {
        height: 580px;
    }
}
