/* import the pixelalted font here  */
@import url('https://fonts.googleapis.com/css?family=VT323');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}



/* laptop screen size */
    /* starter code for styling aka a template */

    /* style the headers for each page */
    .nameHeader, 
    .aboutHeader, 
    .skillsHeader,
    .blogHeader,
    .portfolioHeader,
    .contactHeader {

        display:grid;
        font-family: 'VT323';
        font-weight: 1;
        color: black;
        text-align: center;
        font-size: 75px;
        margin-top: 10px;
    }

    /* Home Page */
    .nav__list {
        display: flex;
        gap: 10px;
        list-style: none;
        justify-content: center;
        align-items: center; 
        margin-top: 15px;
        
    }

    /* Style for nav header links */
    .nav__links { 
        color: black;
        text-decoration: none;
        font-family: 'VT323';
        font-size: 24px;
    }


    .nav__list li {
        transition: all .18s ease-in-out;
    }


    .nav__list li:hover { 
        transform: translateY(-2.0px);
    }

    .nav__list a:hover {
        color: rgb(57, 179, 213);
    }

    /* surfer image */

    .surfer__container {
        text-align: center;
        margin: 30px 0;
        
    }

    .surfer__gif {
        display: block;
        margin: 30px auto;
        max-width: 700px;
        width: 95%;
        border-radius: 7px;
        box-shadow: 0 3px 10px rgb(0,0,0,0.2);
    }

    /* Skills Page */

    .skills__container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 60px 40px;
        margin: 60px auto;
        padding: 0 40px;
        max-width: 1100px;
    }

    .skill {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .skill img {
        width: 70px;
        height: 70px;
        margin-bottom: 10px;
    }

    .skill p {
        font-family: 'VT323';
        font-size: 20px;
        color: black;
        margin: 0;
        text-align: center;
    }

    /* easter egg styling */
    .topsecret {
        text-decoration: none;
        color: black;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        text-align: center;
    }

    .topsecret:hover p {
        color: rgb(57, 179, 213);
    }


    /* About page  */

    .surfboard__about {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 15px auto 20px;
    }

    .surfboard__about img {
        max-width: 350px;
        max-height: 100px;
        width: 60%;
        display: block;
    }

    .about__container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-color: #f8f8f8;
        margin: 15px auto 25px;
        padding: 20px;
        border: 2px dashed #ccc;
        border-radius: 10px;
        max-width: 1100px;
        width: calc(100% - 40px);
    }

    .about__container p {
        max-width: 1000px;
        margin-bottom: 18px;
        text-align: center;
        font-family: 'VT323';
        font-size: 24px;
        color: black;
        line-height: 1.4;
    }

    .about__container p:last-of-type {
        margin-bottom: 0;
    }


    .social ul {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 30px auto 0;
        font-family: 'VT323';
        list-style: none;
        gap: 25px;
    }

    .social__link {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: black;
        transition: all 0.3s ease;
        padding: 8px;
        border-radius: 8px;
    }

    .social__link img {
        width: 28px;
        height: 28px;
        margin-bottom: 5px;
        transition: transform 0.3s ease;
    }

    .social__link span {
        font-size: 16px;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .social__link:hover {
        transform: translateY(-2px);
        color: rgb(57, 179, 213);
    }

    .social__link:hover img {
        transform: scale(1.1);
    }

    /* Portfolio Page */

    .project__container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
        margin: 40px 30px;
        padding: 0;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }

    .card__link {
        text-decoration: none;
        display: block;
        height: 100%;
    }

    .project__card {
        background-color: transparent;
        padding: 25px;
        text-align: center;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        transition: all 0.3s ease;
    }

    .project__card:hover {
        transform: translateY(-3px);
    }

    .project-card__image {
        width: 80px;
        height: 80px;
        margin: 0 auto 20px;
        transition: transform 0.3s ease;
    }

    .project__card:hover .project-card__image {
        transform: scale(1.1);
    }

    .project-card__meta {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .categories {
        display: flex;
        justify-content: center;
        padding: 0;
        margin: 0 0 15px 0;
        list-style: none;
    }

    .categories__tag {
        color: rgb(57, 179, 213);
        font-family: 'VT323';
        font-size: 16px;
        letter-spacing: 1px;
        text-transform: uppercase;
        font-weight: normal;
    }

    .categories__tag:not(:last-of-type)::after {
        content: "|";
        margin: 0 6px;
        color: rgb(57, 179, 213);
    }

    .project-card__name {
        font-family: 'VT323';
        color: black;
        margin: 15px 0 0;
        font-size: 22px;
        line-height: 1.3;
        font-weight: bold;
    }

    .project__card:hover .project-card__name {
        color: rgb(57, 179, 213);
    }


    /* Blog Page */

    .blog__container {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 40px 20px;
    }

    .blog__intro {
        font-family: 'VT323';
        font-size: 28px;
        text-align: center;
        color: black;
        margin-bottom: 40px;
        max-width: 600px;
    }

    .blog__posts {
        display: flex;
        flex-direction: column;
        gap: 30px;
        max-width: 800px;
        width: 100%;
    }

    .blog__post {
        background-color: #f0f0f0;
        border: 2px dashed black;
        border-radius: 10px;
        padding: 30px;
        transition: transform 0.2s ease-in-out;
        overflow: hidden;
        word-break: break-word;
    }

    .blog__post:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .blog__post-title {
        font-family: 'VT323';
        font-size: 32px;
        color: black;
        margin-bottom: 10px;
    }

    .blog__post-date {
        font-family: 'VT323';
        font-size: 18px;
        color: rgb(57, 179, 213);
        margin-bottom: 15px;
    }

    .blog__post-excerpt {
        font-family: 'VT323';
        font-size: 22px;
        color: black;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* Contact Page */

    .contact__container {
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: transparent;
        max-width: 700px;
        margin: 25px auto 30px;
        padding: 20px 20px;
    }
        

    .contact__form {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 15px;
        width: 100%;
    }


    .user_name,
    .user_email,
    .user_subject,
    .user_message {
        font-family: 'VT323';
        font-size: 20px;
        background-color: #f8f8f8;
        border: 2px dashed #ccc;
        border-radius: 8px;
        padding: 15px;
        width: 100%;
        max-width: 500px;
        transition: all 0.3s ease;
        resize: none;
        outline: none;
    }

    .user_name:focus,
    .user_email:focus,
    .user_subject:focus,
    .user_message:focus {
        border-color: rgb(57, 179, 213);
        background-color: #fff;
        transform: translateY(-2px);
    }

    .user_message {
        min-height: 80px;
        font-family: 'VT323';
    }



    /* button styling */
    .bttn {
        font-family: 'VT323';
        font-size: 20px;
        padding: 12px 30px;
        background-color: rgb(57, 179, 213);
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: bold;
    }

    .bttn:hover {
        background-color: rgb(45, 160, 190);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(57, 179, 213, 0.4);
    }

    .bttn:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(57, 179, 213, 0.4);
    }

    /* Success message styling */
    .success-message {
        background-color: #d4edda;
        border: 2px solid #c3e6cb;
        border-radius: 8px;
        padding: 15px;
        margin: 20px 0;
        text-align: center;
        animation: fadeIn 0.5s ease-in-out;
    }

    .success-message p {
        font-family: 'VT323';
        font-size: 20px;
        color: #155724;
        margin: 0;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }




/* mobile: iPhones, android ect ... */
@media screen and (max-width: 767px) {

    /* universal changes */
    .nameHeader, .aboutHeader, .skillsHeader, .blogHeader, .portfolioHeader, .contactHeader {
        font-size: 60px;
    }

    .nav__list  {
        margin-bottom: 40px;
        gap: 2px;
    }

    .nav__links { 
        font-size: 20px;
    }

    /* disables the hover effect on the resume link - no color change */
    #resume:hover {
        background-color: #5c6cac;
    }

    /* home page  */

    .surfer__gif {
        margin-top: 100px;
    }

    /* skills mobile */

    .skills__container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 25px;
        margin: 40px auto;
        padding: 0 25px;
        max-width: 500px;
    }

    .skill img {
        width: 65px;
        height: 65px;
    }

    .skill p {
        font-size: 18px;
    }

      
    /* portfolio mobile */

    .project__container {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px 15px;
    }

    .project__card {
        padding: 20px;
    }

    .project-card__image {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .project-card__name {
        font-size: 20px;
        line-height: 1.2;
        margin: 10px 0 0;
    }

    .categories__tag {
        font-size: 14px;
    }

    .project__card:hover {
        transform: translateY(-2px);
    }

    .project__card:hover .project-card__image {
        transform: none;
    }

    .project__card:hover .project-card__name {
        color: black;
    }

    /* about mobile */

    .surfboard__about {
        margin: 15px auto 20px;
    }

    .surfboard__about img {
        max-height: 130px;
        width: 80%;
    }

    .about__container {
        margin: 0 15px 30px;
        padding: 20px;
        width: calc(100% - 30px);
    }

    .about__container p {
        text-align: center;
        font-size: 20px;
        line-height: 1.3;
        margin-bottom: 20px;
    }
    

    /* contact page mobile */

    .contact__container {
        margin: 0 15px;
        padding: 20px 10px;
    }

    .contact__form {
        gap: 20px;
    }

    .user_name,
    .user_email,
    .user_subject,
    .user_message {
        max-width: 100%;
        font-size: 18px;
        padding: 12px;
    }

    .user_message {
        min-height: 100px;
    }

    .bttn {
        font-size: 18px;
        padding: 10px 25px;
    }

    .social ul {
        margin: 25px auto 0;
        gap: 20px;
    }

    .social__link img {
        width: 24px;
        height: 24px;
    }

    .social__link span {
        font-size: 14px;
    }


    /* blog mobile styles */
    .blog__container {
        margin: 20px 10px;
    }

    .blog__intro {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .blog__post {
        padding: 20px;
    }

    .blog__post-title {
        font-size: 26px;
    }

    .blog__post-excerpt {
        font-size: 20px;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

/* end of mobile device */


/* tablet devices such as iPad ect. */
@media screen and (min-width: 768px) and (max-width: 991px) {

    /* universal changes */

    /* disables the hover effect on the resume link - no color change */
    #resume:hover {
        background-color: #5c6cac;
    }

    /* portfolio tablet */
    
    .project__container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        margin: 30px 20px;
    }

    .project__card {
        padding: 22px;
    }

    .project-card__image {
        width: 70px;
        height: 70px;
    }

    .project-card__name {
        font-size: 21px;
    }

    .categories__tag {
        font-size: 15px;
    }

    .project__card:hover {
        transform: translateY(-2px);
    }

    .project__card:hover .project-card__image {
        transform: none;
    }

    .project__card:hover .project-card__name {
        color: black;
    }

    /* contact page tablet */
    
    .contact__container {
        margin: 0 30px;
        padding: 30px 20px;
    }

    .user_name,
    .user_email,
    .user_subject,
    .user_message {
        max-width: 450px;
        font-size: 19px;
    }

    .bttn {
        font-size: 19px;
    }

    .social ul {
        margin: 28px auto 0;
        gap: 22px;
    }

    .social__link img {
        width: 26px;
        height: 26px;
    }

    .social__link span {
        font-size: 15px;
    }

    /* about tablet */
    
    .surfboard__about {
        margin: 18px auto 25px;
    }

    .surfboard__about img {
        max-height: 160px;
        width: 75%;
    }

    .about__container {
        margin: 0 30px 35px;
        padding: 25px;
        width: calc(100% - 60px);
        max-width: 900px;
    }

    .about__container p {
        font-size: 22px;
        margin-bottom: 22px;
        max-width: 800px;
    }

    /* skills tablet */
    
    .skills__container {
        grid-template-columns: repeat(3, 1fr);
        gap: 50px 30px;
        margin: 50px auto;
        padding: 0 35px;
        max-width: 800px;
    }

    .skill img {
        width: 68px;
        height: 68px;
    }

    .skill p {
        font-size: 19px;
    }

    /* contact page tablet */
    
    .contact__container {
        margin: 0 30px;
        padding: 30px 20px;
    }

    .user_name,
    .user_email,
    .user_subject,
    .user_message {
        max-width: 500px;
        font-size: 19px;
    }

    .bttn {
        font-size: 19px;
    }
}
/* tablet device styling ends here */


/* large deskptop and monitor device */
@media screen and (min-width: 1200px) {

}
/* large deskptop and monitor device ends here */