

/*general styling*/
/*
h1 {
    border: 3px solid  #307848;
    border-radius: 12px;
    text-align: center;
    width: 450px;
    height: 65px;
    margin: auto;
    background-image: linear-gradient(#307848, #6bbd6f);
}
*/

h2{
    font-size: 24px;
    text-align:center;
    color:#666D96;

}

h3{
    font-size: 20px;
    text-align:center;
    color:#666D96;

}

h4{
    font-size: 16px;
    text-align:center;
    color:#666D96;

}

body {
    font-family:'Segoe UI', Tahoma, Verdana, sans-serif ;
    font-size: 16px;
    line-height: 1.6;
    margin: 40px;
    padding: 20px;
    background-color:#F9F2E8;
    color: #666D96;
    text-align: center;
    list-style: circle;
    
}


strong{
    font-family:sans-serif;
    text-align: center;
    font-size: 18px;
    color:#666D96;
}

small{
    font-style: italic;
}


/*socials for contact page*/
 p a{
    display:block; 
    text-decoration:double;
    color:#666D96;
    font-weight: bold;
    padding: 5px;
    transition: color 0.3s ease;
    border-radius: 5px;
    margin: 5px;
    align-items: center;
    gap: 8px;
    font-size: 35px;

}

p a:hover{
    color: #3d4367;

}



/*nav bar*/
nav{
    display: flex;
    padding: 10px 0;
    text-align: center;
    position: sticky;
    justify-content: center;
    
    
}


nav ul{
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    
}

nav ul li{
    display: inline;
    text-decoration: dotted;
    padding: 0 10px;
    letter-spacing: 0.5px;
    font-size: 20px;
    font-weight: 600;
    
}


nav ul li a{
    color: #7878A2;
    text-decoration: none;
    font-size: 18px;
    padding:8px 12px;
    transition: 0.3s;
    display: inline-block;
}

nav ul li a:hover{
    text-decoration: underline;
    color: #3d4367;
    border-radius: 12px;
}

/*misellanious*/ 


section {
    padding:20px;
    text-align: center;

}

img {
    width: 35%;
    height: 25%;
    border-radius: 12px;
    max-width: 500px;
    object-fit:cover;
    
    
}

iframe{
    width: 50%;
    height: 500px;
    border-radius: 12px;
    margin: 0px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
}

hr{
    border-style: solid;
    color: #666D96;
}

.nav-divider {
  width: 100%;
  height: 12px;
  margin: 1rem 0;
  opacity: 0.6;
}


/*classes*/

/*image style for about page*/
.img-style {
    width: 350px; /* Adjust based on actual image size */
    height: auto; /* Maintains aspect ratio */
    border-radius: 12px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;

   
}



/*about me page*/
.favorites-paragraph{

    background-color: #E8E5E2;
    border: 2px solid #666D96;
    text-align: left;
    padding: 15px;
    border-radius: 5px;
    width: 300px; /* Make both sections the same width */
    height: auto; /* Adjusts height dynamically */
    font-size: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;


}

.about-paragraph{
    width: 700px;
    height: auto;
    font-size: 20px;
    background-color: #E8E5E2;
    border: 2px solid #666D96;
    text-align: center;
    padding: 15px;
    border-radius: 5px;
    justify-content: center;
    margin: 0 auto;
    display: flex;


}

.parent{
    display: flex;
    justify-content: center;
    align-items: center; /* Centers items vertically */
    gap: 50px;
    flex-wrap: wrap; /* Ensures it adapts on smaller screens */
    margin: 25px 30px 30px 30px; 
    
}



.reg-paragraph{
    text-align: left;
    font-size: 12;
    font-weight:lighter;
    display:list-item;
}




/*box at the top class*/
.myDiv {
    background-image: linear-gradient(#7f7068, #B6AD90);    
    text-align: center;
    font-size: 30px;
    padding:12px 12px;
    border-radius: 10px;
    /*display:list-item;*/
  }

.home-grid{
    display: grid;
    grid-template-columns: repeat(6, 1fr)                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ;
    gap: 8px;
    padding: 10px;
}

.home-img{
    width: 50%;
    height: auto;
    align-items: center;
}

.welcome-img{
    width: 150%;
    height: auto;
}

.contact-container{
    width: 250px;
    height: auto;
    margin: 35px auto;
    padding: 20px;
    background: #E8E5E2;
    border-radius: 15px;
    box-shadow: 7px 7px 25px rgba(0, 0, 0, 0.1);
}


/* burger menu */

#hamburger-nav{
    display: none;

}

.hamburger-menu{
    position: absolute;
    display: inline-block;
    top: 20px;
    right: 20px;
    margin: auto;
    z-index: 5;
    transform: translateZ(0);
    
    

}

.hamburger-icon{
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;

    
}

.hamburger-icon span{
    width: 100%;
    height: 2px;
    background-color: #7878A2;
    transition: all 0.3 ease-in-out;
    
}

.menu-links{
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #FAF2E9;
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;

}

.menu-links a{
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 1.5 rem;
    color: #7878A2;
    text-decoration: none;
    transition: all 0.3 ease-in-out;
    
}

.menu-links li{
    list-style: none;
}

.menu-links.open{
    max-height: 300px;
    

}

