/* Default Styling expectation is there's no margin or padding */

html, body {
    margin: 0;
    padding: 0;
    font-size: 16px;
}

@font-face {
    font-family: 'Inconsolata';
    src: url("fonts/Inconsolata-Regular.woff2") format('woff2'),
        url("fonts/Inconsolata-Regular.woff") format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Main page LEGACY strips */

.main-page-strips {
    width: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 0;
}

.main-strip-content {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
    display: block;
    text-decoration: none;
    display: flex;
    width: 50%;
    align-items:center;
    justify-content: space-between;
    gap: 10px;
    margin: 10px;
    padding: 20px;
    border-radius: 10px;
}

.main-strip-content:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease;
}

.main-strip-text {
    flex: 1;
    max-width: 50%;
    font-family: Inconsolata, sans-serif;
}

.main-strip-text.left {
    text-align: left;
}

.main-strip-text.right {
    text-align: right;
}

.main-strip-image { 
    flex: 1;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items:center;
}

.main-strip-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Specific strip styling */

#gabriel-projects  {
    background-color: blue;
}

#gabriel-logos {
    background-color: green;
}

#gabriel-blogs  {
    background-color: red;
}

#gabriel-blogs .main-strip-image {
    order: 0;
}

#gabriel-blogs .main-strip-text {
    order: 1;
}

/* New mainPage styling */
#main-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: url("images/gridC.png") repeat;
    animation:scrollBackground 120s linear infinite;
}

#main-body .socials-tray{
    margin-top: 0px;
    margin-bottom: 16px;
 }
@keyframes scrollBackground {
    0% {
        background-position-x: 0%;
        background-position-y: 0%;
    }
    100% {
        background-position-x: 100%;
        background-position-y: 100%;
    }
}

#main-center-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#name-container {
    border-radius: 50%;
    display:inline-block;
    padding:5px;
}

#name-main-page {
    color:#1A2C4A;
    transition:color 0.3s ease;
    transition: animation 0.3 ease;
    font-family: Inconsolata, sans-serif;
    font-size: 2.5rem;
}

#name-main-page:hover {
    color:#33ce8b;
    animation: breathe 1s ease-in-out infinite;
}

@keyframes breathe {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
    to {
        transform: trnalateY(0);
    }
}
/* Image in circle */

#circle {
    position:static;
    width:150px;
    height:150px;
    border-radius:50%;
    overflow:hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color:#7163CA;
}

#circle img {
    width:100%;
    height:100%;
    object-fit:cover;
    position:block;
}

#rotatingImage {
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
}

#rotatingImage.fade-out {
    opacity: 0;
}
/* Link box */

#link-box {
    position: static;
    padding: 0.5rem;
    border-radius: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

#link-box a {
    font-family: Inconsolata, sans-serif;
    display:block;
    font-size: 1.1rem;
    margin: 10px 0;
}

/* Project List Page */

#projects-list-body {
    background: url("images/gridC.png") repeat;
    animation:scrollBackground 120s linear infinite;
}

#projects-title {
    font-family: Inconsolata, sans-serif;
    color: #1A2C4A;
    text-align: center;
}

#project-list-container {
    font-family: Inconsolata, sans-serif;
}


.project-list-item-link {
    display: block;
    width: 80%;
    text-decoration: none;
    margin: 0 auto 18px auto;
    border-radius: 5px;
}

.project-list-item-link,
.project-list-item-link h2,
.project-list-item-link small,
.project-list-item-link p {
    text-decoration: none;
}

.project-image-text-strip {
    align-items: center;
    background-color: #7F9ED3;
    border-radius: 5px;
    border-style: solid;
    border-color: #4C78C1;
    border-width: 4px;
    margin: 24px auto;
    padding: 18px 24px;
    gap: 24px;
    overflow: hidden;
}

.project-image-text-strip img {
    width: 375px;
    float: left;   
    margin: 0 16px 16px 0; /* space around image */
    border-radius: 5px;
}

@media (max-width: 800px) {
  .project-image-text-strip img {
    width: 100%;
    float: none;
    margin: 0 0 16px 0; /* space below image */
  }
}

.project-image-text-strip p {
    font-family: Inconsolata, sans-serif;
    font-size: 1.1rem;
    line-height: 1.3;
    margin: 0;
    margin-bottom: 10px;
    overflow: wrap;
}

.project-image-text-strip ul {
    list-style-position: inside; 
    padding-left: 1rem;          
    margin: 0;                   
}

