html {
    scroll-behavior: smooth;
}

body {
    background-color: #f2f5f9;
}
  

/*==NAVBAR SECTION==*/
/*Navbar Links*/
.nav-link {
    position: relative;
}

/*Navbar Links Hover Animation (Underline)*/
.nav-link::after {
    content: '';
    opacity: 0;
    transition: all 0.2s;
    height: 2px;
    width: 100%;
    background-color: skyblue;
    position: absolute;
    bottom: 0;
    left: 0;
}

.nav-link:hover::after {
    opacity: 1;
}

/*Navbar Hamburger Menu Icon*/
.navbar-toggler {
    width: 10px;
    height: 10px;
    position: relative;
    transition: .5s ease-in-out;
}

.navbar-toggler,
.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler-icon:focus {
    outline: none;
    box-shadow: none;
    border: 0;
}

.navbar-toggler span {
    margin: 0;
    padding: 0;
}

.toggler-icon {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: rgb(255, 1, 1);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0);
    transition: .25s ease-in-out;
}

.middle-bar {
    margin-top: 0;
}

/*Ham menu icon when clicked*/
.navbar-toggler .top-bar {
    margin-top: 0;
    transform: rotate(135deg);
}

.navbar-toggler .middle-bar {
    opacity: 0;
    filter: alpha(opacity=0);
}

.navbar-toggler .bottom-bar {
    margin-top: 0;
    transform: rotate(-135deg);
}

/*Ham menu icon when unclicked*/
.navbar-toggler.collapsed .top-bar {
    margin-top: -7px;
    transform: rotate(0);
}

.navbar-toggler.collapsed .middle-bar {
    opacity: 1;
    filter: alpha(opacity=100);
}

.navbar-toggler.collapsed .bottom-bar {
    margin-top: 7px;
    transform: rotate(0);
}

.navbar-toggler.collapsed .toggler-icon {
    background-color: skyblue;
}

/*Floating Menu*/
.floating-menu{
    border-radius:100px;
    z-index:999;
    padding-top:10px;
    padding-bottom:10px;
    left:0;
    position:fixed;
    display:inline-block;
    top:50%;
    -webkit-transform:translateY(-50%);
    -ms-transform:translateY(-50%);
    transform:translateY(-50%);
}

#floating-menu {
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, height 0.3s ease;
}

#floating-menu.show {
    opacity: 1;
    height: 100%;
}

.main-menu{
    margin:0;
    padding-left:0;
    list-style:none;
}

.main-menu li a{
    display:block;
    padding:10px;
    color:#fff;
    border-radius:50px;
    position:relative;
    -webkit-transition:none;
    -o-transition:none;
    transition:none;
}

.main-menu li a:hover{
    background:rgba(244,244,244,.3);
}

.floating-menu .main-menu li a.active {
    color: rgb(152, 200, 255);
}

.menu-bg{
    background-image:-webkit-linear-gradient(top,#1C5E91 0,#167699 100%);
    background-image:-o-linear-gradient(top,#1C5E91 0,#167699 100%);
    background-image:-webkit-gradient(linear,left top,left bottom,from(#1C5E91),to(#167699));
    background-image:linear-gradient(to bottom,#1C5E91 0,#167699 100%);
    background-repeat:repeat-x;
    position:absolute;
    width:100%;
    height:100%;
    border-radius:50px;
    z-index:-1;
    top:0;
    left:0;
    -webkit-transition:.1s;
    -o-transition:.1s;
    transition:.1s;
}

.ripple{
    position:relative;
    overflow:hidden;
    transform:translate3d(0,0,0);
}

.ripple:after{
    content:"";
    display:block;
    position:absolute;
    width:100%;
    height:100%;
    top:0;
    left:0;
    pointer-events:none;
    background-image:radial-gradient(circle,#000 10%,transparent 10.01%);
    background-repeat:no-repeat;
    background-position:50%;
    transform:scale(10,10);
    opacity:0;
    transition:transform .5s,opacity .5s;
}

.ripple:active:after{
    transform:scale(0,0);
    opacity:.2;
    transition:0s;
}

/*Floating Menu Toggler*/
#menu-float-toggler {
    border-radius:100px;
    z-index:999;
    padding-top:10px;
    padding-bottom:10px;
    left: -2px;
    position:fixed;
    display:inline-block;
    top:31.1%;
    -webkit-transform:translateY(-50%);
    -ms-transform:translateY(-50%);
    transform:translateY(-50%);
    margin:0;
    padding-left:0;
    list-style:none;
    padding:10px;
    color:#fff;
    background-image:-webkit-linear-gradient(top,#1C5E91 0,#167699 100%);
    opacity: 1;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#menu-float-toggler.hidden {
    opacity: 0;
    transform: translateY(20px);
}


/*==HERO SECTION==*/

/*Profile Picture*/
/* Make the circle container */
#circle-container {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    border-radius: 50%;
    overflow: hidden;
}

/* Ensure the image fits inside the container */
#circle-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    z-index: 0;
}

/* Create the rotating border */
.circle-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px dashed #1C5E91;
    border-left: 6px solid tr;
    box-sizing: border-box;
    animation: spinBorder 60s linear infinite;
    z-index: 1;
}

/* Border spin animation */
@keyframes spinBorder {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

  

/*Skill Summary Window*/
#skillset-head {
    display: block;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 8px;
    border-radius: 20px;
    background-color: white;
}

#hero-bio {
    text-align: justify;
}

.hero-skills {
    position: relative;
    display: inline-table;
}

#skill-desc {
    text-align: justify;
}

/*SocMed icons when hover*/
#icon1:hover {
    color: rgb(0, 110, 255) !important;
}

