/* Globals */
:root {
    --bg: #F9F9F9;
    --text: #252526;
    --muted: #7A7A7A;
    --card-bg: #ffffff;
    --card-border: #E0E0E0;
    --primary-accent: #01acc3;
    --nav-bg: #F9F9F9;
    --footer-bg: #252526;
}

/* Dark theme overrides */
:root[data-theme="dark"] {
    --bg: #1A0A2A;
    --text: #F0F4F7;
    --muted: #C0B7D1;
    --card-bg: #28143C;
    --card-border: rgba(255, 51, 204, 0.15);
    --nav-bg: #1A0A2A;
    --footer-bg: #201133;
    --primary-accent: #FF33CC;
    --bs-secondary-color: #adb5bd;
    --bs-nav-link-color: #e6eef8;
}

/* Body */

body {
    background-color: var(--bg);
    color: var(--text);
    transition: background-color .3s ease, color .3s ease;
    scroll-behavior: smooth;
}

/* Common */

.btn {
    color: var(--bg);
}

.card {
    background-color: var(--card-bg);
    border-color: var(--card-border);
    color: var(--text);
}

footer {
    background-color: var(--footer-bg) !important;
    color: var(--muted);
}

button {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    background-color: var(--primary-accent) !important;
    border-color: var(--primary-accent) !important;
}

button:hover:not(#theme-toggle-mobile) {
    background-color: darken(var(--primary-accent), 5%) !important;
    border-color: darken(var(--primary-accent), 5%) !important;
    color: var(--primary-accent) !important;
}


/* Navbar */

.navbar,
.bg-body-tertiary {
    background-color: var(--nav-bg) !important;
}

.navbar-brand {
    /* font-weight: bold; */
    color: var(--text) !important;
    transition: color 0.3s ease;
}

.nav-link {
    color: var(--muted) !important;
    transition: color 0.3s ease;
}

.nav-link.active {
    color: var(--text) !important;
    font-weight: bold;
}

/* Theme toggler */

#theme-toggle {
    line-height: 1;
    padding: 0.35rem 0.6rem;
}

.theme-toggle-mobile {
    position: fixed;
    right: 16px;
    top: 72px;
    z-index: 1100;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transition: transform .12s ease, background-color .2s ease;
    background-color: var(--primary-accent);
    color: var(--bg);
    border: none !important;
}

/* show on small screens */
@media (max-width: 768px) {
    .theme-toggle-mobile {
        display: flex;
    }
}

.theme-toggle-mobile:active {
    transform: scale(.96);
}

/* Sections */

.my-section {
    min-height: 90vh;
}

.home-section {
    min-height: 100vh;
}

.scroll-section {
    scroll-margin-top: 70px;
}

/* Bottom Navbar */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 62px;
    background: var(--nav-bg);
    z-index: 999;
    padding-left: 8px;
    padding-right: 8px;
}

.nav-label {
    display: none;
}

.bottom-nav .nav-link {
    color: var(--muted) !important;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0 0 0;
    transition: color 0.3s ease;
    transition: border-bottom 0.3s ease;
}

.bottom-nav .nav-link i {
    font-size: 1.4rem;
    margin-bottom: 3px;
}

.bottom-nav .nav-link.active {
    color: var(--text) !important;
    border-bottom: 1px solid var(--text) !important;
    font-weight: 600;
}

@media (max-width: 768px) {
    .bottom-nav {
        display: block !important;
    }

    body {
        padding-bottom: 56px;
    }

    #main-navbar {
        display: none !important;
    }
}


/* Home Section */

.btn-image {
    display: inline-flex;
    align-items: center;
    border-radius: 50%
}

.btn-image img {
    width: 68px;
    height: 68px;
    border-radius: 50%
}

.btn-image:hover {
    transition: transform 0.3s;
    transform: translateY(-4px);
    transform: scale(1.1);
    border-radius: 50%
}

.top-text-hi {
    display: none;
    text-align: center;
}

.home-social-icon {
    font-size: 64px;
    color: var(--text);
}

.home-social-icon:hover {
    color: var(--primary-accent);
    transition: color 0.3s ease;
    transform: scale(1.3);

}

#downloadcvbtn,
#contactbtn {
    height: 56px;
    text-decoration: none;
    font-weight: bold;
}


@media (max-width: 768px) {

    #downloadcvbtn,
    #contactbtn {
        width: 90%;
    }

    .downloadcvbtn-wrapper {
        display: flex;
        justify-content: center;
    }

    .social-link-wrapper {
        justify-content: center;
    }

    .social-link-wrapper a {
        margin-left: 12px;
        margin-right: 12px;
    }

    .top-text {
        display: none;
    }

    .top-text-hi {
        display: block;
    }

    .top-title {
        text-align: center;
    }

    .top-desc {
        text-align: center;
    }

}

