@import url('https://fonts.googleapis.com/css2?family=Clicker+Script&family=Kaushan+Script&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Yatra+One&display=swap');

:root {
    --bg-black-900: #f8fafc;
    /* Light background */
    --bg-black-100: #f1f5f9;
    /* Lighter background */
    --bg-black-50: #e2e8f0;
    /* Accent background */
    --text-black-900: #1e293b;
    /* Main text (dark slate) */
    --text-black-700: #475569;
    /* Secondary text (slate) */
    --primary-color: #0f172a;
    /* Primary accent (navy blue) */
    --shadow-color: rgba(0, 0, 0, 0.08);
    --p-color: #1e293b;
}

body.dark {
    --bg-black-900: #0f172a;
    /* Deep navy background */
    --bg-black-100: #1e293b;
    /* Slightly lighter navy */
    --bg-black-50: #334155;
    /* Accent background */
    --text-black-900: #f1f5f9;
    /* Main text (very light) */
    --text-black-700: #cbd5e1;
    /* Secondary text (light slate) */
    --primary-color: #8b958b;
    /* Primary accent (sky blue/cyan) */
    --shadow-color: rgba(0, 0, 0, 0.5);
    --p-color: #f1f5f9;
}

body {
    line-height: 1.5;
    font-size: 16px;
    font-family: "Yatra One", system-ui;
}

* {
    margin: 0;
    padding: 0;
    outline: none;
    text-decoration: none;
    box-sizing: border-box;
}

a {
    color: var(--p-color);
    text-decoration: none;
}

::before,
::after {
    box-sizing: border-box;
}

ul {
    list-style: none;
}

.section {
    background: var(--bg-black-900);
    min-height: 100vh;
    display: block;
    padding: 0 30px;
    opacity: 1;
    position: fixed;
    left: 270px;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transition: all .3s ease;
}

.section.back-section {
    z-index: 1;
}

.section.active {
    z-index: 2;
    opacity: 1;
    animation: slideSection 1s ease;
}

@keyframes slideSection {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(0%);
    }
}

.hidden {
    display: none !important;
}

.padd-15 {
    padding-left: 15px;
    padding-right: 15px;
}

.container {
    max-width: 1100px;
    width: 100%;
    margin: auto;
}

.section .container {
    padding-top: 60px;
    padding-bottom: 70px;
}

.section-title {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 40px;
    color: var(--skin-color);
    font-weight: 700;
    position: relative;
}

.section-title h2::before {
    position: absolute;
    content: "";
    height: 4px;
    width: 50px;
    background-color: var(--skin-color);
    top: 100%;
    left: 0;
}

.section-title h2::after {
    content: "";
    height: 4px;
    width: 25px;
    background-color: var(--skin-color);
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
    position: relative;
}

.btn-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    font-size: 16px;
    font-weight: 500;
    padding: 12px 35px;
    color: white;
    border-radius: 40px;
    display: inline-block;
    white-space: nowrap;
    border: none;
    background: var(--skin-color);
    transition: all 0.3s ease;
}

.btn:hover {
    transform: scale(1.05);
}

.shadow-dark {
    box-shadow: 0 0 20px rgba(48, 46, 77, 0.15);
}

/* ====================== aside ===================== */
.aside {
    width: 270px;
    background: var(--bg-black-100);
    position: fixed;
    left: 0;
    top: 0;
    padding: 30px;
    height: 100%;
    border-right: 1px solid var(--bg-black-50);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.aside .logo {
    position: absolute;
    top: 50px;
    font-size: 30px;
    text-transform: capitalize;
}

.aside .logo a {
    color: var(--text-black-900);
    font-weight: 700;
    padding: 15px 20px;
    font-size: 30px;
    letter-spacing: 5px;
    position: relative;
}

.aside .logo a span {
    font-family: "Clicker Script", cursive;
    font-size: 40px;
}

.aside .logo a::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border-bottom: 5px solid var(--skin-color);
    border-left: 5px solid var(--skin-color);
    bottom: 0;
    left: 0;
}

