html {
    font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

:root {
    --clr: #222327;
    /*========== Colors ==========*/
    /*Color mode HSL(hue, saturation, lightness)*/
    --first-color: hsl(225, 95%, 56%);
    --black-color: hsl(225, 12%, 12%);
    --white-color: hsl(0, 0%, 100%);
    --text-color: hsl(225, 8%, 65%);
    --body-color: hsl(225, 100%, 99%);
    /*========== Font and typography ==========*/
    --biggest-font-size: 2.5rem;
    --tiny-font-size: .625rem;
    /*========== Font weight ==========*/
    --font-regular: 400;
    --font-semi-bold: 600;
    --font-bold: 700;
    /*========== z index ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    font-family: "Josefin Sans", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    background-color: #171717;
    cursor: none;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

#cursor {
    position: fixed; /* Ensures it's positioned relative to the viewport */
    width: 25px; /* Adjust the size of the circle */
    height: 25px;
    background-color: transparent;
    border: 1px solid white;
    border-radius: 50%;
    transition: transform 0.05s ease;
    pointer-events: none;
    z-index: 9999;
}

/* Custom navbar toggler styles */

.navbar-toggler {
    border: none; /* Removes default border */
    padding: 10px; /* Adjust padding as needed */
    position: relative; /* Positions the spans inside */
    cursor: pointer; /* Shows a pointer cursor on hover */
    outline: none; /* Removes outline */
    background-color: transparent; /* Ensure no background */
    box-shadow: none; /* Remove any shadow effects */
}

.navbar-toggler-icon {
    display: block;
    width: 30px; /* Width of the icon */
    height: 2px; /* Thickness of the lines */
    background-color: darkred; /* Initial color */
    position: relative;
    transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth color and transform transition */
}

    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after {
        content: '';
        display: block;
        width: 30px;
        height: 2px;
        background-color: darkred;
        position: absolute;
        transition: all 0.3s ease; /* Smooth animation */
    }

    .navbar-toggler-icon::before {
        top: -10px; /* Position the first line */
    }

    .navbar-toggler-icon::after {
        top: 10px; /* Position the third line */
    }

.navbar-toggler:hover .navbar-toggler-icon,
.navbar-toggler:hover .navbar-toggler-icon::before,
.navbar-toggler:hover .navbar-toggler-icon::after {
    background-color: darkred; /* Changes color on hover */
}

.navbar-toggler:focus,
.navbar-toggler:active {
    outline: none; /* Remove outline on focus/active */
    box-shadow: none; /* Remove any shadow */
}

/* Default state (collapsed) */
.navbar-toggler.collapsed .navbar-toggler-icon {
    background-color: darkred; /* Maintain dark red color when open */
}

    .navbar-toggler.collapsed .navbar-toggler-icon::before,
    .navbar-toggler.collapsed .navbar-toggler-icon::after {
        transform: none; /* Ensure bars are straight */
    }

/* Animation for toggling (expanded) */
.navbar-toggler:not(.collapsed) .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 0; /* Center the rotated line */
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    top: 0; /* Center the rotated line */
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon {
    background-color: transparent; /* Hide the middle bar */
}

/*Hero Section*/

.banner {
    overflow: hidden;
}

.hero {
    margin-bottom: 100px;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 37%;
    transform: translate(-50%, -50%);
    color: white; /* Ensure the text is visible over the background */
    z-index: 2; /* Ensure the text is above the particles */
}

    .hero-text h1 {
        margin: 0;
        font-size: 80px;
    }

    .hero-text p {
        margin: 10px 0 0;
        font-size: 1.5em; /* Adjust font size as needed */
    }

.social-icons {
    position: absolute;
    top: 40%;
    left: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px; /* Space between icons */
    z-index: 2; /* Ensure the icons are above the particles */
}

    .social-icons a i {
        font-size: 25px;
        width: 40px; /* Adjust size as needed */
        height: 40px; /* Adjust size as needed */
        opacity: 0.7; /* Transparent white */
        transition: opacity 0.3s;
        color: #777777;
    }

        .social-icons a i:hover {
            opacity: 1; /* Full opacity on hover */
            color: white;
        }

.typewriter {
    overflow: hidden; /* Ensures no overflow */
    border-right: .10em solid white; /* The caret */
    white-space: nowrap; /* Keeps the content on a single line */
    margin: 0 auto; /* Centers it */
    letter-spacing: .10em; /* Adjust as needed */
    animation: typing 3s steps(60, end), blink-caret .75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent
    }

    50% {
        border-color: white
    }
}

