/* Main Content */
main {
    background-color: #d0d0d0;
}
/* Navigation Bar */
#navBar {
    background-color: white; /* fully opaque */
    box-shadow: 0 4px 12px rgba(0,0,0,0.90); /* visible shadow */
    position: relative; /* keep initial position normal */
    z-index: 1000;
    transition: all 0.5s ease;
    padding: 0 1.5rem;
    align-items: center;
}

.navMain {
    height: 12vh;
    background-color: white;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    list-style: none;
    li{
        font-size: x-large;
        a {
            color: black;
            text-decoration: none;
            transition: color 0.3s ease;
            font-family: "Montserrat", sans-serif;
            font-weight: 450;
        }
    }    
}
/* .nav-link:hover,
.nav-link.active2 {
    font-weight: bold;
} */
/* All Nav List Items Hover and Active Effects */
.navMain li a:hover,
.navMain li a.active2 {
    color: #ff5722;
    transform: scale(1.05);
}
/* Except Profile Pic */
.exception a:hover,
.exception a.active2 {
    padding-bottom: 1px;
    border-bottom: #ff5722 3px solid;
}
/* For Resume Nav List Item Only */
#resumeDivClicker {
    cursor: pointer;
    color: black;
    font-family: "Montserrat", sans-serif;
    font-weight: 450;
}
#resumeDivClicker:hover {
    padding-bottom: 1px;
    color: #ff5722;
    transform: scale(1.05);
    border-bottom: #ff5722 3px solid;
}

/* Profile Picture - initially centered */
#profilePicBox {
    height: 10rem;
    width: 10rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.6s ease;  /* smooth animation */
    transform: translateX(0);   /* default position */
}

.profilePic {
    height: 13rem;
    width: 13rem;
    border: 6px solid white;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.5s ease, width 0.5s ease;
}

/* Sticky Navbar */
/* Profile Pic animation on scroll  */

@keyframes popShrink {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.85); }
  70%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}
/* pop-shrink animation when crossing */
.profilePic.popShrink {
  animation: popShrink 0.8s ease;
}
#navBar.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;       /* shrink navbar */
    padding: 0 1.5rem;
    background-color: rgba(255,255,255,0.95);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Profile pic moves right + shrinks when sticky */
#navBar.sticky #profilePicBox {
    padding-top: 4px;
    height: 60px;
    width: 60px;
    margin: 40px;
    justify-content: flex-end;
    transform: translateX(50px); /* Slide right (adjust px as needed) */
}

#navBar.sticky .profilePic {
    border: 3px solid rgb(255, 149, 0);
    box-shadow: 0 2px 4px rgb(0, 0, 0);
    height: 55px;
    width: 55px;
}

/* Optional: nav items subtle animation on sticky */
#navBar.sticky .navMain {
    height: 60px;
    li {
        opacity: 0;
        transform: translateY(-5px);
        animation: fadeIn 0.1s forwards;
        font-size: larger;
    }
}

#navBar.sticky .navMain li:nth-child(1) { animation-delay: 0.1s; }
#navBar.sticky .navMain li:nth-child(2) { animation-delay: 0.1s; }
#navBar.sticky .navMain li:nth-child(3) { animation-delay: 0.1s; }
#navBar.sticky .navMain li:nth-child(4) { animation-delay: 0.1s; }
#navBar.sticky .navMain li:nth-child(5) { animation-delay: 0.1s; }
#navBar.sticky .navMain li:nth-child(6) { animation-delay: 0.1s; }

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(.5);
  }
}


/* Sections below navbar */
.content-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    background-color: #E8630A;
}
/*-------------------------------- Sections ---------------------------------*/
.headingBox {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: black;
    box-shadow: 30px 10px 30px rgba(0,0,0,0.70);
    width: 100%;
    margin-top: 0px;
}
.headings {
    font-size: 2.5rem;
    color: black;
    background-color: white;
    padding: 10px 20px;
    border-radius: 10px;
    margin: 5px 0px;
}