.aside .logo a::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border-top: 5px solid var(--skin-color);
    border-right: 5px solid var(--skin-color);
    top: 0;
    right: 0;
}

.aside .nav-toggler {
    height: 40px;
    width: 45px;
    border: 1px solid var(--bg-black-50);
    cursor: pointer;
    position: fixed;
    left: 300px;
    top: 20px;
    border-radius: 5px;
    background: var(--bg-black-100);
    display: none;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
}

.aside .nav-toggler span {
    height: 2px;
    width: 18px;
    background: var(--skin-color);
    display: inline-flex;
    position: relative;
}

.aside .nav-toggler.open span {
    background-color: transparent;
}

.aside .nav-toggler span::before {
    content: "";
    height: 2px;
    width: 18px;
    background: var(--skin-color);
    position: absolute;
    top: -6px;
    left: 0;
}

.aside .nav-toggler.open span::before {
    transform: rotate(45deg);
    top: 0;
}

.aside .nav-toggler span::after {
    content: "";
    height: 2px;
    width: 18px;
    background: var(--skin-color);
    position: absolute;
    top: 6px;
    left: 0;
}

.aside .nav-toggler.open span::after {
    transform: rotate(-45deg);
    top: 0;
}

.aside .nav {
    margin-top: 7rem;
}

.aside .nav li {
    margin-bottom: 20px;
    display: block;
}

.aside .nav li a {
    font-size: 16px;
    font-weight: 600;
    display: block;
    border-bottom: 1px solid var(--bg-black-50);
    color: var(--text-black-900);
    padding: 5px 15px;
}

.aside .nav li a.active {
    color: var(--skin-color);
}

.aside .nav li a i {
    margin-right: 15px;
}

/* Social Media Icons */
.aside .social-media {
    margin-top: 50px;
    display: inline-;
    justify-content: center;
    gap: 15px;
    padding: 10px 0;
    border-top: 1px solid var(--bg-black-50);
}

.aside .social-media a {
    color: var(--text-black-900);
    font-size: 20px;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 8px;
    border-radius: 50%;
    background: transparent;
}

.aside .social-media a:hover {
    color: var(--skin-color);
    transform: translateY(-3px);
    border-color: var(--skin-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ====================== home ==================== */
.home {
    min-height: 100vh;
    display: flex;
    color: var(--text-black-900);
}

.home .home-info {
    flex: 0 0 60%;
    min-width: 60%;
}

h3.hello {
    font-size: 28px;
    margin: 15px 0;
}

h3.hello span {
    font-family: 'Clicker Script', cursive;
    font-size: 40px;
    font-weight: 700;
    color: var(--skin-color);
}

h3.my-profession {
    display: flex;
    align-items: center;
    font-size: 30px;
    margin: 15px 0;
    line-height: 34px;
}

.typing {
    color: var(--skin-color);
    font-size: 25px;
    height: 34px;
    padding-left: 8px;
    display: -webkit-box;
    display: -ms-flexbox;
    text-transform: capitalize;
    letter-spacing: 2px;
}

.typing .words {
    overflow: hidden;
}

.typing .word {
    display: block;
    height: 100%;
    animation: type-spin 4s infinite;
}

@keyframes type-spin {
    10% {
        -webkit-transform: translateY(-102%);
        transform: translateY(-102%);
    }

    25% {
        -webkit-transform: translateY(-100%);
        transform: translateY(-100%);
    }

    35% {
        -webkit-transform: translateY(-202%);
        transform: translateY(-202%);
    }

    50% {
        -webkit-transform: translateY(-200%);
        transform: translateY(-200%);
    }

    60% {
        -webkit-transform: translateY(-302%);
        transform: translateY(-302%);
    }

    75% {
        -webkit-transform: translateY(-300%);
        transform: translateY(-300%);
    }

    85% {
        -webkit-transform: translateY(-402%);
        transform: translateY(-402%);
    }

    100% {
        -webkit-transform: translateY(-400%);
        transform: translateY(-400%);
    }
}

.home-info p {
    margin-bottom: 70px;
    font-size: 20px;
    color: var(--text-black-700);
}

.home .home-img {
    flex: 0 0 40%;
    min-width: 40%;
    text-align: center;
    position: relative;
}

.home-img::after {
    content: "";
    position: absolute;
    height: 80px;
    width: 80px;
    border-bottom: 10px solid var(--skin-color);
    border-right: 10px solid var(--skin-color);
    right: 20px;
    bottom: -40px;
}

.home-img::before {
    content: "";
    position: absolute;
    height: 80px;
    width: 80px;
    border-top: 10px solid var(--skin-color);
    border-left: 10px solid var(--skin-color);
    left: 20px;
    top: -45px;
}

.home .home-img img {
    margin: auto;
    height: 400px;
    width: 300px;
    border-radius: .5rem;
    border: 3px solid var(--skin-color);
}

/* =================== Social Media ==================== */
/* ======================= About ======================= */

.about .about-content {
    flex: 0 0 100%;
    max-width: 100%;
}

.about .about-content .about-text {
    flex: 0 0 100%;
    max-width: 100%;
}

.about .about-content .about-text h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--text-black-900);
}