/*About Section*/

.abt-me {
    display: flex;
    justify-content: space-between;
    width: 90%;
    margin: 0 auto;
}

.abt-h{
    margin-left: 16px;
    margin-bottom: 90px;
    font-size: 70px;
    color: darkred;
    border-bottom: 2px solid darkred;
}

.pra {
    margin-top: 50px;
    margin-bottom: 50px;
    margin-left: 16px;
    font-size: 20px;
    color: white;
}

    .pra a {
        margin-left: 10px;
        font-size: 20px;
        color: #8b8b8b;
        text-decoration: none;
    }

    .pra span {
        margin-left: 10px;
        font-size: 20px;
        color: #8b8b8b;
        text-decoration: none;
    }

.bt-cv {
    margin-top: 60px;
    margin-left: 18px;
    background-color: darkred;
    border: none;
    color: white;
    padding: 15px 20px 10px 20px;
    border-radius: 40px;
    font-size: 17px;
    text-transform: uppercase;
}

.bt-cv:hover {
    transition: 0.4s ease-in;
    background-color: transparent;
    outline: 2px solid darkred;
    color: darkred;
}

.bt-frm {
    background-color: darkred;
    border: none;
    color: white;
    padding: 13px 10px 10px 10px;
    border-radius: 40px;
    font-size: 14px;
    text-transform: uppercase;
}

    .bt-frm:hover {
        transition: 0.4s ease-in;
        background-color: transparent;
        outline: 2px solid darkred;
        color: darkred;
    }

.bt-frm-sec {
    background-color: #333;
    border: none;
    color: white;
    padding: 13px 10px 10px 10px;
    border-radius: 40px;
    font-size: 14px;
    text-transform: uppercase;
}

    .bt-frm-sec:hover {
        transition: 0.4s ease-in;
        background-color: transparent;
        outline: 2px solid #333;
        color: #333;
    }

.bt-frm-sec-sm {
    background-color: #333;
    border: none;
    padding: 6px 10px 6px 10px;
    color: white;
    border-radius: 50%;
    font-size: 14px;
    text-transform: uppercase;
}

    .bt-frm-sec-sm:hover {
        transition: 0.4s ease-in;
        background-color: transparent;
        outline: 2px solid #333;
        color: #333;
    }

.left-section {
    flex: 1;
    text-align: center;
}

.left-section img{
    height: 800px !important;
    width: 650px !important;
}

.right-section {
    margin-top: 100px;
    flex: 1;
    text-align: left;
}

.details {
    margin-top: 30px;
}

.details span {
    margin-left: 80px;
    color: #8b8b8b;
}

.details p {
    margin: 20px 20px;
    font-size: 1.2em;
    color: white;
}

/*Skills Section*/

.skills-section {
    padding: 50px 20px;
    text-align: center;
    margin-top: 200px;
    margin-bottom: 200px;
}