/* -------------------------------------------------------------------- */
/* Home */
#homeDiv {   
    height: 110vh;
    background-color: rgb(255, 149, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
  /* Quote Box Styles */
  .quote-box {
    max-width: 800px;
    margin: 4rem auto;
    background: #151616;
    border-radius: 16px;
    padding: 2rem 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    position: relative;
    transform: scale(.95);
    opacity: 0;
    transition: transform 450ms cubic-bezier(.22,.9,.3,1),
                opacity 400ms ease;
  }

  .quote-box.show {
    transform: scale(1);
    opacity: 1;
  }

  .quote-box::before {
    content: "“";
    position: absolute;
    top: 10px;
    left: 16px;
    font-size: 70px;
    color: rgba(255,255,255,0.08);
    font-weight: bold;
    pointer-events: none;
  }
  .quote-box::after {
    content: "”";
    position: absolute;
    bottom: 0px;
    right: 16px;
    font-size: 70px;
    color: rgba(255,255,255,0.08);
    font-weight: bold;
    pointer-events: none;
  }

  .quote-text {
    font-size: 1.2rem;
    line-height: 1.7;
    word-spacing: 2px;
    color: #fff;
    font-weight: 500;
  }

/* About-Resume */
#about-resume {
    background-image: url("../Images/SectionBG/29.jpg");
    background-size: cover;
    background-attachment: fixed;
}

/* About */
#aboutDiv {
    height: 60rem;
    width: 100%;
    display: block;
    background-color: transparent;
}
.about {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
}

.aboutEducational {
    color: black;
    height: 30rem;
    width: 80vw;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    ul{
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        li {
            height: 18rem;
            width: 30rem;
            list-style: none;
            border-radius: 10px;
            a {
                height: 100%;
                width: 100%;
                display: flex;
                align-items: center;
                flex-direction: column;
                font-size: larger;
                padding: 10px;
                border-radius: 10px;
                border: 2px solid black;
                strong {
                    width: 100%;
                    padding: 0px 10px;
                    font-size: x-large;
                    text-align: center;
                    font-size: 2rem;
                    color: white;
                    background-color: rgba(0, 0, 0, 0.5);
                    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
                }
                em {
                    color: black;
                    background-color: rgba(255, 255, 255, 0.541);
                    padding: 3px 10px;
                    border-radius: 10px;
                    border: 1px solid yellow;
                }            
            }           
        }
    }
    h2 {
        font-size: 2rem;
        color: black;
        background-color: rgba(255, 255, 255, 0.393);
        padding: 10px 20px;
        border-radius: 10px;
        margin: 5px 0px;
    }
}
.Bachelor {
    background-image: url("../Images/AboutBG/DIATM.jpg");
    background-size: cover;
}
.Diploma {
    background-image: url("../Images/AboutBG/HBITM.jpg");
    background-size: cover;
}

.aboutPersonal h2 {
    font-size: 2rem;
    color: black;
    background-color: rgba(255, 255, 255, 0.393);
    padding: 10px 20px;
    border-radius: 10px;
    margin: 5px 0px;
}
.education ul {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    li {
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        flex-direction: column;
        height: 15rem;
        width: 35rem;
        color: white;
        background-color: #101313e3;
        border-radius: 20px;
        list-style: none;
    }
}
.aboutPersonal {
    height: 30rem;
}

/* Resume */
#resumeDiv {
    background-color: transparent;
}
.resumeHeadingBox {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    margin-top: 0px;
    margin-bottom: 10px;
    padding: 6rem 0rem 3rem;
    cursor: pointer;
    border-top: 3px solid white;
    /* border-bottom: 2px solid white; */

    p {
        color: white;
        background-color: rgba(0, 0, 0, 0.699);
        padding: 5px 10px;
        border-radius: 10px;
        margin-bottom: 5px;
        margin-top: 5px;
    }
}
#resumeHeadingBox.hide p {
  display: none;
}

/* When opened → same style as other headings */
#resumeHeadingBox.open p {
  display: none; /* hide helper text */
}

#resumeHeadingBox.open .resumeHeading {
  animation: none;        /* stop bubble */
  background-color: white; /* same as others */
  color: black;
  border: 2px solid black; /* same as others */
}
.resumeHeading {
    font-size: 2.5rem;
    color: black;
    background-color: white;
    padding: 10px 20px;
    border-radius: 10px;
    margin: 5px 0px;

    border: 4px solid black; /* width, style, color */
    border-radius: 15px;

    cursor: pointer;
}
/* Bubble animation */
@keyframes bubble {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Apply animation to heading when content is hidden */
.resumeHeading.bubble {
    animation: bubble 1s infinite;
}

.resumeBox {
    height: fit-content;
    width: 100%;
    background-color: transparent;
    justify-content: center;
    padding: 10px 0px;

    display: none; /* Hidden by default */
}
.resumeBox.show {
  display: flex; /* Show when 'show' class is added */
  animation: fadeIn 0.5s ease-in;
}
.resume {
    height: max-content;
    width: 60%;
    padding: 0px;
    margin: 10px;
    background-color: #f4f4f4;
    border: 2px dotted black;
}

/* Projects */
#projectsDiv {
    height: 350vh;
    width: 100%;
    background-image: url("../Images/SectionBG/32.jpg");
    background-size: cover;
    background-attachment: fixed;
    display: block;
}
.projectContent {
    margin: 20px 0px;
    height: 96%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}