.about .about-content .about-text h3 span {
    color: var(--skin-color);
}

.about .about-content .about-text p {
    font-size: 16px;
    line-height: 25px;
    font-weight: 600;
    color: var(--text-black-700);
}

.about .about-content .personal-info {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 40px;
}

.about .about-content .personal-info .info-item {
    flex: 0 0 50%;
    max-width: 50%;
}

.about .about-content .personal-info .info-item p {
    font-size: 16px;
    font-weight: 600;
    padding: 16px 0;
    color: var(--text-black-900);
    border-bottom: 1px solid var(--bg-black-50);
}

.about .about-content .personal-info .info-item span {
    font-weight: 400;
    color: var(--text-black-700);
    margin-left: 4px;
    display: inline-block;
}

.about .about-content .personal-info .buttons {
    margin-top: 30px;
}

.about .about-content .personal-info .buttons .btn {
    margin-top: 10px;
}

.about .about-content .skills {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 40px;
}

.about .about-content .skills .skill-item {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 15px;
}

.about .about-content .skills .skill-item h5 {
    line-height: 40px;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-black-900);
    text-transform: capitalize;
}

.about .about-content .skills .skill-item .progress {
    background-color: var(--bg-black-50);
    height: 7px;
    border-radius: 4px;
    width: 100%;
    position: relative;
}

.about .about-content .skills .skill-item {
    margin-bottom: 25px;
}

.about .about-content .skills .skill-item .progress .progress-in {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 4px;
    background-color: var(--skin-color);
}

.about .about-content .skills .skill-item .skill-percent {
    position: absolute;
    right: 0;
    color: var(--text-black-900);
    top: -40px;
    font-weight: 400;
    line-height: 40px;
}

.about .about-content .education,
.about .about-content .experience {
    flex: 0 0 50%;
    max-width: 50%;
    margin-top: 30px;
}

.about .about-content h3.title {
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 700;
    color: var(--text-black-900);
}

.about .about-content .timeline-box {
    flex: 0 0 100%;
    max-width: 100%;
}

.about .about-content .timeline {
    background-color: var(--bg-black-100);
    padding: 30px 15px;
    margin-bottom: 15px;
    border: 1px solid var(--bg-black-50);
    border-radius: 10px;
    width: 100%;
    position: relative;
}

.about .about-content .timeline .timeline-item {
    position: relative;
    padding-left: 37px;
    padding-bottom: 50px;
}

.about .about-content .timeline .timeline-item:last-child {
    padding-bottom: 0;
}

.about .about-content .timeline .timeline-item::before {
    content: "";
    width: 1px;
    position: absolute;
    height: 100%;
    left: 7px;
    top: 0;
    background-color: var(--skin-color);
}

.about .about-content .timeline .circle-dot {
    position: absolute;
    left: 0;
    top: 0;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    background-color: var(--skin-color);
}