.hamburger-icon.open span:first-child{
    transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2){
    opacity: 0;
}
.hamburger-icon.open span:last-child{
    transform: rotate(-45deg) translate(10px, -5px);
}


.hamburger-icon span:first-child{
    transform: none;
}
.hamburger-icon span:first-child{
    opacity: 1;
}
.hamburger-icon span:first-child{
    transform: none;
}

.nav-links{
    display: flex;
    gap: 2rem;
    list-style: none;
    font-size: 1.5rem;
}

/*project page*/


.filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    padding: 5px 14px;
    border-radius: 20px;
    border: 0.5px solid #b0adc8;
    background: transparent;
    color: #6b6894;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.03em;
    width: 75px;
    height: 40px;
}
.filter-btn:hover {
    background: #e8e4f5;
    color: #3d3a6b;
}
.filter-btn.active {
    background: #4a4478;
    color: #e8e4f8;
    border-color: #4a4478;
}
 
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
 
.card-wrap {
    perspective: 900px;
    height: 220px;
}

.card-wrap.hidden {
    display: none;
}
 
.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.card-wrap:hover .card-inner {
    transform: rotateY(180deg);
}
 
.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    border: 0.5px solid #FAF2E9;
    background: #E8E5E2;
    padding: 1.25rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
 
      /* =============================================
         BACKGROUND IMAGE — edit per card
         Replace 'none' with url('your-image.jpg')
         The overlay keeps text readable.
         ============================================= */
    background-image: none;
    background-size: cover;
    background-position: center;
}

    /* Semi-transparent overlay so text stays readable over images.
       Increase the alpha (last value) to darken more, e.g. rgba(245,243,235,0.88) */
.card-face::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: rgba(245, 243, 235, 0.82);
    z-index: 0;
}

 /* Push all card content above the overlay */
.card-face > * {
    position: relative;
    z-index: 1;
}
    
 
.card-back {
    transform: rotateY(180deg);
}
 
.card-tag {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: #7878A2;
    text-transform: lowercase;
    margin-bottom: auto;
}
 
.card-name {
    font-size: 20px;
    font-weight: 600;
    color: #666D96;
    margin: 0 0 6px;
    line-height: 1.2;
}
 
.card-stack {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: #7878A2;
    letter-spacing: 0.04em;
}
 
.card-desc {
    font-size: 13px;
    color: #7878A2;
    line-height: 1.6;
    flex: 1;
    margin: 0 0 1rem;
}
 
.github-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: #7878A2;
    text-decoration: none;
    border: 0.5px solid #666D96;
    border-radius: 6px;
    padding: 6px 12px;
    width: fit-content;
    transition: background 0.35s;

    
}
.github-link:hover {
    background: #ede9f9;
}
 
.hint {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: #7878A2;
    text-align: right;
    margin-bottom: 0.75rem;
    letter-spacing: 0.03em;
}

.project-paragraph{
    border: 5px outset #8A8C6F; 
    text-align: left;
    padding:10px 10px;
    margin-right: 30px;
    border-radius: 5px;
    width: 50%;
    float: left;
}


.project-grid{
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px;
}

@media (max-width:  768px){
    .project-grid{
        grid-template-columns: 1fr;
    }
}

.project-card{
    border: 2px solid #8A8C6F;
    background: #B6AD90;
    padding: 20px;
    border-radius: 12px;
    text-align:left;
}

.caption{
    color:#7878A2;
    font-weight:lighter;
    padding: 5px;
    text-align: center;
    gap: 8px;
    font-size: 15px;
}

.link a{
    color:#666D96;
    font-weight: bold;
    transition: color 0.2s ease;
    font-size: 15px;
    text-align: center;


}

.link a:hover{
    color:#3d4367;
    font-weight: bold;
    border-radius: 10px;
    text-decoration: dotted;
}


/*animations*/

@keyframes fadeIn {
    from{
        opacity: 0;
    }
    to {
        opacity: 1;
    }
    
}

.fade-in{
    animation:fadeIn 1s ease-in-out;

}

.containerforproj{
    margin-top: 20px;
}

.log-container{
    display: flex;
    width: 700px;
    height: 500px;
    border-radius: 7px;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    background-color: #E8E5E2;
    border:#666D96 solid 2px;
    margin: auto;
    
}

.log-content {
    flex: 1;
    padding: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    color: #666D96;
    font-size: 16px;
}



    .log-content p {
        color:  #666D96;
        font-weight:600;
        font-size: 16px;
        line-height: 20px;
        letter-spacing: 0.4px;
        font-family:monospace;
        text-align: left;
        
        

    }

::-webkit-scrollbar{
    width: 10px;
    background-color: #7878A2;
}

::-webkit-scrollbar-thumb{
    background-color: #666D96;
    border-radius: 10px;
}

.img-style2{
    width: 100%; /* Adjust based on actual image size */
    height: auto; /* Maintains aspect ratio */
    border-radius: 12px;
    margin: auto;
    align-items: center;
}







/*buttons*/
button{
    background-color: #FAF2E9;
    margin-top: 10px;
    width: 150px;
    height: 75px;
    color: #666D96;
    font-family:'Segoe UI', Tahoma, Verdana, sans-serif;
    text-align: center;
    border-radius: 17px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    border:#FAF2E9;
    cursor: pointer;
    padding: 12px 20px;
}

button:hover{
    background-color: #E8E5E2;
    border-radius: 12px;

}