* {
    margin: 0;
    padding: 0;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    box-sizing: border-box;
}

html {
  background: linear-gradient(to right, #1e1e2f, #19215d);
  overflow-x: hidden;
  scrollbar-width: none;         /* Hides scrollbar in Firefox */
  -ms-overflow-style: none;      /* and IE/Edge */
}

body {
  background: linear-gradient(to right, #1e1e2f, #19215d); /* Keep bg color */
  color: #19215d;
  margin: 0;
  position: relative;
  min-height: 100vh;             /* Makes page grow with content */
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;              /* vertical scrolling only */

  line-height: 1.6;
  letter-spacing: 0.5px;

  scrollbar-width: none;         /* Done in both body and html to ensure its not visible */
  -ms-overflow-style: none;      /* A redundant safety check */
}

/* Hide scrollbar in Chrome, Safari, Edge. Meant for cross platform compatibility */
body::-webkit-scrollbar,
html::-webkit-scrollbar {
  display: none;
}

@media (max-width: 480px) {         /* this says if screen size is below 480 pixels, apply this */
    .project-grid {
        padding: 20px 10px;
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1400px) {
    .project-grid {
        padding-left: calc((100vw - 1200px) / 2);
        padding-right: calc((100vw - 1200px) / 2);
    }
}

/*----------------------HTML Related content ^ Topbar with hyperlinks------------------------------*/

.topbar img{
    height: 200px;
    width: 100%;
    max-width: 250px;
    margin-bottom: 0px;
    mix-blend-mode: normal;         /* normal fixes color tinting the image*/
    position: static;
    object-fit: cover;
}

.topbar ul {
    list-style-type: none;
    padding: 0;
}

/* Links group for format */
.topbar a {
    margin: 50px 0;
    padding: 10px;
    background-color: #007fff;
    color: white;
    border-radius: 10px;
    display: flex;
    justify-content: center;
}

.topbar a:hover {
    color: bisque;
    transform: scale(1.2);
    border-style: groove;
    border-radius: 1px;
}

/* Sidebar with hyperlinks*/
.topbar {
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 10px;
    box-shadow: 2px 0px 5px rgba(0, 0, 0, 0.5);
    z-index: 2;
    border: 3px solid #324ab2;
    overflow-y: auto;       /* I believe this allows clicks within the sidebar */

    transform: translatex(0%);
    transition: transform 0.3s ease;
    align-items: center;
    text-align: center;
    width: 100vw;
    
}

#clockDate {                    /* RTC i made through javascript - mostly a feature for mobile since computers have this by default */
    position: fixed;
    height: auto;
    width: auto;                    /* 'auto' adjusts the width dynamically */
    top: 75%;
    margin-left: auto;
    margin-right: auto;
    font-family: monospace;
    font-size: 15px;
    color: #e0e0e0;
    border-style: dotted;
    border-color: #ffffffc6;
    padding: 5px 10px;
    border-radius: 2px;

}


#splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  z-index: 9999;
  overflow: hidden;
}

.binaryBg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  font-family: monospace;
  font-size: 12px;
  color: rgba(0, 255, 0, 0.3);
  white-space: pre;
  line-height: 1;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}


#splash h1 {
  z-index: 1;
}

.splash-content {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


body.loading {
  overflow: hidden;
}


/*-----------------------Splash then Content------------------------------------------ */

#intro {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: linear-gradient(to right, #1e1e2f, #19215d);
  color: white;
  overflow: hidden;
  visibility: hidden; /* hidden until JS fades it in */
  opacity: 0;
  transition: opacity 0.8s ease;
}


.intro-content {
  max-width: 90%;
  text-align: center;
  padding: 40px;
}

#welcome-section {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  overflow: hidden;
}

.welcome-text {
  font-size: 3rem;
  color: blanchedalmond;
  text-align: center;
  margin-top: 50px;
}

#vader {
  font-family: monospace;
  font-size: 14px;
  white-space: pre-wrap;
  text-align: center;
  display: none;
  max-height: 80vh;
  overflow-y: auto;
}

.scrollbtn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 200px;
    border-radius: 20px 20px;
    z-index: 100;
    cursor: pointer;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background: #324ab2;
    border: 2px groove #000000;
    box-shadow: 0 0 5px #007fff, 0 0 5px #af08ff;
    color: azure;
    font-family:monospace;
    font-size: large;
    font-weight: bold;
    }

.scrollbtn:hover{
        box-shadow: 0 0 5px #007fff, 0 0 5px #af08ff,
                    0 0 25px #007fff, 0 0 50px #af08ff,
                    0 0 100px #007fff, 0 0 200px #af08ff;
        border-style: groove;
        border-color: #07b807;
        animation: flicker 1.5s infinite;
    }


.Intro {
    font-size: xx-large;
    font-family: monospace;
    font-style: italic;
    color: blanchedalmond;
    margin-top: 100px;
    margin-bottom: 10px;
    text-align: center;
}

.hidden-text {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.hidden-text.visible {
  opacity: 1;
  transform: translateY(0);
}


.Intro img{
    height: 10px;
    width: auto;
}

.Intro2 {                   /* The intro text, Just sets the margin  */ 
        margin-bottom: 0px;
    }


.mainpage {             /* picture, paragraph under picture, this also adjusts the font which .Intro2 uses */
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: larger;
    text-align: center;
    color: blanchedalmond;
}

.mainpage h1{
    padding: 100px;
}

.projectbtn{
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to right, palegoldenrod, lightseagreen);
    color: black;
    border-style: ridge;
    border-color: #b29a32;
    font-size: 16px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    border-radius: 30px 30px;
    cursor: pointer;
    width: 150px; 
    height: 125px;
    transition: transform 0.2s ease, background-color 0.2s ease;
    padding: 0;
    margin: 20px auto;
    position: absolute;
    z-index: 5;
    text-shadow: 2px 4px 7px rgba(0, 0, 0, 0.5);

    /*center the button in image */
    top: 50%; /* Vertically center within container */
    left: 50%; /* Horizontally center within container */
    transform: translate(-50%, -50%); /* Adjust placement to truly center */
}

