body {
    margin: 0;
    padding: 0;
    background-color: rgb(1, 0, 37);
    background-image: url("https://www.transparenttextures.com/patterns/dark-geometric.png");
    color: rgb(184, 253, 253);
}

p {
    line-height: 2;
    font-size: 1rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(to bottom, #000B18, #00203f, #00254d, #002750);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 70px;
    margin-bottom: 100px;
}

.hero h1 {
    margin: 0;
    color: #fff;
    font-family: "Dancing Script", cursive;
    font-weight: 700;
    font-size: 4.5rem;
}

.hero .left-content {
    opacity: 0;
    transform: translateX(100%);
    animation: slideInText 2s ease forwards;
}

.cta-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.circle {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.circle a {
    display: block;
}

.circle svg {
    display: block;
    color: rgb(184, 253, 253);
}

.circle:hover {
    filter: drop-shadow(0px 0px 10px rgba(1, 251, 255, 0.6));
}

/* Keyframes for text slide-in */
@keyframes slideInText {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

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

.hero h1 span {
    display: block;
    margin-top: 10px;
    font-size: 2rem;
    font-weight: 100;
    font-family: 'Source Code Pro', monospace;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    border-right: solid 3px rgba(0, 255, 0, 0.75);
    animation: animated-text 4s steps(22, end) 2s 1 normal both, animated-cursor 1s steps(22, end) infinite;
}

/* Typewriter animation */
@keyframes animated-text {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* Cursor animation */
@keyframes animated-cursor {
    from {
        border-right-color: rgba(0, 255, 0, .75);
    }

    to {
        border-right-color: transparent;
    }
}

.hero img {
    filter: drop-shadow(0px 0px 10px rgba(1, 251, 255, 0.6));
    opacity: 0;
    transform: translateX(-100%);
    animation: slideInImage 2s ease forwards;
}

/* Keyframes for image slide-in */
@keyframes slideInImage {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }

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

.arial-font {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2rem;
    font-weight: 100;
    margin: 20px;
    text-align: center;
    color: rgb(255, 100, 100);
}

/* Profile Section */
.about-me {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.image-container {
    position: relative;
}

.image {
    margin-bottom: 20px;
    height: 200px;
    width: 120px;
    border-top-left-radius: 33%;
    border-bottom-right-radius: 33%;
    box-shadow: -1px 8px 12px rgba(3, 200, 255, 0.5);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.image-container:hover .image {
    opacity: 0.3;
    transform: scale(1.1);
}

.middle {
    transition: opacity 0.5s ease;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.image-container:hover .middle {
    opacity: 1;
}

.text {
    background-color: #028299;
    color: white;
    font-size: 12px;
    padding: 2px 4px;
}

/* Button */
.about-me .btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px;
    font-size: 1rem;
    color: #fff;
    background-color: rgb(0, 123, 255);
    border: none;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.about-me .btn:hover {
    background-color: rgb(0, 105, 190);
}

/* Projects */
.project,
.about-me {
    margin-top: 50px;
    padding: 2rem;
}

.project-grid {
    margin-top: 80px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: rgba(0, 73, 138, 0.3);
    text-align: center;
    padding: 1rem;
    border: 1px solid white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    background-color: rgba(0, 105, 190, 0.3);
    box-shadow: -10px 10px 8px rgba(255, 255, 255, 0.2);
}

.project-card.slide-left {
    animation: slideInFromLeft 2s ease forwards;
}

.project-card.slide-right {
    animation: slideInFromRight 2s ease forwards;
}

.project-card.slide-bottom {
    animation: slideInFromBottom 2s ease forwards;
}

.project-card a {
    display: block;
    margin-top: 0.5rem;
}

/* Projects Animation */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }

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

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

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

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

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

/* Skills */
.more-info {
    margin-top: 50px;
    padding-top: 2rem;
}

.skills-grid {
    border: 1px solid;
    background-color: rgba(1, 80, 77, 0.3);
    box-shadow: -5px 8px 13px rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 30px;
    margin: 50px auto 0 auto;
    display: grid;
    row-gap: 20px;
    column-gap: 20px;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr 3fr;
    place-items: center;
    width: 50%;
}

.left-image {
    padding-right: 10px;
}

.left-image img {
    transition: transform 0.3s ease;
}

.left-image img:hover {
    transform: scale(1.2);
}

h3 {
    font-family: Arial, Helvetica, sans-serif;
    color: rgb(250, 175, 175)
}

/* Slide In Effect */
.slide-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 1s ease-out;
}

.slide-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* Contact */
#contact-me {
    margin-top: 80px;
    text-align: center;
}

#contact-me>p {
    margin: 50px 0;
}

.anchor-links {
    color: rgb(250, 175, 175);
    text-decoration: none;
}

.anchor-links:hover {
    color: rgb(255, 166, 0);
    text-decoration: underline;
}

.icon-text-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

/* Footer */
.bottom-container {
    margin-top: 100px;
    padding: 40px;
    background-color: rgb(12, 0, 40);
    text-align: center;
}

.footer-link {
    margin: 15px;
}

.footer-name {
    margin: 20px;
}

.footer-link:hover,
.back-to-top:hover {
    color: rgb(255, 166, 0);
}

.back-to-top:hover {
    cursor: pointer;
}


/* Tablet Adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3.3rem;
    }

    .hero h1 span {
        font-size: 1.5rem;
    }

    .hero img {
        width: 350px;
        height: 350px;
    }

    .project {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .skills-grid {
        row-gap: 0;
        column-gap: 0;
        padding: 0 15px 20px 15px;
        width: 80%;
    }
}

/* Mobile Adjustments */
@media (max-width: 425px) {

    p,
    .footer-link {
        font-size: 15px;
    }

    .hero {
        flex-direction: column;
        gap: 100px;
    }

    .cta-buttons {
        margin-top: 20px;
    }

    .hero img {
        width: 300px;
        height: 300px;
    }

    .arial-font {
        font-size: 1.5rem;
    }

    .image {
        height: 140px;
        width: 80px;
    }

    .skills-grid {
        padding: 0 10px 20px 0;
        width: 90%;
    }

    .bottom-container {
        padding: 20px;
    }

    .footer-link {
        margin: 5px;
    }
}