.title {
    font-family: 'Crimson Text', serif;
    font-size: 10vh;
    text-align: center;
    margin-bottom: 0;
    font-weight: bold;
    color: #7b0ab0;
    text-shadow: 2px 2px 4px rgba(123, 10, 176, 0.5);
    transform: skew(-5deg);
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.title:hover {
    text-shadow: 4px 4px 8px rgba(123, 10, 176, 0.8);
    transform: skew(-8deg) scale(1.05);
}


@font-face {
  font-family: "ubuntu";
  font-style: italic;
  font-weight: 300;
  src: local("Lato Light Italic"), local("Lato-LightItalic"),
    url(https://fonts.gstatic.com/s/ubuntucondensed/v8/u-4k0rCzjgs5J7oXnJcM_0kACGMtT-Dfqw.woff2)
      format("woff2");
}

body {
    height: 100vh;
    margin: 0;
    font-family: "ubuntu", Arial, sans-serif;
    overflow-x: hidden;
    display: grid;
  }
  
a {
  text-decoration: none;
  color: #9ca0b1;
}

.intro {
  text-align: center;
  h1 {
    color: #fff;
    font-size: 7vw;
    text-transform: uppercase;
    font-weight: 800;
    font-family: "Josefin Sans", sans-serif;
    background: linear-gradient(to right,#7b0ab0 10%, #7835d0 50%,#7b0ab0 100% );
    background-size: auto auto;
    background-clip: border-box;
    background-size: 10% auto;
    color: #fff;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textclip 12s linear infinite;
    display: inline-block;
    
  }
}

@keyframes textclip {
  to {
    background-position: 50% center;
  }
}

.aztitle{
    color: rgb(255, 112, 112);
    font-family: Optima, sans-serif;
    font-size: 10vh;
    text-align: center;
    margin-bottom: 0;
    font-weight: bold;
}
.description{ 
    font-family: monospace;
    font-size: 3.5vh;
    text-align: center;
    padding-top: 2%;
    padding-bottom: 5%;
    
}

.header{ 
    background-color: black; 
    color: white;             
    padding: 0;
    margin: 0;
    border: 0;
}

.tabs{
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    background-color: rgb(0, 0, 0);
    width: 100%;
    height: 9vh;
    overflow: hidden;
    margin: 0;
    padding: 0; 
    height: 9vh; 
    position:fixed;
    z-index: 1;

}

.tablinks:link, .tablinks:visited{
    position: relative;
    color: #fff;
    font-size: 4vh;
    padding: 5%;
    font-family: 'Lucida Console';
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px #7b0ab0;
}

.tablinks:hover {
    color: #7b0ab0;
    transform: skew(-10deg) scale(1.1);
    text-shadow: 0 0 10px #7b0ab0;
    background: rgba(123, 10, 176, 0.2);
}

@keyframes tilt {
    0% {
        rotate: 0deg;
        background-color: black;
        color: red;
    }

    100% {
        rotate: 5deg;
        background-color: #5b2fc3;
    }
}


.body{
    margin: 0;
    padding: 0;
    border: 0;
    background-color: black;
}
#content{
    align-items    : center;
}

.contents {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px 0;
}

#experiences, #WhoIAm, #Project {
    width: 90%; /* Increased from 80% */
    max-width: 1000px; /* Increased from 800px */
    border: 2px solid #240e2f;
    background: rgba(0, 0, 0, 0.9);
    padding: 15px; /* Reduced from 20px */
    margin: 15px auto; /* Changed from 20px, using auto for horizontal centering */
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    transform: skew(-3deg);
    box-shadow: 0 0 15px rgba(123, 10, 176, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#experiences:before, #WhoIAm:before, #Project:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    
}

#experiences:hover, #WhoIAm:hover, #Project:hover {
    transform: skew(-3deg) scale(1.02);
    box-shadow: 
        0 0 20px rgba(123, 10, 176, 0.5),
        0 0 40px rgba(123, 10, 176, 0.3),
        0 0 60px rgba(123, 10, 176, 0.1);
}

#experiences:hover:before, #WhoIAm:hover:before, #Project:hover:before {
    left: 100%;
}


.email{
    width: 90%; /* Increased from 80% */
    max-width: 800px; /* Increased from 600px */
    border: 1px solid black;
    background: linear-gradient(to bottom, #ffffff 0%, #fdfdfd 100%);
    padding: 10px;
    padding-top: 3%;
    margin: 20px auto;
    border-radius: 2vh;
    height: auto;
    justify-content: center;
    align-content  : center;
    align-items    : center;
    margin-bottom: 20px;
}
.emailtext{
    color: rgb(0, 0, 0);
    font-family: Verdana;
    font-size: 4vh;
    font-weight: bold;
    text-align: center;
    float: center;
    justify-content: center;
    align-content  : center;
    align-items    : center;
}


  form {
    display: flex;
    flex-direction: column;
  }
  
  #textSendEmail{
    color: rgb(0, 0, 0);
    padding: 0.5%;
    font-family: monospace;
    font-size: 3vh;
    padding-top: 20px;
    text-align: left;
    float: left;
    justify-content: left;
    align-content  : left;
    align-items    : left;
  }
  
  input, textarea {
    width: 90%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #cccccc;
    border-radius: 4px;
  }
  
  .button123 {
    background-color: #001b38;
    color: white;
    border: none;
    width: 15%;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
  }
  
  .button123:hover {
    animation: buttonsendanimation 0.5s forwards
  }
  @keyframes buttonsendanimation{
    from {
        background-color: #001b38;
        box-shadow: 0 0 10px #4545c5, 0 0 15px #4545c5;
        border-radius: 4px;
      }
      to {
        
        background-color: #f1eeff;
        box-shadow: 0 0 5px #000000, 0 0 15px #482162;
        color: black;
        border-radius: 20px;
      }
  }
  
  #messages {
    margin-top: 20px;
  }
  #message, textarea {
    width: 90%; /* Ensures it stretches to match the form width */
    height: 150px; /* Increase the height for a bigger input area */
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    resize: vertical; /* Allows users to adjust the height manually */
  }
  
  
  #message-list {
    list-style: none;
    padding: 0;
  }
  
  #message-list li {
    background: #f1f1f1;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
  }
  
