/* Fonts */
/*  */
@font-face {
    font-family: 'Alexandria';
    src: url('/assets/fonts/Alexandria/Alexandria-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Color palette */
    --color-gray: #6E6E6E;
    --color-purple: #7A52C2;
    --color-teal: #00B2A9;
    --color-orange: #F05A28;
    --color-navy: #002855;
    --color-background: #230F43;
    --color-text: #E9E7E4;
    --gradient-top: #16062B;
    --gradient-bottom: #230F43;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Alexandria';
    background-color: var(--color-background);
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    background-color: var(--color-text);
    padding: 1rem 2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-background);
}

header img {
    height: 50px;
    margin: 0;
    padding: 0;
}

/* Navbar */
nav ul {
    margin: 0 5rem;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 5rem;
}

nav ul li a {
    color: var(--color-background);
    font-weight: bold;
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--color-orange);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--color-background);
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}
/* End of navbar */
/* End of header */

/* Main Content Styles */
main {
    margin: 0 auto;
}

section {
    min-height: 100vh;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

section h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color-teal);
}

section p {
    font-size: 1.2rem;
    max-width: 800px;
    text-align: center;
}
/* End of main content stiles */

/* home */
#home {
    background: linear-gradient(var(--gradient-top), var(--gradient-bottom));
    display: grid;
    grid-template-columns: 1fr 1fr;
}

#home figure {
    margin-left: 100px;
}

.hero-animation {
    display: flex;
    justify-content: left;
    align-items: center;
}

.base-image {
    position: absolute;
    left: 8%;
    padding-top: 2rem;
}

.rotating-image {
    position: relative;
    animation: spin 45s linear infinite;;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.hero-container {
    margin-right: 100px ;
    color: var(--color-text);
}

.hero-container h1 {
    font-size: 4rem;
}

.hero-container h3 {
    font-size: 2rem;
    
}

.hero-container p {
    font-size: 1.375rem;
    text-align: left; 
    margin-bottom: 3rem;
}

.hero-container a {
    background-color: var(--color-text);
    font-size: 1.25rem;
    padding: 1rem 2rem;
    margin-right: 2rem;
    border-radius: 30px;
    text-decoration: none;
}

.hero-container a:hover {
    font-weight: bold;
    padding: 1rem 1.83rem;
    box-shadow: 2px 2px 4px var(--color-teal);
    transition: all 0.3s ease;
}

.arrow-right {
    font-size: 1.75rem;
}
/* End of home */

/* About */
#about {
    background-color: var(--color-text);
    border-radius: 50px;
}

#about h2 {
    color: var(--color-background);
    text-align: center;
}

#about p, h4 {
    color: var(--color-background);
    text-align: left;
    font-size: 1.5rem;
    max-width: 75vw;
}

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.about-images img {
    margin: 100px 0;
    width: 530px;
    height: 340px;
    gap: 100px;
    border: 1px solid var(--color-background);
    border-radius: 50px;
    box-shadow: 4px 4px 8px var(--color-background);
}

.education {
    text-align: center;
}

.uol-logo{
    border-radius:0 !important;
}

.education p {
    margin-left: 12.5%;
}

.certifications {
    text-align: left;
    color: var(--color-background);
}

.certifications h3 {
    padding: 5rem 0 2rem;
    text-align: center;
    font-weight: bold;
    font-size: 2rem;
}

.certifications ul {
    font-size: 1.25rem;
    margin-left: 12.5%;
    margin-bottom: 4rem;
}

.certifications li {
    padding: .5rem 0;
}

.certifications a {
    color: var(--color-background);
}

.certifications a:hover {
    color: var(--color-purple);
}

.education img:last-of-type {
    border-radius: 50px;
}
/* End of about */

/* Projects */
#projects {
    background-color: var(--color-background);
    width: 100%;
}

#projects h2 {
    color: var(--color-text);
}

.slider h3 {
    margin: 0 0 1rem;
}

.slider {
    background-color: var(--color-background);
    position: relative;
    overflow: hidden;
    margin: 5rem 0;
    white-space: nowrap;
    width: 100%;
}

.slider:hover .images-slider {
    animation-play-state: paused ;
}

.images-slider {
    animation: 35s slide infinite linear;
    display: inline-block;
    will-change: transform;
}

.images-slider img {
    height: 400px;
    width: auto;
    padding: 0 4rem;
}

@keyframes slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

.ocean-view {
    margin: 0 0 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#projects h3 {
    text-align: center;
    font-size: 2rem;
}
.ocean-view iframe{
    width: 80vw;
    height: 550px;
    border: 4px ridge var(--color-teal);
    border-radius: 50px;
    padding: 0 3rem;
}
/* End of projects */

/* Contact */
#contact {
    background-color: var(--color-text);
}

#contact h2 {
    color: var(--color-background);
}

form {
    color: var(--color-background);
    border: 2px ridge var(--color-background);
    border-radius: 50px;
    box-shadow: 2px 2px 4px var(--color-background);
}

form p {
    margin: 2rem;
}

form input, textarea {
    font-family: 'Alexandria';
    background-color: var(--color-text);
    border: 1px solid var(--color-background);
    color: var(--color-background);
    width: 30vw;
    height: 2rem;
    border-radius: 1rem;
    padding-left: 1rem;
    font-weight: 500;
    font-size: 1rem;
}

