@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

 :root {
    --bg-color: #fdfdfd;
    --text-color: #333;
    --main-color: rgb(208, 4, 230);
    --white-color: #fdfdfd;
    --shadow-color: rgba(0, 0, 0, .2);
    --header-bg: linear-gradient(135deg, #3498db, rgb(208, 4, 230));
}

*::selection {
    background: var(--main-color);
    color: var(--bg-color);
}

.dark-mode {
    --bg-color: #0b061f;
    --text-color: #fdfdfd;
    --shadow-color: rgba(0, 0, 0, .7);
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    /* Reduced padding for smaller navbar */
    background: transparent;
    display: flex;
    align-items: center;
    z-index: 100;
    transition: .5s;
}

.header.sticky {
    background: var(--bg-color);
    box-shadow: 0 .1rem 1rem var(--shadow-color);
}

.logo {
    font-size: 3rem;
    /* Reduced logo size */
    color: var(--main-color);
    font-weight: 600;
    margin-right: auto;
    animation: animate_text 2.0s ease-in infinite;
}

@keyframes animate_text {
    0%,
    100% {
        opacity: 0%;
    }
    50% {
        opacity: 1;
    }
}

.dot-1,
.dot-2,
.dot-3 {
    animation: dots 1.5s infinite;
    opacity: 0;
    font-size: 40px;
    /* Reduced dot size */
}

.dot-1 {
    animation-delay: 0s;
}

.dot-2 {
    animation-delay: 0.5s;
}

.dot-3 {
    animation-delay: 1s;
}

@keyframes dots {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

a {
    color: red;
    transition: .2s;
}

a:hover {
    color: blue;
}

.navbar a {
    position: relative;
    font-size: 1.7rem;
    /* Reduced font size for navbar links */
    color: var(--white-color);
    font-weight: 500;
    margin-right: 2.5rem;
    /* Reduced margin */
}

.header.sticky .navbar a {
    color: var(--text-color);
}

.header.sticky .navbar a.active {
    color: var(--main-color);
}

.navbar a.active::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    /* Reduced underline height */
    width: 100%;
    height: .15rem;
    /* Reduced underline thickness */
    background: var(--white-color);
}

.header.sticky .navbar a::before {
    background: var(--main-color);
    opacity: .7;
}

#darkMode-icon {
    font-size: 2rem;
    /* Reduced dark mode icon size */
    color: black;
    cursor: pointer;
}

.header.sticky #darkMode-icon {
    color: var(--text-color);
    opacity: .9;
}

#menu-icon {
    font-size: 4rem;
    /* Reduced menu icon size */
    color: var(--text-color);
    display: none;
}

section {
    min-height: 100vh;
    padding: 10rem 7% 2rem;
}

.home {
    display: flex;
    align-items: center;
}

.home .home-content {
    max-width: 44rem;
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: .3;
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    margin-bottom: .3rem;
    color: var(--main-color);
}

.home-content p {
    font-size: 2.1rem;
}

.home-content .social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    box-shadow: 0 .2rem .5rem var(--shadow-color);
    font-size: 2rem;
    color: var(--main-color);
    margin: 2.5rem 1.5rem 3rem 0;
    transition: .5s ease;
}

.home-content .social-media a:hover {
    background: var(--main-color);
    color: var(--white-color);
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background: var(--main-color);
    border-radius: .6rem;
    box-shadow: 0 .2rem .5rem var(--shadow-color);
    font-size: 1.6rem;
    color: var(--white-color);
    letter-spacing: .1rem;
    font-weight: 600;
    border: .2rem solid transparent;
}

.btn:hover {
    background: transparent;
    -webkit-text-stroke: 0.1rem var(--main-color);
    text-shadow: -1px -1px 0 var(--main-color),
                 1px -1px 0 var(--main-color),
                 -1px 1px 0 var(--main-color),
                 1px 1px 0 var(--main-color);
}

.home .profession-container {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
}

.home .profession-container .profession-box {
    position: absolute;
    top: 0;
    right: 0;
    width: 768px;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: professionRotate 13s ease-out infinite;
}