#icon2:hover {
    color: crimson !important;
}

#icon3:hover {
    color: rgb(4, 93, 194) !important;
}

#icon4 {
    transition: filter 0.3s ease;
}

#icon4:hover {
    /* color: rgb(6, 187, 0) !important; */
    filter: brightness(0) saturate(100%) invert(55%) sepia(81%) saturate(2870%) hue-rotate(346deg) brightness(100%) contrast(95%);
}

/*==PARALLAX==*/
.parallax {
    background-image: url("../images/parallax.jpg");
    background-color: #cccccc;
    min-height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.parallax-text {
    text-align: center;
    align-content: center;
    min-height: 500px;
    color: white;
}

.parallax-text h1 {
    font-size: 3rem;
    margin: 0;
}

.parallax-text p {
    font-size: 1.2rem;
    margin: 10px 0 0;
}

/*==ABOUT ME SECTION==*/
#about-text {
    text-align: justify;
}

/*==RESUME SECTION==*/
.timeline-with-icons {
    border-left: 1px solid hsl(199, 39%, 83%);
    position: relative;
    list-style: none;
}
  
.timeline-with-icons .timeline-item {
    position: relative;
}
  
.timeline-with-icons .timeline-item:after {
    position: absolute;
    display: block;
    top: 0;
}
  
.timeline-with-icons .timeline-icon {
    position: absolute;
    left: -48px;
    background-color: rgb(152, 214, 255);
    color: #165e99;
    border-radius: 50%;
    height: 31px;
    width: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oct-visit:hover {
    background-color: #198754;
    color: #ffc107;
}

/*==SOFTWARE SKILLS==*/
#skillset-new {
    display: block;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 8px;
    border-radius: 20px;
    background-color: white;
}

/*==PORTFOLIO SECTION==*/
/*Carousel Cards*/
/*Carousel Controls - Prev and Next*/
.carousel-control-prev, .carousel-control-next{
    background-color: #165e99;
    width: 6vh;
    height: 6vh;
    border-radius: 50%;
    top: 50%;
    transition: transform 0.3s ease-in-out;
}

/*Media Queries for Responsive Carousel*/
@media (max-width: 767px) {
    .carousel-inner .carousel-item > div {
        display: none;
    }
    .carousel-inner .carousel-item > div:first-child {
        display: block;
    }
}

.carousel-inner .carousel-item.active,
.carousel-inner .carousel-item-next,
.carousel-inner .carousel-item-prev {
    display: flex;
}

/* medium and up screens */
@media (min-width: 768px) {
    
    .carousel-inner .carousel-item-end.active,
    .carousel-inner .carousel-item-next {
      transform: translateX(25%);
    }
    
    .carousel-inner .carousel-item-start.active, 
    .carousel-inner .carousel-item-prev {
      transform: translateX(-25%);
    }

    .carousel-inner .carousel-item-end,
    .carousel-inner .carousel-item-start { 
    transform: translateX(0);
}
}

/*Toggle between carousel and grid button*/
#toggle-view {
    color: #000;
    text-decoration: none;
}

