/********** Template CSS **********/
:root {
    --primary: #6244C5;
    --secondary: #FFC448;
    --light: #FAFAFB;
    --dark: #12141D;
}

.project-desc-modal .project-modal-header {
    align-items: flex-start;
    flex-wrap: wrap;
    row-gap: 0.75rem;
}

.project-desc-modal .project-modal-actions {
    padding-top: 0.15rem;
    margin-inline-start: auto;
}

/* Bilingual RTL support (shared by project description modals) */
.project-desc-modal .modal-content[dir="rtl"] {
    font-family: 'Cairo', 'Open Sans', sans-serif;
    text-align: right;
}

.project-desc-modal .modal-content[dir="rtl"] .project-modal-meta {
    border-left: none;
    border-right: 4px solid var(--primary);
}

.project-desc-modal .modal-content[dir="rtl"] .project-modal-list {
    padding-right: 1.25rem;
    padding-left: 0;
}

/* Flag language switcher (shared by project description modals) */
.project-desc-modal .lang-flag-switch {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem;
    background-color: var(--light);
    border-radius: 999px;
    border: 1px solid #e2e2e8;
}

.project-desc-modal .lang-flag-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    opacity: 0.45;
    filter: grayscale(60%);
    transform: scale(0.92);
    transition: all 0.2s ease;
}

.project-desc-modal .lang-flag-btn:hover {
    opacity: 0.8;
}

.project-desc-modal .lang-flag-btn.active {
    opacity: 1;
    filter: none;
    transform: scale(1);
    box-shadow: 0 0 0 2px var(--primary);
}

.project-desc-modal .lang-flag-img {
    width: 22px;
    height: 22px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    pointer-events: none;
}

@media (max-width: 575.98px) {
    .project-desc-modal .project-modal-meta-item {
        grid-template-columns: 1fr;
    }

    .project-desc-modal .modal-content[dir="rtl"] .project-modal-meta-item {
        grid-template-columns: minmax(72px, max-content) 1fr;
    }
}

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

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.py-6 {
    padding-bottom: 6rem;
}


/*** 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: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}


.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: normal;
}


/*** Navbar ***/
.navbar.fixed-top {
    display: none;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    padding: 20px 15px;
    color: var(--dark);
    font-size: 18px;
    font-weight: 600;
    outline: none;
}

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

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        padding: 10px 0;
    }
    
    /* Header adjustments for tablets */
    #home h1.display-3 {
        font-size: 3rem;
    }
    
    #home .py-6 {
        padding-top: 3rem;
    }
}

/* Tablet landscape and small desktops */
@media (min-width: 768px) and (max-width: 991.98px) {
    #home .btn-primary {
        padding: 0.875rem 2rem;
    }
}


/*** Header ***/
#home {
    margin-bottom: 6rem;
    background: url(../img/bg-header.png) left top no-repeat;
}

.typed-cursor {
    font-size: 30px;
    color: var(--dark);
}

.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border-radius: 100%;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--primary);
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 100%;
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: #FFFFFF;
    border-radius: 100%;
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid var(--primary);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

.modal-video .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

.modal-video .modal-body {
    position: relative;
    padding: 0px;
}

.modal-video .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}


/*** About ***/
#about .years .display-1 {
    font-size: 10rem;
    line-height: 9rem;
}

#about .years h5 {
    letter-spacing: 30px;
    margin-right: -30px;
}


/*** Skills ***/
#skill .progress {
    height: 5px;
    border-radius: 5px;
}

#skill .progress .progress-bar {
    width: 0px;
    border-radius: 5px;
    transition: 3s;
}

#skill .nav-pills .nav-link {
    color: var(--dark);
}

#skill .nav-pills .nav-link.active {
    color: #FFFFFF;
}

#skill .tab-content hr {
    width: 30px;
}


/*** Service ***/
.service-item .bg-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url(../img/bg-icon.png) center center no-repeat;
    background-size: cover;
}


