* {
    font-family: 'Outfit', 'Orpheus Pro', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    word-spacing: 2px;
}

.section-1,
.section-2,
.section-3,
.section-4,
.section-5,
.section-6 {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.section-1.visible,
.section-2.visible,
.section-3.visible,
.section-4.visible,
.section-5.visible,
.section-6.visible,
.section-7.visible {
    opacity: 1;
    transform: translateY(0);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 65px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#night {
    background: none;
    border: none;
}

.rhs-elements {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-right: 30px;
}

.navbar a {
    font-size: 14px;
    color: #000;
    text-decoration: none;
    padding: 10px;
    transition: border-bottom 0.6s;
}

.navbar a:hover {
    border-bottom: 1px solid black;
}

.navbar img {
    max-width: 30px;
    height: 30px;
    object-fit: contain;
    display: flex;
}

.letstalk {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: black;
    color: white !important;
    width: 120px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 20px !important;
    transition: none !important;
}

.section-1 {
    display: flex;
    width: 100%;
    height: 800px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #ececee;
}

.section-1 img {
    max-width: 180px;
    border-radius: 50%;
    position: relative;
    margin-top: 140px;
    aspect-ratio: 1/1;
    object-fit: cover;
    transition: filter 0.5s ease-in;
}

.section-1 img:hover {
    filter: grayscale(60%);
}

.intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 50px;
}

.section1-h1 {
    margin-top: 15px;
}

.section1-h1 h1 {
    font-size: 40px;
    line-height: 60px;
}

