@font-face {
    font-family: Montserrat-SemiBold;
    src: url('../font/Montserrat-SemiBold.ttf');
}
@font-face {
    font-family: Montserrat-Bold;
    src: url('../font/Montserrat-Bold.ttf');
}
@font-face {
    font-family: Montserrat-Medium;
    src: url('../font/Montserrat-Medium.ttf');
}
@font-face {
    font-family: Montserrat-ExtraBold;
    src: url('../font/Montserrat-ExtraBold.ttf');
}
@font-face {
    font-family: Montserrat-Regular;
    src: url('../font/Montserrat-Regular.ttf');
}

/* ===== BASE STYLES ===== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Animation utility classes */
.animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fadeInDown {
    animation: fadeInDown 0.8s ease forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.8s ease forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.8s ease forwards;
}

.animate-scaleIn {
    animation: scaleIn 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }

/* ===== SCROLL ANIMATION CLASSES (Desktop) ===== */
@media screen and (min-width: 768px) {
    /* Initial hidden state */
    .scroll-animate {
        opacity: 0;
        transition: all 0.8s ease;
    }

    .scroll-animate.fade-up {
        transform: translateY(50px);
    }

    .scroll-animate.fade-down {
        transform: translateY(-50px);
    }

    .scroll-animate.fade-left {
        transform: translateX(-50px);
    }

    .scroll-animate.fade-right {
        transform: translateX(50px);
    }

    .scroll-animate.scale-up {
        transform: scale(0.8);
    }

    .scroll-animate.zoom-in {
        transform: scale(0.9);
    }

    /* Animated state when in view */
    .scroll-animate.animated {
        opacity: 1;
        transform: translateY(0) translateX(0) scale(1);
    }

    /* Staggered animation delays for sequential effects */
    .scroll-animate.delay-1 { transition-delay: 0.1s; }
    .scroll-animate.delay-2 { transition-delay: 0.2s; }
    .scroll-animate.delay-3 { transition-delay: 0.3s; }
    .scroll-animate.delay-4 { transition-delay: 0.4s; }
    .scroll-animate.delay-5 { transition-delay: 0.5s; }
    .scroll-animate.delay-6 { transition-delay: 0.6s; }

    /* Service items - restore hover transitions after scroll animation */
    .service-item.scroll-animate.animated {
        opacity: 1 !important;
        transform: none !important;
        transition: flex 0.15s ease-out, filter 0.15s ease-out !important;
        transition-delay: 0s !important;
    }
}

/* ===== HEADER SECTION ===== */
header {
    padding: 15px 0;
    animation: fadeInDown 0.6s ease;
}

.header-logo {
    width: 100%;
    max-width: 200px;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

header ul li a {
    font-size: 18px;
    font-family: Montserrat-Medium;
    color: black !important;
    padding: 10px 25px !important;
    transition: all 0.3s ease;
    position: relative;
}

header ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #0912A4;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

header ul li a:hover::after {
    width: 60%;
}

header ul li a:hover {
    color: #0912A4 !important;
}

/* ===== HAMBURGER BUTTON ===== */
.hamburger-btn {
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1000;
    margin-left: auto;
}

.hamburger-line {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #0912A4;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-btn:hover .hamburger-line {
    background-color: #1B86EA;
}

.hamburger-btn:hover .hamburger-line:nth-child(1) {
    transform: translateX(5px);
}

.hamburger-btn:hover .hamburger-line:nth-child(3) {
    transform: translateX(-5px);
}

/* ===== OFFCANVAS MOBILE MENU ===== */
.offcanvas {
    width: 300px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-left: 3px solid #0912A4;
}

.offcanvas-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offcanvas-logo {
    width: 120px;
}

.btn-close-custom {
    background: #f0f5ff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #0912A4;
    font-size: 18px;
}

.btn-close-custom:hover {
    background: #0912A4;
    color: white;
    transform: rotate(90deg);
}

.offcanvas-body {
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 80px);
}

/* Mobile Navigation Links */
.mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.mobile-nav li {
    margin-bottom: 5px;
    opacity: 0;
    animation: slideInRight 0.4s ease forwards;
}