.hidden {
    opacity: 0; /* Hidden by default */
    transform: translateY(20px); /* Slightly out of position */
    transition: opacity 0.5s ease, transform 0.5s ease; /* Smooth appearance */
}

.visible {
    opacity: 1; /* Fully visible */
    transform: translateY(0); /* Back to normal position */
}


.boxdesc {
    color: #fff;
    font-family: monospace;
    font-size: 2.5vh; /* Reduced from 3vh */
    text-align: left;
    padding: 10px; /* Reduced from 15px */
    line-height: 1.6;
    transform: skew(3deg);
    width: 90%;
    margin: 0 auto;
    text-align: center;
}

#WhoIAm{
    width:98%;
    border: 1px solid black;
    background: linear-gradient(to bottom, #4f00b7 0%, #4f00b7 100%);
    padding: 10px;
    padding-top: 0;
    margin: 0px;
    height: auto;
    justify-content: center;
    align-content  : center;
    align-items    : center;
    margin-bottom: 20px;
}
#WhoIAm:hover{
    animation:boxanimation 0.5s forwards;
    
}

@keyframes boxanimation {
    from {
        box-shadow: 0 0 10px rgba(123, 10, 176, 0.3);
    }
    to {
        box-shadow: 
            0 0 20px rgba(123, 10, 176, 0.5),
            0 0 40px rgba(123, 10, 176, 0.3);
    }
}

@keyframes boxanimation2 {
    from {
        box-shadow: 0 0 10px rgba(123, 10, 176, 0.3);
    }
    to {
        box-shadow: 
            0 0 20px rgba(123, 10, 176, 0.5),
            0 0 40px rgba(123, 10, 176, 0.3);
    }
}
.headertags{
    color: white;
    font-family: Verdana;
    font-size: 4vh; /* Reduced from 6vh */
    text-align: center;
    float: center;
    justify-content: center;
    align-content  : center;
    align-items    : center;
}

.boxdesc{
    color: white;
    font-family: monospace;
    font-size: 3vh;
    text-align: center;
    float: center;
    justify-content: center;
    align-content  : center;
    align-items    : center;
}


#container3D canvas{
    width:100% !important;
    height: 70vh !important;
    position:relative;
    top: 0;
    background: linear-gradient(to bottom, #f1b40d 0%, #1a0524 100%);
    box-shadow: inset 0 0 100px rgba(123, 10, 176, 0.3);
}

#Project{
    width:99%;
    border: 1px solid black;
    background: linear-gradient(to bottom, #161616 0%, #161616 100%);
    padding-top: 0;
    margin: 0px;
    height: auto;
    justify-content: center;
    align-content  : center;
    align-items    : center;
    margin-bottom: 20px;
}
#Project:hover{
    animation:boxanimation2 0.5s forwards
}
.project-button{
    width:90vh;
    font-weight: bold;
    color: black;
    border: 1px solid black;
    background: linear-gradient(to bottom, #d9d9d9 0%, #a2a2a2 100%);
    padding: 12;
    font-size: 4vh;
    margin: 2px;
    height: 15%;
    align-content  : center;
    align-items    : center;
    margin-bottom: 20px;
}

.projects{
    text-align: center;
}
.cr img {
    width: 50vh;
    height: auto;
    transition: opacity 0.3s ease;
}

.cr img.hover-image {
    display: none;
}

.cr:hover img.default-image {
    display: none;
}

.cr:hover img.hover-image {
    display: block;
}


@keyframes colorTransition {
    0% {
        background-color: #87CEEB;
    }

    100% {
        background-color: rgb(38, 19, 49);
    }
}

.contacts{
    background-color: black;
}
.contacttitle{
    font-family:monospace;
    font-size: 3vh;
    text-align: left;
    color: white;
    font-weight: bold;
}
.contactdesc{
    font-family: monospace;
    font-size: 3vh;
    text-align: left;
    color: white;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(186, 186, 186);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.loading-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.loading-mask-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.loading-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.loading-line {
    position: absolute;
    background: #7b0ab0;
    opacity: 0;
}

.line-1 { width: 100%; height: 2px;  box-shadow: 0 50px 200px rgb(173, 125, 227); animation: loadingLine 1.5s ease-in-out infinite; }
.line-2 { width: 2px; height: 100%;  box-shadow: 0 50px 200px rgb(173, 125, 227); animation: loadingLine 1.5s ease-in-out 0.5s infinite; }
.line-3 { width: 100%; height: 2px;  box-shadow: 0 50px 200px rgb(173, 125, 227); bottom: 0; animation: loadingLine 1.5s ease-in-out 1s infinite; }
.line-4 { width: 2px; height: 100%;  box-shadow: 0 50px 200px rgb(173, 125, 227); right: 0; animation: loadingLine 1.5s ease-in-out 1.5s infinite; }

@keyframes loadingLine { 
    0% { opacity: 0; }
    50% { opacity: 0.5; }
    100% { opacity: 0; }
}

.main-content {
    opacity: 0;
    transition: opacity 1s ease-in;
}

.main-content.loaded {
    opacity: 1;
}