/* General*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
    scroll-behavior:smooth;
}
body {
    font-family: "Inter", serif;
    font-weight: 400;
    background-color: #ECF1F8;
}
section{
    height: 80vh;
    padding-top: 15vh;
    margin: 0 15vw;
    box-sizing: border-box;
    min-height: fit-content;
}


/*Icon General*/
.icon{
    cursor: pointer;
    height: 4vh;
    opacity: .5;
}
.icon:hover{
    opacity: 1;
    transform: scale(1.2);
}
.btn-container{
    display: flex;
    justify-content: center;
    gap: 1vw;
}
.btn{
    font-weight: medium;
    transition: all 300ms ease;
    padding: 1rem;
    width: 10vw;
    border-radius: 10px;
    background: none;
    color:rgb(85,85,85);
    margin: 4.25vh 0;
    border-width: 1.25px;
    
} 
.btn:hover, .btn-color-2:hover{
    cursor: pointer;
    background: #1616AF;
    color: white;
    border: rgb(53,53,53) 0.1rem solid;
}

/* Hyperlinks */
a {
    color: white;
    transition: 300ms ease;
    display: inline;  /* Ensures link stays within the text flow */
    text-decoration: none;
}

a:hover {
  color: #ECF1F8;
}

/* Nav Bar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 15vh;
    min-height: max-content;
    background-color: #1616AF;
    position: sticky;
    top: 0;
    z-index: 1000;

}
.logo {
    max-height: 12vh;
    font-size: 40px;
    /* shape-image-threshold: inherit; */
    overflow: hidden;
    color: #ECF1F8;
    padding:0 0;
    margin: 0 0;
    margin-left: 15vw;
}
.logo:hover {
    cursor: default;
} 
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    font-size: 16px;
    margin-right: 15vw;
}

/* Hamburger nav */
#hamburger-nav{
  display: none;

}
.hamburger-menu{
    position: relative;
    display: inline-block;
    margin-right: 15vw;

}

.hamburger-icon{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
}
.hamburger-icon span{
    width: 100%;
    height: 2px;
    background-color: white;
    transition: all 0.3 ease-in-out;
  
}

.menu-links{
    position: absolute;
    top: 100%;
    right: 0;
    background:#1616AF;
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3 ease-in-out;
}
.menu-links a{
    display: inline-flex;
    padding: 10px;
    text-align: left;
    font-size: 2.5vh;
    color: white;
    text-decoration: none;
    transition: all 0.3 ease-in-out;
}
.menu-links li{
    list-style: none;
}
.menu-links.open{
    max-height: fit-content;
}

/* Hamburger icon tranformation interaction */
.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;
}


/* Profile */
#profile{
    display:flex;
    margin: 0vh 15vw;
    justify-content: space-between;
    padding-top: 0vh;
    align-items: center;
}
p{
    color:rgb(85,85,85);
    display: flex;
    font-size: 12px;
}
.title{
    font-size: 40px;
    text-align: left;
    margin-top: 50px;
    font-weight: 400;
    /* margin-left: 15vw; */
    
}
.auto-type{
    font-size: 16px;
    margin-bottom: 50px;
    display: inline-flex;
    text-align: left;
    
}
.profile-textbox{
    display: flex;
    justify-content: left;
    font-size: 12px;
    word-wrap: break-word;
    word-break: normal;
}
.profile-insight{
    display: flex;
    justify-content: left;
    font-size: 12px;
    margin-top: 2vh;
    margin-bottom: 2vh;
}
.profile-pic-container {
    display: inline-block; 
    max-height: min-content;
  }
  
  .profile-pic-container img {
    width: 100%;    /* fill container width */
    height: auto;   /* maintain aspect ratio */
    display: block; /* remove any inline-gap issues */
  }
.socials-container{
    display: flex;
    justify-content: center;
    padding: 1rem;
    margin: 4.25vh 0;
    gap: 1rem;

}


/* Career Snapshot */
.career-container{
    display: flex;
    gap: 5vw;
}

/* Sidebar Styling */
.sidebar {
    width: 15vw;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 1vh;
}

.btn-color-2 {
    font-family: "Inter", serif;
    width: 100%;
    padding: 2vh;
    font-size: 12px;
    background: transparent;
    border: black 1px solid;
    color: black;
    cursor: pointer;
    text-align: left;
    transition: 0.3s;
    border-radius: 10px;
    border-width: 1.25px;

}
.btn-color-2.active {
    background: #1616AF;
    color: white;
    /* font-weight: ; */
}

/* Career Content */
.content {
    flex: 1;
    margin: 0 0;
    display: flex;
    justify-content: left;
    width: 70vw;

}
.content-section {
    display: none;
    align-items: justify;
}
.content-section.active {
    display: inline-block;
}

