@import "tailwindcss";

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

/* Matrix Canvas Styles */
#matrix-canvas 
{
    
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: transparent;
}
/* Body Styles */

body
{
    background-color: rgba(0, 0, 0, 0.913);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color:ghostwhite;
    z-index: 1;
    position: relative;
   
}

button
{
    
    background-color: rgba(0, 0, 0, 0.593);
    border-radius: 10px;
    border: 3px solid rgba(32, 242, 32, 0.884);
    box-shadow: 0 0 10px rgba(32, 242, 32, 0.884);
    padding: 1rem;
    font-size: 1.5rem;
    transition: fade-in 0.5s ease, background-color 0.5s ease, color 0.5s ease;
    text-decoration: none;
    

}

button:hover

{
    background-color: rgba(32, 242, 32, 0.884);
    color: rgba(0, 0, 0, 0.847);
    text-shadow: 0 0 10px rgba(35, 36, 35, 0.576);
    cursor: pointer;
    transition: background-color 0.5s ease, color 0.5s ease;
    
}




/* Main Navigation Styles */

#main-nav
{
    position: relative;
    z-index: 100;
    background: rgba(128, 128, 128, 0.298);
    backdrop-filter: blur(10px);
    color:ghostwhite;
    font-size: 1.5rem;
    border-bottom: 2px solid rgba(32, 242, 32, 0.884);
    padding: 1rem 2rem;
    
    
    
}

.nav-container
{
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
   
    
}

.logo-link {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  text-shadow: 0 0 10px ghostwhite;

}


.nav-links
{
    display: flex;
    list-style: none;
    gap: 3rem;
    margin: 0;
    text-shadow: 0 0 10px ghostwhite;
    font-size: 1rem;
    
    
}

.nav-links a:hover
{
    color: rgba(32, 242, 32, 0.884);
    text-shadow: 0 0 10px rgba(35, 36, 35, 0.576);
    border-bottom: 2px solid  rgba(32, 242, 32, 0.884);
    transition: color 0.5s ease;
    
    
    
}



/* Main Section Styles */

main
{
    flex-grow: 1;
    z-index: 1;
    position: relative;
    display: flex;
    padding: 1rem 2rem;
   
}

.content-container
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin:0 auto;
    padding:0;
    gap: 3rem;
    width:100%;
    max-width: 100%;
}

.image-container
{
    display: flex;
    background-color: rgba(211, 211, 211, 0.1);
    border: 3px solid rgba(32, 242, 32, 0.884);
    box-shadow: 0 0 10px rgba(32, 242, 32, 0.884);
    margin: 5rem 2rem;
    border-radius: 10px;
    position: relative;
    align-items: center;
    justify-content: center;
    overflow:hidden;
    min-height: 400px;

    /* Animation properties */
    opacity: 0;                     /* start invisible */
    transform: translateX(-100%);   /* off screen to the left */
    animation: fadeInLeft 1s ease-out forwards; /* fade in from left */
    
}

.image-container img
{
    height:100%;
    width:100%;
}

/* Keyframes for fade-in-from-left */
@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.text-container
{
    background-color: rgba(211, 211, 211, 0.1);
    border: 3px solid rgba(32, 242, 32, 0.884);
    box-shadow: 0 0 10px rgba(32, 242, 32, 0.884);
    margin: 5rem 2rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    padding: 3rem; 

    /* Animation properties */
    opacity: 0;                     /* start invisible */
    transform: translateX(100%);   /* off screen to the right */
    animation: fadeInRight 1s ease-out forwards; /* fade in from right */
}

/* Keyframes for fade-in-from-right */
@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.text-container h1
{
    margin-bottom: 2rem;
    font-size: 3rem;
    border-bottom: 3px solid rgba(32, 242, 32, 0.884);
}

.text-container p
{
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    line-height: 1.6;
}


/* Portfolio Page Styles */

.portfolio-main
{
    display: flex;
    flex-direction: column;
}

.portfolio-item
{
    display: flex;
    background: rgba(128, 128, 128, 0.298);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(32, 242, 32, 0.884);
    box-shadow: 0 0 10px rgba(32, 242, 32, 0.884);
    border-radius: 10px;
    width: 100%;
    margin-bottom: 1rem;
}

.portfolio-image-container
{
    padding: 2rem;
    height:100%;
    width:100%;
}

.portfolio-content-container
{
    padding: 2rem;
    
}

.portfolio-content-container h1
{
    font-size: 3rem;
    text-shadow: 0 0 5px ghostwhite;
    border-bottom: 2px solid ghostwhite;
    display: inline-block;
    
}

.portfolio-content-container p
{
    padding:0;
    padding-top: 1rem;
    font-size: 1.5rem;
    line-height: 1.6;
    text-align: start;
}


.portfolio-content-container button
{
    
    background-color: rgba(0, 0, 0, 0.593);
    border-radius: 10px;
    border: 3px solid rgba(32, 242, 32, 0.884);
    box-shadow: 0 0 10px rgba(32, 242, 32, 0.884);
    padding: 1rem;
    margin-top: 1rem;
    font-size: 1.5rem;
    

}

