/*vv General formatting stuff vv*/

/* Creating vars for each color */
:root {
    --bg-light: #ecd9f6;
    --bg-accent: #A893E5;
    --bg-dark: #979CE3;
    --text-dark: #242424;
    --text-light: #f9f9f9;
    --highlight: #ffcbfc;
}

/* Defining params and background image */
body {
    font-family: "Poppins", sans-serif;
    color: var(--text-dark);
    background-image: url("https://images.pexels.com/photos/114979/pexels-photo-114979.jpeg?cs=srgb&dl=pexels-veeterzy-114979.jpg&fm=jpg");
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(2px);
    z-index: -1;
}


h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5em;
}
  
p {
    line-height: 1.6;
    font-size: 1rem;
}



/*vv Header code vv*/

/* Pages (nav on the right) */
.pages {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    
    display: flex;
    align-items: center;
    gap: 20px;       /* spacing between nav items */
    font-weight: bold;
}

/* Container for the items in header */
.pageHeaderNav {
    display: flex;
    justify-content: space-between; /* Push left and right content apart */
    align-items: center;            /* Vertically center items */
    padding: 5px 1px;             /* Optional spacing */
    background-color: var(--bg-light);      /* Optional: light background */
    border-bottom: 1px solid var(--highlight);  /* Optional: bottom border */
}

/* Logo container (top L in header) */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
}

/* Logo image styling */
.cornerLogo {
    width:80px;
    height: 50px;
    object-fit: contain;
}


.button{
    background-color:var(--bg-light);
    border: 0px;
    width: 50%;
    font-size: 15px;
    cursor:pointer;
}

/* Container for dropdown menu */
.menuContainer {
    position: relative;
}

/*Dropdown menu formatting*/
.menuList {
    position: absolute;
    right: 0;
    top: 100%;
    background-color: whitesmoke;
    list-style: none;
    padding: 10px;
    margin: 0;
    border: 1px solid var(--highlight)
}

.menuList li {
    padding: 8px 12px;
    cursor: pointer;
}

/* Page name containers bg change color when hover mouse */
.menuList li:hover {
    background-color: #f0f0f0;
}

.menuLinks{
    color:black;
}

/* Page names change color when highlight text */
.menuLinks li:hover {
    color: var(--highlight);
    border-bottom: 2px solid var(--highlight);
    transition: color 0.1s ease, border-bottom 0.2s ease;
}

/*vv Footer Styling vv*/

/* formatting the images in footer */
.socialLogo{
    width:20px;
    height:20px;
    object-fit:contain;
    justify-self: left;
    margin: 3px;
}

/* change color of images when hover */
.socialLogo:hover{
    transform: scale(1.15);
    transition: transform 0.2s ease;
}

.pageFooter{
    display:flex;
    flex-direction: column;
    justify-content: space-between; 
    align-items:center;            
    padding: 1px 2px;             
    background-color: var(--bg-light);      
    border-top: 1px solid var(--highlight);
    min-height: 10px;
}

.footerTxt{
    margin:5px;
}
/* emove link underlines from footer imgs */
.imageLink{ 
    text-decoration: none;
}


/*vv ActualStuff is the container for all the stuff on every page (dont fw this) vv*/
.actualStuff {
    background-color: #CC9AEA;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    margin: 30px auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    overflow: hidden;
}

/*vv Home page styling vv*/

/* Intro text about me*/
.intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px; 
    text-align: center;
}

/*The two buttons linnking to about me and proj*/
.indexButton{
    background-color: var(--bg-light);
    border: 0px;
    border-radius: 5px;
    margin-top: 20px;
}

.indexButton:hover{
    cursor: pointer;
    transition: color 0.1s ease, 0.1s ease;
    background-color: #e1d0ea;
}

.indexLink{
    color:var(--text-dark);
    text-decoration: none;
}

/*vv About me page styling vv*/

/* holds image + text about me :)*/
.aboutMeContainer{

    display:flex;
    align-items: center;
    background-color: var(--bg-accent);
    padding: 2px 1%;
    margin: 5px;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    background-color: var(--bg-dark);
}
.aboutMeImg{
    width: 100px;
}

.aboutMeTxt{
    padding:10px ;
}

/* Container for the movies list */
.movies {
    overflow-x: auto;  
    overflow-y: visible;  
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 5px;
    position: relative;
    max-width: 800px;

    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    background-color: var(--bg-dark);

}


.movies img {
    max-height: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    position: relative;
    z-index: 1;
}

/* Make movie img bigger on mousehover */
.movies img:hover {
    transform: scale(1.01);  
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.favMovCtr{
    background-color:var(--bg-dark);
    display: inline;
    padding-left: 3px;
    max-width: 300px;
}

.songHolder{
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    border-radius: 8px;
}

.song{
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.song:hover{
    transform: scale(1.01);  
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
    z-index: 10;

}

/*vv Projects styling vv*/

/* This is the container that holds all of the individual projects */
.projContainer{
    display: flex;
    padding:10px;
    gap: 20px;
    justify-content: center;
    white-space: initial;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    background-color: var(--bg-accent);

}

/* Each individual project container */
.indivContainer {
    background-color: var(--bg-dark);
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column; 
    align-items: center;     
    padding: 10px;
    width: fit-content;      
    border-radius: 8px;
    padding-top: 0px;   
    cursor: pointer;
    font-size: 24px;    
}

/* Jump up when hovered! */
.indivContainer:hover {
    transform: translateY(-4px);
    transition: transform 0.1s ease;
}

/* Call when proj is clicked, blurs out bg */
.blurred {
    filter: blur(8px);
    transition: filter 0.3s ease;
}
  
/*Format for each projects image*/
.projContainer img {
    width: 250px;
}

/*Format of the box holding the about project info*/
.projInfo{
    position: fixed;
    text-align: left;
    background-color: whitesmoke;
    border-radius: 5px;
    max-width: 600px;
    width: 70%;
    display: flex;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* reveal proj info + a sick transition */
.projInfo.show {
    opacity: 1;
    pointer-events: auto;
    animation: fadeInUp 0.4s ease forwards;
}

/*Text for each individal projects about*/
.proj {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
}

.proj h2 {
    margin: 0 0 8px 0;
    font-size: 1.2em;
    padding-top: 5px;  /* Changed from 5px to 0px */
    padding-right: 30px;
    margin-bottom: 10px;
}

.projContent {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    flex-direction: row;  
}

/* left section holds info */
.leftSection {
    flex: 2;
    text-align: left;
}

.leftSection p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.4;
    text-align: left;
    display: flex;
}

/* Right section holds languages + github button */
.rightSection {
    flex: 0 0 80px;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85em;
}

.languages {
    margin: 0;
    font-weight: 600;
}

.githubLink {
    display: inline-block;
    padding: 4px 10px;
    background-color: #24292e;
    color: whitesmoke;
    text-decoration: none;
    border-radius:8px;
    text-align: center;
}

/* Close button on proj popup */
.xButton {
    position: flex;
    top: 5px;
    right: 5px;
}

.xButton button{
    font-size: 16px;
    cursor: pointer;
    background-color: transparent;
    border: none;
    padding: 5px 10px;
    font-weight: bold;
}

.xButton button:hover{
    color: #888;
}

/*THE END!!!! For now...*/