.about .about-content .timeline .timeline-date {
    font-weight: 400;
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-black-700);
}

.about .about-content .timeline .timeline-date .fa {
    margin-right: 5px;
}

.about .about-content .timeline .timeline-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 15px;
    text-transform: capitalize;
    color: var(--text-black-900);
}

.about .about-content .timeline .timeline-text {
    line-height: 25px;
    font-size: 16px;
    text-align: justify;
    color: var(--text-black-700);
}

/* ==================== service ================== */
.service .container {
    padding-bottom: 40px;
}

.service .service-item {
    margin-bottom: 30px;
    flex: 0 0 33.33%;
    max-width: 33.33%;
}

.service .service-item .service-item-inner {
    background-color: var(--bg-black-100);
    border: 1px solid var(--bg-black-50);
    border-radius: 10px;
    padding: 30px 15px;
    text-align: center;
    transition: all .3s ease;
    cursor: pointer;
}

.service .service-item .service-item-inner:hover {
    box-shadow: 0 0 20px rgba(48, 46, 77, 0.15);
}

.service .service-item .service-item-inner .icon {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    display: block;
    margin: 0 auto 30px;
    text-align: center;
    transition: all .3s ease;
}

.service .service-item .service-item-inner .icon .fa {
    font-size: 40px;
    line-height: 60px;
    color: var(--skin-color);
    transition: all .3s ease;
}

.service .service-item .service-item-inner:hover .icon {
    background: var(--skin-color);
}

.service .service-item .service-item-inner:hover .icon .fa {
    font-size: 25px;
    color: #fff;
}

.service .service-item .service-item-inner h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-black-900);
    font-weight: 700;
    text-transform: capitalize;
}

.service .service-item .service-item-inner p {
    font-size: 16px;
    color: var(--text-black-700);
    line-height: 25px;
}

/* ==================== classes ================== */
.classes .container {
    padding-bottom: 40px;
}

.classes .classes-item {
    margin-bottom: 30px;
    flex: 0 0 33.33%;
    max-width: 33.33%;
}

.classes .classes-item .classes-item-inner {
    background-color: var(--bg-black-100);
    border: 1px solid var(--bg-black-50);
    border-radius: 10px;
    padding: 30px 15px;
    text-align: center;
    transition: all .3s ease;
    cursor: pointer;
}

.classes .classes-item .classes-item-inner:hover {
    box-shadow: 0 0 20px rgba(48, 46, 77, 0.15);
}

.classes .classes-item .classes-item-inner .icon {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    transition: all .3s ease;
}

.classes .classes-item .classes-item-inner .icon .fab {
    font-size: 40px;
    line-height: 40px;
    color: var(--skin-color);
    transition: all .3s ease;
}

.classes .classes-item .classes-item-inner:hover .icon {
    background: var(--skin-color);
}

.classes .classes-item .classes-item-inner:hover .icon .fab {
    font-size: 25px;
    color: #fff;
}

.classes .classes-item .classes-item-inner h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-black-900);
    font-weight: 700;
    text-transform: capitalize;
}

.classes .classes-item .classes-item-inner p {
    font-size: 16px;
    color: var(--text-black-700);
    line-height: 25px;
}

.classes .classes-item .classes-item-inner .sub-cards {
    display: none;
    margin-top: 20px;
}

.classes .classes-item .classes-item-inner .sub-cards .sub-card {
    background-color: var(--bg-black-50);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all .3s ease;
}

.classes .classes-item .classes-item-inner .sub-cards .sub-card:hover {
    background-color: var(--skin-color);
    color: #fff;
}

.classes .classes-item .classes-item-inner .sub-cards .sub-card h5 {
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 600;
}

.classes .classes-item .classes-item-inner .sub-cards .sub-card p {
    font-size: 14px;
    color: var(--text-black-700);
}

.classes .classes-item .classes-item-inner .sub-cards .sub-card:hover p {
    color: #fff;
}

.classes .classes-item .classes-item-inner .sub-cards .sub-card-link {
    text-decoration: none;
    display: block;
}

