/********** Template CSS **********/
:root {
    --primary: #6244C5;
    --secondary: #FFC448;
    --light: #FAFAFB;
    --dark: #12141D;
}

.back-to-top {
    position: fixed !important;
    right: 30px !important;
    bottom: 30px !important;
    left: auto !important;
    top: auto !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 48px !important;
    height: 48px !important;
    opacity: 1;
    visibility: visible;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

/* Primary button hover — lift + bright glow */
.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

/* Primary button hover — only in Hero section */
#home .btn.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(98, 68, 197, 0.45);
    filter: brightness(1.12);
}

#home .btn.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(98, 68, 197, 0.35);
}

/* Hire Me frosted glass button hover — fill white + scale */
#home .btn[style*="rgba(255,255,255"] {
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#home .btn[style*="rgba(255,255,255"]:hover {
    background: rgba(255, 255, 255, 0.38) !important;
    border-color: rgba(255, 255, 255, 0.9) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(255, 255, 255, 0.2);
    letter-spacing: 1px;
}

#home .btn[style*="rgba(255,255,255"]:active {
    transform: translateY(-1px);
}

/*** Icon / Square Buttons (Back to Top, social icons etc.) ***/
.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar.fixed-top {
    display: none;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    padding: 20px 15px;
    color: var(--dark);
    font-size: 18px;
    font-weight: 600;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        padding: 10px 0;
    }
}


/*** Header ***/
#home {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("../img/profile image.JPG") center 43% no-repeat;
    background-size: cover;
}

@media (max-width: 991.98px) {
    #home {
        background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("../img/new-bg.jpeg") center top no-repeat;
        background-size: cover;
    }
}

#home h1,
#home h2,
#home h3,
#home h4,
#home h5,
#home h6,
#home .typed-cursor {
    color: #ffffff !important;
}

.typed-cursor {
    font-size: 30px;
    color: var(--dark);
}

.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border-radius: 100%;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--primary);
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 100%;
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: #FFFFFF;
    border-radius: 100%;
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid var(--primary);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

.modal-video .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

.modal-video .modal-body {
    position: relative;
    padding: 0px;
}

.modal-video .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}


/*** About ***/
#about .years .display-1 {
    font-size: 7rem;
}

#stackInfo {
    margin-top: 1rem;
}

#imageContainer img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
}

/*** Skills ***/
.skills-list {
    width: 100%;
}

.skill-item {
    margin-bottom: 12px;
}

.skill-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark);
}

#skill .progress {
    height: 5px;
    border-radius: 5px;
}

#skill .progress .progress-bar {
    width: 0px;
    border-radius: 5px;
    transition: 3s;
}

#skill .nav-pills .nav-link {
    color: var(--dark);
}

#skill .nav-pills .nav-link.active {
    color: #FFFFFF;
}

#skill .tab-content hr {
    width: 30px;
}

#mySkills {
    margin-top: 2em;
}


/*** Service ***/

.github-repo-item {
    border: 1px solid #f0f0f0;
    transition: background 0.2s, border-color 0.2s;
}

.github-repo-item:hover {
    background: #f5f3ff;
    border-color: var(--primary);
}


.service-item .bg-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url(../img/bg-icon.png) center center no-repeat;
    background-size: cover;
}


/*** Project Portfolio ***/


#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--primary);
    border-color: var(--primary);
}

.portfolio-img {
    position: relative;
    height: 300px;
}

.portfolio-img img {
    height: 100%;
    object-fit: cover;
}

.portfolio-btn {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(98, 68, 197, .9);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 30px;
    padding-bottom: 100px !important;
    opacity: 0;
    transition: .5s;
}

.portfolio-item:hover .portfolio-btn {
    opacity: 1;
    padding-bottom: 30px !important;
}



/*** Responsive Design ***/

/* Large tablets and small desktops */
@media (max-width: 1199.98px) {
    #about .years .display-1 { font-size: 5.5rem; }
    #imageContainer img { height: 155px; }
}

/* Tablets */
@media (max-width: 991.98px) {
    #about .years .display-1 { font-size: 5rem; }
    #home .container { text-align: center; }
    #home .d-flex.justify-content-start { justify-content: center !important; }
    #imageContainer img { height: 160px; }
    #skill .col-lg-6:first-child { margin-bottom: 1rem; }
    #portfolio-flters { text-align: center; padding-left: 0; }
    #portfolio-flters li { margin: 4px 6px !important; }
}

/* Mobile phones */
@media (max-width: 767.98px) {
    /* Hero */
    #home { padding-top: 80px; padding-bottom: 40px; text-align: center; }
    #home h1.display-3 { font-size: 2.2rem; }
    #home h2 { font-size: 1.1rem; }
    #home .d-flex.justify-content-start {
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 12px;
    }

    /* About */
    #about { padding-top: 2rem; padding-bottom: 1rem; }
    #about .years .display-1 { font-size: 4rem; }
    #imageContainer { margin-bottom: 1rem; }
    #imageContainer img { height: 140px; }
    #stackInfo, #agricInfo { flex-wrap: wrap; gap: 8px; }
    #stackInfo h5, #agricInfo h5 {
        border-right: none;
        padding-right: 0;
        margin-right: 0;
        font-size: 0.9rem;
    }

    /* Skills */
    #skill { padding-top: 2rem; }
    #mySkills { margin-top: 1rem; }
    #skill .nav-pills .nav-link { font-size: 0.9rem; padding: 0.5rem; }

    /* Services */
    #service .service-item { flex-direction: column; }
    #service h1.display-5 { font-size: 1.8rem; }

    /* Projects */
    #portfolio-flters { text-align: center; padding-left: 0; }
    #portfolio-flters li { font-size: 0.82rem; margin: 3px 5px !important; }
    #project h1.display-5 { font-size: 1.8rem; }

    /* Contact */
    #contact .col-lg-5, #contact .col-lg-7 { padding: 0 1rem; }
}

/* Small phones (< 480px) */
@media (max-width: 479.98px) {
    #home h1.display-3 { font-size: 1.8rem; }
    #about .years .display-1 { font-size: 3.2rem; }
    #imageContainer img { height: 120px; }
    .btn.py-3 {
        padding-top: 0.6rem !important;
        padding-bottom: 0.6rem !important;
        font-size: 0.88rem;
    }
    #portfolio-flters li { font-size: 0.78rem; margin: 2px 4px !important; }
}
