body {
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
    background: #000;
    color: #fff;
    margin: 0;
    height: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

html {
    scroll-behavior: smooth;
}

.navbar .nav-link.active {
    position: relative;
    display: inline-block;
    color: #0d6efd !important;
}

.navbar .nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background-color: #0d6efd;
    border-radius: 2px;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 180px 0 0 0;
    position: relative;
}

.btn-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d6efd;
    color: white;
    border: none;
    cursor: pointer;
    visibility: hidden;
}

.btn-to-top.show {
    visibility: visible;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.glass-card,
.glass-contact {
    border-radius: 15px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
    transition: 0.3s ease;
}

.glass-card:hover,
.glass-contact:hover {
    background: linear-gradient(
            135deg,
            rgba(102, 16, 242, 0.7) 0%,
            rgba(13, 202, 240, 0.02) 100%
    );
    transform: scale(1);
}

.w-65 {
    width: 65% !important;
}

.w-70 {
    width: 70% !important;
}

.w-80 {
    width: 80% !important;
}

.w-85 {
    width: 85% !important;
}

.w-90 {
    width: 90% !important;
}

.section-padding {
    padding: 80px 0;
}

section[id] {
    scroll-margin-top: 90px;
}

#portfolio {
    padding: 40px 0;
}

#contact {
    margin: 20px 0 80px 0;
    padding: 40px 0;
}

#portfolio,
#contact {
    min-height: auto;
}

.timeline-outer-wrapper {
    position: relative;
}

.timeline-h-line {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.timeline-scroll-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-x: auto;
    padding: 60px 0 20px;
    scroll-behavior: smooth;
}

.timeline-badge {
    position: absolute;
    top: 20px;
    left: 0;
    z-index: 2;
}

.timeline-node {
    min-width: 260px;
    position: relative;
}

.node-dot {
    width: 14px;
    height: 14px;
    background: #0d6efd;
    border-radius: 50%;
    margin-bottom: 10px;
}

.node-date {
    font-size: 0.85rem;
    opacity: 0.75;
    margin-bottom: 10px;
}

.node-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(8px);
    transition: 0.3s ease;
}

.node-card:hover {
    background: linear-gradient(
            135deg,
            rgba(102, 16, 242, 0.7) 0%,
            rgba(13, 202, 240, 0.02) 100%
    );
    transform: scale(1);
}

.text-readability {
    white-space: pre-line;
    word-break: break-word;
    line-height: 1.6;
    font-size: 0.875rem;
    margin: 0;
    overflow: hidden;
    transition: 0.3s ease;
}

.node-card:hover .text-readability {
    color: #0d6efd;
}

.btn-gradient {
    background: linear-gradient(
            135deg,
            #0dcaf0 0%,
            #6610f2 100%
    );
    transition: 0.3s ease;
}

.btn-gradient:hover {
    background: linear-gradient(
            135deg,
            #6610f2 0%,
            #0dcaf0 100%
    );
    box-shadow:
            0 0 10px #0dcaf0,
            0 0 20px #0dcaf0,
            0 0 40px #6610f2;
}

footer {
    padding: 1rem 0;
}

.navbar-bg-pitch-black {
    background-color: #000;
}

.bring-to-front {
    position: relative;
    z-index: 10;
}

main {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

section {
    min-height: 100vh;
    padding-top: 60px;
    scroll-margin-top: 90px;
}

#apiDetailsModal .modal-content {
    background: #111827;
    color: #fff;
    border: 1px solid rgba(13, 202, 240, 0.25) !important;
    border-radius: 18px;
    box-shadow:
            0 25px 80px rgba(0, 0, 0, 0.75),
            0 0 30px rgba(13, 202, 240, 0.08);
}

#apiDetailsModal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.25rem 1.5rem;
}

#apiDetailsModal .modal-title {
    color: #fff;
}

#apiDetailsModal .modal-body {
    color: #fff;
    padding: 1.5rem;
}

#apiDetailsModal .text-readability {
    color: rgba(255, 255, 255, 0.75);
}

#apiDetailsModal .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1rem 1.5rem;
}

#apiDetailsModal .badge {
    padding: 0.55rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 50rem;
}

#apiDetailsModal .api-workflow {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

#apiDetailsModal .api-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    transition: 0.25s ease;
}

#apiDetailsModal .api-step:hover {
    background: rgba(13, 202, 240, 0.06);
    border-color: rgba(13, 202, 240, 0.2);
}

#apiDetailsModal .api-step-number {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(13, 202, 240, 0.12);
    border: 1px solid rgba(13, 202, 240, 0.35);
    color: #0dcaf0;
    font-weight: 600;
    font-size: 0.85rem;
}

#apiDetailsModal .api-step-text {
    margin: 0;
    padding-top: 0.3rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    line-height: 1.5;
}

#apiDetailsModal .alert {
    background: rgba(13, 202, 240, 0.08);
    border: 1px solid rgba(13, 202, 240, 0.2);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.85);
}

.modal-backdrop.show {
    opacity: 0.8;
}

#apiDetailsModal .btn-close {
    opacity: 0.9;
}

#apiDetailsModal .btn-close:hover {
    opacity: 1;
}

#apiDetailsModal .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    transition: 0.3s ease;
}

#apiDetailsModal .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

@media (max-width: 576px) {
    #apiDetailsModal .modal-dialog {
        margin: 0.75rem;
    }

    #apiDetailsModal .modal-content {
        border-radius: 14px;
    }

    #apiDetailsModal .modal-body {
        padding: 1.25rem;
    }

    #apiDetailsModal .modal-header {
        padding: 1rem 1.25rem;
    }

    #apiDetailsModal .modal-footer {
        padding: 0.75rem 1.25rem;
    }

    #apiDetailsModal .api-workflow {
        gap: 0.6rem;
    }

    #apiDetailsModal .api-step {
        padding: 0.65rem 0.75rem;
        gap: 0.75rem;
    }

    #apiDetailsModal .api-step-number {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
    }
}