/*** Project Portfolio ***/
#portfolio-flters li,
#custom-build-filters li {
    display: inline-block;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active,
#custom-build-filters li:hover,
#custom-build-filters li.active {
    color: var(--primary);
    border-color: var(--primary);
}

.portfolio-img {
    position: relative;
}

.portfolio-btn {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(98, 68, 197, .9);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 30px;
    padding-bottom: 100px !important;
    opacity: 0;
    transition: .5s;
}

.portfolio-item:hover .portfolio-btn,
.custom-build-item:hover .portfolio-btn {
    opacity: 1;
    padding-bottom: 30px !important;
}

/* Uniform square cards for Projects I Worked On & Projects I Built */
#project .portfolio-img,
#projects-built .portfolio-img {
    aspect-ratio: 1 / 1;
}

#project .portfolio-img img,
#projects-built .portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

#project .portfolio-card-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: transform .3s, box-shadow .3s;
}

#project .portfolio-card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .15);
}


/*** Team ***/
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    opacity: .7;
}

.team-item .team-text {
    position: absolute;
    left: 0;
    right: 60px;
    bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-text {
    right: 30px;
    opacity: 1;
}

.team-item .team-text div {
    transition: .5s;
}

.team-item:hover .team-text div {
    margin-left: 30px;
}


/*** Testimonial ***/
.testimonial-left,
.testimonial-right {
    position: relative;
}

.testimonial-left img,
.testimonial-right img {
    position: absolute;
    padding: 5px;
    border: 1px solid var(--secondary);
    border-radius: 70px;
}

.testimonial-left img:nth-child(1),
.testimonial-right img:nth-child(3) {
    width: 70px;
    height: 70px;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-left img:nth-child(2),
.testimonial-right img:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
}

.testimonial-left img:nth-child(3),
.testimonial-right img:nth-child(1) {
    width: 50px;
    height: 50px;
    bottom: 10%;
    right: 10%;
}

.testimonial-carousel .owl-item img {
    width: 120px;
    height: 120px;
}

.testimonial-carousel .testimonial-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border: 1px solid var(--secondary);
    border-radius: 60px;
}

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

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 30px;
    height: 30px;
    background: #FFFFFF;
    border: 2px solid var(--secondary);
    border-radius: 30px;
    transition: .5s;
}

.testimonial-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 16px;
    height: 16px;
    top: 5px;
    left: 5px;
    border-radius: 16px;
    background: var(--secondary);
    transition: .5s;
}

.testimonial-carousel .owl-dot.active::after {
    background: var(--primary);
}


/*** Snackbar ***/
.snackbar {
    visibility: hidden;
    min-width: 300px;
    background-color: var(--dark);
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 16px;
    position: fixed;
    z-index: 10000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: visibility 0s, opacity 0.3s ease-in-out;
    opacity: 0;
}

.snackbar.show {
    visibility: visible;
    opacity: 1;
}


/*** Project Description Modal ***/
.project-desc-modal .modal-dialog {
    max-width: 720px;
}

.project-desc-modal .project-modal-content {
    background-color: #fff;
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.project-desc-modal .project-modal-header {
    padding: 1.25rem 1.5rem;
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
    align-items: flex-start;
}

.project-desc-modal .project-modal-header .modal-title {
    color: var(--dark);
    font-weight: 600;
    font-size: 1.15rem;
    line-height: 1.4;
    margin-bottom: 0.35rem;
}

.project-desc-modal .project-modal-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
}

.project-desc-modal .project-modal-header .btn-close {
    margin-top: 0.25rem;
    opacity: 0.5;
    transition: all 0.3s;
}

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

.project-desc-modal .project-modal-body {
    padding: 1.25rem 1.5rem 1.5rem;
    max-height: 75vh;
    overflow-y: auto;
}

.project-desc-modal .project-modal-meta {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--light);
    border-radius: 0.375rem;
    border-left: 4px solid var(--primary);
}