form textarea {
    height: 8rem;
}

form button {
    background-color: #4f159b ;
    color: var(--color-text);
    border-radius: 1rem ;
    padding: .5rem 2rem;
}
/* End of contact */

/* Footer Styles */
footer {
    background-color: white;
    text-align: center;
    padding: 2rem;
    color: var(--color-gray);
    border-top: 2px solid var(--color-purple);
}

/* Websites */
.websites {
    display: flex;
    justify-content: center;
    gap: 6rem;
    color: var(--color-background);
}

.site-image {
    width: 180px;
    height: 100px;
    border-radius: 16px;
}

.site-image:hover {
    box-shadow: 2px 2px 4px var(--color-purple);
    border: 1px solid var(--color-purple);
    transition: all 0.3s ease;
}

/* Social Icons */
.social-icons {
    justify-content: center;
    padding: 30px;
    display: flex;
    gap: 8rem;
}

.social-icons img {
    width: 40px;
}

footer ul {
    text-align: center;
    list-style-type: none;
    display: flex;
    transform: translate(34%, 0);
}

footer li {
    padding: 0 2rem 2rem;
}

footer p {
    padding-bottom: 1rem;
}
/* End of footer */

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 1rem;
        align-items: center;
    }

    /* Show hamburger menu */
    .hamburger {
        display: flex;
    }

    /* Hide nav by default on mobile */
    nav {
        background-color: var(--color-text);
        position: fixed;
        top: 0;
        right: -100%;
        width: 80vw;
        height: 50vh;
        transition: right 0.3s ease;
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        margin: 0;
    }

    nav ul li a {
        font-size: 1.5rem;
    }

    section h1, section h2 {
        font-size: 2rem;
    }

    section p {
        font-size: 1rem;
    }

    /* home */
    #home {
        background: linear-gradient(var(--gradient-top), var(--gradient-bottom));
        display: flex;
        flex-direction: column;
    }

    #home figure {
        margin: 1rem 2rem;
        width: 80vw;
    }

    #home img {
        width: 80vw;
        
    }
    
    .base-image {
        left: 21%;
    }

    .base-image  img {
        width: 55% !important;
        padding-top: 1rem;
    }

    .hero-container {
        margin:  2rem 0 ;
    }

    .hero-container h1 {
        font-size: 2.5rem;
    }

    .hero-container h3 {
        font-size: 1.25rem;
        
    }

    .hero-container p {
        font-size: 1rem;
    }

    .hero-buttons {
        display: flex;
        justify-content: space-between;
    }

    .hero-container a {
        font-size: 1rem;
        padding: .25rem 1.5rem;
        margin: 0;
        border-radius: 30px;
    }

    .arrow-right {
        font-size: 1.5rem;
    }
    /* End of home */

    /* About */
    #about p {
        color: var(--color-background);
        text-align: left;
        font-size: 1.25rem;
        max-width: 85vw;
    }

    .about-images {
        display: flex;
        flex-direction: column;
    }

    .about-images img {
        margin: 2rem 0 0;
        width: 80vw;
        height: auto;
    }

    /* Education */
    .education {
        margin-top: 6rem;
        text-align: center;
    }

    .uol-logo{
        border-radius:0 !important;
        width: 30vw !important;
    }

    .education p {
        margin: 0 1rem;
    }

    .certifications ul {
        font-size: 1.25rem;
        margin: 0 2rem;
    }

    .certifications a {
        color: var(--color-background);
    }

    .certifications a:hover {
        color: var(--color-purple);
    }

    .education img:last-of-type {
        border-radius: 50px;
        width: 95vw;
        margin-top: 3rem;
    }
    /* End of about */

    /* Projects */
    .images-slider {
        animation: 25s slide infinite linear;
    }

    .images-slider img {
        height: 50vw;
        width: 90vw;
        padding: 0 1rem;
    }

    #projects h3 {
        font-size:1.5rem;
    }

    .ocean-view iframe{
        width: 95vw;
        height: 60vh;
        border-radius: 30px;
        padding: 0 1.5rem;
    }

    .ocean-view iframe:first-of-type {
        padding: 0 !important;
        margin: 0;
        width: 90vw;
    }
    /* End of projects */

    /* Contact */

    #contact h2 {
        font-size: 1.375rem;
    }

    form p {
        font-size: 1.25rem !important;
    }

    form input, textarea {
        width: 70vw;
    }

    form textarea {
        padding-top: .25rem;
    }
    /* End of contact */

    /* Footer Styles */
    footer {
        padding: 2rem;
        color: var(--color-gray);
        border-top: 2px solid var(--color-purple);
    }

    /* Websites */
    .websites {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    /* Social Icons */
    .social-icons {
        gap: 4rem;
    }

    .social-icons img {
        width: 40px;
    }

    footer ul {
        justify-content: center;
        display: flex;
        transform: none;
    }

    footer li {
        padding: 0 1rem 2rem;
    }

    footer p {
        padding-bottom: 1rem;
        font-size: .75rem;
    }
    /* End of footer */
}