.introhello {
    background: linear-gradient(90deg, #1789cb 0%, rgb(223, 80, 171) 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.introlinks {
    margin-top: 20px;
}

.intro p {
    color: #6b6b6b;
    width: 600px;
    line-height: 30px;
    margin-top: 10px;
    font-size: 17px;
}

.introlinks a {
    color: #000;
    text-decoration: none;
    padding: 12px;
    border-radius: 50px;
    transition: background-color 0.7s;
}

.introlinks a:hover {
    background-color: rgb(236, 236, 236);
}

.section-2 {
    display: flex;
    /* margin-top: 90px; */
    width: 100%;
    height: 640px;
    justify-self: center;
    align-items: center;
    justify-content: center;
}

.mypictureclass {
    background: url('Assets/watercolor.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 390px;
    height: 400px;
    border-radius: 8px;
    margin-top: 25px;
}

.aboutmeimage img {
    position: relative;
    max-width: 50%;
    border-radius: 5px;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background-color: rgb(255, 255, 255);
    border-radius: 5px;
    width: 200px;
    position: relative;
    text-align: center;
    top: 95%;
    left: 25%;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.303);
}

.social-icons img {
    width: 40px;
    height: 48px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s;
    box-shadow: none;
    background: none;
}

.about-me {
    position: relative;
    width: 50%;
    height: 350px;
    top: 5%;
    left: 7%;
}

.underline-text {
    background-image: linear-gradient(90deg, #1789cb 0%, rgb(223, 80, 171) 90%);
    background-repeat: no-repeat;
    background-size: 100% 3px;
    background-position: 0 100%;
    padding-bottom: 10px;
}

.about-me p {
    font-size: 15px;
    word-spacing: 2px;
    color: #4b5563;
    word-spacing: 2px;
    line-height: 20px;
    width: 560px;
    text-align: justify;
}

.about-me a {
    padding: 10px;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    align-items: center;
    border: 2px solid black;
    align-items: center;
}

.aboutbottom {
    margin-top: 50px;
    display: flex;
}

.aboutbottom img {
    max-width: 20px;
    margin-right: 10px;
    align-items: center;
}

.downloadcv a {
    padding: 15px 20px;
}

.downloadcv {
    width: 270px;
    margin-left: 15px;
    font-size: 15px;
    color: black;
    border: 2px solid black;
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s ease-in-out;
}

.section-3 {
    width: 100%;
    height: 1000px;
    background-color: #ececee;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    text-align: center;
    align-items: center;
}

.skillscontainer {
    width: 70%;
    min-height: 600px;
    display: flex;
    flex-wrap: wrap;
    margin-top: 40px;
    justify-content: center;
    gap: 80px;
}

.WPT,
.SPT,
.WD,
.SE,
.SRW {
    width: 470px;
    height: 198px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    border-radius: 120px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.118);
}

.skillscontainer img {
    width: 40px;
}

.section-3 h3 {
    font-weight: 400;
    font-size: 17px;
}

.section-3 p {
    color: #4b5563;
}

.section-3 button {
    width: 190px;
    padding: 10px;
    border: none;
    background: none;
    display: flex;
    justify-content: center;
    gap: 15px;
    cursor: pointer;
    border-radius: 2px;
}

.section-3 button:hover .arrow {
    transform: translateX(6px);
}

.arrow {
    width: 17px !important;
    text-align: center;
    transition: transform 0.5s ease;
}

.skill-details {
    display: none;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-content {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(2px);
    padding: 20px;
    border-radius: 3px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
    font-size: 24px;
    margin-bottom: 15px;
    background-image: linear-gradient(90deg, #005d93 0%, rgb(172, 21, 117) 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-content p {
    font-size: 16px;
    color: #d8d8d8;
    line-height: 24px;
    margin-bottom: 20px;
}

.close-modal {
    padding: 10px 20px;
    background-color: black;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.close-modal:hover {
    background-color: #333;
}

.section-4 {
    width: 100%;
    display: block;
    text-align: center;
    height: 690px;
    justify-content: center;
    align-items: center;
}

.underline-textskills {
    display: inline-block;
    background-image: linear-gradient(90deg, #1789cb 0%, rgb(223, 80, 171) 90%);
    background-repeat: no-repeat;
    background-size: 100% 3px;
    background-position: 0 100%;
    padding-bottom: 10px;
    text-align: center;
    font-size: 30px;
    margin-top: 60px;
}

.toolscontainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    justify-self: center;
    align-items: center;
    gap: 32px 28px;
    height: 450px;
    width: 33%;
    margin-top: 40px;
}

.toolbox {
    width: 100px;
    height: 100px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    line-height: 30px;
}

.toolbox img {
    width: 50px;
    cursor: pointer;
}

.section-5 {
    width: 100%;
    height: 1300px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ececee;
}

.projcontainer {
    width: 100%;
    height: 1200px;
    margin-top: 30px;
    justify-self: center;
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    justify-content: center;
}

.projbox1,
.projbox2,
.projbox3,
.projbox3-5,
.projbox4,
.projbox5,
.projbox6 {
    width: 350px;
    height: 400px;
    display: flex;
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.1);
    flex-direction: column;
}



.img1 {
    width: 100%;
    height: 220px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background-image: url(projects/karmyaura.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.img2 {
    width: 100%;
    height: 220px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background-image: url(projects/manu.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.img3 {
    width: 100%;
    height: 220px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background-image: url(projects/Screenshot\ 2025-08-16\ 023548.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.img3-5{
    background-image: url(projects/huawei.png);
    width: 100%;
    height: 220px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.img4 {
    width: 100%;
    height: 220px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background-image: url(projects/Screenshot\ 2025-08-16\ 022734.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.img5 {
    width: 100%;
    height: 220px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background-image: url(projects/farm.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.img6 {
    width: 100%;
    height: 220px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background-image: url(projects/Screenshot\ 2025-08-16\ 022324.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.projtext {
    width: 95%;
    display: flex;
    justify-self: center;
    align-self: center;
    flex-direction: column;
    text-align: justify;
    margin-top: 20px;
}

.projtext p {
    margin-top: 10px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #4b5563;
}

.projtext h5 {
    font-size: 12px;
    word-spacing: 5px;
    color: #4b5563;
    font-weight: bold;
}

.viewlivea {
    width: 40%;
    padding: 10px;
    margin-top: 15px;
    height: 30px;
    border-radius: 5px;
    display: flex;
    flex-direction: row;
    align-items: center;
    color: black;
    text-decoration: none;
    gap: 7px;
    font-weight: lighter;
    font-size: 14px;
    transition: background-color 0.5s ease-in;
}

.viewlivea:hover {
    background-color: rgb(229, 230, 235);
}

.viewlivea:hover img {
    translate: 180;
}

.viewlivea img {
    width: 15px;
}

.viewlivea:hover img {
    transform: rotateX('30.3');
}

.viewall {
    cursor: pointer;
    width: 150px;
    border-radius: 7px;
    background-color: rgba(229, 230, 235, 0.637);
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 10px 20px;
    transition: background-color 0.4s ease-in-out;
}

.viewall:hover .arrow {
    transform: translateX(12px);
}

.viewall:hover {
    background-color: rgba(182, 182, 192, 0.505);
}

.section-6 {
    width: 100%;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.section-6 a {
    width: 240px;
    gap: 25px;
    font-size: 15px;
    padding: 15px 30px;
    border-radius: 5px;
    background-color: black;
    display: flex;
    flex-direction: row;
    text-decoration: none;
    color: white;
    align-items: center;
    margin-top: 25px;
    align-self: center;
}

.section-6 a:hover .arrow {
    transform: translateX(13px);
}

.section-7 {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-7 h2 {
    margin-left: 20px;
}

.footerlinks {
    display: flex;
    gap: 30px;
}

.footerlinks a {
    text-decoration: none;
    color: #000;
    font-size: 15px;
}

.footerimgs {
    display: flex;
    gap: 20px;
    margin-right: 20px;
}

.footerimgs img {
    width: 22px;
    height: 20px;
    filter: grayscale(100%);
}

body.dark-mode {
    background-color: #111;
    color: #f5f5f5;
    transition: 0.3s ease-in-out;
}

body.dark-mode .navbar a {
    color: #f5f5f5;
    transition: 0.3s ease-in-out;
}

body.dark-mode .navbar a:hover {
    border-bottom: 1px solid white;
    transition: 0.3s ease-in-out;
}

body.dark-mode .navbar img {
    filter: invert(1);
    transition: 0.3s ease-in-out;
}

body.dark-mode .letstalk {
    background-color: white;
    transition: 0.3s ease-in-out;
    color: black !important;
}

body.dark-mode .section-1 {
    background-color: black;
    transition: 0.3s ease-in-out;
}

body.dark-mode .intro p {
    color: #cccccc;
    transition: 0.3s ease-in-out;
}

body.dark-mode .introlinks a[style*="background-color: black"] {
    background-color: #fdfdfd !important;
    color: black !important;
    transition: 0.3s ease-in-out;
}

body.dark-mode .introlinks a[style*="border: 2px solid black"] {
    border: 2px solid rgb(65, 63, 63) !important;
    color: #f5f5f5 !important;
    transition: 0.3s ease-in-out;

}

body.dark-mode .vaw:hover {
    transition: none;
    background: none;
}

body.dark-mode .section-2 {
    background-color: #1b1b21;
    transition: 0.3s ease-in-out;

}


body.dark-mode .social-icons {
    background-color: rgb(0, 0, 0);
    transition: 0.3s ease-in-out;

}

body.dark-mode .social-icons img {
    filter: invert(1);
    transition: 0.3s ease-in-out;
}

body.dark-mode .about-me p {
    color: #cccccc;
    transition: 0.3s ease-in-out;
}

body.dark-mode .aboutbottom a[style*="background-color: black"] {
    background-color: white !important;
    color: white !important;
    transition: 0.3s ease-in-out;
}

body.dark-mode .aboutbottom a[style*="color: black"] {
    color: black !important;
    border: 2px solid white !important;
    transition: 0.3s ease-in-out;
}

body.dark-mode .downloadcv {
    color: white !important;
    border: 2px solid white !important;
    transition: 0.3s ease-in-out;
}

body.dark-mode .aboutbottom img {
    filter: invert(1);
    transition: 0.3s ease-in-out;
}

body.dark-mode .section-3 {
    background-color: black;
    transition: 0.3s ease-in-out;
}

body.dark-mode .WPT,
body.dark-mode .SPT,
body.dark-mode .WD,
body.dark-mode .SE,
body.dark-mode .SRW {
    background: linear-gradient(180deg, #292828, #000000, #292828);
    transition: 0.3s ease-in-out;

}

body.dark-mode .skillscontainer img {
    filter: invert(1);
    transition: 0.3s ease-in-out;
}

body.dark-mode .section-3 p {
    color: #cccccc;
    transition: 0.3s ease-in-out;
}

body.dark-mode .section-3 button {
    color: #f5f5f5;
    transition: 0.3s ease-in-out;
}

body.dark-mode .arrow {
    filter: invert(1);
    transition: 0.3s ease-in-out;
}

body.dark-mode .modal-content {
    background-color: #000000;
    color: white;
    transition: 0.3s ease-in-out;
}

body.dark-mode .modal-content p {
    color: #cccccc;
    transition: 0.3s ease-in-out;
}

body.dark-mode .close-modal {
    background-color: #333;
    color: white;
    transition: 0.3s ease-in-out;
}

body.dark-mode .close-modal:hover {
    background-color: #555;
    transition: 0.3s ease-in-out;
}

body.dark-mode .section-4 {
    background-color: #1b1b21;
    transition: 0.3s ease-in-out;
}

body.dark-mode .toolbox {
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
    transition: 0.3s ease-in-out;
}


body.dark-mode .section-5 {
    background-color: #171614;
    transition: 0.3s ease-in-out;
}

body.dark-mode .projbox1,
body.dark-mode .projbox2,
body.dark-mode .projbox3,
body.dark-mode .projbox4,
body.dark-mode .projbox5,
body.dark-mode .projbox6 {
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
    border-radius: 10px;
    transition: 0.3s ease-in-out;
    background-color: rgb(27, 27, 33);
}

body.dark-mode .projtext p {
    color: #cccccc;
    transition: 0.3s ease-in-out;
}

body.dark-mode .projtext h5 {
    color: #cccccc;
    transition: 0.3s ease-in-out;
}

body.dark-mode .viewlivea {
    color: #f5f5f5;
    background-color: rgba(128, 128, 128, 0.493);
    transition: 0.3s ease-in-out;
}

body.dark-mode .viewlivea:hover {
    background-color: rgb(50, 50, 50);
    transition: 0.3s ease-in-out;
}

body.dark-mode .viewlivea img {
    filter: invert(1);
    transition: 0.3s ease-in-out;
}

body.dark-mode .viewall {
    background-color: rgba(50, 50, 50, 0.637);
    color: #f5f5f5;
    transition: 0.3s ease-in-out;
}

body.dark-mode .viewall:hover {
    background-color: rgba(100, 100, 100, 0.505);
    transition: 0.3s ease-in-out;
}

body.dark-mode .section-6 {
    background-color: #1b1b21;
    transition: 0.3s ease-in-out;
}

body.dark-mode h1.discuss {
    color: white;
    transition: 0.3s ease-in-out;
}


body.dark-mode .section-6 h1 {
    color: rgb(255, 255, 255);
    transition: 0.3s ease-in-out;
}

body.dark-mode .section-6 a {
    background-color: #ffffff;
    color: black;
    transition: 0.3s ease-in-out;
}

body.dark-mode .section-6 img {
    filter: invert(1);
    transition: 0.3s ease-in-out;
}

body.dark-mode .section-7 {
    border-top: 1px solid rgba(255, 255, 255, 0.356);
    background-color: #171614;
    transition: 0.3s ease-in-out;
}

body.dark-mode .section-7 h2 {
    color: #f5f5f5;
    transition: 0.3s ease-in-out;
}

body.dark-mode .footerlinks a {
    color: #f5f5f5;
    transition: 0.3s ease-in-out;
}

body.dark-mode .footerimgs img {
    filter: invert(1);
    transition: 0.3s ease-in-out;
}

/* Hamburger Menu Styles */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 20px;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: #000;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

body.dark-mode .menu-toggle span {
    background: #ffffff;
    transition: 0.3s ease-in-out;

}

/* Responsive Styles for iPad (768px to 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {

    /* Navbar: Hamburger Menu */
    .navbar {
        height: 60px;

    }

    .navbar h3 {
        margin-left: 20px;
        font-size: 20px;
    }

    .menu-toggle {
        display: flex;
    }

    .rhs-elements {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgb(255, 255, 255);
        /* backdrop-filter: blur(10px); */
        padding: 20px;
        align-items: flex-start;
        gap: 15px;
    }

    .rhs-elements.active {
        display: flex;
    }

    .rhs-elements a,
    .rhs-elements .letstalk {
        width: 100%;
        text-align: left;
        padding: 10px 20px;
        border-radius: 5px;
    }

    .rhs-elements a:hover {
        border-bottom: none;
    }

    .rhs-elements .letstalk {
        width: auto;
        display: inline-flex;
        justify-content: flex-start;
    }

    .rhs-elements #night {
        align-self: center;
    }

    body.dark-mode .rhs-elements {
        background: rgba(0, 0, 0, 0.95);
        transition: 0.3s ease-in-out;

    }

    /* Section 1: Image on own line, reduced text sizes */
    .section-1 {
        height: 700px;
        flex-direction: column;
        padding: 20px;
    }

    .section-1 img {
        margin-top: 100px;
        max-width: 160px;
    }

    .section1-h1 h1 {
        font-size: 28px;
        line-height: 40px;
    }

    .intro p {
        font-size: 18px;
        width: 95%;
        max-width: 500px;
        line-height: 26px;
    }

    .introlinks a {
        font-size: 13px;
        padding: 12px 25px;
    }

    .introlinks a[style*="padding: 15px 50px"] {
        padding: 12px 35px !important;
    }

    .introlinks a[style*="padding: 15px 30px"] {
        padding: 12px 25px !important;
    }

    /* Section 2: Image at top, about-me below */
    .section-2 {
        flex-direction: column;
        height: 950px;
        padding: 20px;
    }

    .aboutmeimage {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .mypictureclass {
        width: 350px;
        height: 360px;
    }

    .social-icons {
        width: 220px;
        left: 50%;
        transform: translateX(-50%);
        top: 92%;
    }

    .social-icons img {
        width: 44px;
        height: 44px;
    }

    .about-me {
        width: 80%;
        max-width: 500px;
        height: auto;
        top: 0;
        left: 0;
        text-align: center;
        margin-top: 70px;
    }

    .about-me h1 {
        font-size: 28px;
        text-align: center;
    }

    .about-me p {
        font-size: 16px;
        width: 100%;
        line-height: 24px;
    }

    .aboutbottom {
        flex-direction: row;
        gap: 20px;
        justify-self: center;
    }

    .aboutbottom a {
        font-size: 13px;
        padding: 12px 35px;
    }

    .downloadcv {
        width: auto;
        margin-left: 0;
        padding: 12px 25px;
    }

    /* Section 3: Skills title at top, each skill on own line */
    .section-3 {
        display: flex;
        height: 1490px;
        padding: 20px;
        justify-content: center;
    }

    .section-3 h1 {
        font-size: 28px;
    }

    .skillscontainer {
        width: 70%;
        flex-direction: column;
        gap: 25px;
        margin-top: 20px;
        justify-self: center;
    }

    .WPT,
    .SPT,
    .WD,
    .SE,
    .SRW {
        width: 600px;
        height: 220px;
        border-radius: 12px;
    }

    .section-3 h3 {
        font-size: 17px !important;
    }

    .section-3 button {
        font-size: 15px;
    }

    /* Section 4: Two tools per line */
    .section-4 {
        height: 650px;
        padding: 20px;
    }

    .section-4 h1 {
        font-size: 28px;
    }

    .toolscontainer {
        width: 70%;
        height: auto;
        flex-wrap: wrap;
        justify-content: center;
        gap: 25px;
        margin-top: 20px;
    }

    .toolbox {
        width: 110px;
        height: 110px;
    }

    .toolbox img {
        width: 55px;
    }

    .toolbox p {
        font-size: 16px;
    }

    /* Section 5: Each projbox on own line */
    .section-5 {
        height: 2360px;
        padding: 20px;
    }

    .section-5 h1 {
        font-size: 28px;
    }

    .projcontainer {
        width: 80%;
        height: auto;
        flex-direction: column;
        align-items: center;
        gap: 40px;
        margin-top: 20px;
    }

    .projbox1,
    .projbox2,
    .projbox3,
    .projbox3-5,
    .projbox4,
    .projbox5,
    .projbox6 {
        width: 100%;
        max-width: 500px;
        height: 470px;
    }

    .projtext h3 {
        font-size: 17px;
    }

    .projtext p {
        font-size: 17px;
    }

    .projtext h5 {
        font-size: 12px;
    }

    .viewlivea {
        font-size: 16px;
        margin-top: 30px;
        width: 30%;
    }

    .viewall {
        font-size: 18px;
        margin-top: 40px;
        padding: 10px 18px;
        text-decoration: none;
    }

    /* Section 6: Centered, compact layout */
    .section-6 {
        height: 350px;
        padding: 20px;
    }

    .section-6 h1 {
        font-size: 24px;
    }

    .section-6 h1.discuss {
        font-size: 18px;
        margin-top: 12px;
    }

    .section-6 a {
        font-size: 13px;
        padding: 12px 25px;
        width: 220px;
    }

    /* Section 7: SELIM centered, links left, images centered */
    .section-7 {
        height: 200px;
        flex-direction: column;
        align-items: center;
        background-color: #ececee;
        justify-content: center;
        gap: 10px;
    }

    .section-7 h2 {
        margin-left: 0;
        font-size: 20px;
        text-align: center;
    }

    .footerlinks {
        justify-content: flex-start;
        width: 100%;
        font-weight: bold;
        flex-direction: column;
        padding-left: 20px;
    }

    .footerlinks a {
        font-size: 13px;
    }

    .footerimgs {
        gap: 40px !important;
        justify-content: center;
    }

    .footerimgs img {
        width: 21px;
        height: 21px;
    }

    /* Dark Mode Responsive Adjustments for iPad */
    body.dark-mode .rhs-elements a,
    body.dark-mode .rhs-elements .letstalk {
        color: #f5f5f5;
        transition: 0.3s ease-in-out;

    }

    body.dark-mode .rhs-elements .letstalk {
        background-color: white;
        color: black !important;
        transition: 0.3s ease-in-out;

    }

    body.dark-mode .toolbox {
        box-shadow: 0 2px 8px rgba(255, 255, 255, 0.15);
        transition: 0.3s ease-in-out;

    }

    body.dark-mode .toolbox::before,
    body.dark-mode .toolbox::after {
        background: rgba(200, 200, 255, 0.9);
        transition: 0.3s ease-in-out;

    }
}


/* Responsive Styles for Tablet and Phone (≤768px) */
@media screen and (max-width: 768px) {

    /* Navbar: Hamburger Menu */
    .navbar {
        z-index: 500;
        height: 60px;
    }

    .navbar h3 {
        margin-left: 20px;
        font-size: 20px !important;
    }

    .menu-toggle {
        display: flex;
    }

    .rhs-elements {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: whitesmoke;
        backdrop-filter: blur(10px);
        padding: 20px;
        align-items: flex-start;
        gap: 15px;
    }

    .rhs-elements.active {
        display: flex;

    }

    .rhs-elements a,
    .rhs-elements .letstalk {
        width: 100%;
        text-align: left;
        padding: 10px 20px;
        border-radius: 5px;
    }

    .rhs-elements a:hover {
        border-bottom: none;
    }

    .rhs-elements .letstalk {
        width: auto;
        display: inline-flex;
        justify-content: flex-start;
    }

    .rhs-elements #night {
        align-self: center;
    }

    body.dark-mode .rhs-elements {
        background: rgba(0, 0, 0, 0.95);
        transition: 0.3s ease-in-out;

    }

    /* Section 1: Image on own line, reduced text sizes */
    .section-1 {
        height: 670px;
        /* Increased for vertical stacking */
        flex-direction: column;
        padding: 20px;
    }

    .section-1 img {
        margin-top: 60px;
        max-width: 150px;
    }

    .section1-h1 h1 {
        font-size: 24px !important;
        line-height: 36px;
    }

    .intro p {
        font-size: 15px;
        width: 100%;
        margin-top: 20px;
        max-width: 420px;
        line-height: 24px;
    }

    .introlinks {
        height: 150px;
        align-items: center;
        gap: 20px;
        text-align: center;
    }

    .introlinks a {
        font-size: 12px;
        padding: 10px 5px !important;
    }

    .introlinks a[style*="padding: 15px 50px"] {
        padding: 15px 110px !important;
        border-radius: 5px;
        margin-right: -10px !important;
    }

    .introlinks a[style*="padding: 15px 30px"] {
        padding: 15px 100px !important;
        border-radius: 5px;
        position: relative !important;
        top: 15%;
    }

    /* Section 2: Image at top, about-me below */
    .section-2 {
        flex-direction: column;
        height: 950px;
        /* Increased for vertical stacking */
        padding: 20px;
    }

    .aboutmeimage {
        width: 90%;
        display: flex;
        justify-content: center;
    }

    .mypictureclass {
        width: 300px;
        height: 320px;
    }

    .social-icons {
        width: 190px;
        left: 50%;
        transform: translateX(-50%);
        top: 94%;
    }

    .social-icons img {
        width: 38px;
        height: 38px;
    }

    .about-me {
        width: 90%;
        max-width: 400px;
        height: auto;
        top: 0;
        left: 0;
        /* text-align: center; */
        margin-top: 70px;
    }

    .about-me h1 {
        font-size: 24px !important;
    }

    .about-me p {
        font-size: 14px;
        width: 100%;
        line-height: 22px;
    }

    .aboutbottom {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .aboutbottom a {
        font-size: 12px;
        padding: 10px 30px;
    }

    .downloadcv,
    .mipro {
        width: 100%;
        margin-left: 0;
        padding: 15px 20px !important;
    }

    /* Section 3: Skills title at top, each skill on own line */
    .section-3 {
        height: 1400px;
        /* Increased for single-column layout */
        padding: 20px;
    }

    .section-3 h1 {
        font-size: 30px !important;
    }

    .skillscontainer {
        width: 90%;
        flex-direction: column;
        gap: 33px;
        margin-top: 20px;
    }

    .WPT,
    .SPT,
    .WD,
    .SE,
    .SRW {
        width: 100%;
        height: 200px;
        border-radius: 100px;
    }

    .section-3 h3,
    h2 {
        font-size: 16px !important;
    }

    .section-3 button {
        font-size: 12px;
    }

    /* Section 4: Two tools per line */
    .section-4 {
        height: 950px;
        /* Increased for wrapping */
        padding: 20px;
    }

    .section-4 h1 {
        font-size: 30px !important;
    }

    .toolscontainer {
        width: 90%;
        height: auto;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        margin-top: 20px;
    }

    .toolbox {
        width: 120px;
        height: 120px;
    }

    .toolbox img {
        width: 60px;
    }

    .toolbox p {
        font-size: 14px;
    }

    /* Section 5: Each projbox on own line */
    .section-5 {
        height: 2800px;
        /* Increased for single-column layout */
        padding: 20px;
    }

    .section-5 h1 {
        font-size: 30px !important;
    }

    .projcontainer {
        width: 90%;
        height: auto;
        flex-direction: column;
        align-items: center;
        gap: 35px;
        margin-top: 20px;
    }

    .projbox1,
    .projbox2,
    .projbox3,
    .projbox3-5,
    .projbox4,
    .projbox5,
    .projbox6 {
        width: 100%;
        max-width: 400px;
        height: auto;
        min-height: 400px;
    }
        .projbox3-5{
            margin-top: 30px;
        }
    .projtext h3 {
        font-size: 16px !important;
    }

    .projtext p {
        font-size: 14px !important;
    }

    .projtext h5 {
        font-size: 11px !important;
    }

    .viewlivea {
        font-size: 12px;
        width: 50%;
    }

    .viewall {
        font-size: 12px;
        margin-top: 50px;
        text-decoration: none;
        padding: 8px 15px;
    }

    /* Section 6: Centered, compact layout */
    .section-6 {
        height: 300px;
        padding: 20px;
    }

    .section-6 h1 {
        font-size: 20px !important;
    }

    .section-6 h1.discuss {
        font-size: 16px;
        margin-top: 10px;
    }

    .section-6 a {
        font-size: 12px;
        padding: 10px 20px;
        width: 200px;
        color: white;
    }

    /* Section 7: SELIM centered, links left, images centered */
    .section-7 {
        width: 100%;
        height: 170px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding-bottom: 20px;

    }

    .section-7 h2 {
        font-size: 24px !important;
        margin-left: 0px;
        margin-top: 20px;
    }

    .footerlinks {
        display: flex;
        flex-direction: row;
        width: 60%;
        padding-left: 20px;
        align-self: center;
        justify-self: center;
    }

    .footerlinks a {
        font-size: 13px;
        align-self: center;
        justify-self: center;
        font-weight: bold;
    }

    .footerimgs {
        margin-right: 0;
        gap: 40px;
        justify-content: center;
    }

    .footerimgs img {
        width: 20px;
        height: 20px;
    }
}

/* Dark Mode Responsive Adjustments */
@media screen and (max-width: 768px) {

    body.dark-mode .rhs-elements a,
    body.dark-mode .rhs-elements .letstalk {
        color: #f5f5f5;
        transition: 0.3s ease-in-out;

    }

    body.dark-mode .rhs-elements .letstalk {
        background-color: white;
        transition: 0.3s ease-in-out;
        color: black !important;
    }

    body.dark-mode .toolbox {
        box-shadow: 0 2px 8px rgba(255, 255, 255, 0.15);
        transition: 0.3s ease-in-out;

    }

    body.dark-mode .toolbox::before,
    body.dark-mode .toolbox::after {
        background: rgba(200, 200, 255, 0.9);
        transition: 0.3s ease-in-out;

        /* Slightly blue-tinted bubbles for dark mode */
    }
}