.project-desc-modal .project-modal-meta-item {
    display: grid;
    grid-template-columns: minmax(90px, max-content) 1fr;
    gap: 0.5rem;
    align-items: baseline;
}

.project-desc-modal .project-modal-meta dt {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
    margin: 0;
}

.project-desc-modal .project-modal-meta dd {
    font-size: 0.95rem;
    color: var(--dark);
    margin: 0;
    font-weight: 500;
}

.project-desc-modal .project-modal-section {
    margin-bottom: 1.25rem;
}

.project-desc-modal .project-modal-section:last-child {
    margin-bottom: 0;
}

.project-desc-modal .project-modal-section-title {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.project-desc-modal .project-modal-section p {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 0;
}

.project-desc-modal .project-modal-list {
    margin: 0;
    padding-left: 1.25rem;
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.65;
}

.project-desc-modal .project-modal-list li {
    margin-bottom: 0.35rem;
}

.project-desc-modal .project-modal-list li:last-child {
    margin-bottom: 0;
}

@media (max-width: 575.98px) {
    .project-desc-modal .project-modal-header {
        padding: 1rem;
    }

    .project-desc-modal .project-modal-header .modal-title {
        font-size: 1rem;
        padding-right: 1.5rem;
    }

    .project-desc-modal .project-modal-body {
        padding: 1rem;
    }

    .project-desc-modal .project-modal-meta-item {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
}


/*** Screenshot Carousel Modal ***/
#ccmCarouselModal .modal-dialog,
#flexyProCarouselModal .modal-dialog,
#eybCarouselModal .modal-dialog {
    max-width: 90%;
    margin: 1.75rem auto;
}

@media (min-width: 992px) {
    #ccmCarouselModal .modal-dialog,
    #flexyProCarouselModal .modal-dialog,
    #eybCarouselModal .modal-dialog {
        max-width: 1200px;
    }
}

#ccmCarouselModal .ccm-modal-content,
#flexyProCarouselModal .ccm-modal-content,
#eybCarouselModal .ccm-modal-content {
    background-color: #fff;
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

#ccmCarouselModal .ccm-modal-header,
#flexyProCarouselModal .ccm-modal-header,
#eybCarouselModal .ccm-modal-header {
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
    background-color: #fff;
}

#ccmCarouselModal .ccm-modal-header .modal-title,
#flexyProCarouselModal .ccm-modal-header .modal-title,
#eybCarouselModal .ccm-modal-header .modal-title {
    color: #333;
    font-weight: 600;
    margin: 0;
}

#ccmCarouselModal .ccm-modal-header .btn-close,
#flexyProCarouselModal .ccm-modal-header .btn-close,
#eybCarouselModal .ccm-modal-header .btn-close {
    opacity: 0.5;
    transition: all 0.3s;
    padding: 0.5rem;
}

#ccmCarouselModal .ccm-modal-header .btn-close:hover,
#flexyProCarouselModal .ccm-modal-header .btn-close:hover,
#eybCarouselModal .ccm-modal-header .btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

#ccmCarouselModal .ccm-modal-body,
#flexyProCarouselModal .ccm-modal-body,
#eybCarouselModal .ccm-modal-body {
    padding: 0;
    min-height: 500px;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    overscroll-behavior-y: contain;
}

/* Custom Carousel Styles */
#ccmCarouselModal .ccm-screenshots-carousel,
#flexyProCarouselModal .ccm-screenshots-carousel,
#flexyProCarouselModal .flexypro-screenshots-carousel,
#eybCarouselModal .eyb-screenshots-carousel {
    width: 100%;
    position: relative;
    min-height: 500px;
    max-height: 80vh;
    height: auto;
    display: block;
    visibility: visible;
    overflow: hidden;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    overscroll-behavior-y: contain;
}

#ccmCarouselModal .ccm-carousel-wrapper,
#flexyProCarouselModal .ccm-carousel-wrapper,
#eybCarouselModal .ccm-carousel-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

