:root {
    --primary-color: #0A2A9F;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --transition: all 0.3s ease;
    --border-radius: 0.375rem;
    --transition-speed: 0.3s;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    --text-muted: #9fa8d8;
}

#about {
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 42, 159, 0.02) 0%, rgba(0, 0, 0, 0.02) 100%);
    z-index: 1;
}

#about .container {
    position: relative;
    z-index: 2;
}

#about.py-5 {
    padding-top: clamp(2rem, 6vw, 5rem) !important;
    padding-bottom: clamp(2rem, 6vw, 5rem) !important;
}

.section-title {
    font-family: 'Inter', sans-serif;
    position: relative;
    font-size: clamp(1.25rem, 6vw, 2.5rem) !important;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: clamp(12px, 3vw, 24px);
    text-align: center;
    line-height: 1.2;
}

.section-title .text-primary {
    position: relative;
    color: var(--primary-color) !important;
}

.section-title .text-primary::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), rgba(10, 42, 159, 0.3));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    animation: underlineExpand 2s ease-out 0.5s forwards;
}

.section-divider {
    width: clamp(50px, 12vw, 80px);
    height: clamp(3px, 0.8vw, 4px);
    background: linear-gradient(90deg, var(--primary-color), rgba(10, 42, 159, 0.3));
    border-radius: 2px;
    margin: clamp(12px, 3vw, 24px) auto clamp(20px, 5vw, 48px);
    position: relative;
    overflow: hidden;
}

.section-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-avatar {
    position: relative;
    display: inline-block;
    margin: 0 auto;
    width: 100%;
}

.about-avatar img {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 3/4;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    margin: 0 auto;
    display: block;
}

.about-avatar:hover img {
    transform: scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.avatar-overlay {
    border-radius: inherit;
    transition: all 0.3s ease;
    opacity: 0;
}

.about-avatar:hover .avatar-overlay {
    opacity: 1;
}

.about-content h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0 0 6px;
    line-height: 1.3;
}

.about-content h2 .primary {
    color: var(--primary-color) !important;
}

.about-content .role {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
    font-weight: 400;
    line-height: 1.4;
}

.about-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.content-divider {
    height: 1px;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.15), transparent);
    margin: 32px 0;
    opacity: 0.6;
}

.core-stack {
    margin-bottom: 28px;
}

