/********** Enhanced Responsive Styles **********/

/* Universal Responsive Improvements */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* Mobile-first breakpoints */
/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .title .mx-5 {
        margin-left: 1rem !important;
        margin-right: 1rem !important;
    }
    
    .title .px-5 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .display-1 {
        font-size: 2.5rem !important;
    }
    
    .display-2 {
        font-size: 2rem !important;
    }
    
    .display-3 {
        font-size: 1.8rem !important;
    }
    
    .display-4 {
        font-size: 1.5rem !important;
    }
    
    .fs-5 {
        font-size: 1rem !important;
    }
    
    .btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
    }
    
    .py-3 {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
    
    .px-5 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .gap-3 {
        gap: 0.5rem !important;
    }
    
    .carousel-caption {
        padding-top: 50px;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .carousel-caption .d-flex {
        flex-direction: column;
    }
    
    .carousel-caption .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .navbar-brand h2 {
        font-size: 1.5rem !important;
    }
    
    .page-header {
        padding-top: 120px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .carousel-caption {
        padding-top: 70px;
    }
    
    .display-1 {
        font-size: 3rem !important;
    }
    
    .carousel-caption .btn {
        padding: 0.75rem 2rem !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .carousel-caption {
        padding-top: 80px;
    }
    
    .display-1 {
        font-size: 3.5rem !important;
    }
    
    .title .mx-5 {
        margin-left: 2rem !important;
        margin-right: 2rem !important;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .carousel-caption {
        padding-top: 100px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .carousel-caption {
        padding-top: 120px;
    }
}

/********** Template CSS **********/

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 600;
    transition: .5s;
    border-radius: 50px;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: inherit;
}

.btn-primary {
    color: var(--bs-white);
}


/*** Navbar ***/
.navbar {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-right: 25px;
    padding: 40px 0;
    color: var(--bs-white);
    font-size: 17px;
    text-transform: uppercase;
    outline: none;
    transition: .5s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

@media (max-width: 991.98px) {
    .navbar {
        background-color: rgba(13, 13, 13, 0.95) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 0.5rem 0;
    }
    
    .navbar .navbar-nav .nav-link,
    .navbar.bg-dark .navbar-nav .nav-link {
        margin-right: 0;
        padding: 12px 0;
        font-size: 1.1rem;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }

    .navbar .navbar-nav {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 2px solid var(--bs-primary);
        width: 100%;
    }
    
    .navbar-brand {
        margin-left: 1rem !important;
    }
    
    .navbar-toggler {
        margin-right: 1rem !important;
        border: 2px solid var(--bs-primary);
        padding: 0.5rem;
        border-radius: 8px;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(228, 23, 121, 0.5);
    }
    
    .navbar-collapse {
        padding: 0 1rem 1rem 1rem;
    }
    
    /* Dropdown improvements for mobile */
    .navbar .nav-item .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0;
        background-color: rgba(26, 26, 26, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        box-shadow: none;
    }
    
    .navbar .dropdown-item {
        padding: 0.75rem 1.5rem;
        color: rgba(255, 255, 255, 0.8);
        font-size: 1rem;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .navbar .dropdown-item:last-child {
        border-bottom: none;
    }
    
    .navbar .dropdown-item:hover {
        background-color: rgba(228, 23, 121, 0.2);
        color: var(--bs-primary);
    }
    
    /* Social buttons hide on mobile */
    .d-none.d-lg-flex {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .navbar.bg-dark .navbar-nav .nav-link {
        padding: 20px 0;
    }

    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding-top: 100px;
    background: rgba(0, 0, 0, .7);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 550px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    padding-top: 200px;
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/carousel-1.jpg) top center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: var(--bs-white);
}


/*** Title ***/
.title {
    margin-bottom: 2rem;
}

.title .title-left,
.title .title-center,
.title .title-right {
    display: inline-block;
    text-transform: uppercase;
    overflow: hidden;
}

.title .title-center {
    text-align: center;
}

.title .title-right {
    text-align: right;
}

.title .title-left h5,
.title .title-center h5,
.title .title-right h5 {
    position: relative;
    display: inline-block;
    font-size: 18px;
    font-weight: 300;
}

.title .title-left h5::after,
.title .title-center h5::before,
.title .title-center h5::after,
.title .title-right h5::before {
    position: absolute;
    content: "";
    width: 500%;
    height: 0;
    top: 9px;
    border-bottom: 1px solid var(--bs-white);
}

.title .title-left h5::after,
.title .title-center h5::after {
    left: calc(100% + 15px);
}

.title .title-right h5::before,
.title .title-center h5::before {
    right: calc(100% + 15px);
}

.title .title-left h1,
.title .title-center h1,
.title .title-right h1 {
    border-bottom: 1px solid var(--bs-white);
}


/*** Service ***/
.service-item {
    position: relative;
    margin-top: 2.5rem;
    overflow: hidden;
}

.service-item .service-img {
    position: relative;
    display: inline-block;
}

.service-item .service-img::before {
    position: absolute;
    content: "";
    width: calc(100% - 12rem);
    height: calc(100% - 12rem);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3rem solid rgba(0, 0, 0, .5);
    border-radius: 300px;
    z-index: 1;
}

.service-item.service-item-left {
    border-radius: 500px 0 0 500px;
    background: linear-gradient(to right, var(--bs-secondary), var(--bs-dark));
}

.service-item.service-item-right {
    border-radius: 0 500px 500px 0;
    background: linear-gradient(to left, var(--bs-secondary), var(--bs-dark));
}

@media (max-width: 767.98px) {
    .service-item.service-item-left,
    .service-item.service-item-right {
        border-radius: 500px 500px 0 0;
        background: linear-gradient(to bottom, var(--bs-secondary), var(--bs-dark));
        text-align: center;
    }
}


/*** Portfolio ***/
.portfolio-item {
    position: relative;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.portfolio-item .card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    background: #ffffff;
}

.portfolio-item:hover .card {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
}

.portfolio-item .card-img-top {
    height: 280px;
    width: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    position: relative;
}

.portfolio-item:hover .card-img-top {
    transform: scale(1.05);
}

.portfolio-item .position-relative {
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.portfolio-item .portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 2;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    visibility: visible;
}

.portfolio-item .card-body {
    padding: 25px 20px;
    background: #ffffff;
    border-radius: 0 0 15px 15px;
    min-height: 100px;
}

.portfolio-item .badge {
    font-size: 0.8em;
    padding: 0.6em 1em;
    border-radius: 25px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-item .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

/* Ensure equal height cards */
.portfolio-container {
    display: flex;
    flex-wrap: wrap;
}

.portfolio-container .portfolio-item {
    display: flex;
}

.portfolio-container .portfolio-item .card {
    width: 100%;
}

/* Portfolio Filter Buttons */
#portfolio-filters {
    margin-bottom: 2rem;
}

#portfolio-filters .btn {
    border-radius: 25px;
    padding: 10px 25px;
    margin: 5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid;
}

#portfolio-filters .btn:not(.active) {
    background: transparent;
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}

#portfolio-filters .btn.active {
    background: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
    transform: scale(1.05);
}

#portfolio-filters .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Portfolio Animation */
.portfolio-item {
    transition: all 0.5s ease;
}

.portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    display: none;
}

.portfolio-item.show {
    opacity: 1;
    transform: scale(1);
    display: block;
}

/* Portfolio Statistics */
.portfolio-stats {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-secondary) 100%);
    border-radius: 15px;
    padding: 2rem;
    color: white;
    text-align: center;
}