.classes .classes-item .classes-item-inner .sub-cards .sub-card-link .sub-card {
    transition: all .3s ease;
}

.classes .classes-item .classes-item-inner .sub-cards .sub-card-link .sub-card:hover {
    background-color: var(--skin-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.classes .classes-item .classes-item-inner .sub-cards .sub-card-link .sub-card:hover p {
    color: #fff;
}

/* =================== portfolio ================= */
.portfolio .container {
    padding-bottom: 40px;
}

.portfolio .portfolio-heading {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 40px;
}

.portfolio .portfolio-heading h2 {
    color: var(--text-black-900);
    font-weight: 500;
}

.portfolio .portfolio-item {
    flex: 0 0 33.33%;
    max-width: 33.33%;
    margin-bottom: 30px;
    text-align: center;
}

.portfolio .portfolio-item-inner {
    border: 6px solid var(--bg-black-100);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    padding: 1rem;
}

.portfolio .portfolio-item-inner .project-img::after {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: var(--bg-black-50);
    top: 0;
    left: 0;
    opacity: 0;
    transition: all .3s ease;
}

.portfolio .portfolio-item-inner:hover .project-img::after {
    opacity: 1;
}

.portfolio .portfolio-item-inner:hover .project-img {
    filter: brightness(70%);
}

.project-img {
    margin: .5rem;
    width: 97%;
    height: 100%;
    /* height: 150px; */
    filter: brightness(100%);
    display: block;
    border-radius: .5rem;
    transition: all 0.3s ease;
}

.project-img[controls] {
    display: none;
}

.project-img:hover {
    transform: scale(1.02);
}

.project-title {
    margin: .5rem;
    color: var(--text-black-900);
}

.btn-container .btn {
    width: 55%;
    font-size: 1rem;
    padding: 10px 20px;
    margin: 0 auto;
}

.p-icon {
    font-size: 1rem;
    margin-left: 5px;
}

/* =================== python projects ================= */
.python-project-item {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 30px;
}

.project-item-inner {
    background-color: var(--bg-black-100);
    border: 1px solid var(--bg-black-50);
    border-radius: 10px;
    padding: 30px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.python-project-item:nth-child(1) .project-item-inner {
    animation-delay: 0.1s;
}

.python-project-item:nth-child(2) .project-item-inner {
    animation-delay: 0.2s;
}

.python-project-item:nth-child(3) .project-item-inner {
    animation-delay: 0.3s;
}

.project-item-inner:hover {
    box-shadow: 0 0 20px var(--shadow-color);
    transform: translateY(-5px);
}

.project-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
    position: relative;
}

.project-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-item-inner:hover .project-gallery::before {
    opacity: 1;
}

.project-gallery img {
    width: auto;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
    /* border: 2px solid var(--bg-black-50); */
}

body.dark .project-gallery img {
    filter: brightness(0.8);
}

.project-gallery img:hover {
    transform: scale(1.05);
    border-color: var(--skin-color);
}

.project-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-black-900);
    text-align: center;
    font-weight: 700;
}

.project-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-black-700);
    margin-bottom: 20px;
    text-align: justify;
}

