/* Custom CSS for logo adjustments */
.navbar__logo img {
    max-width: 200px !important;
    height: auto;
    vertical-align: middle;
}

/* Add specific adjustments for quaternary navbar (which is used in index-four.html) */
.quaternary--navbar .navbar__logo {
    display: flex;
    align-items: center;
}

/* Reduce navbar length */
.quaternary--navbar {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.quaternary--navbar .container {
    max-width: 95%; /* Make container slightly smaller */
}

.navbar {
    gap: 30px !important; /* Reduced from 60px in the original CSS */
}

/* Style the offcanvas logo */
.offcanvas-menu__header .logo img {
    max-width: 150px;
    height: auto;
}

/* Style the footer logo */
.footer__copyright .logo img {
    max-width: 120px;
    height: auto;
}

/* Mobile-specific adjustments for Our Services section */
@media only screen and (max-width: 767.98px) {
    /* Reduce padding for cmn-banner (Our Services header) on mobile */
    .cmn-banner {
        padding: 80px 0px 60px !important; /* Reduced from 160px 0px 100px */
    }
    
    /* Reduce padding for service-t section on mobile */
    .section.service-t {
        padding: 60px 0px !important; /* Reduced from 100px 0px */
    }
    
    /* Reduce margin for footer-two section on mobile */
    .footer-two.footer-cmn {
        margin-bottom: 30px !important; /* Reduced from 60px */
    }

    /* Footer CTA: Have a Project in Mind section */
    .footer-four__content .intro .light-title.title-anim {
        font-size: 2.1rem !important; /* Larger heading for mobile */
        line-height: 2.5rem !important;
        margin-bottom: 0.7em !important;
        letter-spacing: 0.5px;
    }
    .footer-four__content .cta-t h3 a {
        font-size: 1.05rem !important; /* Smaller button text */
        padding: 10px 18px !important; /* Smaller button padding */
        border-radius: 30px !important;
    }
    .footer-four__content .cta-t h3 {
        margin-bottom: 0.5em !important;
    }
    .footer-four__content .cta-t p {
        font-size: 0.98rem !important;
        margin-top: 0.5em !important;
    }
    .footer-four__content .cta-t {
        gap: 0.5em !important;
    }

    /* Reduce header size globally */
    .primary-navbar, .quaternary--navbar {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }
    .navbar__logo img {
        max-width: 200px !important;
    }
}

/* Add media queries for responsive adjustments */
@media only screen and (max-width: 767.98px) {
    .navbar {
        justify-content: flex-start !important; /* Align items to the start */
        gap: 20px !important; /* Reduce or remove the gap */
    }
    .navbar__logo {
        justify-content: flex-start !important;
        align-items: center;
        display: flex;
        margin-left: 0;
    }
    .navbar__logo img {
        max-width: 185px;
        margin-left: -30px;
    }
    
    .navbar__options {
        margin-left: auto; /* Push options to the right */
    }

    .open-offcanvas-nav {
        display: flex;
    }
    
    .navbar__menu {
        display: none;
    }
    
    /* Ensure offcanvas menu links are visible */
    .offcanvas-menu .navbar__menu {
        display: block !important;
        margin-bottom: 30px;
    }
    .offcanvas-menu .navbar__menu ul {
        display: flex;
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
        margin: 0;
        padding: 0;
    }
    .offcanvas-menu .navbar__menu ul li {
        margin: 0;
    }
    .offcanvas-menu .navbar__menu ul li a {
        color: #fff;
        font-size: 20px;
        font-weight: 500;
        text-decoration: none;
        padding: 0 0 4px 0;
        border-bottom: 1px solid transparent;
        transition: border 0.2s, color 0.2s;
    }
    .offcanvas-menu .navbar__menu ul li a:hover {
        color: #ff6a2e;
        border-bottom: 1px solid #ff6a2e;
    }

    /* Make offcanvas menu full screen */
    .offcanvas-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        background: #000;
        z-index: 999;
        transition: 0.3s ease-in-out;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0;
    }
    .offcanvas-menu__wrapper {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        padding: 30px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
    }
    .offcanvas-menu__header {
        width: 100%;
        margin-bottom: 30px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 0 0 0;
        position: relative;
        min-height: 60px;
    }
    .offcanvas-menu__header .logo img {
        max-width: 240px;
        height: auto;
        margin-left: 0;
    }
    .close-offcanvas-menu {
        color: #ff6a2e;
        font-size: 24px;
        cursor: pointer;
        position: static;
        margin-right: 0;
        padding: 8px;
        line-height: 1;
    }
    .offcanvas-menu .navbar__menu ul {
        gap: 14px;
        align-items: flex-start;
        margin: 0;
        padding: 0;
    }
    .offcanvas-menu .navbar__menu ul li a {
        color: #fff;
        font-size: 18px;
        font-weight: 600;
        text-decoration: none;
        padding: 0 0 2px 0;
        border-bottom: 1px solid transparent;
        transition: border 0.2s, color 0.2s;
        letter-spacing: 1px;
    }

    /* Offcanvas menu: remove gap between LET'S TALK and social icons, and prevent scrolling */
    .offcanvas-menu__options {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    .offcanvas-menu__social {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    .offcanvas-menu, .offcanvas-nav {
        overflow: hidden !important;
    }
    html, body {
        overscroll-behavior: none;
    }
}

/* Overlay for mobile menu */
.offcanvas-nav::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease-in-out;
}

.offcanvas-nav.active::before {
    opacity: 1;
    visibility: visible;
}

.navbar__menu ul li a {
    font-size: 0.9rem;
}

.tertiary-cta .btn--secondary {
    font-size: 0.95rem;
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    padding: 120px 0;
    background: #000;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(45deg, #ff6a2e, #ff5900);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.stroke-text {
    -webkit-text-stroke: 1px #fff;
    color: transparent;
    display: inline-block;
}

.highlight-text {
    color: #fff;
    position: relative;
    display: inline-block;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: #cd4e4e;
    z-index: -1;
}

.hero-description {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.hero-3d {
    position: relative;
    height: 500px;
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cube-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    animation: rotate 20s infinite linear;
    transform: translate(-50%, -50%) rotateX(15deg) rotateY(15deg);
}

.cube {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.cube-face {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.1);
}

.front { transform: translateZ(150px); }
.back { transform: rotateY(180deg) translateZ(150px); }
.right { transform: rotateY(90deg) translateZ(150px); }
.left { transform: rotateY(-90deg) translateZ(150px); }
.top { transform: rotateX(90deg) translateZ(150px); }
.bottom { transform: rotateX(-90deg) translateZ(150px); }

@keyframes rotate {
    0% { transform: rotateX(0) rotateY(0) rotateZ(0); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, #FF6B6B, #cd784e);
    opacity: 0.1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 10%;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-3d {
        height: 400px;
        margin-top: 60px;
    }
    
    .cube-wrapper {
        width: 250px;
        height: 250px;
        transform: translate(-50%, -50%) rotateX(15deg) rotateY(15deg);
    }
    
    .cube-face {
        width: 250px;
        height: 250px;
    }
    
    .front { transform: translateZ(125px); }
    .back { transform: rotateY(180deg) translateZ(125px); }
    .right { transform: rotateY(90deg) translateZ(125px); }
    .left { transform: rotateY(-90deg) translateZ(125px); }
    .top { transform: rotateX(90deg) translateZ(125px); }
    .bottom { transform: rotateX(-90deg) translateZ(125px); }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 3.8rem;
        text-align: center;
    }
    .hero-title .gradient-text {
        font-size: 4.2rem;
    }
    .hero-title .light-title {
        font-size: 3rem;
    }
    .hero-title .fw-1 {
        font-weight: 700;
    }
    .hero-title .fw-2 {
        font-weight: 900;
    }
    .hero-description {
        font-size: 1.15rem;
        line-height: 1.6;
        margin-bottom: 35px;
        text-align: center;
        max-width: 100%;
        padding: 0 15px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
        padding: 15px 25px;
        font-size: 1rem;
        font-weight: 600;
    }
    
    .hero-3d {
        margin-top: 40px !important;
        height: 60px !important;
    }
    
    .cube-wrapper {
        width: 200px;
        height: 200px;
        transform: translate(-50%, -50%) rotateX(15deg) rotateY(15deg);
    }
    
    .cube-face {
        width: 200px;
        height: 200px;
    }
    
    .front { transform: translateZ(100px); }
    .back { transform: rotateY(180deg) translateZ(100px); }
    .right { transform: rotateY(90deg) translateZ(100px); }
    .left { transform: rotateY(-90deg) translateZ(100px); }
    .top { transform: rotateX(90deg) translateZ(100px); }
    .bottom { transform: rotateX(-90deg) translateZ(100px); }

    .offcanvas-menu__social.social {
        display: flex;
        flex-direction: row;
        gap: 2px;
        margin-bottom: 0;
        justify-content: flex-start;
        align-items: center;
    }
    .offcanvas-menu__social.social a {
        margin-bottom: 0 !important;
        font-size: 22px;
    }

    .offcanvas-menu .navbar__menu ul {
        gap: 0px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .offcanvas-menu .navbar__menu ul li {
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Additional mobile optimizations for very small screens */
@media (max-width: 480px) {
    .hero-title {
        font-size: 3rem;
        text-align: center;
    }
    .hero-title .gradient-text {
        font-size: 3.3rem;
    }
    .hero-title .light-title {
        font-size: 2.4rem;
    }
    .hero-title .fw-1 {
        font-weight: 700;
    }
    .hero-title .fw-2 {
        font-weight: 900;
    }
    .hero-description {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .hero-cta .btn {
        max-width: 250px;
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    .hero-3d {
        margin-top: 140px !important;
        height: 70px !important;
    }
    
    .cube-wrapper {
        width: 180px;
        height: 180px;
    }
    
    .cube-face {
        width: 180px;
        height: 180px;
    }
    
    .front { transform: translateZ(90px); }
    .back { transform: rotateY(180deg) translateZ(90px); }
    .right { transform: rotateY(90deg) translateZ(90px); }
    .left { transform: rotateY(-90deg) translateZ(90px); }
    .top { transform: rotateX(90deg) translateZ(90px); }
    .bottom { transform: rotateX(-90deg) translateZ(90px); }
}

/* Mobile Menu Styles */
.open-offcanvas-nav {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    display: none;  /* Hidden by default */
}

/* Show menu button only on mobile devices */
@media only screen and (max-width: 767.98px) {
    .open-offcanvas-nav {
        display: flex !important;  /* Force show on mobile */
    }
    
    .navbar__menu {
        display: none !important;  /* Force hide regular menu on mobile */
    }
}

/* Hide mobile menu and button on larger screens */
@media only screen and (min-width: 768px) {
    .open-offcanvas-nav {
        display: none !important;  /* Force hide on desktop */
    }
    
    .offcanvas-menu {
        display: none !important;
    }
    
    .navbar__menu {
        display: flex !important;  /* Force show regular menu on desktop */
    }
}

/* Modern Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader {
    display: flex;
    gap: 8px;
}

.loader-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ff6a2e;
    animation: bounce 0.5s ease-in-out infinite;
}

.loader-circle:nth-child(2) {
    animation-delay: 0.1s;
}

.loader-circle:nth-child(3) {
    animation-delay: 0.2s;
}

.loader-text {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}