@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
    scroll-behavior: smooth;
}

:root {
    --bg-color: #e3edf7;
    --gradient-white-bg: linear-gradient(0deg, #fff 0%, #edf4fa 51%, #e5eef7 100%);
    --gradient-color-bg: linear-gradient(180deg, rgba(247, 1, 120, 1) 0%, rgba(160, 8, 156, 1) 51%, rgba(99, 13, 178, 1) 100%);
    --main-color: #e6006d;
    --font-color: #90979f;
    --hover-box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    --gradient-white-bg2: linear-gradient(98deg, #e5eef7 0%, #fff 100%);
}

a {
    text-decoration: none;
    color: #000;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-color);
    overflow-x: hidden;
}

header {
    padding: 15px 8%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gradient-white-bg);
    z-index: 100;
    transition: .3s;
}

header .logo {
    font-size: 1.7rem;
    font-weight: 700;
}

span {
    background: var(--gradient-color-bg);
    -webkit-background-clip: text;
    color: transparent;
}

ul.navlist {
    display: flex;
}

.navlist li {
    margin: 0 1rem;
}

.navlist li a {
    display: inline-flex;
    font-weight: 600;
}

.navlist li a:hover, .navlist li a.active {
    background: var(--gradient-color-bg);
    -webkit-background-clip: text;
    color: transparent;
}

.right-header {
    display: flex;
    align-items: center;
    justify-content: end;
    grid-gap: .8rem;
}

.btn {
    background: var(--gradient-color-bg);
    color: #fff;
    padding: 8px 10px;
    border-radius: 5px;
    font-weight: 500;
    transition: all .3s ease;
}

.btn:hover, .btn-box .d-CV:hover {
    box-shadow: var(--hover-box-shadow);
}

.menu-icon {
    position: relative;
    display: block;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.menu-icon .bar,
.menu-icon::after,
.menu-icon::before {
    content: "";
    display: none;
    width: 100%;
    height: 4px;
    border-radius: 3px;
    background: #000;
    margin: 6px 0;
    transition: .4s;
}

.menu-icon.active::before {
    transform: rotate(-45deg) translate(-6px, 6px);
}

.menu-icon.active::after {
    transform: rotate(45deg) translate(-8px, -8px);
}

.menu-icon.active .bar {
    opacity: 0;
}

/* ==================== Home Section CSS ============================ */
section {
    padding: 90px 8%;
}

.home {
    min-height: 100vh;
    height: 100%;
    width: 100%;
    display: flex;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    grid-gap: 4em;
    background: var(--gradient-white-bg2);
}

.hero-info {
    margin-top: 3rem;
}

.hero-info h1 {
    font-size: 3.5rem;
    color: #1a3c5e;
}

.hero-info p {
    font-size: 1rem;
    color: var(--font-color);
    line-height: 1.6rem;
    margin: 1.5rem 0 2rem;
    max-width: 500px;
}

.btn-box {
    display: flex;
    justify-content: space-between;
    width: 320px;
    margin-bottom: 4rem;
}

.btn-box .btn {
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.btn-box .d-CV {
    background: var(--gradient-color-bg);
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 500;
    color: #fff;
    transition: all .3s ease;
}

.btn-box .d-CV:hover {
    background: #a0089c; /* Darker shade of the gradient for hover */
    transform: scale(1.05);
}

.social-media {
    display: flex;
    justify-content: space-between;
    width: 220px;
    height: 45px;
}

.social-media a {
    width: 42px;
    height: 42px;
    font-size: 1.5rem;
    color: var(--main-color);
    background: #fff;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: .4s;
    border-radius: 50%;
    z-index: 1;
}

.social-media a:hover {
    background: var(--gradient-color-bg);
    color: #fff;
}

.bg-icon {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bg-icon span {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--gradient-color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: animate 1s linear infinite;
}

.img-hero {
    position: relative;
    animation: floatImage 4s ease-in-out infinite;
    animation-delay: 3s;
}

.img-hero img {
    position: relative;
    width: 400px;
    height: auto;
    z-index: 10;
    border-radius: 0px 13rem 13rem;
}

.rotate-text {
    position: absolute;
    top: 4%;
    left: -53px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 2rem;
}

.rotate-text span {
    position: relative;
    width: 442px;
    height: 442px;
    background: red;
    border: 6px solid #eaeef0;
    border-radius: 50%;
    z-index: 1;
    overflow: hidden;
}

.rotate-text span::before {
    content: "";
    position: absolute;
    inset: 20px;
    background: #00aaff;
    border-radius: 50%;
    z-index: 1;
}

.rotate-text span i {
    position: absolute;
    inset: 0;
    background: var(--gradient-color-bg);
    filter: blur(5px);
    animation: animate 2s linear infinite;
}

.rotate-text .text {
    position: absolute;
    width: 490px;
    height: 490px;
    background: #f2f6fb;
    border-radius: 50%;
    box-shadow: 0 1px 6px 5.94px rgba(0, 0, 0, 0.2);
    animation: rotateText 30s linear infinite;
}

.text b {
    position: absolute;
    transform-origin: 0 247px;
    display: block;
    top: 0;
    left: 50%;
    font-size: 1.2rem;
}

/* ==================== About Section CSS ============================ */
.about {
    padding: 60px 8%;
    background: linear-gradient(135deg, #ffffff 0%, #e6f0fa 100%);
    border-radius: 12px;
    max-width: 1000px;
    margin: 40px auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-content {
    padding: 3rem 0;
}

.heading {
    font-size: 2.8rem;
    color: #1a3c5e;
    margin-bottom: 15px;
    position: relative;
    font-weight: 700;
}

.heading::after {
    content: '';
    width: 60px;
    height: 4px;
    background: var(--main-color);
    position: absolute;
    bottom: -8px;
    left: 0;
}

.about-content h3 {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

.about-content p {
    color: #555;
    line-height: 1.9;
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.about-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 25px;
    border: none;
    background: #f1f3f5;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn:hover, .tab-btn.active {
    background: var(--gradient-color-bg);
    color: white;
    box-shadow: 0 2px 8px rgba(230, 0, 109, 0.3);
}

.tab-content .content {
    display: none;
}

.tab-content .content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.skill-card, .achievement-card, .timeline-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover, .achievement-card:hover, .timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.skill-title, .achievement-title, .timeline-title {
    font-weight: 600;
    color: #1a3c5e;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.skill-card span, .achievement-card span, .timeline-card span {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.achievement-card .cert-link {
    position: relative;
    color: var(--main-color);
    font-weight: 500;
    text-decoration: underline;
}

.achievement-card .cert-link:hover {
    color: #a0089c; /* Darker shade for hover */
}

.achievement-card .cert-preview {
    display: none;
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 70px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.achievement-card .cert-link:hover .cert-preview {
    display: block;
    animation: fadeIn 0.3s ease;
}

.download-cv {
    display: inline-flex;
    align-items: center;
    padding: 14px 30px;
    background: var(--gradient-color-bg);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.3s ease;
}

.download-cv:hover {
    background: #a0089c;
    transform: scale(1.05);
}

/* ==================== Services Section CSS ============================ */
.services {
    position: relative;
}

.main-text {
    width: 100%;
    text-align: center;
    margin-bottom: 2rem;
}

.main-text .heading {
    color: var(--main-color);
}

.main-text span {
    color: var(--font-color);
    font-weight: 200;
    text-transform: uppercase;
}

.allServices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, auto));
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.servicesItem {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
    padding: 2rem 1rem;
    border-radius: 10px;
    background: var(--gradient-white-bg2);
    text-align: center;
}

.servicesItem .portfolio-img {
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.servicesItem .portfolio-img img {
    display: block;
    width: 100%;
    height: 160px;
    transition: .3s;
}

.servicesItem:hover .portfolio-img img {
    transform: scale(1.1);
}

.servicesItem h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.3rem;
}

.servicesItem p {
    margin-bottom: 1.5rem;
    font-size: .9rem;
    color: var(--font-color);
}

.readMore {
    background: var(--gradient-white-bg2);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    color: #000;
    margin-right: .8rem;
    cursor: pointer;
    transition: all .3s ease;
}

.readMore:hover {
    background: var(--gradient-color-bg);
    color: #fff;
}

/* ==================== Portfolio Section CSS ============================ */
.fillter-buttons {
    text-align: center;
    padding: .5rem;
    margin-bottom: 2rem;
}

.fillter-buttons button {
    background: var(--gradient-white-bg2);
    padding: 12px 15px;
    border-radius: 5px;
    border: none;
    font-weight: 500;
    color: #000;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
    margin-right: .5rem;
    cursor: pointer;
    transition: all .3s ease;
}

.fillter-buttons button:hover, button.mixitup-control-active {
    background: var(--gradient-color-bg);
    color: #fff;
}

.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(370px, 1fr));
    gap: 1rem;
}

.portfolio-img img {
    display: block;
    width: 100%;
    height: 160px;
    transition: .3s;
}

.portfolio-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    padding: .5rem;
    box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
    background: var(--gradient-white-bg2);
    border-radius: 10px;
    transition: all .3s ease;
}

.portfolio-content {
    width: 100%;
    padding-left: .5rem;
    padding-bottom: .5rem;
}

.portfolio-img {
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
}

.portfolio-box:hover img {
    transform: scale(1.1);
}

.portfolio-content a.readMore {
    padding: 8px 12px;
    font-size: .8rem;
}

.portfolio-content p {
    font-size: .9rem;
    color: var(--font-color);
    margin: .5rem 0 1rem 0;
}

/* ==================== Blog Section CSS ============================ */
.blog-box {
    padding: .5rem !important;
}

.blog {
    position: relative;
}

.cards {
    padding: 1rem .1rem;
}

.card {
    background: var(--gradient-white-bg2);
    box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
    padding: 1rem;
    border-radius: 10px;
}

.card-top {
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .3s;
    display: block;
}

.card:hover img {
    transform: scale(1.1);
}

.card-info {
    padding-bottom: .5rem;
}

.card-info h2 {
    font-size: 1.2rem;
    margin-top: 1rem;
}

.data {
    display: block;
    margin: .2rem 0;
}

.card .excerpt {
    color: var(--font-color);
    margin-bottom: 1.5rem;
}

.swiper-pagination {
    position: relative !important;
    margin-top: 3rem;
}

.swiper-pagination-bullet {
    height: 10px !important;
    width: 30px !important;
    border-radius: 25px !important;
    background: var(--gradient-color-bg) !important;
}

.blog .showcase img {
    position: absolute;
    width: 90px;
    height: 90px;
}

.blog .showcase .circle {
    filter: blur(3px);
}

.blog .showcase .ring {
    top: 0;
    left: -1%;
}

.blog .showcase .half-ring {
    top: 10%;
    right: 10%;
}

.blog .showcase .second-circle {
    top: 30%;
    left: 2%;
    filter: blur(1px);
}

/* ==================== Contact and Skills Section CSS ============================ */
.contact-skills-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.contact-card, .skills-showcase {
    background: linear-gradient(135deg, #ffffff 0%, #e6f0fa 100%);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 48%;
    transition: transform 0.3s ease;
}

.contact-card:hover, .skills-showcase:hover {
    transform: translateY(-5px);
}

/* Contact Me Styling */
.contact-card .heading {
    font-size: 2rem;
    color: #1a3c5e;
    margin-bottom: 10px;
    font-weight: 700;
    text-align: center;
}

.contact-subtitle {
    font-size: 1rem;
    color: #666;
    text-align: center;
    margin-bottom: 20px;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    display: flex;
    gap: 10px;
}

.contact-card input, .contact-card textarea {
    padding: 12px;
    border: 2px solid #e8e1e1;
    border-radius: 8px;
    background: #f8faff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.contact-card input:focus, .contact-card textarea:focus {
    border-color: var(--main-color);
    background: #fff;
}

.contact-card textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    background: var(--gradient-color-bg);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.submit-btn:hover {
    background: #a0089c;
    transform: scale(1.05);
}

.contact-feedback {
    margin-top: 10px;
    text-align: center;
    font-size: 0.9rem;
    color: #1a3c5e;
}

/* Skills Showcase Styling */
.skills-showcase .heading {
    font-size: 2rem;
    color: #1a3c5e;
    margin-bottom: 10px;
    font-weight: 700;
    text-align: center;
}

.skills-subtitle {
    font-size: 1rem;
    color: #666;
    text-align: center;
    margin-bottom: 20px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.skill-item {
    text-align: center;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.skill-item i {
    font-size: 2.5rem;
    color: var(--main-color);
    margin-bottom: 10px;
}

.skill-item h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.skill-bar {
    background: #e8e1e1;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.skill-bar .progress {
    background: var(--gradient-color-bg);
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

/* ==================== Progress Bar CSS ============================ */
#progress {
    position: fixed;
    z-index: 1000;
    bottom: 60px;
    right: 10px;
    width: 50px;
    height: 50px;
    display: none;
    place-items: center;
    border-radius: 50%;
    color: #1d002c;
    cursor: pointer;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
}

#progress-value {
    display: grid;
    height: calc(100% - 12px);
    width: calc(100% - 12px);
    background: var(--gradient-color-bg);
    border-radius: 50%;
    color: #fff;
    place-items: center;
    font-size: 25px;
}

/* ==================== Keyframes ============================ */
@keyframes moveText {
    0%, 10%, 100% {
        background-position: -24rem 0;
    }
    65%, 85% {
        background-position: 0rem 0;
    }
}

@keyframes moveCursorText {
    0%, 10%, 100% {
        width: 0;
    }
    65%, 78%, 85% {
        width: 100%;
        opacity: 1;
    }
    75%, 85% {
        opacity: 0;
    }
}

@keyframes animate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes rotateText {
    0% {
        transform: rotate(360deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes progress {
    to {
        stroke-dashoffset: var(--target);
    }
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-22px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==================== Breakpoints ============================ */
@media (max-width: 1200px) {
    html {
        font-size: 95%;
    }
}

@media (max-width: 991px) {
    header, section, footer {
        padding-left: 3%;
        padding-right: 3%;
    }
    .home, .portfolio-box {
        flex-direction: column-reverse;
    }
    .about, .contact-skills-container {
        flex-direction: column;
    }
    .portfolio-img img {
        width: 100%;
        height: 100%;
    }
    .portfolio-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    .img-hero {
        margin-top: 3rem;
    }
    .contact-card, .skills-showcase {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .menu-icon .bar, .menu-icon::after, .menu-icon::before {
        display: block;
    }
    ul.navlist {
        position: absolute;
        top: -1000px;
        transition: all .3s ease;
        width: 100%;
        text-align: center;
        display: block;
        background: var(--gradient-white-bg);
        left: 0;
        border-top: 2px solid rgba(248, 202, 202, .7);
    }
    ul.navlist a {
        font-size: 1.5rem;
        margin: 1rem 0;
    }
    .navlist.active {
        top: 100%;
    }
    .overlay {
        width: 100vw;
        height: 100vh;
        top: 0;
        left: 0;
        position: fixed;
        background: rgba(0, 0, 0, 0.5);
        z-index: 8;
        opacity: 0;
        transform: .3s;
        pointer-events: none;
    }
    body.open .overlay {
        opacity: 1;
        pointer-events: auto;
    }
    .btn {
        padding: 10px;
    }
    .home {
        grid-gap: 0;
    }
    .fillter-buttons button {
        padding: 10px;
        font-size: .8rem;
    }
}

@media (max-width: 530px) {
    html {
        font-size: 80%;
    }
    section {
        padding: 50px 3%;
    }
    .input-group {
        flex-direction: column;
        gap: 15px;
    }
    .contact-card input, .contact-card textarea {
        width: 100%;
    }
    .rotate-text {
        display: none;
    }
    .img-hero img {
        width: 100%;
    }
    .btn-box {
        width: 266px;
        margin-bottom: 3rem;
    }
    .fillter-buttons {
        display: grid;
        grid-gap: 1rem;
    }
    .fillter-buttons button {
        width: 100%;
        padding: 13px;
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Portfolio Section CSS */
.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(370px, 1fr));
    gap: 1.5rem; /* Increased gap for better spacing */
}

.portfolio-box {
    background: var(--gradient-white-bg2);
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
    transition: all .3s ease;
    overflow: hidden; /* Ensures content doesn’t spill */
}

.portfolio-img {
    width: 100%;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.portfolio-img img {
    display: block;
    width: 100%;
    height: 220px; /* Increased from 160px for a bigger image */
    object-fit: cover; /* Ensures images fill the space nicely */
    transition: .3s;
}

.portfolio-box:hover img {
    transform: scale(1.1);
}

.portfolio-content {
    padding: 1rem;
    text-align: left;
}

.portfolio-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.portfolio-content p {
    font-size: .9rem;
    color: var(--font-color);
    margin: 0 0 1rem 0;
    min-height: 60px; /* Ensures consistent description height */
}

.portfolio-content a.readMore {
    padding: 8px 12px;
    font-size: .8rem;
    display: inline-block;
}

/* Services Section CSS */
.allServices {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Forces 2 columns */
    align-items: stretch; /* Ensures all items stretch to same height */
    gap: 2rem; /* Increased gap for better spacing */
    position: relative;
    z-index: 1;
}

.servicesItem {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
    padding: 1.5rem;
    border-radius: 10px;
    background: var(--gradient-white-bg2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Ensures uniform height within row */
}

.servicesItem .portfolio-img {
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.servicesItem .portfolio-img img {
    display: block;
    width: 100%;
    height: 180px; /* Fixed height for uniformity */
    object-fit: cover; /* Ensures images fill space consistently */
    transition: .3s;
}

.servicesItem:hover .portfolio-img img {
    transform: scale(1.1);
}

.servicesItem h3 {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    color: #2c3e50;
    height: 1.5em; /* Fixed height for uniform title sizing */
    overflow: hidden;
}

.servicesItem p {
    font-size: .9rem;
    color: var(--font-color);
    margin-bottom: 1rem;
    height: 60px; /* Fixed height for uniform description */
    overflow: hidden;
}

.servicesItem .readMore {
    padding: 10px 20px;
    font-size: 1rem;
    width: 100%; /* Full width for uniform button size */
    box-sizing: border-box;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .portfolio-gallery {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    .allServices {
        grid-template-columns: 1fr; /* Single column on smaller screens */
    }
}

@media (max-width: 530px) {
    .portfolio-gallery {
        grid-template-columns: 1fr;
    }
    .portfolio-img img {
        height: 200px; /* Slightly smaller for mobile */
    }
    .servicesItem .portfolio-img img {
        height: 160px; /* Adjusted for mobile */
    }
}

/* Portfolio Section CSS */
.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(370px, 1fr));
    gap: 1.5rem;
}

.portfolio-box {
    background: var(--gradient-white-bg2);
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
    transition: all .3s ease;
    overflow: hidden;
}

.portfolio-img {
    width: 100%;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.portfolio-img img {
    display: block;
    width: 100%;
    height: 250px; /* Increased from 220px to ensure full visibility */
    object-fit: contain; /* Changed from cover to contain for full image display */
    transition: .3s;
}

.portfolio-box:hover img {
    transform: scale(1.1);
}

.portfolio-content {
    padding: 1rem;
    text-align: left;
}

.portfolio-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.portfolio-content p {
    font-size: .9rem;
    color: var(--font-color);
    margin: 0 0 1rem 0;
    min-height: 60px;
}

.portfolio-content a.readMore {
    padding: 8px 12px;
    font-size: .8rem;
    display: inline-block;
}

/* Services Section CSS */
.allServices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.servicesItem {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
    padding: 1.5rem;
    border-radius: 10px;
    background: var(--gradient-white-bg2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.servicesItem .portfolio-img {
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.servicesItem .portfolio-img img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: contain; /* Changed to contain for full visibility */
    transition: .3s;
}

.servicesItem:hover .portfolio-img img {
    transform: scale(1.1);
}

.servicesItem h3 {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    color: #2c3e50;
    height: 1.5em;
    overflow: hidden;
}

.servicesItem p {
    font-size: .9rem;
    color: var(--font-color);
    margin-bottom: 1rem;
    height: 60px;
    overflow: hidden;
}

.servicesItem .readMore {
    padding: 10px 20px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .portfolio-gallery {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    .allServices {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 530px) {
    .portfolio-gallery {
        grid-template-columns: 1fr;
    }
    .portfolio-img img {
        height: 200px;
    }
    .servicesItem .portfolio-img img {
        height: 160px;
    }
}