@keyframes professionRotate {
    0%,
    20% {
        transform: rotate(0deg);
    }
    25%,
    45% {
        transform: rotate(-90deg);
    }
    50%,
    70% {
        transform: rotate(-180deg);
    }
    75%,
    95% {
        transform: rotate(-270deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}

.home .profession-box .profession {
    position: absolute;
    left: 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    color: var(--main-color);
    transform: rotate(calc(360deg / 4 * var(--i)));
    transform-origin: 384px;
    background: var(--bg-color);
    padding: 13px 0;
}

.home .profession-box .profession:nth-child(1) i {
    margin-right: 15px;
}

.home .profession-box .profession:nth-child(2),
.home .profession-box .profession:nth-child(4) {
    padding-bottom: 20px;
}

.home .profession i {
    font-size: 3.8rem;
}

.home .profession h3 {
    font-size: 3.2rem;
    line-height: 1;
    font-weight: 600;
}

.home .profession-box .circle {
    width: 560px;
    height: 560px;
    border: 3px solid var(--main-color);
    border-radius: 50%;
    z-index: -1;
}

.home .profession-container .overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-top: 50vh solid var(--main-color);
    border-right: 384px solid var(--main-color);
    border-bottom: 50vh solid var(--main-color);
    border-left: 384px solid transparent;
}

.home-img img {
    position: absolute;
    bottom: 0;
    right: 40px;
    pointer-events: none;
    max-width: 480px;
    max-height: 90vh;
    filter: brightness(1.1) contrast(1.2) saturate(1.1) blur(0);
    transition: filter 0.3s ease;
}

span {
    color: var(--main-color);
}

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

.about-img img {
    width: 30vw;
    image-rendering: crisp-edges;
}

.heading {
    font-size: 4.5rem;
    text-align: center;
}

.about-content h2 {
    text-align: left;
    line-height: 1.0;
}

.about-content h3 {
    font-size: 2rem;
}

.about-content p {
    font-size: 17px;
    margin: 2rem 0 3rem;
}

.services {
    min-height: auto;
    padding-bottom: 10rem;
}

.services h2 {
    margin-bottom: 5rem;
}

.services .services-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.services-container .services-box {
    flex: 1 1 30rem;
    background: var(--bg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    box-shadow: 0 0.1rem 0.5rem var(--shadow-color);
    text-align: center;
    border-top: 0.6rem solid var(--main-color);
    border-bottom: 0.6rem solid var(--main-color);
    transition: 0.5s ease;
}

.services-container .services-box:hover {
    box-shadow: 0 0.1rem 2rem var(--shadow-color);
    transform: scale(1.02);
}

.services-box i {
    font-size: 7rem;
    color: var(--main-color);
}

.services-box h3 {
    font-size: 2.6rem;
    transition: 0.5s ease;
}

.services-box:hover h3 {
    color: var(--main-color);
}

.services-box p {
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
}

.skills {
    min-height: auto;
    padding-bottom: 7rem;
    background: var(--second-bg-color);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding: 0 7%;
    border: 2px solid var(--main-color);
    border-radius: 10px;
}

.skills-box {
    background: var(--bg-color);
    border-radius: 2rem;
    padding: 3rem 2rem;
    text-align: center;
    border: 0.2rem solid var(--bg-color);
    transition: 0.5s ease;
}

.skills-box:hover {
    transform: scale(1.02);
}

.skills-box h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--main-color);
}

.skills-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill {
    position: relative;
    padding: 1rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skill-name {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    color: var(--text-color);
}

.skill-name i {
    font-size: 2rem;
    color: var(--main-color);
}

.skill-percent {
    font-size: 1.4rem;
    color: var(--main-color);
}

.skill-bar {
    height: 1rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--main-color) 0%, #ff6b6b 100%);
    border-radius: 1rem;
    transition: width 1s ease-in-out;
}

@media (max-width: 1200px) {
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: 1fr;
    }
}