.project-image-text-strip li {
    font-family: Inconsolata, sans-serif;
    margin-bottom: 1rem;         /* space between list items */
}

.project-image-text-strip li p {
    margin: 0.25rem 0;           
}

.project-image-text-strip:hover {
    background-color: #6B8ED1;
    transition: background-color 0.3s ease;
}
/* Blog List Page */

#blogs-list-body {
    background: url("images/gridC.png") repeat;
    animation:scrollBackground 120s linear infinite;
}

#blog-posts-title {
    font-family: Inconsolata, sans-serif;
    color: #1A2C4A;
    text-align: center;
}

#blog-list-container {
    font-family: Inconsolata, sans-serif;
}

.blog-list-item-link {
    display: block;
    text-decoration: none;
    width: 50%;
    margin: 0 auto 18px auto;
    border-radius: 5px;
}

@media (max-width: 800px) {
  .blog-list-item-link {
    width: 75%;
  }
}

#blog-list-item {
    background-color: #7F9ED3;
    display: block;
    border-radius: 5px;
    border-style: solid;
    border-color:#4C78C1;
    align-items: center;
    padding-left: 12px;

}


#blog-list-item:hover {
    background-color: #6B8ED1;
    transition: background-color 0.3s ease;
}

#blog-list-item:pressed {
    background-color:#3d68b1
}

#blog-list-item p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space:nowrap;
    max-width: 90%;
}

#blog-list-item small {
    display: block;
    margin-bottom: 4px;
}

/* Standard Blog styling */


.standard-blog-body { 
    background: url("images/gridC.png") repeat;
    animation:scrollBackground 120s linear infinite;
}

.standard-blog-content {
    color: #1A2C4A;
    background-color: #7F9ED3;
    font-family: Inconsolata, sans-serif;
    display: block;
    border-radius: 5px;
    border-style: solid;
    border-color:#4C78C1;
    border-width:4px;
    width: 80%;
    align-items: center;
    margin: 0 auto;
    margin-top: 15px;
    padding-left: 12px;
}

.standard-blog-content img{
    height: auto;
    display:block;
    align-items: center;
    margin: 0 auto;
    padding: 0;

}

.standard-blog-content img.small-image {
    max-width: 40%;
}

@media screen and (max-width: 800px) {
    .standard-blog-content img.small-image {
        max-width: 60%;
    }
    
}

.standard-blog-content img.medium-image {
    max-width: 60%;
}

.standard-blog-content img.large-image {
    max-width: 80%;
}

 /* Standard code block styling - sourced online */

.standard-blog-content code {
    font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', 'Inconsolata', monospace;
    color: #7163CA;
    background: #7FC8D3;
    padding: 0.2em 0.5em;
    border-radius: 5px;
    font-size: 0.97em;
    line-height: 1.5;
    word-break: break-word;
}

/* Multiline code blocks */
.standard-blog-content pre code {
    display: block;
    color: #7163CA;
    background: #7FC8D3;
    padding: 1em;
    border-radius: 8px;
    font-size: 1em;
    overflow-x: auto;
    line-height: 1.6;
    margin: 1em;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.standard-blog-content p,
.standard-blog-content li,
.standard-blog-content ul,
.standard-blog-content ol {
    font-size: 1.05rem;
    line-height: 1.1;
}

/* About Page */

#about-body {
    background: url("images/gridC.png") repeat;
    animation:scrollBackground 120s linear infinite;
}

.image-text-strip {
    align-items: center;
    background-color: #7F9ED3;
    border-radius: 5px;
    border-style: solid;
    border-color: #4C78C1;
    border-width: 4px;
    width: 80%;
    margin: 24px auto;
    padding: 18px 24px;
    gap: 24px;
    overflow: hidden;
}

.image-text-strip img {
    width: 375px;
    float: left;   
    margin: 0 16px 16px 0; /* space around image */
    border-radius: 5px;
}

.image-text-strip p {
    font-family: Inconsolata, sans-serif;
    font-size: 1.1rem;
    line-height: 1.3;
    margin: 0;
    margin-bottom: 10px;
    overflow: wrap;
}

.image-text-strip ul {
    list-style-position: inside; 
    padding-left: 1rem;          
    margin: 0;                   
}

.image-text-strip li {
    font-family: Inconsolata, sans-serif;
    margin-bottom: 1rem;         /* space between list items */
}

