@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: #000005;
    color: #fbf9e4;
    width: 100vw;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    cursor: pointer;
}

header {
    display: flex;
    background-color: rgba(0,0,0,0.5);
    position: fixed;
    justify-content: space-evenly;
    align-items: center;
    z-index: 100;
    width: 100%;
    animation: hedr 1s ease both;
}

header a {
    font-family: "Chakra Petch", sans-serif;
    text-decoration: none;
    color: #fbf9e4;
    font-size: 24px;
}

header a:hover {
    color: #5b88b2;
}

header h1 {
    font-size: 32px;
    font-family: 'Playfair Display', serif;
}

section {
    font-family: 'Playfair Display', serif;
    display: grid;
    grid-template-columns: auto;
    justify-items: center;
}

@keyframes heroh {
    from {transform: translateY(100%);}
    to {transform: translateY(0%);}
}

@keyframes hedr {
    from {transform: translateY(-100%);}
    to {transform: translateY(0%);}
}

@keyframes herobg {
    from {opacity: 0;}
    to {opacity: 1;}
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow-y: hidden;
    place-items: center;
    overflow-x: hidden;
}

.hero img {
    animation: herobg 3s ease-in both
}

.hero .heading {
    position: absolute;
    z-index: 1;
    overflow-y: hidden;
}

.hero h1 {
    font-size: 80px;
    animation: heroh 1s ease both;
    margin: 0;
    text-align: center;
}

.about {
    color: #fbf9e4;
}

.about a {
    color: #5b88b2;
    text-decoration: none;
    transition: color 0.25s ease;
}

.about a:hover {
    color: #fbf9e4;
}

.about p {
    font-size: 24px;
    margin-bottom: 32px;
    line-height: 64px;
    background: #000005;
    border: 1px solid #000005;
    border-radius: 24px;
    opacity: 0;
    padding: 16px;
    transform: translateX(-80px);
    transition: background 0.25s ease, border 0.25s ease, opacity 1s ease, transform 1s ease;
    width: 50%;
}

.about p:hover {
    border: 1px solid #122c4f;
    background: url("images/hero.jpg");
}

.about p.seen {
    opacity: 1;
    transform: translateX(0);
}

.about .bar {
    height: 2px;
    background-color: #fbf9e4;
    width: 0%;
    transition: width 2s ease;
}

.about .bar.seen {
    width: 95%;
}

.about h1 {
    font-size: 48px;
    z-index: 1;
    margin: 0;
    transform: translateY(100%);
    transition: transform 2s ease;
}

.about .heading {
    overflow-y: hidden;
    margin: 40px;
}

.about .heading h1.seen {
    transform: translateY(0%);
}

.skills {
    background-color: #000005;
    color: #fbf9e4;
}

.skills a {
    color: #5b88b2;
    width: 100%;
}

.skills a:hover {
    color: #000005;
}

.skills p, .skills div {
    width: 50%;
}

.skills .skils {
    border: 4px solid #fbf9e4;
    width: 100%;
    display: grid;
    place-items: center;
}

.skills .skils .text {
    width: 50%;
}

.skills .hed {
    background-color: #fbf9e4;
}

.skills .heading1 {
    width: 15%;
    transition: width 1s ease;
}

.skills .heading1.seen {
    width: 100%;
}

.skills .hed h1, .skills .heading {
    font-size: 48px;
    color: #000005;
    text-align: center;
    background-color: #fbf9e4;
}

.skills .heading {
    width: 100%;
}

.skills .content {
    padding: 16px;
    opacity: 0;
    z-index: 1;
    width: 90%;
    margin: 24px;
    transition: opacity 2s ease-out;
}

.skills .content.seen  {
    opacity: 1;
}

.skills .content2 {
    padding: 16px;
    opacity: 0;
    z-index: 1;
    width: 90%;
    margin: 24px;
    transition: opacity 2s ease-out;
}

.skills .content2.seen  {
    opacity: 1;
}

.skills section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    place-items: center;
    background-color: #000005;
    color: #fbf9e4;
}

.skills img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.skills h1 {
    font-size: 48px;
    width: 100%;
}

.skills p {
    font-size: 24px;
    margin-bottom: 32px;
    line-height: 64px;
    width: 100%;
    opacity: 0;
    transform: translateX(-80px);
    border: 16px solid #000005;
    border-radius: 24px;
    transition: opacity 1s ease, transform 1s ease, border 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.skills .content2 p {
    transform: translateX(80px);
}

.skills p.seen {
    opacity: 1;
    transform: translateX(0);
}

.skills p:hover {
    border: 16px solid #fbf9e4;
    background-color: #fbf9e4;
    color: #000005;
}

.skills audio {
    width: 100%;
    display: block;
}

.contact {
    background-color: #fbf9e4;
    color: #000005;
    overflow-y: hidden;
}

.contact h1 {
    font-size: 48px;
}

.contact p {
    font-size: 24px;
    width: 50%;
    margin-bottom: 32px;
    line-height: 64px;
    background-color: #fbf9e4;
    border: 1px solid #fbf9e4;
    border-radius: 24px;
    color: #000005;
    opacity: 0;
    padding: 16px;
    transform: translateX(-80px);
    width: 50%;
    transition: background-color 0.25s ease, border 0.25s ease, opacity 1s ease, transform 1s ease, color 0.25s ease;
}

.contact p:hover {
    border: 1px solid #000005;
    background-color: #000005;
    color: #fbf9e4;
}

.contact p.seen {
    opacity: 1;
    transform: translateX(0);
}

.contact small {
    font-size: 16px;
    width: 50%;
}

.contact #last {
    margin-bottom: 0;
}

.contact .h2 {
    margin: 0;
}

.contact .table div p {
    margin: 0;
}

.contact .table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    place-items: center;
    gap: 16px;
}

.contact .table a {
    width: 100%;
    display: grid;
    grid-template-columns: auto;
    text-align: center;
    border: 2px solid #000005;
    border-radius: 24px;
    padding: 16px;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.contact .table .d3 {
    grid-column: span 2;
}

.contact .table h3 {
    font-size: 24px;
    margin: 0;
}

.contact .table a:hover {
    background-color: #000005;
    color: #fbf9e4;
}


.contact .bar {
    height: 2px;
    background-color: #000005;
    width: 0%;
    transition: width 2s ease;
}

.contact .bar.seen {
    width: 95%;
}

.contact h1 {
    transform: translateY(100%);
    transition: transform 1s ease;
}

.contact h1.seen {
    transform: translateY(0);
}