pre {
    background-color: var(--bg-black-50);
    border-radius: 10px;
    padding: 25px;
    overflow-x: auto;
    margin-bottom: 20px;
    border-left: 5px solid var(--skin-color);
    position: relative;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

pre:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* pre::before {
    content: "";
    position: absolute;
    top: 10px;
    right: 15px;
    background: var(--skin-color);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.5px;
} */

code {
    color: var(--text-black-900);
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
}

/* Syntax highlighting colors (optional) */
code .keyword {
    color: #ff79c6;
}

code .function {
    color: #8be9fd;
}

code .string {
    color: #f1fa8c;
}

.code-container {
    position: relative;
    margin-bottom: 20px;
}

.copy-btn {
    position: absolute;
    top: 35px;
    right: 15px;
    padding: 8px 14px;
    background: var(--skin-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

.copy-btn:hover {
    background: var(--skin-color);
    opacity: 0.85;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-btn i {
    font-size: 13px;
}

body.dark pre {
    background-color: var(--bg-black-50);
}

body.dark code {
    color: var(--text-black-900);
}

.project-item-inner h4 {
    color: var(--text-black-900);
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

/* ====================== Contact ======================= */
.contact-title {
    color: var(--skin-color);
    text-align: center;
    font-size: 25px;
    margin-bottom: 20px;
}

.contact-sub-title {
    color: var(--text-black-900);
    text-align: center;
    font-size: 15px;
    margin-bottom: 60px;
}

.contact .contact-info-item {
    flex: 0 0 25%;
    max-width: 25%;
    text-align: center;
    margin-bottom: 60px;
}

.contact .contact-info-item .icon {
    display: inline-block;
}

.contact .contact-info-item .icon .fa {
    font-size: 25px;
    color: var(--skin-color);
}

.contact .contact-info-item h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-black-900);
    text-transform: capitalize;
    margin: 15px 0 5px;
}

.contact .contact-info-item p {
    font-size: 16px;
    line-height: 25px;
    color: var(--text-black-700);
    font-weight: 400;
}

.contact .contact-form {
    flex: 0 0 100%;
    max-width: 100%;
}

.contact .contact-form .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.contact .contact-form .col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.contact .contact-form .form-item {
    margin-bottom: 30px;
}

.contact .contact-form .form-item .form-control {
    width: 100%;
    height: 50px;
    border-radius: 25px;
    background: var(--bg-black-100);
    border: 1px solid var(--bg-black-50);
    padding: 10px 25px;
    font-size: 16px;
    color: var(--text-black-700);
    transition: all 0.3s ease;
    resize: none;
}

.contact .contact-form .form-item .form-control:focus {
    box-shadow: 0 0 20px rgba(48, 46, 77, 0.15);
}

.contact .conatct-form .form-item textarea.form-control {
    height: 140px;
}

.contact .contact-form .btn {
    height: 50px;
    padding: 0 50px;
}

.input-wrap .form-icon {
    position: absolute;
    right: calc(1.35rem + 2px);
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 1.25rem;
    transition: .3s;
    color: var(--secondary-2-color);
}

/*===================== SCROLL BAR =====================*/
::-webkit-scrollbar {
    width: .6rem;
    background: #555;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: .5rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-black-900);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid var(--text-black-700);
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
    color: var(--text-black-900);
}

.close-modal {
    color: var(--text-black-700);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--skin-color);
    text-decoration: none;
}

.modal-course-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--skin-color);
}

.modal-course-description {
    margin-bottom: 20px;
}

.modal-sub-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-sub-card {
    background: var(--bg-black-100);
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid var(--skin-color);
}

.modal-sub-card h5 {
    margin: 0 0 10px 0;
    color: var(--skin-color);
}

.modal-sub-card p {
    margin: 0;
    color: var(--text-black-700);
}

.modal-sub-card-link {
    text-decoration: none;
    color: inherit;
}

.modal-sub-card-link:hover .modal-sub-card {
    background: var(--bg-black-50);
}

/* ================== Media ================ */
@media (max-width: 1199px) {

    .section .container {
        padding-top: 70px;
    }

    .aside {
        left: -270px;
    }

    .aside.open {
        left: 0;
    }

    .aside .nav-toggler {
        display: flex;
        left: 30px;
    }

    .aside .nav-toggler.open {
        left: 300px;
    }

    .section {
        left: 0;
    }

    .about .about-content .personal-info .info-item p span {
        display: block;
        margin-left: 0;
    }

    .section.open {
        left: 270px;
    }

    main-content {
        padding-left: 0;
    }

}