#ccmCarouselModal .ccm-carousel-track,
#flexyProCarouselModal .ccm-carousel-track,
#eybCarouselModal .ccm-carousel-track {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    will-change: transform;
    transition: transform 0.3s ease-out;
}

#ccmCarouselModal .ccm-carousel-slide,
#flexyProCarouselModal .ccm-carousel-slide,
#eybCarouselModal .ccm-carousel-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 500px;
    max-height: 80vh;
    box-sizing: border-box;
}

#ccmCarouselModal .ccm-carousel-slide img,
#flexyProCarouselModal .ccm-carousel-slide img,
#eybCarouselModal .ccm-carousel-slide img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 0.25rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    pointer-events: none;
}

#ccmCarouselModal .ccm-carousel-nav,
#flexyProCarouselModal .ccm-carousel-nav,
#eybCarouselModal .ccm-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(98, 68, 197, 0.9);
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 10;
    pointer-events: all;
}

#ccmCarouselModal .ccm-carousel-nav:hover:not(.disabled),
#flexyProCarouselModal .ccm-carousel-nav:hover:not(.disabled),
#eybCarouselModal .ccm-carousel-nav:hover:not(.disabled) {
    background: #6244c5;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#ccmCarouselModal .ccm-carousel-nav:focus,
#flexyProCarouselModal .ccm-carousel-nav:focus,
#eybCarouselModal .ccm-carousel-nav:focus {
    outline: none;
}

#ccmCarouselModal .ccm-carousel-nav.disabled,
#flexyProCarouselModal .ccm-carousel-nav.disabled,
#eybCarouselModal .ccm-carousel-nav.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

#ccmCarouselModal .ccm-carousel-prev,
#flexyProCarouselModal .ccm-carousel-prev,
#eybCarouselModal .ccm-carousel-prev {
    left: 20px;
}

#ccmCarouselModal .ccm-carousel-next,
#flexyProCarouselModal .ccm-carousel-next,
#eybCarouselModal .ccm-carousel-next {
    right: 20px;
}

/* Prevent body scroll when modal is open on mobile */
body.modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
    touch-action: none;
    overscroll-behavior: none;
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: none;
}

/* Responsive adjustments */
/* Responsive styles for mobile devices */
@media (max-width: 768px) {
    /* CCM Modal */
    #ccmCarouselModal .modal-dialog,
    #flexyProCarouselModal .modal-dialog,
    #eybCarouselModal .modal-dialog {
        max-width: 95%;
        margin: 0.5rem auto;
    }
    
    #ccmCarouselModal .ccm-modal-body,
    #flexyProCarouselModal .ccm-modal-body,
    #eybCarouselModal .ccm-modal-body {
        min-height: 400px;
        max-height: 70vh;
        touch-action: pan-x;
        overscroll-behavior: contain;
        overscroll-behavior-y: contain;
    }
    
    #ccmCarouselModal .ccm-screenshots-carousel,
    #flexyProCarouselModal .ccm-screenshots-carousel,
    #flexyProCarouselModal .flexypro-screenshots-carousel,
    #eybCarouselModal .eyb-screenshots-carousel {
        min-height: 400px;
        max-height: 70vh;
    }
    
    #ccmCarouselModal .ccm-carousel-slide,
    #flexyProCarouselModal .ccm-carousel-slide,
    #eybCarouselModal .ccm-carousel-slide {
        min-height: 400px;
        max-height: 70vh;
        padding: 1rem;
    }
    
    #ccmCarouselModal .ccm-carousel-slide img,
    #flexyProCarouselModal .ccm-carousel-slide img,
    #eybCarouselModal .ccm-carousel-slide img {
        max-height: 70vh;
    }
    
    #ccmCarouselModal .ccm-carousel-nav,
    #flexyProCarouselModal .ccm-carousel-nav,
    #eybCarouselModal .ccm-carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    #ccmCarouselModal .ccm-carousel-prev,
    #flexyProCarouselModal .ccm-carousel-prev,
    #eybCarouselModal .ccm-carousel-prev {
        left: 10px;
    }
    
    #ccmCarouselModal .ccm-carousel-next,
    #flexyProCarouselModal .ccm-carousel-next,
    #eybCarouselModal .ccm-carousel-next {
        right: 10px;
    }
    
    /* Prevent pull-to-refresh on mobile */
    body.modal-open {
        overscroll-behavior-y: none;
        -webkit-overflow-scrolling: none;
    }
    
    /* Download buttons - stack on mobile */
    #home .d-flex.align-items-center.pt-5 {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    #home .btn-primary {
        width: 100%;
        margin-bottom: 1rem;
        margin-right: 0 !important;
    }
    
    #home .btn-primary:last-child {
        margin-bottom: 0;
    }
    
    /* Header text adjustments */
    #home h1.display-3 {
        font-size: 2.5rem;
    }
    
    #home h3.text-primary {
        font-size: 1.25rem;
    }
    
    /* Snackbar responsive */
    .snackbar {
        min-width: 90%;
        left: 50%;
        transform: translateX(-50%);
        bottom: 20px;
    }
}

