html {
    scroll-behavior: smooth;
}

body {
    font-family: Montserrat, system-ui, "Segoe UI", Roboto, -apple-system, sans-serif;
    color: #111827;
    background: #fff;
}

.section-divider {
    border-top: 1px solid #dbe1e8;
}

.mobile-menu-backdrop {
    display: none;
}

.mobile-menu-backdrop.is-open {
    display: flex;
}

.mobile-menu-panel {
    transform: translateY(-12px);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-backdrop.is-open .mobile-menu-panel {
    transform: translateY(0);
    opacity: 1;
}

/* Consistent section typography */
.section-title {
    font-size: 1.125rem;
    line-height: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.section-description {
    font-size: 0.875rem;
    line-height: 1.5rem;
    color: #6b7280;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
}

/* Scroll fade-in state */
.reveal {
    opacity: 0;
    transform: translateY(28px);
}

/* Beating / blinking profile border */
.profile-ring {
    animation: pulseRing 1.7s ease-in-out infinite;
    background-size: cover;
    background-position: 0px 2px;
    border: 5px solid #6366f1;
}

@keyframes pulseRing {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, .08);
        border-color: #6366f1;
    }

    50% {
        box-shadow: 0 0 0 8px rgba(37, 99, 235, .12);
        border-color: #6366f1;
    }
}

.project-line {
    position: relative;
}

.project-line::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #dbe1e8;
    transform: translateX(-50%);
}

.project-item {
    position: relative;
}

.project-item::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 28px;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #2563eb;
    transform: translateX(-50%);
    border: 2px solid white;
    z-index: 2;
}

.project-card-link {
    display: block;
    width: calc(50% - 42px);
    color: inherit;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.project-card-link:hover,
.project-card-link:focus-visible {
    transform: scale(1.03);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.12);
    cursor: pointer;
}

.project-card-link.is-unavailable:hover,
.project-card-link.is-unavailable:focus-visible {
    transform: none;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    cursor: not-allowed;
}

.project-card {
    width: 100%;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.project-unavailable-modal .modal-content {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.project-unavailable-modal .modal-header,
.project-unavailable-modal .modal-footer {
    border-color: transparent;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-900 {
    color: #111827;
}

.project-item:nth-child(odd) .project-card-link {
    margin-left: auto;
}

.project-item:nth-child(even) .project-card-link {
    margin-right: auto;
}

.project-tech-divider {
    width: 100%;
    height: 2px;
    margin-top: 0.8rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
}

.project-tech-stack {
    font-size: 0.8rem;
    line-height: 1.5rem;
    color: #1f2937;
    font-weight: 600;
}

.project-tech-stack strong {
    color: #2563eb
}

.experience-details {
    display: none;
}

.experience-toggle {
    border-radius: 0.375rem;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.experience-toggle:hover {
    background-color: #eff6ff;
}

.experience-toggle-icon {
    transition: transform 0.25s ease;
}

.experience-toggle.is-open .experience-toggle-icon {
    transform: rotate(180deg);
}

.project-thumb {
    overflow: hidden;
    background: #f4f6f8;
    position: relative;
    background-size: contain;
    background-position: center;
    height: 200px;
    width: 100%;
    background-repeat: no-repeat;
}

/* Lightweight CSS mockups so the page works with no image assets */
.mock-window {
    position: absolute;
    inset: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .12);
}

.mock-top {
    height: 18px;
    background: #1d4ed8;
}

.mock-body {
    display: grid;
    grid-template-columns: 28% 72%;
    height: calc(100% - 18px);
}

.mock-side {
    background: #f1f5f9;
}

.mock-content {
    padding: 10px;
    background: #fff;
}

.mock-bar {
    height: 8px;
    background: #bfdbfe;
    border-radius: 999px;
    margin-bottom: 7px;
}

.mock-bar.short {
    width: 45%;
}

.mock-bar.mid {
    width: 70%;
}

.mock-bar.long {
    width: 90%;
}

.skills-heading {
    font-size: 2.15rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #111827;
}

.skills-heading-line {
    width: 110px;
    height: 4px;
    margin: 8px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #1d4ed8, #60a5fa);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1.75rem;
}

.skill-card {
    background: #f4f6f8;
    border: 1px solid #dfe5eb;
    border-radius: 0.9rem;
    padding: 1.5rem 1.35rem 1.2rem;
    box-shadow: 0 1px 0 rgba(17, 24, 39, 0.02);
}

.skill-header {
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    font-weight: 800;
    color: #1f5fd8;
    margin-bottom: 1.25rem;
}

.skill-brand-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.skill-icon-group {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.skill-icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.7rem;
    height: 3.7rem;
    border-radius: 999px;
    background: #e5e7eb;
    box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.04);
}

.skill-icon-badge img {
    width: 2.2rem;
    height: 2.2rem;
    object-fit: contain;
    display: block;
}

.skill-title {
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
}

.skill-copy {
    margin-top: 0.8rem;
    color: #4b5563;
    font-size: 0.96rem;
    line-height: 1.6;
}

@media (min-width: 640px) {
    .skill-card {}
}

@media (max-width: 767px) {

    .project-line::before,
    .project-item::after {
        display: none;
    }

    .project-card {
        width: 100%;
    }

    .project-card-link {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .project-item:nth-child(odd) .project-card,
    .project-item:nth-child(even) .project-card {
        margin-left: 0;
        margin-right: 0;
    }

    .project-item+.project-item {
        border-top: 1px solid #dbe1e8;
        padding-top: 1.5rem;
    }

    .skills-heading {
        font-size: 1.9rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-brand-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .skill-title {
        font-size: 1rem;
    }
}

.qualification-wrapper span {
    font-size: 20px;
}