@media (max-width: 991px) {

    .contact .contact-info-item,
    .portfolio .portfolio-item,
    .service .service-item,
    .classes .classes-item {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .home {
        flex-direction: column;
    }

    .home .home-info {
        flex: 0 0 100%;
        max-width: 100%;
        order: 2;
    }

    .home .home-img {
        flex: 0 0 100%;
        max-width: 100%;
        order: 1;
        text-align: center;
        margin-bottom: 20px;
    }

    .home .home-img img {
        width: 100%;
        max-width: 300px;
        height: auto;
    }

    .home-img::after {
        height: 40px;
        width: 40px;
        border-bottom: 5px solid var(--skin-color);
        border-right: 5px solid var(--skin-color);
        right: 10px;
        bottom: -20px;
    }

    .home-img::before {
        height: 40px;
        width: 40px;
        border-top: 5px solid var(--skin-color);
        border-left: 5px solid var(--skin-color);
        left: 10px;
        top: -22px;
    }
}


@media (max-width: 768px) {

    .contact .conatct-form .col-6,
    .contact .contact-info-item,
    .portfolio .portfolio-item,
    .service .service-item,
    .classes .classes-item,
    .about .about-content .experience,
    .about .about-content .education,
    .about .about-content .skills,
    .about .about-content .personal-info {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .portfolio-item .project-title {
        font-size: 1.5rem;
        text-align: center;
    }

    .portfolio-item .btn-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .portfolio-item .btn {
        width: 40%;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .portfolio-item .project-title {
        font-size: 1.1rem;
    }

    .portfolio-item .btn {
        width: 100%;
        letter-spacing: .1cm;
    }

}

/* =================== python project page ================= */
.project .project-content {
    flex: 0 0 100%;
    max-width: 100%;
    background-color: var(--bg-black-100);
    border-radius: 10px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 0 20px var(--shadow-color);
}

.project .project-text {
    margin-bottom: 40px;
}

.project .project-text h3 {
    font-size: 28px;
    color: var(--text-black-900);
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.project .project-text p {
    font-size: 18px;
    color: var(--text-black-700);
    line-height: 1.7;
    text-align: justify;
    margin-bottom: 0;
}

.project .buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.project .buttons .btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project .buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments for python project page */
@media (max-width: 768px) {
    .project .project-content {
        padding: 20px;
        margin-top: 20px;
    }

    .project .project-text h3 {
        font-size: 24px;
    }

    .project .project-text p {
        font-size: 16px;
    }

    .project .buttons {
        flex-direction: column;
        gap: 15px;
    }

    .project .buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    h3.my-profession {
        font-size: 20px;
    }

    .typing {
        font-size: 18px;
    }

    .project .project-content {
        padding: 15px;
    }

    .project .project-text h3 {
        font-size: 20px;
    }

    .project .project-text p {
        font-size: 14px;
    }
}

/* =================== scroll to top button ================= */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--skin-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --progress: 0;
}

.scroll-to-top::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(var(--skin-color) calc(var(--progress) * 360deg),
            transparent 0deg);
    mask: radial-gradient(circle at center, transparent 26px, black 27px);
    -webkit-mask: radial-gradient(circle at center, transparent 26px, black 27px);
    z-index: -1;
    transition: all 0.3s ease;
}


.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--skin-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.scroll-to-top:active {
    transform: translateY(0);
}

/* =================== python course page ================= */
.course .course-content {
    flex: 0 0 100%;
    max-width: 100%;
    background-color: var(--bg-black-100);
    border-radius: 10px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 0 20px var(--shadow-color);
}

.course .about-text {
    background-color: var(--bg-black-50);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px var(--shadow-color);
    border-left: 5px solid var(--skin-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course .about-text:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.course .about-text h2 {
    font-size: 32px;
    color: var(--skin-color);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.course .about-text h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--skin-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.course .about-text h3 {
    font-size: 24px;
    color: var(--text-black-900);
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--skin-color);
    padding-bottom: 8px;
    position: relative;
}

.course .about-text h3::before {
    content: "📚";
    position: absolute;
    left: -30px;
    top: 0;
    font-size: 20px;
}

.course .about-text h4 {
    font-size: 20px;
    color: var(--text-black-900);
    font-weight: 600;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--skin-color);
    padding-bottom: 6px;
    position: relative;
    transition: all 0.4s ease;
    border-radius: 8px;
    padding: 10px 12px 6px;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 100%);
}

.course .about-text h4:hover {
    color: var(--skin-color);
    border-bottom-color: var(--skin-color);
    background: linear-gradient(135deg, var(--bg-black-50) 0%, rgba(255, 255, 255, 0.1) 100%);
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

.course .about-text h4::before {
    content: "🔹";
    position: absolute;
    left: -30px;
    top: 10px;
    font-size: 18px;
    transition: all 0.4s ease;
    opacity: 0.7;
}

.course .about-text h4:hover::before {
    transform: scale(1.2) rotate(180deg);
    opacity: 1;
    color: var(--skin-color);
}

.course .about-text p {
    font-size: 16px;
    color: var(--text-black-700);
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 15px;
    padding: 0 10px;
}

.course .about-text ul {
    margin-left: 20px;
    margin-bottom: 20px;
    padding: 0;
}

.course .about-text li {
    margin-bottom: 12px;
    padding: 8px 0 8px 25px;
    position: relative;
    color: var(--text-black-700);
    line-height: 1.6;
    border-left: 3px solid transparent;
    transition: border-left-color 0.3s ease;
}

.course .about-text li:hover {
    border-left-color: var(--skin-color);
}

.course .about-text li::before {
    content: "✓";
    color: var(--skin-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 8px;
    font-size: 14px;
}

.course .about-text hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--skin-color), transparent);
    margin: 25px 0;
    border-radius: 1px;
}

.course .about-text p:last-child {
    font-size: 14px;
    color: var(--text-black-700);
    text-align: center;
    margin-bottom: 0;
    font-style: italic;
    background-color: var(--bg-black-100);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--bg-black-50);
}

