
:root {
    --main-color: #FF6464;
    --main-color-alt: #EDF7FA;
}

body {
    font-family: 'Heebo', sans-serif;
    scroll-behavior: smooth;
}

/* Custom title with animation */
.main-title {
    margin: 100px auto;
    padding: 10px 20px;
    border: 2px solid black;
    font-size: 30px;
    width: fit-content;
    position: relative;
    z-index: 1;
    transition: 0.3s;
}

.main-title:hover {
    color: white;
    border: 2px white solid;
    transition-delay: 0.5s;
}

.main-title::before,
.main-title::after {
    content: "";
    width: 12px;
    height: 12px;
    background-color: var(--main-color);
    position: absolute;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.main-title::before {
    left: -30px;
}

.main-title::after {
    right: -30px;
}

.main-title:hover::before {
    z-index: -1;
    animation: left-move 0.5s linear forwards;
}

.main-title:hover::after {
    z-index: -1;
    animation: right-move 0.5s linear forwards;
}

/* Header styles */
.navbar {
    box-shadow: 0 0 10px var(--main-color-alt);
}

.navbar .nav-link {
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.navbar .nav-link::before {
    content: "";
    width: 100%;
    height: 4px;
    background: var(--main-color);
    position: absolute;
    top: 0;
    left: -200px;
    transition: 0.3s;
}

.navbar .nav-link:hover {
    background-color: var(--main-color-alt);
}

.navbar .nav-link:hover::before {
    left: 0;
}

/* Landing section */
.landing {
    position: relative;
    min-height: calc(100vh - 76px);
    padding: 50px 0;
}

.landing::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--main-color-alt);
    z-index: -1;
    transform: skewY(-6deg);
    transform-origin: left top;
}

.profile-img {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 5px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(45deg, #ff7eb3, #ffb400) border-box;
    animation: up-and-down 5s linear infinite;
}

.targ-1:hover {
    background-color: var(--main-color);
    color: white;
    padding: 3px;
    transform: skewY(-6deg);
}

.btn-resume {
    position: relative;
    z-index: 1;
    color: white;
    padding: 10px 20px;
    transition: 0.3s;
}

.btn-resume::before {
    position: absolute;
    top: 0;
    left: 0;
    content: "";
    width: 100%;
    height: 100%;
    transition: 0.3s ease-in-out;
    transform: skewY(-6deg);
    z-index: -1;
    background-color: var(--main-color);
}

.btn-resume:hover::before {
    transform: skewY(0deg);
    border: 1px white solid;
}

/* Works section */
.work-card {
    background-color: var(--main-color-alt);
    transition: 0.3s;
    overflow: hidden;
    position: relative;
}

.work-card::before {
    content: "";
    position: absolute;
    bottom: -200px;
    right: 0;
    height: 200px;
    width: 2px;
    background-color: var(--main-color);
    transition: 0.3s ease-in-out;
}

.work-card:hover::before {
    bottom: 0;
}

.work-card:hover .work-img {
    filter: grayscale(100%);
}

.date-badge {
    background-color: var(--main-color);
    border-radius: 9999px;
    padding: 5px 10px;
    color: white;
}

/* Contact and footer */
.contact-icon {
    font-size: 2.5rem;
    color: #333;
    transition: 0.3s;
}

.contact-icon:hover {
    color: var(--main-color);
    transform: translateY(-5px);
}

footer {
    background-color: var(--main-color);
    color: white;
}

/* Animations */
@keyframes up-and-down {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-50px);
    }
}

@keyframes bouncing {
    0%, 10%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 60% {
        transform: translateY(-10px);
    }
}

@keyframes left-move {
    50% {
        left: 0;
        width: 12px;
        height: 12px;
    }
    100% {
        left: 0;
        border-radius: 0;
        width: 100%;
        height: 100%;
    }
}

@keyframes right-move {
    50% {
        right: 0;
        width: 12px;
        height: 12px;
    }
    100% {
        right: 0;
        border-radius: 0;
        width: 100%;
        height: 100%;
    }
}

.go-down {
    color: var(--main-color);
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    transition: 0.3s;
}

.go-down i {
    animation: bouncing 1.5s infinite;
}

@media (max-width: 767px) {
    .profile-img {
        width: 200px;
        height: 200px;
        margin-bottom: 30px;
    }
    
    .main-title {
        font-size: 20px;
        margin: 50px auto;
    }
}