#toggle-view:hover {
    text-decoration: underline;
}


/*Item Modals*/
.bs-example{
    margin: 20px;
}
.modal-dialog iframe{
    margin: 0 auto;
    display: block;
}

/*==BLOGS SECTION==*/

/*Blog Title*/
.d-flex {
    display: flex;
    align-items: center;
}

.vertical-line {
    width: 5px;
    height: 50px;
    background-color: #17a2b8;
    margin-left: 20px;
}


/*Blog Cards*/
.card-link {
    text-decoration: none;
    color: inherit;
}

.blog-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
    border: 1px solid #ddd;
}

.img-container {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #ddd;
}

/*Blog card animation on hover*/
.blog-card-img {
    transition: transform 0.7s ease-in-out;
    width: 100%;
    height: 100%;
}

.blog-card:hover .blog-card-img {
    transform: scale(1.1);
}

.blog-card-body {
    overflow: hidden;
}

.blog-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.blog-card {
    border: 1px solid #ddd;
    border-radius: 8px;
}

.blog-card-body {
    padding-top: 1.25rem;
}

.blog-card:hover .view-button {
    text-decoration: underline;
}

/*==CONTACT SECTION==*/
/* Define the color change when the map is shown */
#mapToggleBtn.active-btn {
    color: #ffc107;
    background-color: #000;
}

/* Container for the form */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* General form styles */
form {
    display: flex;
    flex-direction: column;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

/* Input fields and textarea */
.form-input {
    width: 100%;
    padding: 12px 12px 12px 12px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: transparent;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
}

/* Floating label */
.form-label {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 16px;
    color: #888;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* When input is focused or contains text */
.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: -8px;
    font-size: 12px;
    color: #007bff;
    background-color: #f9f9f9;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.form-check-input {
    margin-right: 10px;
}

/* Make the form responsive */
@media (max-width: 576px) {
    .contact-form-container {
        padding: 20px;
    }

    .form-input {
        font-size: 14px;
    }

    .form-label {
        font-size: 14px;
    }

    .form-submit {
        font-size: 14px;
    }
}



/*==Scroll Back-To-Top Button==*/
#btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
}

/*==BLOG POSTS===*/
.window {
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 8px;
    border-radius: 20px;
    background-color: white;
}

.back-btn {
    text-decoration: none;
    color: #000;
}

.back-btn:hover {
    text-decoration: underline;
}

.pill-button {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 50px;
    background-color: #165e99;
    color: white;
    border: none;
    cursor: pointer;
}

.pill-icon {
    width: 30px;
    height: 30px;
    margin-right: 8px;
}

.pill-text {
    font-size: 14px;
}

/* art gallery */
/* GALLERY IMAGE CARDS */
.image-card {
    overflow: hidden;
    border: solid var(--bs-info-text-emphasis);
    border-radius: 8px;
    background: #f8f9fa;
}

.image-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

/* HOVER ZOOM EFFECT */
.image-card:hover img {
    transform: scale(1.08);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.image-card {
    position: relative;
}

.image-card::after {
    content: "View work";
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.image-card:hover::after {
    opacity: 1;
}


/*==MEDIA QUERIES==*/
/*phones*/
@media (max-width: 575.98px) {
    #hero-text {
        text-align: center;
    }

    #hello-line {
        margin: auto;
    }

    .container-type {
        text-align: center;
    }

    #specialty {
        display: flex;
        flex-direction: column-reverse;
    }

    #specialty-title {
        text-align: center;
    }

    .main-menu li a, #menu-float-toggler{
        padding:5px;
    }

    #menu-float-toggler {
        top: 35.1%;
    }
}



/*tablets*/
@media (max-width: 767.98px) {
    #hero-text {
        text-align: center;
    }

    #hello-line {
        margin: auto;
    }

    .container-type {
        text-align: center;
    }

    #specialty {
        display: flex;
        flex-direction: column-reverse;
    }

    .main-menu li a, #menu-float-toggler{
        padding:5px;
    }
    
    #menu-float-toggler {
        top: 35.1%;
    }
}

/*desktops*/
@media (max-width: 991.98px) {
    #specialty {
        display: flex;
        flex-direction: column-reverse;
    }
}

/*large desktops*/
@media (max-width: 1199.98px) {
    
}

/*larger desktops*/
@media (max-width: 1399.98px) {
    
}