*{
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* Page Transition Animations */
body {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.header{
    min-height: 100vh;
    width: 100%;
    background-image:linear-gradient(rgba(88, 93, 123, 0.7),rgba(74, 81, 105, 0.7)),url(images/background.jpg);
    background-position: center;
    background-size: cover;
    position: relative;

}
nav{
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
}
nav a img{
    transition: all 0.3s ease;
}
nav a:hover img{
    transform: scale(1.05);
}
.nav-links{
    flex: 1;
    text-align: right;
}
.nav-links ul li{
    list-style-type: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}
.nav-links ul li a{
    color: white;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}
.nav-links ul li a:hover{
    color: #f44336;
    transform: translateY(-2px);
}
.nav-links ul li::after{
    content: '';
    width: 0%;
    height: 2px;
    background: #f44336;
    display: block;
    margin: auto;
    transition: width 0.4s ease;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}
.nav-links ul li{
    position: relative;
}
.nav-links ul li:hover::after{
    width: 80%;
}
.text-box{
    width: 90%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
}
.text-box h1{
    font-size: 62px;
}
.text-box p{
    margin: 10px 0 40px;
    font-size: 14px;
    color: #fff;
}
.main_btn{
    display: inline-block;
    text-decoration: none;
    color: #fff;
    border: 1px solid #fff;
    font-size: 13px;
    padding: 12px 34px;
    background: transparent;
    position: relative;
    cursor: pointer;
    transition: all 0.4s ease;
}
.main_btn:hover{
    border: 1px solid #f44336;
    background: #f44336;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.4);
}
/*--------------------------------EXPERTISE------------------------------------------*/
.expertise{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;

}
h1{
    font-size: 36px;
    font-weight: 600;
}
p{
    color: #777;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}
.row{
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
}
.exp-coln{
    flex-basis: 31%;
    background: #fff3f3;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: all 0.4s ease;
}
h3{
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
}
.exp-coln:hover{
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

/*----------------------------------------------WORKPLACE----------------------------------------------*/

.workplace{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 50px;
}
.ap{
    color: #fff;
    width: 100%;
    font-weight: 500;
    bottom: 0;
    left: 50%;
    transform: translate(-50%);
    position: absolute;
    opacity: 0;
    transition: 0.5s;
}
.workplace-col{
    flex-basis: 32%;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}
.layer{
    background: transparent;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
}
.layer:hover{
    background: rgba(226,0,0,0.7);
}
.layer:hover h3{
    bottom: 49%;
    opacity: 1;
}


/*--------------------------------TESTIMONIAL-----------------------------------*/

.testimonial{
    width: 80%;
    margin: auto;
    padding-top: 100px;
    text-align: center;
}
.testimonial-col{
    flex-basis: 44%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;
    background: #fff3f3;
    padding: 25px;
    cursor: pointer;
    display: flex;
}
.testimonial-col img{
    height: 40px;
    margin-left: 5px;
    margin-right: 30px;
    border-radius: 50%;
}
.testimonial-avatar {
    height: 40px;
    width: 40px;
    min-width: 40px;
    margin-left: 5px;
    margin-right: 30px;
    border-radius: 50%;
    background: #f44336;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
}
.testimonial-col h3{
    margin-top: 15px;
    text-align: left;
}
.testimonial-col .fa{
    color: #f44336;
}

/*--------------------------------MOBILE MENU-----------------------------------*/

/* Hide hamburger menu icons on desktop/tablet */
.fa-bars, 
.fa-times, 
.fa-solid.fa-bars, 
.fa-solid.fa-xmark,
i.fa-bars,
i.fa-times,
i[class*="fa-bars"],
i[class*="fa-xmark"] {
    display: none !important;
}

/* Hide menu overlay on desktop */
.menu-overlay {
    display: none !important;
}


/* Mobile menu decorative elements - only for mobile */
@media (max-width: 768px) {
    .nav-links::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(244, 67, 54, 0.1) 0%, rgba(88, 93, 123, 0.95) 100%);
        z-index: -1;
    }
}

/*--------------------------------BACK TO TOP BUTTON-----------------------------------*/

#backToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

#backToTop.show {
    display: block;
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background: #d32f2f;
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/*--------------------------------RESPONSIVE DESIGN-----------------------------------*/

/* Tablet view - ensure desktop styles are maintained */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Tablet optimizations without affecting layout */
    .text-box h1 {
        font-size: 48px;
    }
    
    nav img {
        height: 120px !important;
    }
}

/* Mobile view - only for screens 768px and below */
@media (max-width: 768px) {
    /* Mobile menu hamburger icon */
    .fa-bars, .fa-solid.fa-bars, i.fa-bars {
        display: flex !important;
        color: white;
        font-size: 28px;
        cursor: pointer;
        z-index: 1001;
        position: fixed;
        top: 25px;
        right: 25px;
        background: rgba(244, 67, 54, 0.9);
        width: 45px;
        height: 45px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
    }
    
    .fa-bars:hover {
        background: rgba(211, 47, 47, 0.95);
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(244, 67, 54, 0.5);
    }
    
    /* Menu overlay backdrop */
    .menu-overlay {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(5px);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Mobile navigation menu with enhanced animations */
    .nav-links {
        position: fixed;
        background: linear-gradient(135deg, rgba(88, 93, 123, 0.98) 0%, rgba(74, 81, 105, 0.98) 100%);
        height: 100vh;
        width: 280px;
        top: 0;
        right: -280px;
        text-align: left;
        z-index: 999;
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        padding: 80px 0 40px 0;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        transform: translateX(0);
    }
    
    .nav-links.active {
        right: 0;
        animation: slideInMenu 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }
    
    @keyframes slideInMenu {
        0% {
            right: -280px;
            opacity: 0;
        }
        100% {
            right: 0;
            opacity: 1;
        }
    }
    
    /* Close button inside menu - Enhanced with animations */
    .fa-times, .fa-solid.fa-xmark, i.fa-xmark {
        display: flex !important;
        color: white;
        font-size: 26px;
        cursor: pointer;
        position: absolute;
        top: 25px;
        right: 25px;
        background: rgba(244, 67, 54, 0.95);
        width: 45px;
        height: 45px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 1000;
        box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
        animation: pulseIn 0.5s ease-out;
    }
    
    @keyframes pulseIn {
        0% {
            transform: scale(0);
            opacity: 0;
        }
        50% {
            transform: scale(1.2);
        }
        100% {
            transform: scale(1);
            opacity: 1;
        }
    }
    
    .fa-times:hover, 
    .fa-solid.fa-xmark:hover, 
    i.fa-xmark:hover,
    i[class*="fa-xmark"]:hover {
        background: rgba(211, 47, 47, 1);
        transform: rotate(90deg) scale(1.15);
        box-shadow: 0 6px 20px rgba(244, 67, 54, 0.6);
    }
    
    .fa-times:active, 
    .fa-solid.fa-xmark:active, 
    i.fa-xmark:active,
    i[class*="fa-xmark"]:active {
        transform: rotate(90deg) scale(0.95);
    }
    
    /* Ensure X button is always visible when menu is active */
    .nav-links.active .fa-times,
    .nav-links.active .fa-solid.fa-xmark,
    .nav-links.active i.fa-xmark {
        display: flex !important;
        animation: pulseIn 0.5s ease-out 0.2s both;
    }
    
    /* Menu list items */
    .nav-links ul {
        list-style: none;
        padding: 0;
        margin: 0;
        padding-top: 20px;
    }
    
    .nav-links ul li {
        display: block;
        padding: 0;
        margin: 0;
        opacity: 0;
        transform: translateX(50px) scale(0.9);
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }
    
    .nav-links.active ul li {
        opacity: 1;
        transform: translateX(0) scale(1);
        animation: slideInBounce 0.5s ease-out forwards;
    }
    
    @keyframes slideInBounce {
        0% {
            opacity: 0;
            transform: translateX(50px) scale(0.8);
        }
        60% {
            transform: translateX(-5px) scale(1.05);
        }
        100% {
            opacity: 1;
            transform: translateX(0) scale(1);
        }
    }
    
    .nav-links.active ul li:nth-child(1) {
        animation-delay: 0.15s;
        transition-delay: 0.15s;
    }
    
    .nav-links.active ul li:nth-child(2) {
        animation-delay: 0.25s;
        transition-delay: 0.25s;
    }
    
    .nav-links.active ul li:nth-child(3) {
        animation-delay: 0.35s;
        transition-delay: 0.35s;
    }
    
    .nav-links.active ul li:nth-child(4) {
        animation-delay: 0.45s;
        transition-delay: 0.45s;
    }
    
    .nav-links ul li a {
        color: white;
        font-size: 18px;
        text-decoration: none;
        display: flex;
        align-items: center;
        padding: 20px 30px;
        margin: 8px 20px;
        border-radius: 12px;
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        position: relative;
        font-weight: 500;
        letter-spacing: 0.5px;
        overflow: hidden;
    }
    
    /* Animated background effect on menu items */
    .nav-links ul li a::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(244, 67, 54, 0.2), transparent);
        transition: left 0.5s ease;
    }
    
    .nav-links ul li a:hover::after {
        left: 100%;
    }
    
    .nav-links ul li a i {
        margin-right: 15px;
        font-size: 22px;
        width: 26px;
        text-align: center;
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-links ul li a:hover i,
    .nav-links ul li a:active i {
        color: #f44336;
        transform: scale(1.3) rotate(5deg);
    }
    
    .nav-links ul li a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 0;
        background: linear-gradient(180deg, #f44336, #d32f2f);
        border-radius: 0 4px 4px 0;
        transition: height 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: 0 0 10px rgba(244, 67, 54, 0.5);
    }
    
    .nav-links ul li a:hover,
    .nav-links ul li a:active {
        background: rgba(244, 67, 54, 0.2);
        color: #ffebee;
        transform: translateX(12px) scale(1.02);
        padding-left: 40px;
        box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
    }
    
    .nav-links ul li a:hover::before,
    .nav-links ul li a:active::before {
        height: 70%;
    }
    
    /* Active state animation */
    .nav-links ul li a:active {
        transform: translateX(12px) scale(0.98);
    }
    
    /* Remove underline effect on mobile */
    .nav-links ul li::after {
        display: none;
    }
    
    /* Logo optimization */
    nav img {
        height: 70px !important;
        max-width: 150px;
    }
    
    nav {
        padding: 15px 20px;
    }
    
    /* Hero section mobile optimization */
    .text-box {
        width: 95%;
        padding: 0 15px;
    }
    
    .text-box h1 {
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .text-box p {
        font-size: 13px;
        line-height: 1.6;
        margin: 15px 0 25px;
    }
    
    .main_btn {
        font-size: 12px;
        padding: 12px 28px;
    }
    
    /* Content sections */
    .row {
        flex-direction: column;
        gap: 20px;
    }
    
    .exp-coln {
        flex-basis: 100%;
        margin-bottom: 20px;
        padding: 25px 15px;
    }
    
    .workplace-col {
        flex-basis: 100%;
        margin-bottom: 20px;
    }
    
    .workplace-col img {
        width: 100% !important;
        max-width: 100%;
        height: auto;
    }
    
    .testimonial-col {
        flex-basis: 100%;
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .testimonial-col img {
        margin: 0 auto 15px;
        width: 60px;
        height: 60px;
    }
    
    .testimonial-avatar {
        margin: 0 auto 15px;
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
    
    .expertise, .workplace, .testimonial {
        width: 95%;
        padding-top: 50px;
        padding-bottom: 50px;
    }
    
    h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    p {
        font-size: 14px;
        line-height: 1.7;
    }
    
    /* Back to top button mobile */
    #backToTop {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }
    
    /* Header section mobile */
    .header {
        min-height: 100vh;
        padding-bottom: 50px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .text-box h1 {
        font-size: 26px;
    }
    
    .text-box p {
        font-size: 12px;
        margin: 12px 0 20px;
    }
    
    .main_btn {
        font-size: 11px;
        padding: 10px 24px;
    }
    
    nav {
        padding: 12px 15px;
    }
    
    nav img {
        height: 55px !important;
        max-width: 120px;
    }
    
    .fa-bars {
        width: 40px;
        height: 40px;
        font-size: 24px;
        top: 20px;
        right: 20px;
    }
    
    .nav-links {
        width: 100%;
        right: -100%;
    }
    
    .nav-links ul li a {
        font-size: 16px;
        padding: 16px 25px;
        margin: 4px 15px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .expertise, .workplace, .testimonial {
        width: 98%;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    .exp-coln {
        padding: 20px 12px;
    }
    
    #backToTop {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
        font-size: 16px;
    }
}