.portfolio {
    min-height: auto;
    padding-bottom: 10rem;
}

.portfolio h2 {
    margin-bottom: 4rem;
}

.portfolio .portfolio-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    /* Ensures all items are the same height */
    gap: 2.5rem;
    height: 100%;
    /* Optional: Set a specific height if needed */
}

.portfolio-container .portfolio-box {
    position: relative;
    display: flex;
    border-radius: 2rem;
    box-shadow: 0 0 1rem rgba(0, 0, 0, .1);
    overflow: hidden;
}

.portfolio-box img {
    width: 100%;
    height: 100%;
    transition: .5s ease;
}

.portfolio-box:hover img {
    transform: scale(1.1);
}

.portfolio-box .portfolio-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, .1), var(--main-color));
    color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 4rem;
    opacity: 0;
    transition: .5s ease;
}

.portfolio-box:hover .portfolio-layer {
    opacity: 1;
}

.portfolio-layer h4 {
    font-size: 3rem;
}

.portfolio-layer p {
    font-size: 1.6rem;
    margin: .3rem 0 1rem;
}

.portfolio-layer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: var(--white-color);
    border-radius: 50%;
}

.portfolio-layer a i {
    font-size: 2rem;
    color: #333;
}

.testimonial-container {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
    padding: 5rem 1rem;
}

.testimonial-container .testimonial-wrapper {
    position: relative;
    max-width: 90rem;
    width: 100%;
    padding: 5rem;
}

.testimonial-wrapper .testimonial-box {
    padding: 1rem;
    border-radius: 2rem;
    overflow: hidden;
}

.testimonial-content .testimonial-slide {
    display: flex;
    align-items: center;
    flex-direction: column;
    background: var(--bg-color);
    border-radius: 2rem;
    box-shadow: 0 .1rem .5rem var(--shadow-color);
    padding: 3rem 5rem;
    border-top: .8rem solid var(--main-color);
    border-bottom: .8rem solid var(--main-color);
}

.testimonial-slide img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 80%;
    border: .5rem solid var(--bg-color);
    outline: .5rem solid var(--main-color);
}

.testimonial-slide h3 {
    font-size: 2.5rem;
    margin: 2rem 0;
}

.testimonial-slide p {
    font-size: 1.9rem;
    text-align: center;
}

.testimonial-box .swiper-button-next,
.testimonial-box .swiper-button-prev {
    color: var(--main-color);
}

.testimonial-box .swiper-button-next {
    right: 0;
}

.testimonial-box .swiper-button-prev {
    left: 0;
}

.testimonial-box .swiper-pagination-bullet {
    background: rgba(0, 0, 0, .8);
}

.testimonial-box .swiper-pagination-bullet-active {
    background: var(--main-color);
}

.blog {
    padding: 50px 0;
}

/* Start of Selection */
.blog-container {
    max-width: 1250px;
    /* Increased the max-width to allow for larger images */
    margin: 0 auto;
    padding: 0 15px;
}

.blog-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.blog-box {
    background: var(--bg-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 15px var(--shadow-color);
    transition: transform 0.3s ease;
    height: 100%;
}

.blog-box:hover {
    transform: translateY(-5px);
}

.blog-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-content img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-layer {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-layer h4 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--main-color);
}

.blog-layer p {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-color);
    flex-grow: 1;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.blog-footer .date {
    font-size: 1.2rem;
    color: #666;
}

.blog-footer .btn {
    padding: 8px 20px;
    background: var(--main-color);
    color: var(--white-color);
    border-radius: 5px;
    font-size: 1.4rem;
    transition: background 0.3s ease;
}

.blog-footer .btn:hover {
    background: #d41111;
}

.contact {
    min-height: auto;
    padding-bottom: 7rem;
}

.contact h2 {
    margin-bottom: 3rem;
}

/* Contact Section Styling */
.contact {
    min-height: auto;
    padding: 10rem 7% 5rem;
    background: var(--bg-color);
}

.contact .heading {
    text-align: center;
    font-size: 4.5rem;
    margin-bottom: 3rem;
}