.image-text-strip li p {
    margin: 0.25rem 0;           
}

#first-about {
    width: 50%
}

@media (max-width: 1000px) {
    #first-about {
        width: 80%;
        text-align: center;
    }

    #first-about img {
        float: none;
        display:block;
        max-width:90%;
        margin: 0 auto 10px;
    }
}

#career-education-background {
    width: 50%;
}

#career-education-background img {
    float: right;
}

@media (max-width: 1000px) {
    #career-education-background {
        width: 80%;
        text-align: center;
    }

    #career-education-background img {
        float:none;
        display:block;
        max-width:90%;
        margin: 0 auto 10px;
    }
}


#about-title {
    font-family: Inconsolata, sans-serif;
    color: #1A2C4A;
    text-align: center;
}

.pdf-container {
    display: flex;
    justify-content: center; /* horizontal centering */
    align-items: center;     
    margin: 24px 0;
}

@media (max-width: 1000px) {
  .pdf-container {
    display: none;
  }
}

.pdf {
    border: 4px solid #4C78C1;
    border-radius: 5px;
}

/* Header Styling */

.header {
    background-color: rgba(0,0,0,0);
    width: 100%;
    height: 100px;
    position: sticky;
    top: 0;
    margin:0;
    padding:0;
    border-bottom: 2px solid rgba(0,0,0,0); 
    transition: background-color 0.3s ease, border-bottom 0.3s ease;
    z-index: 1000;
}

.header.scrolled {
    background-color:#7F9ED3;
    border-bottom: 2px solid #4C78C1;
    transition: background-color 0.3s ease, border-bottom 0.3s ease;
}

.header .header-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;

}

.header-inner .header-title {
    display:flex;
    align-items: center;
    height: 100%;
    padding: 10px;
}

.header-inner .header-title h1 {
    font-family: Inconsolata, sans-serif;
    font-size:24px;
    color:#1A2C4A;
}

.header-inner .header-title h1 a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease; 
}

.header-inner .header-title h1 a:hover {
    /* color: #4d7765; */
    color: #33ce8b;
    transition: all 0.3s ease; 
    scale:0.95;
}

.header-inner .header-title h1 a:active {
    color: #4d7765;
    transition: all 0.3s ease; 
    scale:0.95;
}

.header-links {
    display:flex;
    height: 100%;
    font-family: Inconsolata, sans-serif;
    font-size: 18px;
    list-style: none;
    padding: 10px;
    margin: 0;

}

.header-links ul {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.header-links li {
    margin-right: 10px;
}

.header-links li:last-of-type {
    margin-right:0;
}

.header-links span {
    display: flex;
    align-items: center;
}
/* Chaotic Cats Project styling */
#chaotic-cats-body {
    background: url("images/projects/chaotic-cats/chaotic-cats-background.jpg") no-repeat center center;
    background-size: cover;
    min-height: 100vh;
}

#chaotic-cats-stage {
    display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 100px); /* avoids header overlap */
  position: relative; 
  text-align: center;
}


#chaotic-cats-logo img { /* Logo in center */
  width: 800px;
  max-width: 70%;
  display: block;
  margin: 0 auto;
  cursor: pointer;
  transition: transform 0.3s ease;
z-index: 900;

}

#chaotic-cats-logo:hover img {
  transform: scale(1.05);
}

#chaotic-cats-body .header.scrolled {
    background-color:rgba(0,0,0,0);
    border-bottom: 2px solid rgba(0,0,0,0); 
}

/* Chaotic Cats social tray */
#chaotic-cats-socials-tray {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
}


#chaotic-cats-socials-tray .social-link svg {
    width: 40px;
    height: 40px;
    fill: #7163CA;
    transition: fill 0.3s ease, transform 0.3s ease;
}

#chaotic-cats-socials-tray .social-link:hover svg {
    fill: #33ce8b;
    transform: scale(1.1);
}

/* Description box */
#chaotic-cats-description {
  background: url("images/projects/chaotic-cats/chaotic-cats-textbox.png") no-repeat center center;
  background-size: 100% 100%; 
  padding: 2rem;  /* space for the text inside */
  max-width: 600px;
  margin: 20px auto;
  z-index: 900;
  
  text-align: center;
  font-family: Inconsolata, sans-serif;
  color: #1A2C4A;
}

/* Characters flanking description/logo */
.chaotic-cats-character {
    position: absolute;
    width: 500px; 
    height: auto;
    object-fit: contain;
    animation: float 3s ease-in-out infinite alternate; /* subtle float */
}

