* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Helvetica', sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: #000; color: #fff; overflow-x: hidden; }

header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%; position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(0,0,0,0.1); backdrop-filter: blur(10px);
}
.logo { 
    font-weight: bold; 
    font-size: 24px; 
    letter-spacing: 3px;
    width: 100px;
    height: 40px;
    background: url(images/iconic_escapes_logo_w.png) no-repeat;
    background-size: 100%;
    text-indent: -9999px;
}

.nav-menu { display: flex; }
.nav-link {
    color: #fff; text-decoration: none; margin-left: 30px; font-size: 13px;
    letter-spacing: 1px; opacity: 0.6; transition: 0.3s; position: relative; padding-bottom: 5px;
}
.nav-link:hover {
    color: #3366ff;
}
.nav-link::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: 0; left: 0; background-color: #3366ff; transition: 0.3s;
}
.nav-link.active { opacity: 1; color: #fff; }
.nav-link.active::after { width: 100%; }

.menu-toggle { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.bar { width: 25px; height: 2px; background-color: #fff; transition: 0.3s; }

.hero { position: relative; height: 100vh; }
.slide { display: none; height: 100vh; position: relative; }
.fade { animation: fadeEffect 1.5s; }
@keyframes fadeEffect { from {opacity: .4} to {opacity: 1} }

.slide img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.hero-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; width: 90%; }

.dots-container { position: absolute; bottom: 30px; width: 100%; text-align: center; z-index: 10; }
.dot { height: 12px; width: 60px; background: rgba(255,255,255,0.3); display: inline-block; margin: 0 5px; cursor: pointer; transition: 0.3s; }
.dot.active { background: #3366ff; }

/* Image Styling in Main */
main img {
    border-radius: 15px; 
    transition: transform 0.3s ease;
}

.container { max-width: 1100px; margin: 0 auto; padding: 80px 20px; }
.section { margin-bottom: 100px; scroll-margin-top: 100px; }
.section-title { color: #3366ff; margin-bottom: 40px; font-size: 1.2rem; letter-spacing: 2px; }
h3 {
    color: #3366ff;
    font-weight: bold;
    margin-bottom: 10px;
}
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.card img { width: 100%; height: 250px; object-fit: cover; margin-bottom: 15px; }

.sertext {
    width: 50%;
    margin-bottom: 30px;
}
.masonry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.masonry-grid div { overflow: hidden; border-radius: 15px; } /* Ensures rounded corners on containers */
.masonry-grid img { width: 100%; height: 100%; object-fit: cover; }
.masonry-grid img:hover { transform: scale(1.05); }
.tall { grid-row: span 2; }
.wide { grid-column: span 2; }
.addmb {
    margin-bottom: 150px;
}
.contact-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 40px;
 }
.social-icons i { margin-right: 20px; font-size: 1.2rem; cursor: pointer; transition: 0.3s; }
.social-icons i:hover { color: #3366ff; }
.social-icons a {
    color: white;
}
h4 {
    margin-bottom: 10px;
}
.contact-details p {
    margin-bottom: 30px;
}
.contact-links {
    color: white;
}
footer { text-align: center; padding: 40px; border-top: 1px solid #222; }
.footer-logo {
    background: url(images/iconic_escapes_logo_w.png) no-repeat;
    background-size: 100%;
    width: 150px;
    height: 70px;
    margin: auto;
    text-indent: -9999px;
}
#backToTop { position: fixed; bottom: 20px; right: 20px; padding: 15px; background: #3366ff; border: none; color: #fff; border-radius: 50%; cursor: pointer; display: none; z-index: 1001; }

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-menu {
        position: fixed; top: 0; left: -100%; flex-direction: column;
        background: rgba(0,0,0,0.95); width: 100%; height: 100vh; transition: 0.3s; padding-top: 100px;
    }
    .nav-menu.active { left: 0; }
    .nav-link { margin: 20px 0; font-size: 1.5rem; margin-left: 0; }
    .masonry-grid { grid-template-columns: 1fr; }
    .wide, .tall { grid-column: auto; grid-row: auto; }
    .sertext {
        width: 100%;
    }
}