.portfolio-content-container button:hover

{
    background-color: rgba(32, 242, 32, 0.884);
    color: rgba(0, 0, 0, 0.847);
    text-shadow: 0 0 10px rgba(35, 36, 35, 0.576);
    cursor: pointer;
    
}

/* Skills Page Styles */

    /* Pop up Windows. */

    .pop-up-window {
      display: flex;
      flex-direction: column;
      position: fixed;
      top: 46%;
      left: 50%;
      transform: translate(-50%, -50%) scale(1);
      width: 80%;
      height: 60%;
      max-width: 600px;
      background: rgba(128, 128, 128, 0.298);
      backdrop-filter: blur(10px);
      border: 3px solid rgba(32, 242, 32, 0.884);
      box-shadow: 0 0 10px rgba(32, 242, 32, 0.884);
      border-radius: 10px;
      padding: 20px;
      z-index: 1000;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .pop-up-window h2 {
        font-size: 3rem;
        text-align: center;
        border-bottom: 3px solid rgba(32, 242, 32, 0.884);
    }

    .pop-up-window.show {
      opacity: 1;
      visibility: visible;
      transform: translate(-50%, -50%) scale(1);
      z-index: 1000;
    }

    .pop-up-image {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        

    }

    .open-btn {
      position: absolute;
      background: rgba(0, 0, 0, 0.513);
      border-radius: 10px;
      border: 1px solid rgba(32, 242, 32, 0.884);
      box-shadow: 0 0 10px rgba(32, 242, 32, 0.884);
      padding: 0.8rem;
      font-size: 1.5rem;
      margin-bottom: 1rem;
      cursor: pointer;
      backdrop-filter: blur(10px);
      font-size: 16px;
    }

    .close-btn {
      
      position: absolute;
      top: 8px;
      right: 12px;
      font-size: 18px;
      cursor: pointer;
        

    }


    /* Container */
    .skills-container {
      position: relative;
      margin: 0 auto;
      width: 1000px;
      height: 700px;
      display: flex;
      justify-content: center;
      align-items: center;
      perspective: 1000px;
      transform: translateZ(-200px) scale(0.8);
      transition: none;
      animation: fadeInZ 3s cubic-bezier(0.4,0,0.2,1) forwards;
    }

    /* Branch lines */
    .branch {
      position: absolute;
      width: 2px;
      background: #00ff41;
      box-shadow: 0 0 12px #00ff41;
    }

    

    /* Position branches and skills */
    .branch1 { top: 50%; left: 200px; height: 2px; width: 120px; }
    .branch2 { top: 50%; right: 200px; height: 2px; width: 120px; }
    .branch3 { bottom: 100px; left: 50%; height: 80px; transform: translateX(-50%); }
    .branch4 { top: 100px; left: 50%; height: 80px; transform: translateX(-50%); }
    .branch5 { top: 170px; left: 65%; height: 80px; transform: rotate(45deg); }
    .branch6 { top: 450px; left: 65%; height: 80px; transform: rotate(135deg); }
    .branch7 { top: 170px; left: 35%; height: 80px; transform: rotate(135deg); }
    .branch8 { top: 450px; left: 35%; height: 80px; transform: rotate(45deg); }

    #skill1 { top: 47%; left: 3%; }
    #skill2 { top: 47%; right: 3%; }
    #skill3 { bottom: 20px; left: 50%; transform: translateX(-50%); }
    #skill4 { top: 20px; left: 50%; transform: translateX(-50%); }
    #skill5 { top: 100px; left: 75%; transform: translateX(-50%); }
    #skill6 { top: 550px; left: 25%; transform: translateX(-50%); }
    #skill7 { top: 550px; left: 75%; transform: translateX(-50%); }
    #skill8 { top: 100px; left:25%; transform: translateX(-50%); }

    /* Brain Spline Styles */

.brain-spline {
    position: absolute;
    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    z-index: -1; 
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateZ(-200px) scale(0.8);
    transition: none;
    animation: fadeInZ 3s cubic-bezier(0.4,0,0.2,1) forwards;
}

@keyframes fadeInZ {
    from {
        opacity: 0;
        visibility: hidden;
        transform: translateZ(-200px) scale(0.8);
    }
    to {
        opacity: 1;
        visibility: visible;
        transform: translateZ(0) scale(1);
    }
}

/* About Page Styles */

/* Contact Page Styles */

#contact-form-container
{
    display: flex;
    background-color: rgba(128, 128, 128, 0.298);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(32, 242, 32, 0.884);
    box-shadow: 0 0 10px rgba(32, 242, 32, 0.884);
    border-radius: 10px;
    margin: 0 auto;
    text-align: center;
}

.contact-box h2
{
    font-size: 2rem;
    text-align: center;
    text-shadow: 0 0 5px ghostwhite;
    
    
}

.contact-box h3
{
    font-size: 1.5rem;
    text-align: center;
    text-shadow: 0 0 5px ghostwhite;
    padding: 1rem;
}

.contact-box label
{
    font-size: 1.5rem;
    text-shadow: 0 0 5px ghostwhite;
    padding: 1rem;
    
}

.contact-box input
{
    font-size: 1rem;
    background-color: rgba(128, 128, 128, 0.298);
    border-radius: 10px;
    padding: 1rem;
    border: 3px solid rgba(32, 242, 32, 0.884);
    box-shadow: 0 0 10px rgba(32, 242, 32, 0.884);
}

.message-box
{
    padding: 1rem;
}

.message-box textarea
{
    font-size: 1rem;
    background-color: rgba(128, 128, 128, 0.298);
    border-radius: 10px;
    padding: 1rem;
    width:100%;
    padding: 1rem;
    border: 3px solid rgba(32, 242, 32, 0.884);
    box-shadow: 0 0 10px rgba(32, 242, 32, 0.884);
}

.form-button
{
    background-color: rgba(0, 0, 0, 0.593);
    border-radius: 10px;
    border: 3px solid rgba(32, 242, 32, 0.884);
    box-shadow: 0 0 10px rgba(32, 242, 32, 0.884);
    padding: 1rem;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.form-button:hover
{
    background-color: rgba(32, 242, 32, 0.884);
    color: rgba(0, 0, 0, 0.847);
    text-shadow: 0 0 10px rgba(35, 36, 35, 0.576);
    cursor: pointer;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Footer Styles */

.footer-container 
{
    background: rgba(128, 128, 128, 0.298);
    backdrop-filter: blur(10px);
   
}
#footer-nav
{
    position: relative;
    z-index: 100;
    color:ghostwhite;
    font-size: 1.5rem;
    border-top: 2px solid rgba(32, 242, 32, 0.884);
    padding: 1rem 2rem; 
}

.footer-nav-container
{
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.footer-nav-links
{
    margin:0;
    padding:0;
    display: flex;
    list-style: none;
    gap: 3rem;
    margin: 0;
    text-shadow: 0 0 10px ghostwhite;
    padding-bottom: 5px;
    
    
}

.footer-nav-links a:hover
{
    color: rgba(32, 242, 32, 0.884);
    text-shadow: 0 0 10px rgba(35, 36, 35, 0.576);
    border-bottom: 2px solid  rgba(32, 242, 32, 0.884);
    transition: color 0.5s ease;

}

footer p
{
    position: relative;
    z-index: 100;
    color:ghostwhite;
    text-shadow: 0 0 10px ghostwhite;
    font-size: 1rem;
    text-align: center;
    
}

.footer-badges
{
    display: flex;
    position: relative;
    z-index: 101;
    justify-content: center;
    border-bottom: 2px solid rgba(32, 242, 32, 0.884);
    padding-bottom: 5px;
    
   
}

.thumbnail:hover
{
    transform: scale(1.5);
    transition: 0.5s ease;
}

/* Mobile Styles */

@media screen and (max-width:800px) {

  
    body {
        display: flex;
        flex-direction: column;
    }

    .content-container {
        grid-template-columns: 1fr;
        padding: 0;   
        margin: 0;
     }

     .image-container {

        height: 100%;
        margin: auto auto;
        margin-top: 10px;
        
     }

     .text-container {

        margin: auto auto;
        margin-top: -20px;
        margin-bottom: 15px;
     }

     .text-container h1 {
        font-size: 2.2rem;
     }

    .footer-nav-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        font-size: 1.2rem;
    }

    .nav-links {
        visibility: hidden;
        gap: 1rem;
    }

    .nav-container {
        display: flex;
        flex-direction: column;
        align-items: start;
        margin-top: 5px;
        height: 2vh;
        width: 100%;
    }

    .logo {
        margin:0;
        padding:0;
        margin-top: -15px;
        font-size: 2rem;

    }

    #contact-form-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .contact-box h2 {
        font-size: 1.5rem;
    }

    .contact-box h3 {
        font-size: 1.2rem;
    }   

    .contact-box label {
        font-size: 1rem;
    }
 
    .form-group select {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-bottom: 1rem;
        
    }


    .message-box {
        width: 95%;
        margin: 0 10px;
    }

    .brain-spline {
       width:100%;
       height:100%;
       position: absolute;
       top: 0;
       left: 0;
       scale: 0.8;
    }

    .branch {
        visibility: hidden;
    }

    .pop-up-window {
        width: 90%;
        height: 80%;
        padding: 10px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(1);
    }

    .portfolio-item {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-bottom: 1rem;
    }

    .portfolio-image-container {
        width: 100%;
        height: auto;
        padding: 1rem;
    }

    .portfolio-content-container {
        width: 100%;
        padding: 1rem;
    }
    
    .portfolio-content-container h1 {
        font-size: 2rem;
    }

    .portfolio-content-container p {
        font-size: 1.2rem;
        line-height: 1.4;
    }

    .portfolio-content-container button {
        width: 100%;
        padding: 1rem;
        font-size: 1.2rem;
    }
}
