/* ===================== GOOGLE FONTS ===================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* ===================== VARIABLES & RESET ===================== */
:root {
    --primary-color: #2FB297;
    --black-color: #000000;
    --white-color: #ffffff;
    --text-color: #35404E;
    --pere-color: #2a2a2a;
    --bg-light: #f6f7fb;
    --transition: 0.3s;
    --transition2: 0.6s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    overflow-x: hidden;
    background-color: var(--white-color);
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-padding {
    padding: 80px 0;
}

/* ===================== HEADER & NAV ===================== */
header {
    background-image: url(img/BG2.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    background-attachment: fixed;
    width: 100%;
    height: 100vh;
    border-bottom-left-radius: 50% 20%;
    border-bottom-right-radius: 50% 20%;
    position: relative;
}

.navbar {
    background-color: transparent;
    transition: var(--transition);
    padding: 20px 0;
}

.navbar.sticky_nav {
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.navbar-brand {
    font-size: 1.8rem;
    color: var(--text-color);
    font-weight: 600;
}

.nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--black-color) !important;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.social_icon {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social_icon i {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    transition: var(--transition);
}

.social_icon i:hover {
    color: var(--primary-color);
    background-color: var(--white-color);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.navbar-toggler {
    border: none;
    color: var(--primary-color);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ===================== HERO SECTION ===================== */
.hero_content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.hero_content h1 span {
    color: var(--primary-color);
    font-weight: 600;
}

.hero_content p {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--pere-color);
    margin-bottom: 30px;
}

button {
    padding: 12px 30px;
    border-radius: 30px;
    border: none;
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(47, 178, 151, 0.3);
}

button:hover {
    background-color: #269e85;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 178, 151, 0.4);
}

/* ===================== ABOUT SECTION ===================== */
.about_image img:first-child {
    width: 100%;
    max-width: 85%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about_small {
    position: absolute;
    bottom: -40px;
    right: -15px;
    width: 220px;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
    border: 5px solid var(--white-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.about_content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    position: relative;
}

.about_content p {
    font-size: 1.05rem;
    color: var(--pere-color);
    line-height: 1.6;
    margin-bottom: 15px;
}

.about_content button {
    width: fit-content;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
    margin-top: 20px;
    margin-bottom: 10px;
}

.about_content button:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.about_bottom {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.6s ease-in-out,
        transform 0.6s ease-in-out;
    transform: translateY(-20px);
}

.show_skills {
    max-height: 1000px;
    opacity: 1;
    overflow: visible;
    transform: translateY(0);
}

.skill_box {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    background: rgba(47, 178, 151, 0.03);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.skill_box:hover {
    background: rgba(47, 178, 151, 0.08);
    transform: translateX(5px);
}

.skill_box h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
    margin-bottom: 15px;
}

.percent {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
    position: relative;
    overflow: hidden;
}

.percent:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    transition: width 1s ease-out 0.3s;
    width: var(--w);
}

.show_skills .percent:after {
    animation: fillBar 1.2s ease-out forwards;
}

@keyframes fillBar {
    from {
        width: 0;
    }

    to {
        width: var(--w);
    }
}

/* ===================== SERVICES SECTION ===================== */
.services-section {
    background-color: var(--bg-light);
}

.services-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

.services-header p {
    color: #6c757d;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.service-card {
    background: transparent;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    border-radius: 10px;
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    background: var(--white-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-icon {
    min-width: 60px;
    height: 60px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    background: var(--white-color);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: var(--white-color);
}

.service-info h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.service-info p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===================== HIRE ME SECTION ===================== */
.hireME {
    padding-bottom: 80px !important;
    margin-bottom: 20px !important;
}

.hireME.section-padding {
    padding-bottom: 80px !important;
    margin-bottom: 20px !important;
}

.hireME h1 {
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 700;
}

.hireME button {
    width: 200px;
    font-size: 1.2rem;
}

/* ===================== TESTIMONIALS SECTION ===================== */
.testimonials-section {
    background-color: var(--bg-light);
    border-bottom-left-radius: 50% 20%;
    border-bottom-right-radius: 50% 20%;
    padding-bottom: 100px;
}

.testimonials-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    text-align: center;
}

.testimonials-desc {
    color: #6c757d;
    font-size: 1.15rem;
    max-width: 1200px;
    margin: 0 auto 60px auto;
    text-align: center;
    line-height: 1.8;
}

.testSwiper {
    width: 100%;
    max-width: 100%;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px;
}

.testimonial-quote-icon {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.testimonial-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 4px solid var(--white-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-text {
    color: var(--pere-color);
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
    font-weight: 300;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-name {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
}

/* ===================== PORTFOLIO SECTION ===================== */
.portfolios {
    background-color: var(--bg-light);
    padding-top: 100px !important;
    padding-bottom: 80px !important;
    margin-top: 20px !important;
}

.portfolios.section-padding {
    padding-top: 100px !important;
    padding-bottom: 80px !important;
    margin-top: 20px !important;
}

.headings {
    text-align: center;
    margin-bottom: 20px;
}

.headings h2 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.headings h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
}

.category {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.category button {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 25px;
    font-size: 1rem;
    box-shadow: none;
}

.category button:hover,
.category button:focus,
.category button.mixitup-control-active {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.portfolio_img {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.portfolio_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio_img:hover img {
    transform: scale(1.1);
}

/* Portfolio card link styling */
.portfolio-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Portfolio overlay with fading shadow background */
.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    padding: 20px;
    transform: translateY(calc(100% - 70px));
    /* Show only title by default */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease;
    min-height: 70px;
}

.portfolio_img:hover .portfolio-overlay {
    transform: translateY(0);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 70%, transparent 100%);
}

.portfolio-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.portfolio-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white-color);
    margin: 0;
    text-align: left;
    line-height: 1.3;
}

.portfolio-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-align: left;
    line-height: 1.4;
}

.portfolio_img:hover .portfolio-description {
    opacity: 1;
    transform: translateY(0);
}

/* View All Button */
.btn-view-all {
    padding: 14px 40px;
    border-radius: 30px;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: none;
    margin-top: 60px !important;
}

.btn-view-all:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 178, 151, 0.3);
}

/* Portfolio grid constraints - Standard Block Flow */
.portfolio-grid {
    display: block;
    width: 100%;
    margin-bottom: 0px;
}

/* Ensure grid items wrap properly */
.portfolio_images {
    width: 100%;
    display: flex !important;
    flex-wrap: wrap !important;
    height: auto !important;
}

/* View All Button Container */
.view-all-container {
    width: 100%;
    text-align: center;
    margin-top: 5px;
    padding-top: 0px;
    clear: both;
}

/* View All Button */
.btn-view-all {
    padding: 14px 40px;
    border-radius: 30px;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: none;
    display: inline-block;
}

.btn-view-all:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 178, 151, 0.3);
}

.portfolioSwiper {
    display: none !important;
}

/* Show carousel on mobile, hide grid */
@media (max-width: 767px) {

    /* Make View All button smaller on mobile */
    .btn-view-all {
        padding: 10px 30px;
        font-size: 0.95rem;
    }

    /* Move button closer to carousel by 15px */
    .view-all-container {
        margin-top: -10px;
    }

    .portfolio-grid {
        display: none !important;
    }

    .portfolioSwiper {
        display: block !important;
        width: 100%;
        padding-bottom: 5px;
        position: relative;
        margin-bottom: 0px;
    }

    .category {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-bottom: 20px;
    }

    .portfolioSwiper .swiper-pagination {
        bottom: 0px !important;
        position: relative;
        margin-top: 20px;
    }

    .portfolioSwiper .swiper-pagination-bullet {
        background: var(--primary-color);
        opacity: 0.4;
        width: 10px;
        height: 10px;
        margin: 0 6px !important;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        /* Smooth animation */
    }

    .portfolioSwiper .swiper-pagination-bullet-active {
        opacity: 1;
        width: 24px;
        height: 10px;
        border-radius: 5px;
        background: var(--primary-color);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        /* Smooth animation */
    }

    .portfolioSwiper .swiper-button-next,
    .portfolioSwiper .swiper-button-prev {
        color: var(--primary-color);
        background: rgba(255, 255, 255, 0.95);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex !important;
        justify-content: center;
        align-items: center;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        cursor: pointer;
        visibility: visible !important;
        opacity: 1 !important;
        transition: all 0.3s ease;
    }

    .portfolioSwiper .swiper-button-next:hover,
    .portfolioSwiper .swiper-button-prev:hover {
        background: var(--primary-color);
        color: var(--white-color);
        box-shadow: 0 6px 20px rgba(47, 178, 151, 0.4);
        transform: translateY(-50%) scale(1.05);
    }

    .portfolioSwiper .swiper-button-next {
        right: 5px;
    }

    .portfolioSwiper .swiper-button-prev {
        left: 5px;
    }

    .portfolioSwiper .swiper-button-next i,
    .portfolioSwiper .swiper-button-prev i {
        font-size: 1.4rem;
        font-weight: bold;
    }

    .portfolioSwiper .swiper-button-next:after,
    .portfolioSwiper .swiper-button-prev:after {
        content: none;
    }

    /* Force consistent image heights on mobile carousel */
    .portfolioSwiper .portfolio_img {
        height: 250px !important;
        min-height: 250px !important;
    }

    .portfolioSwiper .portfolio_img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

/* ===================== PORTFOLIO MODAL ===================== */
#portfolioModal .modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

#portfolioModal .modal-header {
    border-bottom: 2px solid rgba(47, 178, 151, 0.2);
    padding: 20px 30px;
    background: linear-gradient(135deg, rgba(47, 178, 151, 0.05) 0%, rgba(47, 178, 151, 0.01) 100%);
}

#portfolioModal .modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

#portfolioModal .modal-header .btn-close {
    font-size: 1.2rem;
    opacity: 0.5;
    transition: var(--transition);
}

#portfolioModal .modal-header .btn-close:hover {
    opacity: 1;
}