.mobile-nav li:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav li:nth-child(2) { animation-delay: 0.2s; }
.mobile-nav li:nth-child(3) { animation-delay: 0.3s; }
.mobile-nav li:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-nav-link {
    display: block;
    padding: 15px 20px;
    font-family: Montserrat-Medium;
    font-size: 16px;
    color: #333 !important;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #0912A4 0%, #1B86EA 100%);
    transition: width 0.3s ease;
    z-index: -1;
    border-radius: 10px;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: white !important;
    transform: translateX(10px);
}

.mobile-nav-link:hover::before,
.mobile-nav-link.active::before {
    width: 100%;
}

/* Mobile CTA Button */
.mobile-cta {
    width: 100%;
    text-align: center;
    padding: 15px 20px;
    font-size: 16px;
    margin-bottom: 30px;
    animation: fadeInUp 0.5s ease 0.5s forwards;
    opacity: 0;
}

/* Mobile Social Links */
.mobile-social {
    margin-top: auto;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
    animation: fadeInUp 0.5s ease 0.6s forwards;
    opacity: 0;
}

.mobile-social a {
    width: 45px;
    height: 45px;
    background: #f0f5ff;
    color: #0912A4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

.mobile-social a:hover {
    background: #0912A4;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(9, 18, 164, 0.3);
}

/* Offcanvas Backdrop */
.offcanvas-backdrop {
    background-color: rgba(9, 18, 164, 0.3);
}

.offcanvas-backdrop.show {
    opacity: 1;
}

/* ===== BUTTONS ===== */
.btn-blue {
    background-color: #0912A4;
    font-family: Montserrat-Medium;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-blue:hover {
    background-color: white;
    color: #0912A4;
    border: 1px solid #0912A4;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(9, 18, 164, 0.3);
}

/* ===== BANNER SECTION ===== */
.banner {
    background-image: url('../img/banner.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding: 50px 0px;
}

.banner .col-xl-6:first-child {
    animation: fadeInLeft 0.8s ease;
}

.banner .col-xl-5 {
    animation: fadeInRight 0.8s ease;
}

.banner img {
    animation: float 4s ease-in-out infinite;
}

.front-title {
    display: inline-flex;
    align-items: center;
}

.diamond-heading {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    background: #0912A4;
    transition: transform 0.3s ease;
}

.front-title:hover .diamond-heading {
    transform: scale(1.3);
}

.line-heading {
    color: #0912A4;
    font-size: 20px;
    letter-spacing: -7px;
    margin-top: -5px;
}

.front-title .text {
    font-size: 18px;
    font-family: Montserrat-Medium;
    color: black !important;
    margin: 0px 10px;
}

.banner h1 {
    font-size: 48px;
    font-family: Montserrat-ExtraBold;
    color: black !important;
    margin-top: 20px;
    line-height: 1.2;
}

.banner p {
    font-family: Montserrat-Regular;
    font-size: 18px;
}

.color-light {
    color: #1B86EA;
}

/* ===== COMMON STYLES ===== */
.margin-auto {
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.heading {
    font-size: 36px;
    text-align: center;
    font-family: Montserrat-Bold;
}

.front-title .text-sub {
    font-size: 18px;
    font-family: Montserrat-Bold;
    color: #0912A4 !important;
    margin: 0px 10px;
}

/* ===== ABOUT US SECTION ===== */
.aboutus {
    overflow: hidden;
}

.aboutus p {
    font-size: 16px;
    text-align: justify;
    font-family: Montserrat-Regular;
}

.aboutus .col-xl-6:first-child {
    animation: fadeInLeft 0.8s ease;
}

.aboutus .col-xl-6:last-child {
    animation: fadeInRight 0.8s ease;
}

.box-inner {
    background-color: #0912A4;
    height: 200px;
    width: 300px;
    margin-top: 10px;
    margin-left: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: all 0.4s ease;
}

.box {
    background-color: #1B86EA;
    height: 210px;
    width: 300px;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: all 0.4s ease;
}

.box:hover, .box-inner:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(9, 18, 164, 0.25);
}

.box-inner h3 {
    font-size: 22px;
    color: white;
    font-family: Montserrat-Bold;
    text-align: center;
}

.box-inner h2 {
    font-size: 40px;
    color: white;
    font-family: Montserrat-SemiBold;
    text-align: center;
}

.box-inner p {
    font-size: 18px;
    color: white;
    font-family: Montserrat-Medium;
    text-align: center;
    margin-bottom: 0px;
}

.marginleft-20 {
    margin-left: -20px;
}

.box-grid {
    background-color: #F0F5FF;
    border-left: 4px solid #0912A4;
    padding: 10px;
    max-height: 210px;
    height: 210px;
    transition: all 0.4s ease;
}

.box-grid:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(9, 18, 164, 0.15);
    border-left-width: 6px;
}

.box-grid p {
    font-family: Montserrat-Regular;
    font-size: 12px;
    text-align: left;
    margin-bottom: 0px;
}

/* ===== SERVICES SECTION ===== */
.services {
    background-color: #F0F5FF;
}

.services-section {
    padding: 60px;
}

.services-accordion {
    display: flex;
    gap: 20px;
    height: 560px;
}

.service-item {
    flex: 0.8;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: flex 0.15s ease-out, transform 0.15s ease-out, filter 0.15s ease-out;
}

.service-item.active {
    flex: 4;
}

.service-item:hover {
    flex: 4;
}

.services-accordion:hover .service-item:not(:hover) {
    filter: brightness(0.7);
}

.services-accordion:hover .service-item.active:not(:hover) h3 {
    transform: rotate(-90deg) translateX(-50%);
    left: 50%;
    bottom: 40px;
    top: auto;
    font-size: 22px;
}

.services-accordion:hover .service-item.active:not(:hover) p {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.services-accordion:hover .service-item.active:not(:hover)::before {
    background: linear-gradient(rgba(45,45,72,0.7), rgba(45,45,72,0.7));
}

.service-item .content {
    position: absolute;
    inset: 0;
    padding: 40px;
    color: #fff;
    z-index: 2;
}

.service-item h3 {
    position: absolute;
    bottom: 220px;
    left: 50%;
    transform: rotate(-90deg) translateX(-50%);
    transform-origin: left bottom;
    white-space: nowrap;
    font-size: 22px;
    transition: all 0.12s ease-out;
}

.service-item p {
    max-width: 420px;
    margin-top: 100px;
    line-height: 1.6;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.12s ease-out;
}

.service-item.active h3,
.service-item:hover h3 {
    transform: rotate(0);
    left: 40px;
    top: 40px;
    bottom: auto;
    font-size: 34px;
}

.service-item.active p,
.service-item:hover p {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Service backgrounds */
.service-1 { background: url('../img/ui-ux-representations-with-laptop.jpg') center/cover; }
.service-2 { background: url('../img/Frontend Development.jpg') center/cover; }
.service-3 { background: url('../img/Backend Development Services.jpg') center/cover; }
.service-4 { background: url('../img/Full-Stack Development Services.jpg') center/cover; }
.service-5 { background: url('../img/Mobile App Development Services.jpg') center/cover; }
.service-6 { background: url('../img/Deployment & Maintenance Services.jpg') center/cover; }

.service-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(45,45,72,0.7), rgba(45,45,72,0.7));
    z-index: 1;
    transition: all 0.12s ease-out;
}

.service-item.active::before,
.service-item:hover::before {
    background: linear-gradient(rgba(9,18,164,0.7), rgba(9,18,164,0.7));
}

/* ===== PORTFOLIO SECTION ===== */
.Portfolio img {
    height: 400px;
    object-fit: cover;
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.portfolio-card:hover {
    transform: translateY(-10px);
}

.portfolio-card img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

.portfolio-link {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 60px;
    height: 60px;
    background: #fff;
    color: #2d2d48;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.5) rotate(-180deg);
    transition: all 0.4s ease;
    z-index: 2;
}

.portfolio-card:hover::before {
    opacity: 1;
}

.portfolio-card:hover img {
    transform: scale(1.15);
}

.portfolio-card:hover .portfolio-link {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1) rotate(0deg);
}

.owl-carousel .owl-dots,
.owl-carousel .owl-nav {
    display: none !important;
}

/* Portfolio Wrapper & Custom Navigation */
.portfolio-wrapper {
    position: relative;
}

.portfolio-nav {
    display: flex;
    justify-content: end;
    gap: 15px;
    margin-top: 30px;
}

.portfolio-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #0912A4;
    background: transparent;
    color: #0912A4;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.portfolio-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0912A4 0%, #1B86EA 100%);
    transform: scale(0);
    border-radius: 50%;
    transition: transform 0.3s ease;
    z-index: -1;
}

.portfolio-nav-btn:hover {
    color: white;
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(9, 18, 164, 0.3);
}

.portfolio-nav-btn:hover::before {
    transform: scale(1);
}

.portfolio-nav-btn:active {
    transform: scale(0.95);
}

/* ===== CONTACT SECTION ===== */
.contact {
    background:
        linear-gradient(rgba(9, 18, 164, 0.7), rgba(9, 18, 164, 0.7)),
        url('../img/contactus.png') center / cover no-repeat;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 80px 40px;
    height: 450px;
    min-height: 500px;
    border-radius: 24px 0px 0px 24px;
    animation: fadeInLeft 0.8s ease;
}

.contact h1 {
    font-size: 24px;
    color: white;
    font-family: Montserrat-Bold;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #fff;
    font-size: 16px;
    line-height: 1.4;
    transition: transform 0.3s ease;
}

.check-item:hover {
    transform: translateX(5px);
}

.check-icon {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    line-height: 1;
    margin-top: 2px;
}

.check-text {
    max-width: 300px;
}

.box-contact {
    background-color: white;
    padding: 40px;
    border-radius: 0px 24px 24px 0px;
    border: 1px solid #dddddd;
    height: 450px;
    min-height: 500px;
    animation: fadeInRight 0.8s ease;
}

.box-contact label {
    font-family: Montserrat-Medium;
    font-size: 14px;
    margin-bottom: 5px;
}

.box-contact input,
.box-contact textarea {
    border: 1px solid #e3e3e3;
    border-radius: 5px;
    padding: 10px;
    font-family: Montserrat-Regular;
    font-size: 14px;
    transition: all 0.3s ease;
}

.box-contact input:focus,
.box-contact textarea:focus {
    border-color: #0912A4;
    box-shadow: 0 0 0 3px rgba(9, 18, 164, 0.1);
    outline: none;
}

/* ===== FOOTER SECTION ===== */
footer {
    background: linear-gradient(to right, #F6F7F7, #D4DDF5, #B3D9FC);
    padding: 15px 0px;
}

footer p {
    font-family: Montserrat-Medium;
    font-size: 14px;
    margin-bottom: 0px;
}

footer a {
    color: #000000 !important;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #0912A4 !important;
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0912A4 0%, #1B86EA 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(9, 18, 164, 0.3);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(9, 18, 164, 0.4);
}

.scroll-top-btn:active {
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE STYLES - TABLET (768px - 1024px)
   ============================================ */
@media screen and (max-width: 1024px) {
    /* Header - Tablet */
    header .row {
        text-align: center;
    }

    header .col-xl-2 {
        margin-bottom: 10px;
    }

    header ul li a {
        font-size: 15px;
        padding: 8px 15px !important;
    }

    header .col-xl-2:last-child {
        margin-top: 10px;
    }

    /* Banner - Tablet */
    .banner {
        padding: 40px 20px;
    }

    .banner h1 {
        font-size: 38px;
    }

    .banner p {
        font-size: 16px;
    }

    /* Heading - Tablet */
    .heading {
        font-size: 30px;
    }

    /* About Us - Tablet */
    .aboutus .row {
        gap: 20px 0;
    }

    .box-inner, .box {
        width: 100%;
        max-width: 250px;
        height: 180px;
        margin: 10px auto;
    }

    .box {
        height: 190px;
    }

    .box-inner {
        margin-left: 10px;
    }

    .box-inner h2 {
        font-size: 34px;
    }

    .box-inner h3 {
        font-size: 18px;
    }

    .marginleft-20 {
        margin-left: -10px;
    }

    .box-grid {
        max-height: none;
        height: auto;
        min-height: 180px;
        margin-bottom: 15px;
    }

    /* Services - Tablet */
    .services-section {
        padding: 40px 20px;
    }

    .services-accordion {
        height: 450px;
        gap: 12px;
    }

    .service-item h3 {
        font-size: 16px;
    }

    .service-item.active h3,
    .service-item:hover h3 {
        font-size: 24px;
        left: 25px;
        top: 25px;
    }

    .service-item p {
        font-size: 13px;
        max-width: 280px;
        margin-top: 80px;
    }

    .service-item .content {
        padding: 25px;
    }

    /* Portfolio - Tablet */
    .Portfolio img {
        height: 280px;
    }

    /* Contact - Tablet */
    .contact {
        padding: 50px 30px;
        height: auto;
        min-height: 380px;
        border-radius: 24px 24px 0px 0px;
    }

    .box-contact {
        padding: 30px 25px;
        height: auto;
        min-height: 380px;
        border-radius: 0px 0px 24px 24px;
    }

    .contact h1 {
        font-size: 20px;
    }

    .check-text {
        max-width: 100%;
    }

    /* Footer - Tablet */
    footer .row {
        text-align: center;
    }

    footer .col-xl-7 {
        justify-content: center !important;
        margin-top: 10px;
    }
}

/* ============================================
   RESPONSIVE STYLES - MOBILE (max-width: 767px)
   ============================================ */
@media screen and (max-width: 767px) {
    /* Scroll padding for mobile */
    html {
        scroll-padding-top: 60px;
    }

    /* Header - Mobile */
    header {
        padding: 12px 0;
    }

    header .row {
        align-items: center;
    }

    .header-logo {
        width: 100%;
        max-width: 130px;
    }

    .hamburger-btn {
        padding: 8px;
    }

    .hamburger-line {
        width: 24px;
        height: 2.5px;
    }

    /* Banner - Mobile */
    .banner {
        padding: 30px 15px;
        text-align: center;
    }

    .banner .row {
        flex-direction: column;
    }

    .banner .col-xl-6,
    .banner .col-xl-5 {
        width: 100%;
        max-width: 100%;
    }

    .banner .col-xl-5 {
        margin-bottom: 30px;
    }

    .banner img {
        max-width: 80%;
        margin: 0 auto;
        display: block;
    }

    .banner h1 {
        font-size: 28px;
        margin-top: 15px;
    }

    .banner p {
        font-size: 14px;
    }

    .front-title {
        justify-content: center;
    }

    .front-title .text,
    .front-title .text-sub {
        font-size: 14px;
        margin: 0px 5px;
    }

    .line-heading {
        font-size: 16px;
        letter-spacing: -5px;
    }

    .diamond-heading {
        width: 10px;
        height: 10px;
    }

    /* Heading - Mobile */
    .heading {
        font-size: 22px;
        padding: 0 10px;
    }

    /* Buttons - Mobile */
    .btn-blue {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* About Us - Mobile */
    .aboutus {
        padding: 0 15px;
    }

    .aboutus .row {
        margin: 0;
    }

    .aboutus > .row.mt-4 {
        flex-direction: column;
    }

    .aboutus > .row.mt-4 > .col-xl-6:first-child {
        order: 2;
        margin-top: 20px;
    }

    .aboutus > .row.mt-4 > .col-xl-6:last-child {
        order: 1;
    }

    .aboutus .col-6 {
        width: 50%;
        padding: 5px;
    }

    .aboutus p {
        font-size: 14px;
        text-align: left;
    }

    .box-inner, .box {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 160px;
        margin: 8px 0;
    }

    .box {
        min-height: 170px;
    }

    .box-inner {
        margin-left: 0;
        padding: 20px 10px;
    }

    .box-inner h2 {
        font-size: 30px;
    }

    .box-inner h3 {
        font-size: 16px;
    }

    .box-inner p {
        font-size: 14px;
    }

    .marginleft-20 {
        margin-left: 0;
    }

    .aboutus .col-1 {
        width: auto;
        padding-right: 5px;
    }

    .aboutus .col-11 {
        width: auto;
        flex: 1;
        padding-left: 0;
    }

    .box-grid {
        max-height: none;
        height: auto;
        min-height: auto;
        margin-bottom: 15px;
        padding: 15px;
    }

    .box-grid p {
        font-size: 13px;
    }

    /* Services - Mobile */
    .services {
        padding: 30px 0;
    }

    .services-section {
        padding: 20px 15px;
    }

    .services-accordion {
        flex-direction: column;
        height: auto;
        gap: 15px;
    }

    .service-item {
        flex: none !important;
        height: 120px;
        border-radius: 16px;
        transition: height 0.4s ease;
    }

    .service-item.active,
    .service-item:hover {
        height: 300px;
    }

    .service-item h3 {
        position: absolute;
        left: 20px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        bottom: auto !important;
        font-size: 18px !important;
        white-space: normal;
    }

    .service-item.active h3,
    .service-item:hover h3 {
        top: 20px !important;
        transform: none !important;
        font-size: 20px !important;
    }

    .service-item p {
        margin-top: 55px;
        font-size: 13px;
        max-width: 100%;
        padding-right: 10px;
    }

    .service-item .content {
        padding: 20px;
    }

    .services-accordion:hover .service-item:not(:hover) {
        filter: none;
    }

    .services-accordion:hover .service-item.active:not(:hover) h3 {
        transform: none;
        left: 20px;
        top: 20px;
        bottom: auto;
        font-size: 18px;
    }

    .services-accordion:hover .service-item.active:not(:hover) {
        height: 300px;
    }

    /* Portfolio - Mobile */
    .Portfolio img {
        height: auto;
        min-height: 200px;
        max-height: 300px;
        width: 100%;
        object-fit: cover;
        object-position: center;
    }

    .portfolio-card {
        border-radius: 12px;
        margin-bottom: 15px;
    }

    .portfolio-card img {
        height: auto;
        min-height: 200px;
        width: 100%;
        object-fit: cover;
    }

    .portfolio-link {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    .portfolio-nav {
        margin-top: 20px;
        gap: 12px;
    }

    .portfolio-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    /* Contact - Mobile */
    .contact {
        padding: 30px 20px;
        height: auto;
        min-height: auto;
        border-radius: 16px 16px 0px 0px;
        text-align: center;
    }

    .contact h1 {
        font-size: 18px;
        text-align: center;
        margin-bottom: 20px;
    }

    .check-item {
        font-size: 14px;
        justify-content: flex-start;
        text-align: left;
    }

    .check-item .check-icon {
        flex-shrink: 0;
    }

    .check-text {
        max-width: 100%;
    }

    .check-text br {
        display: none;
    }

    /* Contact Section Row - Mobile */
    section.container .row.mt-5 .col-xl-4,
    section.container .row.mt-5 .col-xl-8 {
        width: 100%;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    section.container .row.mt-5 .pe-0,
    section.container .row.mt-5 .ps-0 {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .box-contact {
        padding: 25px 20px;
        height: auto;
        min-height: auto;
        border-radius: 0px 0px 16px 16px;
        margin-top: 0;
    }

    .box-contact label {
        font-size: 13px;
    }

    .box-contact input,
    .box-contact textarea {
        font-size: 14px;
        padding: 10px 12px;
    }

    .box-contact .col-md-6 {
        margin-bottom: 15px;
    }

    .box-contact button {
        width: 100%;
    }

    /* Scroll to Top - Mobile */
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    /* Footer - Mobile */
    footer {
        padding: 20px 15px;
    }

    footer .row {
        text-align: center;
    }

    footer .col-xl-5,
    footer .col-xl-7 {
        width: 100%;
    }

    footer .col-xl-7 {
        justify-content: center !important;
        margin-top: 10px;
    }

    footer p {
        font-size: 12px;
    }

    footer a {
        display: inline-block;
        padding: 5px;
    }
}

/* ============================================
   RESPONSIVE STYLES - SMALL MOBILE (max-width: 480px)
   ============================================ */
@media screen and (max-width: 480px) {
    /* Header - Small Mobile */
    .header-logo {
        max-width: 150px;
    }

    .hamburger-line {
        width: 22px;
    }

    .offcanvas {
        width: 280px !important;
    }

    .mobile-nav-link {
        padding: 12px 15px;
        font-size: 15px;
    }

    .mobile-social a {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    /* Banner - Small Mobile */
    .banner {
        padding: 25px 10px;
    }

    .banner h1 {
        font-size: 24px;
        line-height: 1.3;
    }

    .banner p {
        font-size: 13px;
    }

    .banner img {
        max-width: 90%;
    }

    /* Heading - Small Mobile */
    .heading {
        font-size: 20px;
    }

    .front-title .text,
    .front-title .text-sub {
        font-size: 12px;
    }

    /* About Us - Small Mobile */
    .aboutus .col-6 {
        width: 100%;
        margin-bottom: 10px;
    }

    .aboutus .col-6 img {
        max-height: 200px;
        object-fit: cover;
    }

    .box-inner h2 {
        font-size: 28px;
    }

    .box-inner h3 {
        font-size: 14px;
    }

    .box-inner p {
        font-size: 12px;
    }

    .box-grid h5 {
        font-size: 16px;
    }

    .box-grid p {
        font-size: 12px;
    }

    /* Services - Small Mobile */
    .service-item {
        height: 100px;
    }

    .service-item.active,
    .service-item:hover {
        height: 280px;
    }

    .service-item h3 {
        font-size: 16px !important;
    }

    .service-item.active h3,
    .service-item:hover h3 {
        font-size: 18px !important;
    }

    .service-item p {
        font-size: 12px;
        margin-top: 50px;
        line-height: 1.5;
    }

    /* Portfolio - Small Mobile */
    .Portfolio img {
        height: auto;
        min-height: 180px;
        max-height: 250px;
    }

    .portfolio-link {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .portfolio-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    /* Contact - Small Mobile */
    .contact {
        padding: 30px 15px;
    }

    .contact h1 {
        font-size: 16px;
    }

    .check-item {
        font-size: 13px;
    }

    .box-contact {
        padding: 20px 15px;
    }

    .box-contact label {
        font-size: 12px;
    }

    .box-contact input,
    .box-contact textarea {
        font-size: 13px;
        padding: 8px 10px;
    }

    /* Footer - Small Mobile */
    footer p {
        font-size: 11px;
    }

    footer a.mx-2 {
        margin: 0 5px !important;
    }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .service-item:hover {
        flex: 0.8;
    }

    .service-item.active {
        flex: 4;
    }

    .services-accordion:hover .service-item:not(:hover) {
        filter: none;
    }

    /* Ensure tap targets are large enough */
    a, button, .btn-blue, .nav-link {
        min-height: 44px;
        min-width: 44px;
    }

    header ul li a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center-mobile {
    text-align: left;
}

@media screen and (max-width: 767px) {
    .text-center-mobile {
        text-align: center;
    }

    .hide-mobile {
        display: none !important;
    }

    .pe-0, .ps-0 {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

@media screen and (min-width: 768px) {
    .hide-desktop {
        display: none !important;
    }
}

/* Contact Section Mobile Fix */
@media screen and (max-width: 767px) {
    .contact {
        margin-left: 0;
        margin-right: 0;
        border-radius: 16px 16px 0 0;
    }

    .box-contact {
        margin-left: 0;
        margin-right: 0;
        border-radius: 0 0 16px 16px;
        border-top: none;
    }

    /* Override pe-0 and ps-0 for proper spacing */
    section.container .row.mt-5 > [class*="col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