.contact .heading span {
    color: var(--main-color);
}

.contact form {
    max-width: 70rem;
    margin: 0 auto;
    text-align: center;
}

.contact .contact-info {
    margin-bottom: 3rem;
}

.contact .contact-info h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.contact .contact-info h2 i {
    color: var(--main-color);
    font-size: 2.5rem;
}

.contact .contact-info h2 a {
    color: var(--text-color);
    text-decoration: none;
    transition: 0.3s;
    margin-left: 0.5rem;
}

.contact .contact-info h2 a:hover {
    color: var(--main-color);
    text-decoration: underline;
}

.contact .contact-note {
    background: rgba(208, 4, 230, 0.1);
    padding: 1.5rem;
    border-radius: 1rem;
    margin: 2rem 0;
    text-align: left;
}

.contact .contact-note h1 {
    font-size: 1.8rem;
    color: #ff3333;
    margin-bottom: 1rem;
}

.contact .contact-note h1 span {
    color: var(--main-color);
}

.contact .contact-note strong {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.6rem;
    line-height: 1.6;
}

/* Form Styling */
.contact form .field {
    margin-bottom: 2rem;
    text-align: left;
}

.contact form label {
    display: block;
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 0.8rem;
    text-transform: capitalize;
}

.contact form input[type="text"],
.contact form input[type="email"] {
    width: 100%;
    padding: 1.2rem 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--bg-color);
    border: 0.2rem solid #e2e8f0;
    border-radius: 0.8rem;
    transition: all 0.3s ease;
}

.contact form input[type="text"]:focus,
.contact form input[type="email"]:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 0 0.2rem rgba(208, 4, 230, 0.25);
    outline: none;
}

.contact form #button {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background: var(--main-color);
    border-radius: 0.8rem;
    box-shadow: 0 0.4rem 1.5rem var(--shadow-color);
    font-size: 1.6rem;
    color: #fff;
    letter-spacing: 0.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact form #button:hover {
    background: #9e03b3;
    transform: translateY(-0.3rem);
    box-shadow: 0 0.6rem 2rem var(--shadow-color);
}

/* Contact Social Icons */
.contact-social {
    margin-top: 3rem;
    text-align: center;
}

.contact-social h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    background: var(--bg-color);
    color: var(--main-color);
    border-radius: 50%;
    font-size: 2.2rem;
    text-decoration: none;
    box-shadow: 0 0.4rem 1.5rem var(--shadow-color);
    transition: all 0.3s ease;
    border: 2px solid var(--main-color);
}

.social-icon:hover {
    background: var(--main-color);
    color: #fff;
    transform: translateY(-0.5rem);
    box-shadow: 0 0.6rem 2rem var(--shadow-color);
}

/* Responsive Design for Social Icons */
@media (max-width: 768px) {
    .social-icons {
        gap: 1.5rem;
    }
    
    .social-icon {
        width: 4rem;
        height: 4rem;
        font-size: 2rem;
    }
}

@media (max-width: 450px) {
    .social-icons {
        gap: 1rem;
    }
    
    .social-icon {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.8rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact {
        padding: 8rem 5% 4rem;
    }
    
    .contact .heading {
        font-size: 3.5rem;
    }
    
    .contact .contact-info h2 {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .contact .contact-note h1 {
        font-size: 1.6rem;
    }
    
    .contact .contact-note strong {
        font-size: 1.4rem;
    }
}

@media (max-width: 450px) {
    .contact {
        padding: 7rem 3% 3rem;
    }
    
    .contact .heading {
        font-size: 3rem;
    }
    
    .contact form #button {
        width: 100%;
    }
}

.contact form .input-box {
    display: flex;
    justify-content: space-between;
    display: flex;
    justify-content: space-between;
    display: flex;
    justify-content: space-between;
    display: flex;
    justify-content: space-between;
    display: flex;
    justify-content: space-between;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 12px;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--bg-color);
    border-radius: .8rem;
    margin: .7rem 0;
    box-shadow: 0 .1rem .5rem var(--shadow-color);
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    height: fit-content;
    padding: 15px;
    font-size: 2.0rem;
    color: var(--text-color);
    background: var(--bg-color);
    border-radius: .8rem;
    margin: .7rem 0;
    box-shadow: 0 .1rem .5rem var(--shadow-color);
    text-align: center;
    border: 1px solid #d4d4e3;
}

