/* screen-reader only utility */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Keyboard focus ring  */
:where(a, button, input, textarea, select, summary, [tabindex]) :is(:focus-visible) {
    outline: 3px solid rgba(139, 92, 246, 0.85);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001s !important;
        scroll-behavior: auto !important;
    }
}

.project-image {
    aspect-ratio: 16 / 9;
    max-height: 320px;
    width: 100%;
    overflow: hidden;
}

/* small screens */
@media (max-width: 480px) {
    .project-image {
        max-height: 220px;
    }
}

a:focus-visible,
button:focus-visible,
.project-link:focus-visible,
.social-icon:focus-visible,
.skill-chip:focus-visible {
    outline: 3px solid rgba(139, 92, 246, 0.85);
    outline-offset: 3px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulseSlow {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.1;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

@keyframes herotextanimate {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 1s ease-out forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-pulse-slow {
    animation: pulseSlow 4s infinite;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.skill-chip {
    display: inline-block;
    background-color: rgba(124, 58, 237, 0.2);
    color: #e9d5ff;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    border: 1px solid rgba(192, 132, 252, 0.3);
}

.project-card {
    background: rgba(17, 24, 39, 0.6);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(126, 34, 206, 0.2);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
    object-fit: cover;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #e9d5ff;
}

.project-content p {
    color: #9ca3af;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

}

.project-tags span {
    background: rgba(124, 58, 237, 0.1);
    color: #c4b5fd;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

.project-link {
    color: #a78bfa;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.project-link:hover {
    color: #8b5cf6;
}

.about-me {
    background: rgba(17, 24, 39, 0.6);
    padding: 2rem;
    margin-left: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.2);
    color: #e9d5ff;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(124, 58, 237, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px -5px rgba(126, 34, 206, 0.3);
}

:root {
    font-family: Poppins, sans-serif;
    color: rgb(242, 242, 242);
    letter-spacing: 0.05em;
    line-height: 1.2;
    font-size: 16px;
    font-weight: 400;
    -webkit-tap-highlight-color: transparent;
}