/* ==========================================================================
   Muhammad Muddasir Amin Portfolio - External Stylesheet
   ========================================================================== */

/* Text selection highlighting */
::selection {
    background-color: #ffd028;
    color: #000000;
}

::-moz-selection {
    background-color: #ffd028;
    color: #000000;
}

/* Drag protection for images */
img {
    -webkit-user-drag: none;
    user-drag: none;
}

.animate-on-scroll-hidden {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.animate-on-load {
    opacity: 0;
    transform: scale(0.9);
    animation: appear 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes appear {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-on-load[data-delay='100'] {
    animation-delay: 0.1s;
}

.animate-on-load[data-delay='200'] {
    animation-delay: 0.2s;
}

.animate-on-load[data-delay='300'] {
    animation-delay: 0.3s;
}

.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"/><path d="M12 1v6m0 6v6m11-7h-6m-6 0H1"/></svg>');
    background-size: 24px;
    opacity: 0.1;
    z-index: -1;
}

.section-title::after {
    content: '';
    position: absolute;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="50" height="60" viewBox="0 0 50 60" fill="none"><path d="M25 5L30 20H45L35 30L40 45L25 35L10 45L15 30L5 20H20L25 5Z" fill="%23000" stroke="%23000" stroke-width="1"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    width: 50px;
    height: 60px;
    left: 45%;
    bottom: -68px;
}

.project-card:nth-child(odd) {
    transform: rotate(-2deg);
}

.project-card:nth-child(even) {
    transform: rotate(2deg);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.05) rotate(0deg) !important;
}

.service-item::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: 1px solid #000;
    border-radius: 50%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"/><path d="M12 1v6m0 6v6m11-7h-6m-6 0H1"/></svg>');
    background-color: white;
    background-size: 24px;
    opacity: 0.5;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: #000;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.brand-link {
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.brand-link:hover {
    transform: scale(1.05) rotate(-1deg);
}

/* modal slider */
#projectModal .slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.16, 0.8, 0.3, 1);
    height: 100%;
}

#projectModal .slider img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    flex: none;
    background: #fff;
}

#projectModal .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #000;
    opacity: 0.25;
    transition: all 0.2s ease;
}

#projectModal .dot.active {
    opacity: 1;
    width: 20px;
    border-radius: 999px;
}