#portfolioModal .modal-body {
    padding: 30px;
    max-height: 70vh;
}

.modal-category-section {
    margin-bottom: 40px;
}

.modal-category-section:last-child {
    margin-bottom: 0;
}

.modal-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(47, 178, 151, 0.2);
}

/* Modal portfolio cards */
#portfolioModalBody .portfolio_img {
    height: 250px !important;
    min-height: 250px !important;
    max-height: 250px !important;
}

#portfolioModalBody .portfolio_img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

#portfolioModalBody .portfolio-title {
    font-size: 1rem;
}

#portfolioModalBody .portfolio-description {
    font-size: 0.85rem;
}

/* Modal scrollbar */
#portfolioModal .modal-body::-webkit-scrollbar {
    width: 8px;
}

#portfolioModal .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#portfolioModal .modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

#portfolioModal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #269e85;
}

/* Responsive modal */
@media (max-width: 768px) {
    #portfolioModal .modal-dialog {
        margin: 10px;
    }

    #portfolioModal .modal-title {
        font-size: 1.5rem;
    }

    #portfolioModal .modal-body {
        padding: 20px 15px;
    }

    .modal-category-title {
        font-size: 1.2rem;
    }

    #portfolioModalBody .portfolio_img {
        height: 200px;
    }
}