.core-stack strong {
    font-size: 0.8rem;
    color: #8e9aaf;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(10, 42, 159, 0.08);
    border: 1px solid rgba(10, 42, 159, 0.15);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 500;
    margin: 4px 4px 0 0;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.tech-pill:hover {
    background: rgba(10, 42, 159, 0.15);
    transform: translateY(-1px);
}

.highlight-projects {
    margin-top: 18px;
    margin-bottom: 26px;
}

.highlight-projects strong {
    font-size: 0.8rem;
    color: #8e9aaf;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: block;
}

.highlight-projects ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.highlight-projects li {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.5;
    padding-left: 20px;
    position: relative;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.highlight-projects li::before {
    content: '▸';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
    line-height: 1;
}

.highlight-projects li:hover {
    color: #495057;
    transform: translateX(2px);
}

.focus-info {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 26px;
    line-height: 1.5;
}

.focus-info strong {
    color: var(--primary-color);
    font-weight: 600;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.about-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    text-align: center;
}

.about-btn-primary {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.about-btn-primary:hover {
    background: #071f73;
    border-color: #071f73;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 42, 159, 0.25);
}

.about-btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: rgba(10, 42, 159, 0.3);
}

.about-btn-outline:hover {
    background: rgba(10, 42, 159, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

@keyframes underlineExpand {
    to {
        transform: scaleX(1);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@media (max-width: 1024px) {
    .section-title {
        font-size: clamp(1.5rem, 5.5vw, 2.2rem) !important;
    }

    .about-layout {
        gap: 50px;
        padding: 0 16px;
    }

    .about-avatar img {
        max-width: 250px;
    }

    .about-content h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 900px) {
    .section-title {
        font-size: clamp(1.4rem, 5vw, 2rem) !important;
    }

    .section-divider {
        margin: clamp(12px, 3vw, 24px) auto clamp(17px, 5vw, 45px) !important;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 37px;
        text-align: center;
        max-width: 700px;
    }

    .about-avatar img {
        max-width: 280px;
        margin-bottom: 0;
    }

    .about-content {
        max-width: 600px;
        margin: 0 auto;
    }

    .about-content p {
        text-align: left;
        max-width: 520px;
        margin-bottom: 20px;
    }

    .content-divider {
        margin: 28px 0;
    }

    .core-stack {
        margin-bottom: 32px;
    }

    .focus-info {
        margin-bottom: 32px;
    }

    .highlight-projects {
        text-align: left;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 32px;
    }

    .btn-row {
        justify-content: center;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: clamp(1.3rem, 6vw, 1.8rem) !important;
    }

    .section-divider {
        margin: clamp(9px, 3vw, 21px) auto clamp(17px, 4vw, 45px) !important;
    }

    #about.py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .about-layout {
        gap: 29px;
        padding: 0 12px;
    }

    .about-avatar img {
        max-width: 240px;
    }

    .about-content h2 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .about-content .role {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    .about-content p {
        font-size: 0.95rem;
        margin-bottom: 18px;
    }

    .highlight-projects li {
        font-size: 0.8rem;
    }

    .focus-info {
        font-size: 0.8rem;
        text-align: center;
    }

    .btn-row {
        flex-wrap: nowrap;
        gap: 8px;
        justify-content: center;
    }

    .about-btn {
        padding: 10px 12px;
        font-size: 0.8rem;
        flex: 1;
        max-width: 120px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: clamp(1.2rem, 7vw, 1.6rem) !important;
    }

    .section-divider {
        margin: clamp(9px, 2vw, 21px) auto clamp(14px, 4vw, 42px) !important;
    }

    #about.py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .about-layout {
        gap: 25px;
        padding: 0 8px;
    }

    .about-avatar img {
        max-width: 200px;
    }

    .about-content h2 {
        font-size: 1.3rem;
        line-height: 1.2;
    }

    .about-content .role {
        font-size: 0.8rem;
    }

    .about-content p {
        font-size: 0.9rem;
        line-height: 1.6;
        max-width: 100%;
        padding: 0 8px;
        margin-bottom: 18px;
    }

    .content-divider {
        margin: 24px 0;
    }

    .core-stack {
        margin-bottom: 24px;
    }

    .tech-pill {
        font-size: 0.7rem;
        padding: 5px 10px;
        margin: 3px 3px 0 0;
    }

    .highlight-projects li {
        font-size: 0.75rem;
    }

    .focus-info {
        font-size: 0.75rem;
    }

    .btn-row {
        gap: 6px;
        flex-wrap: nowrap;
    }

    .about-btn {
        padding: 8px 10px;
        font-size: 0.75rem;
        min-height: 40px;
        flex: 1;
        max-width: 110px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: clamp(1.1rem, 8vw, 1.5rem) !important;
    }

    .section-divider {
        margin: clamp(9px, 2vw, 21px) auto clamp(14px, 3vw, 39px) !important;
    }

    .about-layout {
        gap: 21px;
    }

    .about-avatar img {
        max-width: 180px;
    }

    .about-content h2 {
        font-size: 1.2rem;
    }

    .about-content .role {
        font-size: 0.75rem;
        margin-bottom: 16px;
    }

    .about-content p {
        font-size: 0.85rem;
    }

    .core-stack strong,
    .highlight-projects strong {
        font-size: 0.7rem;
    }

    .tech-pill {
        font-size: 0.65rem;
        padding: 4px 8px;
    }

    .highlight-projects li {
        font-size: 0.7rem;
    }

    .focus-info {
        font-size: 0.7rem;
    }

    .btn-row {
        gap: 4px;
    }

    .about-btn {
        padding: 7px 8px;
        font-size: 0.7rem;
        max-width: 100px;
    }
}

@media (max-width: 375px) {
    .section-title {
        font-size: clamp(1rem, 9vw, 1.4rem) !important;
    }

    .section-divider {
        margin: clamp(9px, 2vw, 21px) auto clamp(11px, 3vw, 36px) !important;
    }

    #about.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .about-layout {
        gap: 17px;
    }

    .about-avatar img {
        max-width: 160px;
    }

    .about-content h2 {
        font-size: 1.1rem;
    }

    .about-content .role {
        font-size: 0.7rem;
    }

    .about-content p {
        font-size: 0.8rem;
        padding: 0 4px;
        margin-bottom: 16px;
    }

    .content-divider {
        margin: 20px 0;
    }

    .core-stack {
        margin-bottom: 20px;
    }

    .tech-pill {
        font-size: 0.6rem;
        padding: 3px 6px;
    }

    .highlight-projects li {
        font-size: 0.65rem;
    }

    .focus-info {
        font-size: 0.65rem;
    }

    .about-btn {
        padding: 6px 6px;
        font-size: 0.65rem;
        max-width: 90px;
    }
}

@media (max-width: 320px) {
    .section-title {
        font-size: clamp(0.9rem, 10vw, 1.3rem) !important;
    }

    .section-divider {
        margin: clamp(9px, 2vw, 21px) auto clamp(11px, 3vw, 33px) !important;
    }

    .about-layout {
        gap: 13px;
    }

    .about-avatar img {
        max-width: 140px;
    }

    .about-content h2 {
        font-size: 1rem;
        line-height: 1.1;
    }

    .about-content .role {
        font-size: 0.65rem;
    }

    .about-content p {
        font-size: 0.75rem;
    }

    .tech-pill {
        font-size: 0.55rem;
        padding: 2px 5px;
    }

    .highlight-projects li {
        font-size: 0.6rem;
    }

    .focus-info {
        font-size: 0.6rem;
    }

    .about-btn {
        padding: 5px 4px;
        font-size: 0.6rem;
        max-width: 80px;
    }
}

#about .mb-5 {
    margin-bottom: clamp(1.5rem, 5vw, 3rem) !important;
}

@media (max-width: 768px) {
    .about-btn {
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .tech-pill {
        min-height: 28px;
        display: inline-flex;
        align-items: center;
    }
}

.about-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.tech-pill:focus-visible {
    outline: 1px solid var(--primary-color);
    outline-offset: 1px;
}