/* Content cards */
.cards {
    display: flex;
    flex-direction: row;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 2vh;
    border-color: black;
    overflow-y: auto; /* Enables vertical scrolling */
    overflow-x: hidden; /* Prevents horizontal scrolling */
    max-height: 45vh; /* Fixed height */
    scrollbar-width: thin;
    scrollbar-color: #1616AF #ECF1F8;
}
.card {
    width: 100%;
    background: transparent;
    padding-left: 15px;
    border-radius: 10px;
    border: #1616AF solid;
    margin: 0 0;
    cursor: pointer;
    border-width: 1.25px;
}
.card p{
    font-size: 12px;
    color: #1616AF;
    font-weight: bold;
    padding-bottom: 1vh;
    margin-bottom: 0vh;
}
.card h3{
    margin-top: 0vh;
    margin-bottom: 0vh;
    font-size: 16px;
}
.card h2{
    font-size: 20px;
    color: black;
    font-weight: bold;
    margin-top: 2vh;
    margin-bottom: 0vh;
}

/* Info Drop box */
.info {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    white-space: pre-line;
    transition: 1s ease-in-out;

}
.info-drop{
    opacity: 1;
    transition: 0s ease-in-out;
}

.card.active .info {
    opacity: 1;
    max-height: 500px;
}

.card.active .info-drop {
    display: none;    
    opacity: 1;

}
.btn-3{
    background: transparent;
    border: black 1px solid;
    border-radius: 10px;
    color: #1616AF;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    padding: 1vw;
    border-width: 1.25px;
    
}
.radar{
    width: 23vw;
    height: 40vh;
    display: inline-flex;
    margin: 0 0;
    
}
.sub-content-section{
    display: none;
    align-items: justify;
}
.sub-content-section.sub-active{
    display: inline-block;
}

/* Tech Stack */
/* Tech Grid Container */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); /* Responsive columns */
    gap: 20px; /* Space between items */
    justify-items: center;
    align-items: center;
    padding: 20px;
}
/* Individual Tech Item */
.tech-item {
    text-align: center;
    transition: transform 0.3s ease-in-out;
}
.tech-item img {
    width: 80px; /* Adjust size */
    height: 80px;
    object-fit: contain;
}
.tech-item p {
    display: none;
}
.tech-item:hover {
    transform: scale(1.5);

}

/* Project Section */
.projects{
    display: flex;
    flex-direction: row;
    gap: 30px;
}
.category-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.category-btn {
    font-weight: medium;
    padding: 1rem;
    border-radius: 10px;
    border-width: 1.25px;
    margin: 4.25vh 0;
    background: none;
    color:rgb(85,85,85);
    border: none;
    cursor: pointer;
    font-size: 16px;
    gap: 5px;
    text-decoration-line: underline #1616AF solid 3px ;  
    transition: all 300ms ease;

}
.category-btn:hover, .category-btn.active {
    /* background: #1616AF; */
    color: #1616AF;
    /* border: rgb(53,53,53) 0.1rem solid; */
}
.projects-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
}
.project-card {
    width: 300px;
    background: #FFFFFF;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
    color: black;
}
.project-card:hover {
    transform: scale(1.05);
}
.project-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
}
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}
.overlay a {
    color: white;
    font-size: 24px;
    text-decoration: none;
}
.overlay :hover {
    cursor:pointer
}

.tech-stack {
    margin-top: 10px;
    
}
.skill {
    background: #1616AF;
    color: white;
    padding: 5px 10px;
    margin: 5px;
    border-radius: 5px;
    font-size: 12px;
    display: flex;
}
.project-image:hover .overlay {
    opacity: 1;
}


/* Footer config */
footer{
    display: relative;
    position: bottom;
    margin-top: 25vh;
    min-height: 250px;
}
.footer-box{
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #1616AF;
    color: white;
    padding-top: 40px;
    gap: 20px;
    margin-top: 30vh;
}
.contact-footer-box{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    /* padding: 40px; */
    margin: 0 15vw;
}
footer a {
    color: white;
    align-items: center;
    text-decoration: none;
    margin: auto auto;
    text-align: center;
    align-self: center;
}
footer p{
    color: white;
    margin: 0vh 15vw;
}
.contact-form{
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-self: left;
    width:50%;
}
.message-box{
    width: 100%;
    color: black;
    background-color: #ECF1F8; 
    opacity: .9;
    height: 30px;
    border-radius: 10px;
    border-width: 1.25px;
}
.message-box.hover{
    width: 100%;
    color: #ECF1F8; 
    opacity: 1;
}
.contact-info-container{
    display: flex;
    flex-direction: row;
    justify-content: baseline;
    margin: 0 15vw;
    gap: 20px;
}
footer .icon{
    cursor: pointer;
    height: 4vh;
    opacity: 1;
}
footer .icon:hover{
    transform: scale(1.2);
}