.projectImage {
    height: 45vh;
    width: 45vh;
    border-radius: 50%;
    transition: all 0.2s ease-in;
    border: 2px dotted white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.763);
}
.projectImage:hover {
    transform: scale(1.2);
}
/* Projrct's Text */
.projectBox {
    width: 80vw;
    padding: 10px;
    padding-bottom: 77px;
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin: 15px;
    box-shadow: 0 6px 6px -4px rgba(255, 255, 255, 0.9); 
}

.projectTexts {
    height: 40vh;
    width: 35vw;
    background-color: rgba(0, 0, 0, 0.589);
    color: white;
    padding: 10px;
    border-radius: 10px;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: larger;
    h3 {
        font-size: xx-large;
        text-decoration: underline;
        padding-bottom: 30px;
        font-style: italic;
        margin-bottom: 10px;
    }
    p {
        height: 70%;
    }
}
/* Tech Stack Usage Bar */

/* Blog */
#blogsDiv {
    background-image: url("../Images/SectionBG/7.jpg");
    background-size: cover;
    height: 150vh;
    display: block;
}
.blogContentsMainBox {
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    h1 {
        padding: 10px;
        margin: 30px;
        font-size: x-large;
        text-align: center;
        color: white;
    }
}
.blogContentsDiv {
    background-color: transparent;
    width: 80rem;
    padding: 3rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.blogs {
    color: white;
    height: 20rem;
    width: 20rem;
    border: 3px solid black;
    border-radius: 10%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.763);
    display: flex;
    justify-content: right;
    align-items: center;
    h1{
        color: white;
    }
    h3{
        color: rgb(255, 255, 255);
        background-color: rgb(90, 90, 90);
        border: 1px solid black;
        border-top-left-radius: 20%;
        border-bottom-left-radius: 20%;
        width: 90%;
        height: 60px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    transition: all 0.3s ease-in;
}
.blogs:hover {
    scale: 1.2;
}
#blog1 {
    background-image: url("../Images/BlogsBG/blog1.png");
    background-size: cover;
}
#blog2 {
    background-image: url("../Images/BlogsBG/blog2.png");
    background-size: cover;
}
#blog3 {
    background-image: url("../Images/BlogsBG/blog3.jpeg");
    background-size: cover;
}
#blog4 {
    background-image: url("../Images/BlogsBG/blog4.png");
    background-size: cover;
}

/* Contact */
#contactDiv {
    color: white;
    height: 30rem;
    background-image: url("../Images/SectionBG/Contact2.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
}
#contactMainDiv {
    height: 20rem;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
}
#contactLeft {
    height: 17rem;
    width: 35%;
    border: 1px solid transparent;
    border-radius: 20px;
    background-color: rgba(142, 142, 142, 0.412);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    h3 {
        height: 2rem;
        padding: 3px 15px;
    }
}
#socialIconsDiv {
    height: 80%;
    width: 120%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    ul {
        height: 50%;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        li {
            list-style: none;
            width: 60%;
            padding: 5px;
            margin: 5px;
            border-radius: 2px;
            background-color: rgba(255, 234, 0, 0.242);
            a {
                text-decoration: none;
                color: blue;
            }
        }
    }
}
.socialIcon {
    font-family: Georgia, 'Times New Roman', Times, serif;
}
.socialIcon:hover {
    font-size: larger;
}

#contactRight {
    height: 17rem;
    width: 30%;
    border: 1px solid black;
    border-radius: 20px;
    background-color: white;
    display: block;
    h3 {
        height: 2rem;
        margin-bottom:20px;
    }
}
#contactForm {
    height: 11rem;
    scale: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}
#name {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    width: 80%;
    margin-bottom: 0px;
    display: flex;
    justify-content: space-between;
}
#fname {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    width: 48%;
    margin-left: 0px;
}
#lname {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    width: 48%;
}
#email {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    width: 80%;
}
#message {
    height: 4rem;
    width: 80%;
}
#submit {
    padding: 2px;
    margin: 5px;
    border-radius: 3px;
}
#submit:hover {
    color: white;
    background-color: black;
}

/* Extra classes for additional Features */
.nav-link.active {
    color: #ff5722;
    font-weight: bold;
    border-bottom: 2px solid #ff5722;
    transition: all 0.3s ease;
}