/* Variables */
:root {
    --nav-height: 80px;
}

/* Global styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: "Courier New", Courier, monospace;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    padding: 0px !important;
}

body.snap-desktop {
    scroll-snap-type: y mandatory;
}

body.snap-mobile {
    scroll-snap-type: y mandatory;
}

/* Header */
.header {
    position: relative;
    /*overflow: hidden;*/
    z-index: 1;
    height: 100vh;
}

.header * {
    position: relative;
    z-index: 2;
}

/* Navbar */
.navbar.stuck {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
}

.navbar .navbar-brand img {
    height: 100px;
    width: auto;
}

.navbar-nav {
    gap: 0.5rem;
}

.navbar .nav-link {
    font-size: 1.5rem;
    font-weight: 400;
}

.nav-item-dot {
    color: #a8a8a8;
    display: flex;
    align-items: center;
    font-size: 1.5rem;
}
.dropdown-submenu {
    position: relative;
}

/* desktop: submenus fly out to the right */
.dropdown-submenu > .dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-top: -0.125rem; 
    min-width: 12rem;
    display: none;
    border-radius: 0.25rem;
    z-index: 2050;
}

/* visible state */
.dropdown-submenu > .dropdown-menu.show {
    display: block;
}

.dropdown-submenu { position: relative; }
.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 0.1rem;
}


/* mobile: stack submenus inside parent */
@media (max-width: 991.98px) {
    .header {
        min-height: 60vh !important;
    }
    
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    }
     
    .navbar .navbar-brand img {
        height: 50px;
        width: auto;
    }
    
    .navbar .nav-link {
        font-size: 1rem;
    }
    
    .nav-item-dot {
        display: none;
    }
  
    .dropdown-submenu > .dropdown-menu {
        position: relative;
        left: 0;
        top: 0;
        margin: 0.25rem 0;
        min-width: auto;
    }
}

/* toggles */
.subdropdown-toggle {
    cursor: pointer;
    display: block;
    width: 100%;
}
.subdropdown-toggle::after {
    content: "▸";
    float: right;
    margin-left: 0.5rem;
    transform: rotate(0deg);
    transition: transform .12s ease;
}
.subdropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(90deg);
}

/* optional: keep default bootstrap dropdown visuals when opened */
.dropdown-menu { will-change: transform; }

/* Navbar stuck state */
.navbar.stuck .container {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.navbar.stuck .navbar-brand img {
    height: 50px;
    width: auto;
}

.navbar.stuck .navbar-collapse {
    flex-grow: 0;
    flex-basis: auto;
    align-items: center;
}

.navbar.stuck .nav-link {
    font-size: 1rem;
}

.navbar.stuck .nav-item-dot {
    display: none;
}

/*Hero top bg*/
.hero_top_bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: #f5f5f5;
  z-index: -1;
  height: 0;
  pointer-events: none;
}

/* Hero top images */
.hero_top_img {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    z-index: 1;
}

.hero_top_img img {
    max-height: 250px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: grayscale(100%);
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.hero_top_img img:hover {
    transform: scale(1.1);
    filter: grayscale(0%); 
}

.header > .hero_top_bg,
.header > .hero_top_img {
}

@media (max-width: 991.98px) {
    .hero_top_img {
        display: flex;
        overflow: hidden;
        position: relative;
        scroll-behavior: smooth;
        transform: translate(0px, 50px);
        gap: 0;
    }

    .hero_top_img .flex-pill {
        flex: 0 0 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero_top_img img {
        max-height: 80vh;
        width: auto;
    }
}

/* Hero Animation */
.animated-line-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: -1;
    overflow: visible;
}

.animated-line-container svg {
    width: 100%;
    height: auto;
}

.animated-line-container path {
    stroke-dasharray: 4000;
    stroke-dashoffset: 4000;
    animation: drawLine 6s linear infinite;
}

@keyframes drawLine {
    0% {
        stroke-dashoffset: 4000;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes drawLine {
    0% {
        stroke-dashoffset: 4000;
        opacity: 1;
    }
    90% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

/* Home contact quotation */
.home_contact_quotation {
    font-family: French Script MT;
    font-style: italic;
    font-size: clamp(1.2rem, 2.5rem, 3.5rem);
    color: #a8a8a8;
}

.home_contact_quotation .q-author {
    font-size: clamp(1rem, 2.5rem, 3.5rem);
}

@media (max-width: 991.98px) {
    .home_contact_quotation {
        font-size: 20px;
    }
    
    .home_contact_quotation .q-author {
        font-size: 20px;
    }
    
    .copyright,
    .studio,
    .office,
    .contact_number,
    .contact_mail {
        font-size: 14px;
    }
}

/* Home clients */
.home_clients_1 h2 {
    font-size: 60px;
    color: #a8a8a8;
}

.home_clients_2 p {
    font-size: 20px;
    font-weight: 600;
}

/* Client slider */
.client-slider {
    overflow: hidden;
    background: #f5f5f5;
    padding: 20px 0;
    position: relative;
}

.client-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.client-slide {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.client-logo {
    max-height: 100px;
    width: auto;
    object-fit: contain;
}

/* Counter */
.counter {
    font-size: 50px;
    color: #a8a8a8;
}

@media (max-width: 991.98px) {
    .home_clients_1 h2 {
        font-size: 30px;
    }
    
    .client-slide {
        flex: auto;
    }
    
    .counter {
        font-size: 30px;
    }
    
    .home_clients_2 p {
        font-size: 14px;
    }
}

/* Subdropdown menu */
.subdropdown-menu {
    display: block;
    top: 0px;
    left: 100%;
}

.subdropdown-toggle:active {
    background: #fff;
    color: #000;
}

.subdropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    top: 10px;
    content: "";
    border-left: 0.3em solid;
    border-top: 0.3em solid transparent;
    border-right: 0;
    border-bottom: 0.3em solid transparent;
}

/* Studio Page */
.profile-image img {
    max-height: 350px;
    min-height: 150px;
}

/* Blog Page */
.container-main {
    max-width: 1200px;
    margin: 0 auto;
}

.featured {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.featured .post-card {
    border: 2px solid #ddd;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.featured img {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.featured-content {
    flex: 1;
    min-width: 280px;
}

.card-grid {
    gap: 1.5rem;
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.sidebar .popular-item {
    margin-bottom: 1rem;
}

.pagination {
    margin-top: 2rem;
}

/* Blog Single Page */

.post-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 1rem;
}

.related-item {
    margin-bottom: 1rem;
}

/* Contact Page */
.contact-map {
    width: 100%;
    height: 360px;
    border: 0;
}

.contact-section .icons li {
    min-width: 140px;
}

.contact-icons img {
    transition: transform 0.3s ease;
}

.contact-icons li:hover img {
    transform: scale(1.1) rotate(10deg);
    transition: transform 0.3s ease;
}

.contact-card {
    max-width: 680px;
    margin: 0 auto;
}

.get_in_touch {
    color: #a8a8a8;
    font-family: Century Gothic;
}

.contact-icons img {
    height: 100px;
    display: block;
    margin: 0 auto 8px;
}

@media (max-width: 576px) {
    .contact-map {
        height: 240px;
    }
}