/* ===================== BLOG SECTION ===================== */
/*.blogs {
    background-color: var(--bg-light);
}*/

.blogSwiper {
    width: 100%;
    margin-top: 40px;
    padding-bottom: 40px;
}

.blog_slide {
    background: var(--white-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.blog_slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog_img {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.blog_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog_slide:hover .blog_img img {
    transform: scale(1.1);
}

.blog_hide_content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 20px;
    background: rgba(47, 178, 151, 0.9);
    color: var(--white-color);
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.blog_slide:hover .blog_hide_content {
    transform: translateY(0);
}

.blog_content {
    padding: 20px;
}

.blog_content h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.blog_content h2:hover {
    color: var(--primary-color);
}

.blog_content p {
    color: var(--pere-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===================== CONTACT SECTION ===================== */
.contact-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.contact-header p {
    color: #6c757d;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    background: var(--white-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    background: #f9f9f9;
}

.contact-form textarea {
    height: 100%;
    min-height: 200px;
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    background: var(--white-color);
    box-shadow: 0 0 0 4px rgba(47, 178, 151, 0.1);
}

.contact-form input.invalid,
.contact-form textarea.invalid {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.02);
}

.contact-form input.invalid:focus,
.contact-form textarea.invalid:focus {
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

.contact-submit {
    width: 250px;
    font-size: 1.2rem;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(47, 178, 151, 0.1);
    transition: var(--transition);
}

.contact-card:hover i {
    background: var(--primary-color);
    color: var(--white-color);
}

.contact-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

.contact-card-desc {
    color: #6c757d;
}

.contact-status-message {
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: none;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.contact-status-message.show {
    display: block;
    animation: slideInUp 0.5s forwards;
}

.contact-status-message.success {
    background-color: rgba(47, 178, 151, 0.1);
    color: var(--primary-color);
    border-color: rgba(47, 178, 151, 0.2);
}

.contact-status-message.error {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.2);
}

.contact-status-message.loading {
    background-color: rgba(53, 64, 78, 0.05);
    color: var(--text-color);
    border-color: rgba(53, 64, 78, 0.1);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================== FOOTER ===================== */
.footer {
    background-color: var(--pere-color);
    padding: 40px 0;
}

.footer p {
    color: var(--white-color);
    font-size: 1rem;
}

.footer p span {
    font-weight: 600;
    color: var(--primary-color);
}

.footer_social {
    display: flex;
    gap: 15px;
}

.footer_social i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: var(--transition);
    cursor: pointer;
}

.footer_social i:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* ===================== RESPONSIVE OVERRIDES ===================== */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: var(--white-color);
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        margin-top: 10px;
    }

    .about_small {
        right: 0;
        bottom: -30px;
        width: 180px;
        height: 140px;
    }

    .hero_content h1 {
        color: var(--white-color);
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .hero_content h1 span {
        color: var(--white-color);
    }

    .hero_content p {
        color: var(--white-color);
        opacity: 0.9;
        text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    }
}

@media (max-width: 768px) {
    .hero_content h1 {
        font-size: 2.5rem;
    }

    .services-header h1,
    .about_content h1,
    .hireME h1,
    .testimonials-title,
    .headings h1,
    .contact-header h1 {
        font-size: 2.2rem;
    }

    .about_small {
        width: 150px;
        height: 120px;
    }

    .testimonial-card {
        padding: 20px;
    }
}

/* Fix image cropping on mobile */
@media (max-width: 767px) {

    .portfolio_img,
    .blog_img {
        height: auto !important;
    }

    .portfolio_img img,
    .blog_img img {
        height: auto !important;
    }
}