.contact form textarea {
    resize: none;
}

.contact form .btn {
    margin-top: 2rem;
    cursor: pointer;
}

label {
    font-size: 25px;
    padding-left: 40%;
}

h1 {
    color: red;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 7%;
    background: var(--main-color);
}

.footer-text p {
    font-size: 1.6rem;
    color: var(--white-color);
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--white-color);
    border-radius: .8rem;
    border: .2rem solid var(--main-color);
    outline: .2rem solid transparent;
    transition: .5s ease;
}

.footer-iconTop a:hover {
    outline-color: var(--white-color);
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: #333;
}


/* BREAKPOINTS */

@media (max-width: 1200px) {
    html {
        font-size: 55%;
        touch-action: pan-x pan-y;
        /* Prevent zooming on mobile */
        overflow-x: hidden;
        /* Prevent horizontal scrolling */
    }
    .home {
        background-image: url('images/back.jpg');
        /* Add your background image */
        background-size: cover;
        /* Ensure the image covers the entire area */
        background-position: center;
        /* Center the background image */
        background-repeat: no-repeat;
        /* Prevent the background image from repeating */
        margin: 1rem 0;
        /* Reduced margin to fit the image better */
    }
    .home .profession-container .profession-box {
        display: none;
        /* Hide profession on mobile */
    }
    .home .profession-container .overlay {
        right: -6%;
    }
    .home-img img {
        right: 0;
    }
    .home-content h1 {
        -webkit-text-stroke: 1px black;
        /* Add stroke to h1 */
        text-stroke: 1px black;
        /* Add stroke to h1 */
    }
    .home-content p {
        color: var(--text-color);
        /* Change paragraph color in light mode */
    }
}

@media (max-width: 1100px) {
    .home .profession-container .profession-box {
        display: none;
        /* Hide profession on mobile */
    }
    .home-img img {
        max-width: 420px;
    }
    .home {
        margin: 1rem 0;
        /* Reduced margin to fit the image better */
    }
}

@media (max-width: 1024px) {
    .header {
        padding: 2rem 3%;
    }
    section {
        padding: 10rem 3% 2rem;
    }
    .home .profession-container .profession-box {
        display: none;
        /* Hide profession on mobile */
    }
    .home .profession-container .overlay {
        right: -12%;
    }
    .home-img img {
        max-width: 400px;
    }
    .home {
        margin: 1rem 0;
        /* Reduced margin to fit the image better */
    }
}

@media (max-width: 991px) {
    .navbar a:nth-child(1) {
        color: var(--main-color);
    }
    .navbar a.active::before {
        background: var(--main-color);
        opacity: .7;
    }
    .home .home-content {
        max-width: 50rem;
    }
    .home .profession-container .profession-box {
        display: none;
        /* Hide profession on mobile */
    }
    .home .profession-container .overlay {
        right: -30%;
    }
    .home-img img {
        display: none;
    }
    .footer {
        padding: 2rem 3%;
    }
    .home {
        margin: 1rem 0;
        /* Reduced margin to fit the image better */
    }
}

@media (max-width: 896px) {
    .navbar a:nth-child(2) {
        color: var(--main-color);
    }
    .home .profession-container .profession-box {
        display: none;
        /* Hide profession on mobile */
    }
    .home .profession-container .overlay {
        right: -43%;
    }
    .home {
        margin: 1rem 0;
        /* Reduced margin to fit the image better */
    }
}

@media (max-width: 879px) {
    .portfolio .portfolio-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 780px) {
    .navbar a:nth-child(2) {
        color: var(--white-color);
    }
}