/* Responsive styles for small tablets */
@media (min-width: 576px) and (max-width: 767.98px) {
    #home .btn-primary {
        width: auto;
        margin-right: 1rem !important;
    }
    
    #home .d-flex.align-items-center.pt-5 {
        flex-direction: row;
    }
}

/* Responsive styles for extra small devices */
@media (max-width: 575.98px) {
    #home h1.display-3 {
        font-size: 2rem;
    }
    
    #home .btn-primary {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    #ccmCarouselModal .ccm-modal-header,
    #flexyProCarouselModal .ccm-modal-header,
    #eybCarouselModal .ccm-modal-header {
        padding: 0.75rem 1rem;
    }
    
    #ccmCarouselModal .ccm-modal-header .modal-title,
    #flexyProCarouselModal .ccm-modal-header .modal-title,
    #eybCarouselModal .ccm-modal-header .modal-title {
        font-size: 1rem;
    }
    
    /* Portfolio filters - stack on mobile */
    #portfolio-flters {
        text-align: center !important;
        margin-top: 1rem;
    }
    
    #portfolio-flters li {
        display: block;
        margin: 0.5rem 0;
    }

    #custom-build-filters li {
        display: inline-block;
        margin: 0 0.75rem;
    }

    
    /* Contact section adjustments */
    #contact .display-5 {
        font-size: 2rem;
    }
    
    #contact h3.fw-bold {
        font-size: 1.25rem;
    }
    
    /* About section */
    #about .years .display-1 {
        font-size: 6rem;
        line-height: 5rem;
    }
    
    /* Skills section - keep tabs side by side */
    #skill .nav-pills {
        flex-direction: row;
    }
    
    #skill .nav-pills .nav-item {
        width: 50%;
    }
}

/* Responsive styles for medium devices (tablets) */
@media (min-width: 576px) and (max-width: 991.98px) {
    /* Portfolio filters */
    #portfolio-flters {
        text-align: center;
        margin-top: 1.5rem;
    }
    
    /* Contact form */
    #contact .col-lg-7 {
        margin-top: 2rem;
    }
    
    /* Header adjustments */
    #home h1.display-3 {
        font-size: 3.5rem;
    }
}

/* Ensure images are responsive */
img.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Ensure containers are responsive */
.container,
.container-fluid,
.container-xxl {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive typography */
@media (max-width: 575.98px) {
    h1.display-5 {
        font-size: 2rem;
    }
    
    h1.display-3 {
        font-size: 2.5rem;
    }
    
    .display-1 {
        font-size: 4rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    h1.display-5 {
        font-size: 2.5rem;
    }
    
    h1.display-3 {
        font-size: 3rem;
    }
}