/* About Section */


.counter {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-text {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.2;
    color: var(--text);
    text-align: center;
    padding-top: 8px;
}

.about-image {
    text-align: right;
}


@media (max-width: 768px) {

    .about-image {
        text-align: center !important;
    }

    .counter-wrapper {
        justify-content: center;
    }

    #contactbtn {
        width: 90%;
    }

    .contactbtn-wrapper {
        display: flex;
        justify-content: center;
    }

    #about {
        margin-top: 16px;
    }

}

/* Skills Section */

.skills-scroll-wrapper {
    position: relative;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent !important;
    color: var(--primary-accent);
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    align-items: center;
    opacity: 1;
    visibility: visible;
}

.scroll-btn.left {
    left: -40px;
}

.scroll-btn.right {
    right: -40px;
}

.scroll-btn:hover {
    background: rgba(13, 110, 253, 0.2);
}

.scroll-btn.inactive:hover {
    background: transparent;
}

.scroll-btn.hidden {
    opacity: 0;
    visibility: hidden;
}

.scroll-btn.inactive {
    color: var(--muted);
}

.skills-scroll {
    scrollbar-width: none;
    scroll-behavior: smooth;
    margin-bottom: 1.5rem;
    padding-bottom: .5rem;
    margin-top: .5rem;
    display: flex;
    overflow: auto;
}

.skills-scroll>div {
    padding-right: 1.5rem !important;
    margin-top: 1.5rem !important;

}

.skill-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.skill-card {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
    transition: 0.3s ease;
    background-color: var(--card-bg);
    border-color: var(--card-border);
    color: var(--text);
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}


@media (max-width: 768px) {

    .scroll-btn {
        display: none;
    }

}

/* My Journey */

#timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 12px;
    background: var(--primary-accent);
    transform: translateX(-50%);
    z-index: 1;
    border-radius: 10px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 1.5rem;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item .content {
    /* background: #f8f9fa; */
    padding: 1rem 1.5rem;
    border-radius: 8px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    background-color: var(--card-bg);
    border-color: var(--card-border);
    color: var(--text);
}

.timeline-circle {
    width: 30px;
    height: 30px;
    background-color: var(--primary-accent);
    position: absolute;
    border-radius: 50%;
    z-index: 3;
    justify-items: center;
    justify-self: center;
    align-content: center;
}

.timeline-circle div {
    background-color: var(--primary-accent);
    width: 14px;
    height: 14px;
    border-radius: 50%;

}

.timeline-circle-right {
    right: -15px;

}

.timeline-circle-left {
    left: -15px;

}


@media (max-width: 768px) {

    /* Responsive stacking*/

    .timeline-item,
    .timeline-item.right,
    .timeline-item.left {
        width: 90%;
        left: 25px;
        text-align: left;
    }

    .timeline-line {
        left: 20px;
        transform: none;
    }

    .timeline-circle-right {
        right: unset;
        left: -15px;
    }

}

/* Certifications */

.certifications-card {
    /* background-color: var(--card-bg); */
    cursor: pointer;
    transition: transform 0.2s ease;
}

.certifications-card:hover {
    transform: scale(1.02);
}


/* Project Sections */

.clickable-card {
    background-color: var(--card-bg);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.clickable-card:hover {
    transform: scale(1.02);
}

.card-text {
    min-height: 144px;
}

/* Contact Me */

.contact-info {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
    text-decoration: none !important;
    color: var(--text) !important;
}

.contact-info>i {
    margin-right: 12px;
    font-size: 28pt;
    font-weight: bold;
}

.contact-info>div>span {
    font-size: 16pt;
}

form label {
    font-size: 16pt;
}

form input {
    height: 60px;
    line-height: 60px;
    padding-top: 5px;
    box-sizing: border-box;
    font-size: 16pt;
}

form textarea {
    padding-top: 5px;
    box-sizing: border-box;
}

form button {
    height: 60px;
    font-weight: bold !important;
    font-style: 18pt !important;
}

.contact-info-divider {
    background-color: #a6a6a6;
    width: 1px;
    max-width: 1px;
    padding: 0;
    margin-top: 20px;
    margin-bottom: 20px;
}


@media (max-width: 768px) {
    .contact-info-divider {
        width: 90vw;
        max-width: unset;
        height: 1px;
    }

    .contact-info>div>span {
        font-size: 12pt;
    }

    .about-image {
        text-align: center !important;
    }


}

/* Footer Social Icons */

footer .social-icon {
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

footer .social-icon i {
    transition: transform 0.3s ease, color 0.3s ease;
}

footer .social-icon:hover i {
    transform: scale(1.3);
}


.thankyou-btn {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    background-color: var(--primary-accent) !important;
    border-color: var(--primary-accent) !important;
    height: 48px;
    text-decoration: none;
    font-weight: bold;
}