.projectbtn:hover{
    transition: transform 0.2s ease;
    animation: Spin 10s linear infinite;
  }
/*-----------------------------------SIDEBAR UI----------------------------------------------- */
.container1 {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30%; /* viewport height */          /* Container is used to hold the image behind the button */
    width: 100%;  /*viewport height                 It holds both the button and image so I could ensure its layered properly */
    overflow: hidden; 
    position: relative;  
    margin: 20px auto;
    margin-top: 200px;
  }

  .container1 img {                     /* The image itself  the above controls the general location */
    text-align: center;
    position: relative;
    width: 100vw;
    height: 300px;
    z-index: -1;         /* z-index controls the 'layers', 1 is the lowest so its behind the lowest */

    border-style: ridge;
    border-color: #b29a32;
}

#script1 {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: large;
    font-family: monospace;
    font-style: italic;
    color: white;
    margin-top: 100px;
    margin-bottom: 10px;
    text-align: center;
    width: auto;
    height: 50px;
    border-radius: 50px;
    border: 2px solid #324ab2;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    transition: transform 0.4s ease;


    background: linear-gradient(135deg, #2c3e50, #a06eef)
}

#script1 img{
    height: 32px;       /* Rough height as can't get image currently*/
    margin-right: 12px;
    vertical-align: middle;
    transition: transform 0.3s ease;

}

#script1 a {        /*Controls link itself within oval */
    color: blanchedalmond;
    transition: color 0.3s ease;

}

#script1 a:hover{
    color: #00ff48;
}

.container2 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 100px;
    height: 100vh;
    width: 100vw;
    background: linear-gradient(to right, #1e1e2f, #19215d);
    color: #19215d;
}

.box{
    width: 650px;
    border: 3px solid #b29a32;
    text-align: center;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    background: linear-gradient(to bottom, #324ab2, #024b95);
}

.content {
    margin-bottom: 10px;
}

#metext{
    justify-content: center;
    text-align: center;
    word-spacing: 8px;
}

#techstack{
    margin-top: 40px;
    font-size:x-large;
}

.logostop {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
    margin-bottom: 10px;
}

.logostop img{
    width: 60px;
    height: auto;
    padding: 5px;
    background-color: #36454f;
    border-style: groove;
    border-color: #b29a32;
}

.logomid, .logobottom {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.logomid img{
    width: 70px;
    height: auto;
    background: linear-gradient(to bottom, #36454f, #5db4bd);
    border-style: groove;
    border-color: #b29a32;
}

.logobottom img{
    width: 70px;
    height: auto;
}

/* Font and Text color for split sections of content*/
.content, #distros{
    text-shadow: 8px 2px 4px rgba(0, 0, 0, 0.5);
    color: blanchedalmond;
}


#distros img{
    width: 60px;
    height: auto;
    padding: 5px;
    margin-top: 50px;
}

#distros p{
    margin-top: 100px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  margin-top: 50px;
}

.project-card {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: scale(1.03);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* semi-transparent */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .overlay {
  opacity: 1;
}

.project-title {
  color: #fff;
  font-size: 1.5rem;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
  text-align: center;
}

.contact {
    text-align: center;
    padding: 20px;
    margin-top: 300px;
    margin-bottom: 200px;

    color: silver;
}

.site-footer {
  text-align: center;
  padding: 20px;
  background-color: #20038b;
  border: 1px solid #9e9e9e;
  color: #e9e0e0da;
  font-weight: bold;
}
.site-footer a{
    color: #b29a32;
    font-weight: bolder;
}

#email-link a{
    color: #b29a32;
    font-weight: bolder;
    display: inline-block;
    transition: transform 0.2s ease;
}

.social-icons a img {
  width: 24px;
  margin: 0 10px;
  transition: transform 0.2s ease;
}

.social-icons a:hover img {
  transform: scale(1.2);
}

#email-link a:hover{
    transform: scale(1.2);
}

/*-----------------------------------ANIMATIONS---------------------------------- */

@keyframes Spin{            /* Spin animation   */
    from {
        transform: translate(-50%, -50%) rotate(0deg);
        scale: 1,10;
        background: linear-gradient(to left, palegoldenrod, lightseagreen);
        border-radius: 50px 50px;
        border-color: coral;
        
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
        scale: 1,10;
        border-radius: 50px 50px;
        border-color: coral;
       
    }
}

@keyframes btnDrop {
    0% {    transform: translatey(-50%);
            opacity: 0;
    }

    50% {
        transform: translatey(10px);
        opacity: 1;
    }

    100% {
        transform: translatey(0);
        opacity: 1;
    }

}


@keyframes spinAway {                 
    0% {
        transform: rotate(0deg) scale(1);
        scale: 1;
    }
    50% {
        transform: rotate(180deg) scale(1.2);  
        scale: 1;
    }
    100% {
        transform: rotate(360deg) translateX(200px) scale(0.5);
        scale: 2;
    }
} 

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes flicker {
  0%, 100% { text-shadow: 0 0 2px #0ff, 0 0 5px #0ff; }
  50% { text-shadow: 0 0 4px #0ff, 0 0 10px #0ff; }
}

@keyframes bounceIn {
  0%   { transform: scale(0.5); opacity: 0; }
  60%  { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); }
}

@keyframes hold {
  0%, 100% { transform: translateY(0); }
}

@keyframes slideUp {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-100%); opacity: 0; }
}