.section-title {
    font-size: 3em;
    margin-bottom: 60px;
    color: darkred;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.skill-card {
    background-color: #1e1e1e;
    border-radius: 10px 10px 0px 0px;
    width: 300px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    margin: 40px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.skill-card::after {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    background-color: darkred;
    position: absolute;
    bottom: 0;
    left: 0;
    border-radius: 0 0 12px 12px;
}

    .skill-card:hover {
        transform: translateY(-10px);
    }

.skill-icon-container {
    background-color: #333;
    border-radius: 50%;
    padding: 30px;
    display: inline-block;
    margin-bottom: 20px;
}

.skill-icon-container i {
    color: white;
}

.skill-title {
    font-size: 1.5em;
    margin: 0;
    color: darkred;
}

.skill-description {
    font-size: 1em;
    color: #ccc;
    margin-top: 10px;
}

/*Projects Section*/

.pro-h {
    color: darkred;
    text-align: center;
    margin-bottom: 150px;
    font-size: 55px;
}

.pro-crd {
    background-color: transparent;
    height: 370px;
    width: 400px;
    padding: 0px !important;
    margin: 0px !important; 
    overflow: hidden;
}

.projects {
    justify-content: center;
}

.project {
    position: relative;
    overflow: hidden;
    width: 400px; /* Adjust as needed */
    height: 370px; /* Adjust as needed */
    border-radius: 15px; /* Optional: add rounded corners */
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    background-color: #1e1e1e;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    margin-left: 15px;
    margin-right: 15px;
}

.pro-crd img {
    width: 400px;
    height: 300px;
    object-fit: cover;
    padding: 0px;
    transition: transform 0.3s ease;
    overflow: hidden;
    z-index: 0;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 400px;
    height: 300px;
    background: rgba(0, 0, 0, 0.9); /* Semi-transparent overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    overflow: hidden;
}

.project-title{
    color: white;
    text-align: center;
}

.pro-crd:hover .overlay {
    opacity: 1;
}

.pro-crd:hover img {
    overflow: hidden;
    filter: grayscale(100%);
}

.project:hover .project-title {
    color: darkred !important;
}

.read-more {
    background: Darkred; /* Adjust button color */
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 40px;
    transition: background 0.3s ease;
}

    .read-more:hover {
        background: transparent;
        outline: 2px solid darkred;
        color: darkred;
    }

.bt-vm {
    margin-top: 60px;
    margin-left: 18px;
    background-color: darkred;
    border: none;
    color: white;
    padding: 15px 20px 10px 20px;
    border-radius: 40px;
    font-size: 17px;
    text-transform: uppercase;
}

.bt-vm:hover {
    transition: 0.4s ease-in;
    background-color: transparent;
    outline: 2px solid darkred;
    color: darkred;
}

/*Contact details*/


.hdng {
    color: darkred;
    text-align: center;
    margin-bottom: 100px;
    font-size: 55px;
}

.contact-item {
    opacity: 0; /* Ensure items are initially not visible */
}

    .contact-item.animate__animated {
        opacity: 1; /* Set opacity to 1 when animation classes are applied */
    }

.contact-details {
    display: flex;
    justify-content: center;
    gap: 100px;
    margin: 50px 0;
}

.admin-section{
    height: 100vh;
}

.admin-card {
    background-color: #1e1e1e;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    width: 325px;
    position: relative;
    margin: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

    .admin-card h3 {
        margin-top: 15px;
        font-size: 50px;
        color: white;
    }

.admin-card p {
    color: #8b8b8b;
    margin: 10px 0 0;
}

.admin-card i {
    text-align: center;
    font-size: 70px;
    color: darkred;
    margin-bottom: 10px;
}

.admin-card::after {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    background-color: darkred;
    position: absolute;
    bottom: 0;
    left: 0;
    border-radius: 0 0 8px 8px;
}

.contact-item {
    background-color: #1e1e1e;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    width: 325px;
    position: relative;
    margin: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}
    .contact-item h3 {
        margin-top: 15px;
        font-size: 18px;
        color: white;
    }

    .contact-item p {
        color: #8b8b8b;
        margin: 10px 0 0;
    }

    .contact-item a {
        color: #8b8b8b;
        text-decoration: none;
    }

        .contact-item a:hover {
            text-decoration: underline;
        }

    .contact-item .contact-icon {
        font-size: 30px;
        color: darkred;
        margin-bottom: 10px;
    }

    .contact-item::after {
        content: '';
        display: block;
        width: 100%;
        height: 4px;
        background-color: darkred;
        position: absolute;
        bottom: 0;
        left: 0;
        border-radius: 0 0 8px 8px;
    }

/*Contact form*/

.contact-form-section{
    margin-bottom: 100px;
}

.contact-form {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0px 20px 0px;
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

    .contact-form .form-control {
        width: 100%;
        padding: 15px;
        border: 3px solid none;
        border-radius: 30px;
        font-size: 16px;
        background-color: whitesmoke;
    }

        .contact-form .form-control:focus {
            border-color: #999;
            outline: 1px solid darkred;
            border-radius: 40px;
        }

    .contact-form textarea.form-control {
        resize: none;
    }

    .contact-form .btn-submit {
        background-color: darkred;
        border: none;
        padding: 12px 20px;
        font-size: 16px;
        color: #fff;
        border-radius: 40px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

        .contact-form .btn-submit:hover {
            background-color: transparent;
            outline: 3px solid darkred;
            color: darkred;
        }

nav {
    margin: 15px 30px 30px 30px;
}

.footer-social-icons {
    padding: 0;
    margin: 0;
    gap: 10px;
    height: 100%;
}

    .footer-social-icons li {
        list-style: none;
    }

        .footer-social-icons li i {
            background-color: transparent;
            color: white;
            width: 40px;
            height: 40px;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 50%;
            transition: background-color 0.3s ease-in, transform 0.3s;
            font-size: 18px;
            border: 2px solid white;
        }

            .footer-social-icons li i:hover {
                color: darkred;
                background-color: transparent;
                border: 2px solid darkred;
                transform: scale(1.1);
            }

/* Style the textarea to occupy full space initially */
#editor {
    flex-grow: 1; /* Ensures the editor takes up available space */
    min-height: 300px; /* Minimum height for usability */
}

/* Style the CKEditor instance */
.ck-editor__editable_inline {
    min-height: 300px; /* Ensure editor has a usable starting height */
    height: 100%; /* Fill the parent container */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}


/* Media query for phone view */
@media (max-width: 480px) {

    .admin-section {
        height: 120vh;
    }

    footer{
        margin-bottom: 100px;
    }

    .hero-text {
        position: absolute;
        top: 50%;
        left: 47%;
        transform: translate(-50%, -50%);
        color: white; /* Ensure the text is visible over the background */
        z-index: 2; /* Ensure the text is above the particles */
    }

        .hero-text h1 {
            margin: 0;
            font-size: 38px;
        }

        .hero-text p {
            margin: 10px 0 0;
            font-size: 1.1em; /* Adjust font size as needed */
        }

    .social-icons {
        position: absolute;
        top: 50%;
        left: 10px;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        gap: 15px; /* Space between icons */
        z-index: 2; /* Ensure the icons are above the particles */
    }

        .social-icons a i {
            font-size: 20px;
            width: 20px; /* Adjust size as needed */
            height: 20px; /* Adjust size as needed */
            opacity: 0.7; /* Transparent white */
            transition: opacity 0.3s;
            color: #777777;
        }

            .social-icons a i:hover {
                opacity: 1; /* Full opacity on hover */
                color: white;
            }

    .banner img {
        width: 76vh;
        height: 40vh;
        transform: translateX(-250px);
    }

    nav {
        margin: 0px;
    }

    #cursor {
        display: none;
    }

    .abt-section{
        margin-top: 100px;
        text-align: center;
    }

    .abt-h{
        font-size: 50px;
    }

    .pra{
        font-size: 15px;
        text-align: left;
    }

    .skills-section{
        margin-top: 100px;
        margin-bottom: 100px;
    }

    .bt-cv{
        margin-top: 20px;
    }

    .social-icons{
        top: 35% !important;
    }

    .owl-1 .owl-nav .owl-prev {
        left: 0px !important;
    }
    
    .owl-1 .owl-nav .owl-next {
        right: 0px !important;
    }

}

/*Projects Edit section*/

.slider {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 10px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

    .slider::-webkit-scrollbar {
        display: none; /* WebKit */
    }

.slide {
    flex: 0 0 auto;
    width: 200px;
}

/*Project Details*/

.owl-1 .owl-nav {
    width: 100%;
    position: absolute;
    top: 50%;
}

    .owl-1 .owl-nav .owl-next,
    .owl-1 .owl-nav .owl-prev {
        border: 1px solid red;
        z-index: 92;
        position: absolute;
        top: 50%;
    }

        .owl-1 .owl-nav .owl-next:active, .owl-1 .owl-nav .owl-next:focus,
        .owl-1 .owl-nav .owl-prev:active,
        .owl-1 .owl-nav .owl-prev:focus {
            outline: none;
        }

        .owl-1 .owl-nav .owl-next span,
        .owl-1 .owl-nav .owl-prev span {
            color: #fff;
        }

            .owl-next{
                font-size: 60px !important;
            }
            
            .owl-prev{
                font-size: 60px !important;
            }

    .owl-1 .owl-nav .owl-next {
        border: 4px solid blue;
        right: 20px;
    }

    .owl-1 .owl-nav .owl-prev {
        left: 20px;
    }

.owl-1 .owl-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
}

    .owl-1 .owl-dots .owl-dot {
        background: none;
        display: inline-block;
    }

        .owl-1 .owl-dots .owl-dot > span {
            display: inline-block;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            margin: 4px;
        }

        .owl-1 .owl-dots .owl-dot.active > span {
            background: white;
        }

        .owl-1 .owl-dots .owl-dot:active, .owl-1 .owl-dots .owl-dot:focus {
            outline: none;
        }

.det-img{
    height: 700px;
    object-fit: contain;
}


/*=============== MOBILE NAV ===============*/

ul {
    list-style: none;
}

.mobile-nav {
    position: fixed;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    background-color: #1e1e1e;
    width: 90%;
    margin-inline: auto;
    box-shadow: 0 2px 16px hsla(228, 95%, 4%, .1);
    padding: 1rem 1.75rem;
    border-radius: 4rem;
    z-index: var(--z-fixed);
}

.nav__list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
    padding-left: 0px;
}

.nav__link {
    color: white;
    font-size: 2rem;
    transition: color .4s;
}

.nav__link a{
    color: white;
}

.nav__link i {
    font-size: 2rem;
    color: white;
}

    .nav__link :hover {
        color: darkred !important;
    }

/*=============== EXPAND LIST ===============*/
.nav__expand {
    border: none;
    outline: none;
    width: 45px;
    height: 45px;
    background-color: darkred;
    border-radius: 50%;
    cursor: pointer;
}

.nav__expand i{
    color: white;
    font-size: 20px;
}

.nav__expand-icon {
    display: inline-block;
    color: white;
    font-size: 1.5rem;
    transition: transform .4s;
}

.nav__expand-list {
    position: absolute;
    top: -4.5rem;
    left: 0;
    right: 0;
    background-color: #1e1e1e;
    box-shadow: 0 2px 16px hsla(228, 95%, 4%, .1);
    width: max-content;
    margin-inline: auto;
    padding: .5rem 1.5rem;
    border-radius: 4rem;
    display: flex;
    column-gap: 2rem;
    z-index: -1;
    overflow: hidden;
    transform: translateY(5rem) scale(.1);
    transition: transform .5s cubic-bezier(.5, 1.8, .4, .8);
}

    .nav__expand-list li {
        transform: translateY(-3rem);
        transition: transform .4s;
    }
    
    .nav__expand-list span {
        margin-top: 5px;
        color: white;
    }

        .nav__expand-list li:nth-child(1) {
            transition-delay: .2s;
        }

        .nav__expand-list li:nth-child(2) {
            transition-delay: .3s;
        }

        .nav__expand-list li:nth-child(3) {
            transition-delay: .4s;
        }

.nav__expand-link {
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: color .4s;
    text-decoration: none;
}

    .nav__expand-link i {
        font-size: 1.8rem;
        color: white;
    }

    .nav__expand-link span {
        font-size: var(--tiny-font-size);
        font-weight: var(--font-semi-bold);
    }

    .nav__expand-link:hover {
        color: darkred;
    }

/* Show list */
.show-list,
.show-list li {
    transform: translateY(0);
}

/* Rotate icon */
.rotate-icon {
    transform: rotate(135deg);
}

/* Active link */
.active-link {
    color: darkred;
}
