@media only screen and (min-width: 870px)  {
    html {
        scroll-behavior: smooth;
    }

    body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        width:100%;
        height:auto;
        margin: 0;
        padding: 0;
    }

    header {
        color: white;
        padding: 10px 20px;
        position: sticky;
        top: 0;
        z-index: 1000;
        border-bottom: 1px solid black;
    }

    nav {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    nav ul {
        list-style-type: none;
        margin: 0;
        padding: 0;
        display: flex;
    }

    nav li {
        margin-right: 20px;
    }

    nav a {
        text-decoration: none;
        color: white;
        font-weight: bold;
        font-size: 16px;
    }

    nav a.active {
        color: #008080; 
        border-bottom: 2px solid #008080; 
    }


    .content-container {
        max-width: 100vw;
        margin: 0 auto;
    }

    section {
        padding: 50px 20px; 
    }

    .section-content {
        max-width: 600px;
        margin: 0 auto;
    }


    #home {
        background-image: url('https://static.vecteezy.com/system/resources/thumbnails/027/223/557/small_2x/pink-fluffy-soft-clouds-beautiful-cloudy-sky-dream-cloud-of-heaven-nature-background-or-backdrop-photo.jpg'); 
        background-size: cover; 
        background-position: center; 
        background-repeat: no-repeat; 
        margin-top: -50px;
        margin-bottom: -1.5%;
    }

    .home-section {
        text-align: center;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start; 
    }

    .home-section h1 {
        margin-top: 35%;
        font-size: 4em;
        margin-bottom: 10px;
    }

    .designation {
        font-size: 1.5em;
        color: black;
        margin-bottom: 20px;
    }

    .social-icons {
        margin-top: 20px;
    }

    .social-icons a {
        display: inline-block;
        margin-right: 20px;
    }

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

    .scroll-down-arrow {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        cursor: pointer;
    }

    #arrow-img {
        width: 40px;
        height: 40px;
    }

    .scroll-down-arrow:hover #arrow-img {
        content: url('images/downhover.png');
    }

    #about {
        background-color: #dcecf8;
        padding-top: 90px; 
        margin-bottom: -2.1%;
    }

    .about-content {
        display: flex;
        align-items: center;
        margin-bottom: -1%;
    }

    #about p {
        text-indent: 40px;
    }

    .profile-image {
        flex: 0 0 auto;
        margin-right: 5px; 
    }

    .profile-image img {
        width: 100%; 
        max-width: 200px; 
        border-radius: 50%; 
        border: 2.85px solid #008080;
    }

    .about-text {
        flex: 1;
        max-width: 600px;
    }

    #about .section-content h2 {
        text-align: center;
        font-size: 1.2em;
        color: #008080;
        margin-bottom: -30px;
        margin-top: -4%;
    }

    #about .section-content .intro-text {
        text-align: center;
        font-size: 2em;
        font-weight: bold;
        color: black;
        margin-right: 15px;
        margin-bottom: 10px;
    }

    #about .section-content p {
        color: #444;
        font-size: 1.15em;
    }

    #about .additional-content {
        display: flex;
        justify-content: space-between; 
        max-width: 50%;
        margin-left:28%;  
        margin-top:30px;
    }

    #about .additional-content p {
        text-indent: 0;
        font-size: 1em; 
    }

    #about .profile-info{
        margin-top: 40px;
    }

    #about .profile-info p {
        margin: -2.5px 0;
        color:#666;
        font-weight: bold;
    }

    #about .profile-info strong {
        color: #999; 
    }

    #about .info-group {
        margin-bottom: 25px; 
    }

    .mobileul-right{
        margin-top: -4%;
    }

    .left-column,
    .right-column {
        width: 48%; 
    }

    .left-column h3,
    .right-column h3 {
        color: black;
    }

    #about .left-column a {
        color: #FFA500; 
        transition: color 0.3s ease;
    }
    #about .left-column a:hover {
        color: gray; 
    }

    #about .button-container {
        display: flex;
        justify-content: center;
        margin-top: 40px;
        margin-bottom: 2%;
        margin-left: 5%;
        padding:20px;
    }

    #about .about-buttons a {
        margin-right: 100px;
        padding: 20px 70px;
        background-color: #FFA500;
        color: white;
        text-decoration: none;
        font-weight: bold;
        border-radius: 5px;
        transition: background-color 0.3s, color 0.3s;
    }

    #about .about-buttons a:hover {
        background-color: #888;
        margin-top: 20px;
    }

    #education-experience {
        background-color: #2c2d2c;
        text-align: center;
        padding-top: 100px;
        margin-bottom: -3.5%;
    }

    #education-experience h2 {
        color: #008080;
        text-align: center;
        font-size: 1.2em;
        margin-bottom: -30px;
        margin-top: -3%;
    }

    #education-experience .section-content .intro-text {
        text-align: center;
        font-size: 2em;
        font-weight: bold;
        color: white;
        margin-right: 15px;
        margin-bottom: 40px;
        margin-left: 20px;
    }

    #education-experience .section-content .intro-text-head {
        text-align: center;
        font-size: 1.7em;
        font-weight: bold;
        color: #008080;
        margin-right: 15px;
        margin-bottom: 5%;
        margin-left: 15px;
    }

    .timeline-item {
        display: flex;
        align-items: flex-start;

        margin-bottom: 30px;
    }

    .timeline-column {
        flex: 1;
        align-items: center;
        padding: 5px;
    }

    .timeline-credential{
        font-weight: bold;
        color: #FFA500;
        flex: 3;
        display: flex;
        margin-left: -15%;
        margin-top: -5%;
        text-align: center;
        flex-direction: column;
    }

    .timeline-credential h3 {
        margin-top: 7%;
        margin-left: -70%;
    }

    .timeline-credential p {
        margin-top: -8%;
        margin-left: -70%;
    }

    .wtimeline-credential{
        font-weight: bold;
        color: #FFA500;
        flex: 3;
        display: flex;
        margin-left: -15%;
        margin-top: -5%;
        text-align: center;
        flex-direction: column;
    }

    .wtimeline-credential h3 {
        margin-top: 7%;
        margin-left: -70%;
    }

    .wtimeline-credential p {
        margin-top: -8%;
        margin-left: -70%;
    }

    .timeline-info {
        flex: 2;
        display: flex;
        text-align: left;
        margin-bottom: 5%;
        margin-left: -23%;
        border-left: 1px solid white;
        padding-left: 35px;
    }

    .timeline-info h3 {
        color: white;
        margin-bottom: -2%;
        margin-top: -20%;
        height: 18px;
    }

    .timeline-info p {
        color: #CCC;
        margin-right: -30%;
        margin-bottom: -3%;
    }

    .wtimeline-info {
        flex: 2;
        display: flex;
        text-align: left;
        margin-bottom: 5%;
        margin-left: -23%;
        border-left: 1px solid white;
        padding-left: 35px;
    }

    .wtimeline-info h3 {
        color: white;
        margin-bottom: -2%;
        margin-top: -20%;
        height: 18px;
    }

    .wtimeline-info p {
        color: #CCC;
        margin-right: -30%;
        margin-bottom: -3%;
    }

    .icon {
        width: 60px; 
        height: 60x; 
        margin-left: -26%;
        padding: 0;
        margin-top: -9%;
    }

    .timeline-item{
        margin-left:15%;
    }


    #projects {
        background: #4e54c8;   
    }

    #projects h2 {
        color: white;
        text-align: center;
        font-size: 1.2em;
        margin-bottom: -30px;
        margin-top: 6%;
    }

    #projects .section-content .intro-text {
        text-align: center;
        font-size: 2em;
        font-weight: bold;
        color: black;
        margin-right: 15px;
        margin-bottom: 40px;
        margin-left: 20px;
        width: 100%;
    }

    .project-container {
        display: flex;
        justify-content: space-between;
        gap: 10%;
    }

    .project {
        position: relative;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .project img {
        width: 250px;
        display: block;
    }

    .project-title {
        position: absolute;
        top: 40%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        font-weight: 600;
        font-size: 1.05em;
        text-align: center;
        opacity: 0;
        cursor: default;
        z-index: 2;
    }

    .click-icon {
        position: absolute;
        top: 60%;
        left: 50%;
        transform: translate(-50%, -50%);
        opacity: 0;
        z-index: 2;
    }

    .click-icon img {
        width: 30px;
    }

    .project:hover::after {
        content: "";
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.75);
        z-index: 1;
    }

    .project:hover .project-title,
    .project:hover .click-icon {
        opacity: 1;
    }

    .detail-container {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: white;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
        z-index: 3;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(51, 55, 75, 0.5);
        display: none; 
        z-index: 2; 
    }

    .detail-content {
        text-align: center;
        bottom: 0;
    }

    .detail-container.active {
        display: block;
        width: 30%;
        height: auto;
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    .detail-footer {
        position: fixed;
        bottom: 0;
        left:0;
        right: 0;
        height:auto;
        background-color: #333;
        color: white;
        padding: 2%;
        font-weight: bold;
        display: flex;
    }

    .detail-footer a{
        color: inherit;
        text-decoration: none;
    }

    .detail-btn, .close-btn {
        margin-top: 3%;
        margin-bottom: 3%;
        margin-left: 10px;
        cursor: pointer;
    }

    .detail-btn:hover, .close-btn:hover {
        color: #FFA500;
    }

    .detail-title {
        font-size: 1.3em;
        text-align: left;
        font-weight: bold;
        color: #333;
        margin-top: -1%;
        margin-bottom: -2%;
        margin-left: 2%;
        text-decoration: underline;
        text-underline-offset: 3px;
        text-decoration-thickness: 2px;
    }

    .detail-image{
        height: 100%;
        width: 100%;
    }

    .project-description {
        text-align: left;
        font-size: .95em;
        color: #666;
        line-height: 1.5;
        margin-bottom: -2%;
        margin-left: 2%;
    }

    .project-technologies {
        text-align: left;
        font-size: .9em;
        color: #999;
        line-height: 1.5;
        margin-left: 2%;
        margin-bottom: 15%;
    }

    #hobbies {
        background-color: #2c2d2c; 
    }

    #hobbies h2 {
        color: #008080;
        text-align: center;
        font-size: 1.2em;
        margin-bottom: -30px;
        margin-top: 4%;
    }

    #hobbies .section-content .intro-text {
        text-align: center;
        font-size: 2em;
        font-weight: bold;
        color: white;
        margin-right: 15px;
        margin-bottom: 40px;
        width: 100%;
    }

    #hobbies .hobby{
        margin-bottom: 10%;
    }

    #hobbies .hobby-title {
        display: flex;
        align-items: center;
        justify-content: center;
        color: #FFA500;
        font-size: 1.5em;
        margin-bottom: 10px;
    }

    #hobbies .hobby-icon {
        width: 50px; 
        margin-left: 3%; 
    }

    #hobbies .hobby-description,
    #hobbies .hobby-influence {
        text-align: center;
        font-size: 1em; 
        font-style: italic;
        color: white; 
        margin-bottom: 15px; 
    }

    #contact {
        background-color: #E5E5E5;
    }

    #contact h2 {
        color: #008080;
        text-align: center;
        font-size: 1.2em;
        margin-bottom: -30px;
        margin-top: 4%;
    }

    #contact .section-content .intro-text {
        text-align: center;
        font-size: 2em;
        font-weight: bold;
        color: black;
        margin-right: 15px;
        margin-bottom: 40px;
        width: 100%;
    }

    .contact-icons {
        display: flex;
        justify-content: space-around;
    }

    .contact-item {
        text-align: center;
        margin-bottom: 20px;
    }

    .contact-item img {
        width: 50px;
    }

    .contact-item h2 {
        margin: 5px 0;
    }

    .contact-item p {
        margin-top:25%;
    }


    .contact-item a {
        color: #FFA500;
        text-decoration: none;
        font-weight: bold;
    }

    .footer {
        background-color: #ccc2c2;
        color: white;
        padding: 20px;
        text-align: center;
    }

    .footer a {
        color: #FFA500;
        text-decoration: none;

    }

    .footer a:hover {
        color: #FFD700;
    }
}