.portfolio-stats h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.portfolio-stats p {
    margin-bottom: 0;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-item {
        margin-bottom: 20px;
    }
    
    .portfolio-item .card-img-top {
        height: 220px;
    }
    
    #portfolio-filters .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        margin: 3px;
    }
    
    .portfolio-item .card-body {
        padding: 20px 15px;
        min-height: 90px;
    }
    
    .portfolio-item .card-title {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .portfolio-item .card-img-top {
        height: 200px;
    }
    
    .portfolio-item .card-body {
        padding: 15px;
        min-height: 80px;
    }
    
    #portfolio-filters {
        text-align: center;
    }
    
    #portfolio-filters .btn {
        display: inline-block;
        width: auto;
        margin: 2px;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}


/*** Team ***/
/* Model Filter Buttons */
#model-filters .btn {
    border-radius: 25px;
    padding: 10px 20px;
    margin: 5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid;
}

#model-filters .btn:not(.active) {
    background: transparent;
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}

#model-filters .btn.active {
    background: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
    transform: scale(1.05);
}

#model-filters .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Model Cards */
.model-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s ease;
    border: none;
    position: relative;
}

.model-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.model-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 350px;
}

.model-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.model-card:hover .model-image {
    transform: scale(1.1);
}

.model-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.8), rgba(0, 123, 255, 0.8));
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.model-card:hover .model-overlay {
    opacity: 1;
    visibility: visible;
}