/* Base mobile styles */
@media (max-width: 767px) {
    html {
        font-size: 55%;
        touch-action: pan-x pan-y;
        overflow-x: hidden;
    }

    /* Header */
    .header {
        padding: 1.5rem 4%;
    }

    .logo {
        font-size: 2.4rem;
        max-width: 60%;
    }

    #menu-icon {
        display: block;
        font-size: 3rem;
    }

    #darkMode-icon {
        right: 7rem;
        font-size: 2.4rem;
    }

    /* Navigation */
    .navbar {
        position: fixed;
        top: 8rem;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        padding: 2rem 4%;
        transition: .3s;
        z-index: 99;
    }

    .navbar.active {
        left: 0;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        text-align: center;
    }

    /* Home Section */
    .home {
        padding: 12rem 5% 8rem;
        flex-direction: column-reverse;
        text-align: center;
    }

    .home-content h1 {
        font-size: 4.5rem;
        line-height: 1.2;
    }

    .home-content h3 {
        font-size: 2.6rem;
    }

    .home-content p {
        font-size: 1.6rem;
        margin: 2rem 0;
    }

    .home-img img {
        max-width: 70%;
        margin: 0 auto 3rem;
    }

    /* About Section */
    .about {
        flex-direction: column;
        text-align: center;
    }

    .about-img img {
        max-width: 80%;
        margin: 0 auto 3rem;
    }

    /* Services */
    .services-container {
        grid-template-columns: 1fr;
    }

    /* Portfolio */
    .portfolio-container {
        grid-template-columns: 1fr;
    }

    /* Testimonials */
    .testimonial-wrapper {
        padding: 3rem 0;
    }

    .testimonial-box .testimonial-content {
        padding: 3rem 2rem 4rem;
    }

    /* Contact */
    .contact form .input-box input,
    .contact form textarea {
        width: 100%;
    }

    .home .profession-container {
        display: none;
    }
    
    .home .profession-box {
        display: none;
    }
    
    .home .profession-container .overlay {
        display: none;
    }
}

/* Tablet styles */
@media (min-width: 768px) and (max-width: 991px) {
    html {
        font-size: 58%;
    }

    .home {
        padding: 15rem 5% 10rem;
    }

    .services-container,
    .portfolio-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop styles */
@media (min-width: 992px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }

    .services-container,
    .portfolio-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large desktop styles */
@media (min-width: 1200px) {
    html {
        font-size: 62.5%;
    }
}

/* Existing styles below */
@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }
    #darkMode-icon {
        position: fixed;
        right: 7rem;
        font-size: 3.5rem;
        /* Increased size to 4rem */
        color: var(--text-color);
        margin-bottom: .1rem;
    }
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
        display: none;
    }
    .navbar.active {
        display: block;
    }
    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        color: var(--text-color);
    }
    .navbar a:nth-child(1),
    .navbar a:nth-child(2) {
        color: var(--text-color);
    }
    .navbar a.active {
        color: var(--main-color);
    }
    .navbar a::before {
        display: none;
    }
    .home {
        padding: 0 3% 23rem;
        justify-content: center;
        text-align: center;
        margin: 1rem 0;
        /* Reduced margin to fit the image better */
    }
    .home-content h3 {
        font-size: 2.6rem;
    }
    .home-content h1 {
        font-size: 5rem;
    }
    .home-content .social-media a {
        margin: 2.5rem .75rem 3rem;
    }
    .home .profession-container {
        left: 0;
        width: 100%;
        height: 100%;
    }
    .home .profession-container .profession-box {
        display: none;
        /* Hide profession on mobile */
    }
    .home .profession-box .profession {
        padding: 0 13px;
        left: auto;
        transform-origin: 0;
    }
    .home .profession-box .profession:nth-child(1) {
        transform: rotate(-90deg) translate(-120px, -210px);
    }
    .home .profession-box .profession:nth-child(1) i {
        margin-right: 0;
    }
    .home .profession-box .profession:nth-child(2) {
        transform: rotate(0deg) translate(0, -325px);
    }
    .home .profession-box .profession:nth-child(3) {
        transform: rotate(90deg) translate(-115px, -450px);
    }
    .home .profession-box .profession:nth-child(4) {
        transform: rotate(180deg) translate(-220px, -325px);
    }
    .home .profession-box .circle {
        position: fixed;
        width: 670px;
        height: 670px;
        z-index: -1;
    }
    .home .profession-container .overlay {
        position: fixed;
        top: 70rem;
        left: 50%;
        right: 0;
        transform: rotate(90deg) translate(-50%, 50%) scaleY(3);
        border-width: 23.9rem;
    }
    .about {
        flex-direction: column-reverse;
        text-align: center;
    }
    .about-content h2 {
        text-align: center;
    }
    .about-img img {
        width: 70vw;
        margin-top: -2rem;
    }
    .testimonial-container .testimonial-wrapper {
        padding: 5rem 0;
    }
    .testimonial-content .testimonial-slide {
        padding: 3rem 2rem;
    }
    .testimonial-box .swiper-button-next,
    .testimonial-box .swiper-button-prev {
        display: none;
    }
    /* Hide buttons on mobile */
    .home .btn {
        display: none;
    }
    /* Hide logo on mobile */
    .logo {
        display: none;
    }
    .testimonial-box .swiper-button-prev {
        display: none;
    }
    /* Hide buttons on mobile */
    .home .btn {
        display: none;
    }
    /* Hide logo on mobile */
    .logo {
        display: none;
    }
    .testimonial-box .swiper-button-prev {
        display: none;
    }
    /* Hide buttons on mobile */
    .home .btn {
        display: none;
    }
    /* Hide logo on mobile */
    .logo {
        display: none;
    }
}