/* King Cat - left */
.chaotic-cats-character.left {
    left: 0;
    bottom: 10%; /* adjust vertical placement */
    rotate: 10deg;
}

/* Mouse Wizard - right */
.chaotic-cats-character.right {
    rotate: -5deg;
    right: 5%;
    bottom: 20%; /* align vertically with King Cat */
}

#mouse-wizard {
    width: 250px;
}

/* Float animation */
@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

/* Responsive: hide characters on small screens */
@media (max-width: 900px) {
    .chaotic-cats-character {
        display: none;
    }
}

/* vaadin-web-app-styling */
#springboot-vaadin-body {
    background: url("images/gridC.png") repeat;
    animation:scrollBackground 120s linear infinite;
}

#vaadin-title {
    font-family: Inconsolata, sans-serif;
    color: #1A2C4A;
    text-align: center;
}

#vaadin-socials-tray {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 24px 0;
    min-height: 40px; /* Ensures tray has height */
}

#vaadin-intro {
    width: 60%;
}

@media (max-width: 1000px) {
    #vaadin-intro{
        width: 80%;
        text-align: center;
    }

    #vaadin-intro img {
        float: none;
        display:block;
        max-width:90%;
        margin: 0 auto 10px;
    }
}


#vaadin-second {
    width: 50%;
}

#vaadin-second img {
    float: right;
    margin-left: 5px;
}

@media (max-width: 1200px) {
    #vaadin-second{
        width: 80%;
        text-align: center;
    }

    #vaadin-second img {
        float: none;
        display:block;
        max-width:90%;
        margin: 0 auto 10px;
    }
}

#vaadin-third {
    width: 50%;
}

@media (max-width: 1100px) {
    #vaadin-third{
        width: 80%;
        text-align: center;
    }

    #vaadin-third img {
        float: none;
        display:block;
        max-width:90%;
        margin: 0 auto 10px;
    }
}


#vaadin-final {
    width: 55%;
}

#vaadin-final img {
    float: none;
    display: block;
    margin: 0 auto 10px;
    width: 75%;
}

@media (max-width: 800px) {
    #vaadin-final{
        width: 80%;
        text-align: center;
    }

    #vaadin-final img {
        float: none;
        display:block;
        width:90%;
        margin: 0 auto 10px;
    }
}

/* Early dev projects */

#early-dev-body {
    background: url("images/projects/early-dev-projects/2dgame-background.png") no-repeat center center;
    background-size: cover;
    min-height: 100vh;
}

#early-dev-title {
    font-family: Inconsolata, sans-serif;
    color: #1A2C4A;
    text-align: center;
    margin: 30px auto;
    padding: 16px 24px; 
    background-color: #7F9ED3; 
    border: 2px solid #4C78C1; 
    border-radius: 12px; 
    max-width: 50%; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);    
}

#early-dev-body .header {
    background-color:#7F9ED3;
    border-bottom: 2px solid #4C78C1;
}

.early-dev-container {
    display: flex;
    flex-direction: row; 
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap; 
    width: 90%;      
    margin: 40px auto;
}

.early-dev-box {
    background-color: #7F9ED3;
    border: 2px solid #4C78C1;
    color: #1A2C4A;
    border-radius: 12px;
    padding: 20px;
    flex: 0 1 40%; /* base width 45%, don’t grow too much */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.early-dev-box img {
    max-width: 100%; /* ensures it never overflows the box */
    height: auto;    /* keeps aspect ratio */
    border-radius: 8px;
    margin-bottom: 10px;
}

@media (max-width: 900px) {
    .early-dev-box {
        flex: 0 1 90%; /* stack vertically on small screens */
    }
}
.early-dev-box h2 {
    font-family: Inconsolata, monospace;
    color: #1A2C4A;
    margin-bottom: 12px;
}

.early-dev-box p {
    font-family: Inconsolata, monospace;
    color: #1A2C4A;
}

/* footer */

.footer {
    font-family: Inconsolata, sans-serif;
}

/* Socials tray */

.socials-tray {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 24px 0;
    min-height: 40px; /* Ensures tray has height */
}

.social-link {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
}

.social-link svg {
    width: 32px;
    height: 32px;
    display: block;
    fill: #7163CA;
}

.social-link:hover svg {
    fill: #33ce8b; /* Change color on hover */
    transition: fill 0.3s ease;
}