.model-social {
    margin-bottom: 20px;
}

.model-social .btn {
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.model-social .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.view-profile-btn {
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    transition: all 0.3s ease;
}

.view-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
}

.model-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.model-badges .badge {
    display: block;
    margin-bottom: 5px;
    border-radius: 15px;
    padding: 8px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.model-info {
    padding: 25px 20px;
    text-align: center;
}

.model-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.model-title {
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.model-stats {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
}

.model-stats .row > div {
    border-right: 1px solid #dee2e6;
}

.model-stats .row > div:last-child {
    border-right: none;
}

.model-stats small {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.model-stats .fw-bold {
    font-size: 1.1rem;
    color: var(--bs-primary);
    margin-top: 5px;
}

/* Team Statistics */
.team-stats {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.team-stats::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.team-stats .counter {
    font-size: 3rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.team-stats p {
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Model Container for Filtering */
.model-container {
    transition: all 0.3s ease;
}

.model-item {
    transition: all 0.5s ease;
}

.model-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    display: none;
}

.model-item.show {
    opacity: 1;
    transform: scale(1);
    display: block;
}

/* Responsive Team Design */
@media (max-width: 768px) {
    .model-image-wrapper {
        height: 280px;
    }
    
    .model-info {
        padding: 20px 15px;
    }
    
    .model-name {
        font-size: 1.1rem;
    }
    
    #model-filters .btn {
        padding: 8px 15px;
        font-size: 0.85rem;
        margin: 3px;
    }
    
    .team-stats .counter {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .model-image-wrapper {
        height: 250px;
    }
    
    #model-filters {
        text-align: center;
    }
    
    #model-filters .btn {
        display: inline-block;
        margin: 2px;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .model-overlay {
        padding: 15px;
    }
    
    .model-social .btn {
        width: 40px;
        height: 40px;
        margin: 0 3px;
    }
    
    .view-profile-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .team-stats .counter {
        font-size: 2rem;
    }
    
    .team-stats p {
        font-size: 1rem;
    }
}


/*** Testimonial ***/
.testimonial-carousel {
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-carousel .owl-dots {
    margin-top: 35px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dots .owl-dot {
    width: 60px;
    height: 60px;
    margin: 0 5px;
    padding: 10px;
    background: var(--bs-dark);
    border-radius: 100px;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots .owl-dot img {
    opacity: .1;
    transition: .5s;
    border-radius: 100px;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}


/*** Footer ***/
@keyframes footerAnimatedBg {
	0% {
        background-position: 0 0;
    }

	100% {
        background-position: -1000px 0;
    }
}

.footer {
	background-image: url(../img/footer-bg.png);
	background-position: 0px 0px;
    background-repeat: repeat-x;
	animation: footerAnimatedBg 50s linear infinite;
}

/*** Contact Page Styles ***/
.contact-method-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-method-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #00d4ff);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-method-card:hover::before {
    transform: scaleX(1);
}

.contact-method-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(var(--bs-primary-rgb), 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), #00d4ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-method-card:hover .contact-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(var(--bs-primary-rgb), 0.4);
}

/* Contact Form Styling */
.contact-form-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.contact-form-section .form-control,
.contact-form-section .form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.contact-form-section .form-control:focus,
.contact-form-section .form-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
    color: var(--light);
}

.contact-form-section .form-floating > label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.contact-form-section .form-control:focus ~ label,
.contact-form-section .form-control:not(:placeholder-shown) ~ label,
.contact-form-section .form-select:focus ~ label,
.contact-form-section .form-select:not([value=""]) ~ label {
    color: var(--primary);
    font-weight: 500;
}

.contact-form-section .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.contact-form-section .form-check-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.contact-form-section .form-check-label a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-form-section .form-check-label a:hover {
    color: #00d4ff;
}

/* Contact Info Section */
.contact-info-section {
    padding: 2rem;
}

.contact-feature {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-feature:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(var(--bs-primary-rgb), 0.3);
    transform: translateX(10px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), #00d4ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.2rem;
    color: white;
}

.contact-feature h5 {
    color: var(--light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Contact Stats */
.contact-stats {
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.1), rgba(0, 212, 255, 0.1));
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Form Validation Styles */
.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.was-validated .form-select:invalid,
.form-select.is-invalid {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.was-validated .form-select:valid,
.form-select.is-valid {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.valid-feedback {
    display: block;
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Modal Styling */
.modal-content {
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(20px);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
}

.modal-header .modal-title {
    color: var(--light);
    font-weight: 600;
    font-size: 1.25rem;
}

.modal-header .btn-close {
    filter: invert(1);
    opacity: 0.7;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
}

/* Responsive Contact Design */
@media (max-width: 768px) {
    .contact-method-card {
        margin-bottom: 1.5rem;
    }
    
    .contact-form-section,
    .contact-info-section {
        padding: 1.5rem;
    }
    
    .contact-feature {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .contact-stats {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .stat-card h3 {
        font-size: 1.5rem;
    }
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.show {
    opacity: 1;
    transform: translateY(0);
}

.contact-method-card.animate {
    animation: slideInUp 0.6s ease forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success Message Styling */
.alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.2), rgba(40, 167, 69, 0.1));
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
    border-radius: 10px;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.2), rgba(220, 53, 69, 0.1));
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
    border-radius: 10px;
}

/* Loading Animation */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-loading .btn-text {
    opacity: 0;
}

/*** 404 Error Page Styles ***/
.error-page {
    background: linear-gradient(135deg, var(--dark) 0%, rgba(0, 0, 0, 0.9) 100%);
    position: relative;
    overflow: hidden;
    min-height: 80vh;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Floating Background Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-element {
    position: absolute;
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.1), rgba(0, 212, 255, 0.1));
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

.floating-element:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 30%;
    animation-delay: 1s;
}

.floating-element:nth-child(5) {
    width: 70px;
    height: 70px;
    top: 50%;
    left: 70%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Error Animation */
.error-animation {
    position: relative;
    z-index: 2;
}

.error-number {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.animate-digit {
    font-size: 8rem;
    font-weight: 900;
    color: transparent;
    background: linear-gradient(135deg, var(--primary), #00d4ff);
    background-clip: text;
    -webkit-background-clip: text;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

.digit-0 {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinning-camera {
    width: 120px;
    height: 120px;
    border: 6px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spin 3s linear infinite;
    background: rgba(var(--bs-primary-rgb), 0.1);
}

.spinning-camera i {
    font-size: 3rem;
    color: var(--primary);
}

.error-glitch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8rem;
    font-weight: 900;
    color: rgba(220, 53, 69, 0.3);
    animation: glitch 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 20px rgba(var(--bs-primary-rgb), 0.5);
    }
    50% {
        transform: scale(1.05);
        text-shadow: 0 0 30px rgba(var(--bs-primary-rgb), 0.8);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes glitch {
    0%, 100% {
        transform: translateX(-50%) skew(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateX(-48%) skew(2deg);
        opacity: 0.5;
    }
    50% {
        transform: translateX(-52%) skew(-2deg);
        opacity: 0.2;
    }
    75% {
        transform: translateX(-49%) skew(1deg);
        opacity: 0.4;
    }
}

/* Error Content */
.error-content {
    position: relative;
    z-index: 2;
}

.error-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 1.5rem;
}

.error-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Search Box */
.error-search {
    max-width: 500px;
    margin: 0 auto;
}

.search-container {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 1rem 1.5rem;
    color: var(--light);
    font-size: 1rem;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-btn {
    background: linear-gradient(135deg, var(--primary), #00d4ff);
    border: none;
    padding: 1rem 1.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, #00d4ff, var(--primary));
    transform: scale(1.05);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: none;
    border-radius: 0 0 15px 15px;
    backdrop-filter: blur(20px);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-suggestion {
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-suggestion:hover {
    background: rgba(var(--bs-primary-rgb), 0.2);
    color: var(--primary);
}

.search-suggestion:last-child {
    border-bottom: none;
}

/* Action Cards */
.action-card {
    display: block;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem 1rem;
    text-align: center;
    color: var(--light);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.action-card:hover::before {
    left: 100%;
}

.action-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(var(--bs-primary-rgb), 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: var(--light);
}

.action-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), #00d4ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.action-icon i {
    font-size: 1.5rem;
    color: white;
}

.action-card:hover .action-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(var(--bs-primary-rgb), 0.4);
}

.action-card h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.action-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* Error Stats */
.error-stats {
    margin: 3rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.95rem;
}

/* Popular Pages */
.popular-pages {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.popular-pages h4 {
    color: var(--light);
    font-weight: 600;
}

.popular-link {
    display: block;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.popular-link:hover {
    background: rgba(var(--bs-primary-rgb), 0.2);
    border-color: rgba(var(--bs-primary-rgb), 0.5);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .animate-digit {
        font-size: 4rem;
    }
    
    .error-glitch {
        font-size: 4rem;
    }
    
    .spinning-camera {
        width: 80px;
        height: 80px;
    }
    
    .spinning-camera i {
        font-size: 2rem;
    }
    
    .error-title {
        font-size: 2rem;
    }
    
    .error-description {
        font-size: 1rem;
    }
    
    .action-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .animate-digit {
        font-size: 3rem;
    }
    
    .error-glitch {
        font-size: 3rem;
    }
    
    .error-number {
        gap: 10px;
    }
    
    .spinning-camera {
        width: 60px;
        height: 60px;
        border-width: 4px;
    }
    
    .spinning-camera i {
        font-size: 1.5rem;
    }
}

/* ===== COMPREHENSIVE RESPONSIVE DESIGN FOR ALL PAGES ===== */

/* Enhanced Small Device Styles (Extra Small: <576px) */
@media (max-width: 575.98px) {
    /* Container and layout improvements */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Navigation improvements */
    .navbar {
        position: fixed !important;
        background-color: rgba(13, 13, 13, 0.98) !important;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 0.75rem 0 !important;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    }
    
    .navbar-brand {
        margin-left: 0.75rem !important;
    }
    
    .navbar-brand h2 {
        font-size: 1.3rem !important;
        line-height: 1.2;
        margin-bottom: 0 !important;
    }
    
    .navbar-brand i {
        font-size: 1.1rem !important;
    }
    
    .navbar-nav .nav-link {
        font-size: 1rem !important;
        padding: 15px 0 !important;
        text-align: center;
        margin: 0 !important;
        text-transform: uppercase;
        font-weight: 600;
        letter-spacing: 0.5px;
    }
    
    .navbar-toggler {
        padding: 0.4rem 0.6rem;
        font-size: 1rem;
        margin-right: 0.75rem !important;
        border: 2px solid var(--bs-primary) !important;
        border-radius: 6px;
    }
    
    .navbar-toggler-icon {
        width: 1.2em;
        height: 1.2em;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28228, 23, 121, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem 0.75rem;
        background-color: rgba(13, 13, 13, 0.95);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav {
        padding-top: 0.5rem;
        border-top: 2px solid var(--bs-primary);
    }
    
    /* Ensure body has top margin for fixed navbar */
    body {
        padding-top: 80px;
    }
    
    /* Carousel adjustments for fixed navbar */
    #header-carousel {
        margin-top: -80px;
        padding-top: 80px;
    }
    
    /* Hero/Carousel section improvements */
    .carousel-item {
        min-height: 400px !important;
        background-position: center center;
        background-size: cover;
    }
    
    .carousel-caption {
        top: 50% !important;
        transform: translateY(-50%);
        left: 5% !important;
        right: 5% !important;
        text-align: center;
    }
    
    .carousel-caption h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }
    
    .carousel-caption h5 {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .carousel-caption p {
        font-size: 0.95rem !important;
        line-height: 1.4;
        margin-bottom: 2rem !important;
    }
    
    .carousel-caption .btn {
        font-size: 0.9rem !important;
        padding: 0.75rem 1.5rem !important;
        margin: 0.25rem !important;
        min-width: 140px;
    }
    
    /* Section title improvements */
    .section-title h1 {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }
    
    .section-title h5 {
        font-size: 1rem !important;
    }
    
    .section-title p {
        font-size: 0.95rem !important;
        line-height: 1.5;
    }
    
    /* Card and content improvements */
    .card {
        margin-bottom: 2rem !important;
        border-radius: 15px;
    }
    
    .card-body {
        padding: 1.5rem 1rem !important;
    }
    
    .card-title {
        font-size: 1.2rem !important;
        line-height: 1.3;
    }
    
    .card-text {
        font-size: 0.95rem !important;
        line-height: 1.5;
    }
    
    /* Portfolio grid improvements */
    .portfolio-item {
        margin-bottom: 1.5rem !important;
        border-radius: 15px;
        overflow: hidden;
    }
    
    .portfolio-img {
        height: 220px !important;
        object-fit: cover;
        width: 100%;
    }
    
    .portfolio-text {
        padding: 1.5rem 1rem !important;
    }
    
    /* Team card improvements */
    .team-item {
        margin-bottom: 2rem !important;
        text-align: center;
    }
    
    .team-img {
        width: 200px;
        height: 200px;
        margin: 0 auto 1rem;
        border-radius: 50%;
        object-fit: cover;
    }
    
    .team-text {
        padding: 1.5rem 1rem !important;
    }
    
    .team-text h5 {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem;
    }
    
    .team-text p {
        font-size: 0.9rem !important;
        color: var(--light);
    }
    
    /* Service card improvements */
    .service-item {
        margin-bottom: 2rem !important;
        text-align: center;
    }
    
    .service-icon {
        font-size: 2.5rem !important;
        margin-bottom: 1rem;
    }
    
    .service-text {
        padding: 2rem 1rem !important;
    }
    
    .service-text h5 {
        font-size: 1.2rem !important;
        margin-bottom: 1rem;
    }
    
    .service-text p {
        font-size: 0.95rem !important;
        line-height: 1.5;
    }
    
    /* Contact form improvements */
    .contact-form .form-control {
        font-size: 1rem !important;
        padding: 0.75rem !important;
        margin-bottom: 1rem;
        border-radius: 10px;
    }
    
    .contact-form .form-select {
        font-size: 1rem !important;
        padding: 0.75rem !important;
    }
    
    .contact-form textarea.form-control {
        min-height: 120px;
        resize: vertical;
    }
    
    .contact-form .btn {
        width: 100% !important;
        padding: 0.75rem !important;
        font-size: 1rem !important;
        margin-top: 1rem;
    }
    
    /* About page improvements */
    .about-img {
        margin-bottom: 2rem !important;
        border-radius: 15px;
        overflow: hidden;
    }
    
    .about-text h1 {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .about-text h5 {
        font-size: 1rem !important;
        margin-bottom: 1rem;
    }
    
    .about-text p {
        font-size: 0.95rem !important;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    /* Testimonial improvements */
    .testimonial-item {
        text-align: center;
        padding: 2rem 1rem !important;
    }
    
    .testimonial-img {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        margin: 0 auto 1rem;
        object-fit: cover;
    }
    
    .testimonial-text {
        font-size: 0.95rem !important;
        line-height: 1.6;
        font-style: italic;
        margin-bottom: 1rem;
    }
    
    .testimonial-name {
        font-size: 1rem !important;
        font-weight: 600;
    }
    
    .testimonial-profession {
        font-size: 0.9rem !important;
        color: var(--light);
    }
    
    /* Footer improvements */
    .footer {
        padding-top: 3rem !important;
        padding-bottom: 1rem !important;
    }
    
    .footer .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .footer h5 {
        font-size: 1.1rem !important;
        margin-bottom: 1rem;
    }
    
    .footer-link {
        font-size: 0.95rem !important;
        display: block;
        padding: 0.25rem 0;
    }
    
    .footer-social .btn {
        width: 45px !important;
        height: 45px !important;
        margin: 0 0.25rem 0.5rem 0;
    }
    
    /* Back to top button */
    .back-to-top {
        right: 20px !important;
        bottom: 20px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
    }
    
    /* Spacing utilities for small screens */
    .py-xs-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
    .my-xs-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
    .px-xs-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
}

/* Enhanced Medium Device Styles (Small: 576px - 767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .navbar {
        position: fixed !important;
        background-color: rgba(13, 13, 13, 0.95) !important;
        padding: 0.75rem 0 !important;
    }
    
    .navbar-brand h2 {
        font-size: 1.5rem !important;
    }
    
    .navbar-toggler {
        padding: 0.5rem 0.7rem;
        margin-right: 1rem !important;
    }
    
    .navbar-collapse {
        padding: 1rem;
        margin-top: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        font-size: 1.1rem !important;
        padding: 12px 0 !important;
    }
    
    body {
        padding-top: 85px;
    }
    
    #header-carousel {
        margin-top: -85px;
        padding-top: 85px;
    }
    
    .carousel-item {
        min-height: 450px !important;
    }
    
    .carousel-caption h1 {
        font-size: 2.5rem !important;
    }
    
    .carousel-caption .btn {
        padding: 0.75rem 2rem !important;
        margin: 0.25rem 0.5rem !important;
    }
    
    .section-title h1 {
        font-size: 2.8rem !important;
    }
    
    .portfolio-img {
        height: 250px !important;
    }
    
    .service-item {
        margin-bottom: 2rem !important;
    }
    
    .team-item {
        margin-bottom: 2rem !important;
    }
    
    .contact-form .btn {
        width: auto !important;
        min-width: 200px;
    }
}

/* Enhanced Large Device Styles (Medium: 768px - 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar {
        position: fixed !important;
        background-color: rgba(13, 13, 13, 0.9) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 1rem 0 !important;
    }
    
    .navbar-brand h2 {
        font-size: 1.6rem !important;
    }
    
    .navbar-nav .nav-link {
        padding: 30px 20px !important;
        margin-right: 15px;
        font-size: 1rem;
    }
    
    body {
        padding-top: 90px;
    }
    
    #header-carousel {
        margin-top: -90px;
        padding-top: 90px;
    }
    
    .carousel-item {
        min-height: 500px !important;
    }
    
    .carousel-caption h1 {
        font-size: 3.2rem !important;
    }
    
    .section-title h1 {
        font-size: 3.2rem !important;
    }
    
    .portfolio-img {
        height: 280px !important;
    }
    
    .service-text {
        padding: 2rem !important;
    }
    
    .team-text {
        padding: 2rem !important;
    }
}

/* Enhanced Extra Large Device Styles (Large: 992px - 1199.98px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .carousel-item {
        min-height: 600px !important;
    }
    
    .portfolio-img {
        height: 320px !important;
    }
    
    .service-text {
        padding: 2.5rem !important;
    }
    
    .team-text {
        padding: 2.5rem !important;
    }
}

/* Enhanced Desktop Navbar Styles (Large: >=992px) */
@media (min-width: 992px) {
    /* Reset mobile-specific navbar styles */
    body {
        padding-top: 0 !important;
    }
    
    #header-carousel {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    .navbar {
        position: absolute !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        padding: 0 !important;
        box-shadow: none !important;
    }
    
    .navbar.scrolled {
        position: fixed !important;
        top: 0 !important;
        background-color: rgba(13, 13, 13, 0.95) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3) !important;
        animation: slideDown 0.3s ease !important;
        z-index: 1030 !important;
    }
    
    .navbar-brand {
        margin-left: 2rem !important;
    }
    
    .navbar-brand h2 {
        font-size: 1.8rem !important;
        margin-bottom: 0 !important;
    }
    
    .navbar-nav .nav-link {
        margin-right: 25px !important;
        padding: 40px 0 !important;
        font-size: 17px !important;
        font-weight: 600 !important;
        color: var(--bs-white) !important;
        text-transform: uppercase !important;
        transition: all 0.3s ease !important;
    }
    
    .navbar.scrolled .navbar-nav .nav-link {
        padding: 25px 0 !important;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        color: var(--bs-primary) !important;
        transform: translateY(-2px);
    }
    
    .navbar-collapse {
        padding: 0 !important;
        margin-top: 0 !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
    }
    
    .navbar-nav {
        border-top: none !important;
        padding-top: 0 !important;
    }
    
    /* Social buttons styling */
    .d-none.d-lg-flex {
        display: flex !important;
        margin-right: 2rem;
    }
    
    .d-none.d-lg-flex .btn {
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.3s ease !important;
        margin-left: 8px !important;
    }
    
    .d-none.d-lg-flex .btn:hover {
        background-color: var(--bs-primary) !important;
        border-color: var(--bs-primary) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 8px rgba(228, 23, 121, 0.3) !important;
    }
    
    /* Dropdown improvements for desktop */
    .navbar .nav-item .dropdown-menu {
        background-color: rgba(13, 13, 13, 0.95) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 10px !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
    }
    
    .navbar .dropdown-item {
        color: rgba(255, 255, 255, 0.8) !important;
        padding: 0.75rem 1.5rem !important;
        transition: all 0.3s ease !important;
    }
    
    .navbar .dropdown-item:hover {
        background-color: rgba(228, 23, 121, 0.2) !important;
        color: var(--bs-primary) !important;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Enhanced Extra Extra Large Device Styles (XL: >=1200px) */
@media (min-width: 1200px) {
    .carousel-item {
        min-height: 650px !important;
    }
    
    .portfolio-img {
        height: 350px !important;
    }
    
    .service-text {
        padding: 3rem !important;
    }
    
    .team-text {
        padding: 3rem !important;
    }
}

/* Table responsive improvements for all screen sizes */
@media (max-width: 991.98px) {
    .table-responsive {
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .table th,
    .table td {
        padding: 0.6rem 0.4rem !important;
        font-size: 0.9rem !important;
        vertical-align: middle;
    }
    
    .table th {
        white-space: nowrap;
    }
}

@media (max-width: 575.98px) {
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.3rem !important;
        font-size: 0.8rem !important;
    }
    
    .table-responsive {
        border: none;
        box-shadow: none;
    }
}

/* Modal responsive improvements */
@media (max-width: 767.98px) {
    .modal-dialog {
        margin: 1rem !important;
        max-width: calc(100vw - 2rem) !important;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1.25rem !important;
    }
    
    .modal-title {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 0.5rem !important;
        max-width: calc(100vw - 1rem) !important;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem !important;
    }
    
    .modal-title {
        font-size: 1.1rem !important;
    }
    
    .modal-header .btn-close {
        margin: -0.5rem -0.5rem -0.5rem auto;
        padding: 0.5rem;
    }
}

/* Form enhancements for better mobile experience */
@media (max-width: 767.98px) {
    .form-control,
    .form-select {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 0.75rem !important;
        border-radius: 8px;
    }
    
    .form-label {
        font-size: 0.95rem !important;
        font-weight: 600;
    }
    
    .form-text {
        font-size: 0.85rem !important;
    }
    
    .btn {
        touch-action: manipulation; /* Prevents double-tap zoom */
        min-height: 44px; /* iOS touch target minimum */
    }
}

/* Overflow and scroll improvements */
body {
    overflow-x: hidden;
}

.container,
.container-fluid {
    overflow-x: hidden;
}

/* Image optimizations */
.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Video responsive wrapper */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
}

.video-responsive iframe,
.video-responsive object,
.video-responsive embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

/* Loading states and animations */
@media (prefers-reduced-motion: no-preference) {
    .card,
    .portfolio-item,
    .team-item,
    .service-item {
        transition: all 0.3s ease;
    }
    
    .card:hover,
    .portfolio-item:hover,
    .team-item:hover,
    .service-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn,
    .card,
    .form-control,
    .form-select {
        border-width: 2px !important;
    }
}

/* Dark mode preference support */
@media (prefers-color-scheme: dark) {
    /* The site already uses dark theme, but ensure consistency */
    .bg-light {
        background-color: var(--bs-secondary) !important;
    }
    
    .text-dark {
        color: var(--light) !important;
    }
}

/* Print styles optimization */
@media print {
    .navbar,
    .footer,
    .back-to-top,
    .btn,
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-indicators {
        display: none !important;
    }
    
    body {
        font-size: 12pt !important;
        line-height: 1.4 !important;
        color: #000 !important;
        background: #fff !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .section-title h1,
    .card-title,
    h1, h2, h3, h4, h5, h6 {
        color: #000 !important;
        page-break-after: avoid;
    }
    
    p, ul, ol {
        orphans: 3;
        widows: 3;
    }
    
    .card,
    .team-item,
    .service-item {
        page-break-inside: avoid;
        border: 1px solid #ddd !important;
        background: #fff !important;
    }
}