@media (max-width: 580px) {
    .portfolio .portfolio-container {
        grid-template-columns: 1fr;
    }
    .home {
        margin: 1rem 0;
        /* Reduced margin to fit the image better */
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
        touch-action: pan-x pan-y;
        /* Prevent zooming on mobile */
        overflow-x: hidden;
        /* Prevent horizontal scrolling */
    }
    #darkMode-icon {
        right: 6rem;
    }
    .home .profession-box .profession:nth-child(1) {
        transform: rotate(-90deg) translate(-110px, -220px);
    }
    .home .profession-box .profession:nth-child(2) {
        transform: rotate(0deg) translate(5px, -325px);
    }
    .home .profession-box .profession:nth-child(3) {
        transform: rotate(90deg) translate(-105px, -440px);
    }
    .home .profession-box .profession:nth-child(4) {
        transform: rotate(180deg) translate(-210px, -325px);
    }
    .home .profession-container .overlay {
        top: 80rem;
    }
    .contact form .input-box input {
        width: 100%;
    }
    .footer {
        flex-direction: column-reverse;
    }
    .footer p {
        text-align: center;
        margin-top: 2rem;
    }
    .home {
        margin: 1rem 0;
        /* Reduced margin to fit the image better */
    }
}

@media (max-width: 365px) {
    .about-img img {
        width: 90vw;
    }
}

@media (max-width: 315px) {
    .home-content h1 {
        font-size: 4.5rem;
    }
}

@media (min-width: 600px) {
    .container {
        flex-direction: row;
    }
    .main {
        flex: 2;
    }
    .header,
    .footer {
        flex: 1;
    }
}

@media (min-width: 600px) {
    .container {
        flex-direction: row;
    }
    .main {
        flex: 2;
    }
    .header,
    .footer {
        flex: 1;
    }
}

.scroll-down {
    display: none;
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
}

.scroll-down span {
    font-size: 2rem;
    color: var(--main-color);
    margin-bottom: 1rem;
    animation: fadeInOut 1.5s ease-in-out infinite;
}

.scroll-down i {
    font-size: 3.5rem;
    color: var(--main-color);
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(10px);
        opacity: 0.5;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInOut {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

@media (max-width: 767px) {
    .scroll-down {
        display: flex;
    }
}