/* Table styling for course content */
.course .about-text {
    position: relative;
}

.course .about-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: var(--bg-black-100);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-color);
    min-width: 600px;
    /* Ensure table doesn't shrink too much */
}

.course .about-text th,
.course .about-text td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--bg-black-50);
    font-size: 16px;
    color: var(--text-black-900);
    word-wrap: break-word;
}

.course .about-text th {
    background-color: var(--skin-color);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 1;
}

.course .about-text tr:nth-child(even) {
    background-color: var(--bg-black-50);
}

.course .about-text tr:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.course .about-text td:first-child {
    font-weight: 600;
    color: var(--skin-color);
}

.course .about-text td:nth-child(2) {
    color: var(--text-black-700);
}

.course .about-text td:nth-child(3) {
    color: var(--text-black-700);
    font-style: italic;
}

.course .about-text td:nth-child(4) {
    color: var(--text-black-700);
}

/* Responsive table styling */
@media (max-width: 768px) {
    .course .about-text {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .course .about-text table {
        font-size: 14px;
        min-width: 600px;
    }

    .course .about-text th,
    .course .about-text td {
        padding: 8px 10px;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .course .about-text table {
        font-size: 12px;
        min-width: 500px;
    }

    .course .about-text th,
    .course .about-text td {
        padding: 6px 8px;
    }
}

.course .buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.course .buttons .btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 40px;
    background: var(--skin-color);
    color: white;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.course .buttons .btn:hover,
.course .buttons .btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: var(--skin-color);
    color: white;
}

.course .buttons .btn.hire-me {
    background: var(--skin-color);
}

.course .buttons .btn.hire-me:hover,
.course .buttons .btn.hire-me:focus {
    background: var(--skin-color);
    opacity: 0.9;
}

/* Responsive adjustments for python course page */
@media (max-width: 768px) {
    .course .course-content {
        padding: 20px;
        margin-top: 20px;
    }

    .course .about-text h3 {
        font-size: 24px;
    }

    .course .about-text p {
        font-size: 16px;
    }

    .course .buttons {
        flex-direction: column;
        gap: 15px;
    }

    .course .buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .course .course-content {
        padding: 15px;
    }

    .course .about-text h3 {
        font-size: 20px;
    }

    .course .about-text p {
        font-size: 14px;
    }

    .course .about-text p:last-child {
        font-size: 12px;
    }
}