/*look how to become a developer yt channel */

/* GENERAL */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');


* {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Poppins", sans-serif;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
}

p {
    color: rgb(85, 85, 85);
}

/* TRANSITION */

a, .btn {
    transition: all 300ms ease;
}

/* DESKTOP NAV */

nav, .nav-links {
    display: flex;
}

nav {
    justify-content: space-around;
    align-items: center;
    height: 17vh;
}

.nav-links {
    gap: 2rem;
    list-style: none;
    font-size: 1.5rem;
}

a {
    color: black;
    text-decoration: none;
    text-decoration-color: white;
}

a:hover {
    color: grey;
    text-decoration: underline;
    text-underline-offset: 1rem;
    text-decoration-color: rgb(180, 180, 180)
}

.logo {
    font-size: 2.5rem;
}

.logo:hover {
    cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
    display: none;
}

.hamburger-menu {
    position: relative;
    display: inline-block;
}

.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: var(--text-color);
    transition: all 0.3 ease-in-out;
}

.menu-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--text-color);
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3 ease-in-out;
}

.menu-links a {
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 1.5rem;
    color: black;
    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;
}

/* SECTIONS */

section {
    padding-top: 4vh;
    height: 96vh;
    margin: 0 10rem;
    box-sizing: border-box;
    min-height: fit-content;
}

.section-container {
    display: flex;
    justify-content: center;
    position: relative;
    width: 100%;
   
  
    
}

/*PROFILE SECTION*/

#profile {
    display: flex;
    justify-content: center;
    gap: 5rem;
    height: 80vh;
}

.section__pic-container {
    display: flex;
    height: 400px;
    width: 400px;
    margin: auto 0;
}

.section__text {
    align-self: center;
    text-align: center;
}

.section__text p {
    font-weight: 600;
}

.section__text__p1 {
    text-align: center;
}

.section__text__p2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.title {
    font-size: 3rem;
    text-align: center;
    position: relative;
    margin-bottom: 2rem;
}

#socials-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
}

/*ICON*/

.icon {
    cursor: pointer;
    height: 2rem;
}

/* BUTTONS */

.shadow-dark {
    box-shadow: 0 0 50px rgba(48, 58, 65, 0.2);
}

.btn-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    font-weight: 600;
    transition: all 300ms ease;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
}



.btn-color-1:hover,
.btn-color-2:hover {
    cursor: pointer;
}

.btn-color-1 {
    background: var(--btn-hover-bg);
    color: var(--btn-hover-text);
    border: var(--btn-border) 0.1rem solid;
  }
  
  .btn-color-1:hover {
    background: var(--btn-hover-bg);
    color: var(--btn-hover-text);
    border: var(--btn-border) 0.1rem solid;
  }
  

.btn-color-2 {
    background: var(--btn-bg);
    color: var(--text-color);
    border: var(--btn-border) 0.1rem solid;
  }
  
  .btn-color-2:hover {
    background: var(--btn-hover-bg);
    color: var(--btn-hover-text);
    border: var(--btn-border) 0.1rem solid;
  }
  

.btn-container {
    gap: 1rem;
}

/*ABOUT SECTION */

#about {
    position: relative;
}

.about-containers {
    gap: 2rem;
    margin-bottom: 1.5rem;
    
}

.about-details-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin: auto;
    margin-top: 0;
    width: 100%;
}

.about-containers,
.about-details-container {
    display: flex;
}

.about-pic {
    border-radius: 2rem;
}

.arrow {
    position: absolute;
    right: -5rem;
    bottom: 2.5rem;
}

.details-container {
    padding: 1.5rem;
    flex: 1;
    background: white;
    border-radius: 2rem;
    border: rgb(53, 53, 53) 0.1rem solid;
    border-color: rgb(163, 163, 163);
    text-align: center;
}

.text-container {
    text-align: justify;
}
.section-container {
    gap: 4rem;
    height: 80%;
}

.section__pic-container {
    height: 400px;
    width: 400px;
    margin: auto 0;
}

/* EDUCATION */

#education {
    position: relative;
}

.education-sub-title {
    color: var(--subtitle-color);
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 0;
}

.education-details-container {
    display: flex;
    justify-content: center;
    flex-direction: column;

   
  
    
    position: relative;
    margin: auto;
  
    width: 100%;
}

.university-details-container {
    display: flex;
    flex-direction: column; /* Align children vertically */
    align-items: center; /* Center children horizontally within the container */
    justify-content: center; /* Center children vertically within the container */
    padding: 1.5rem;
    flex: 1;
    background: white;
    border-radius: 2rem;
    border: rgb(53, 53, 53) 0.1rem solid;
    border-color: rgb(163, 163, 163);
    text-align: center;
    height: 100%; /* You can adjust this based on your design needs */
}

.significant-text {
    text-align: justify; /* Ensures paragraph is fully justified */
    margin-left: 0; /* Aligns text to start from the left */
    width: 100%; /* Takes full available width */
}

.significant-courses {
    font-weight: bold; /* Highlights the title */
    color: #333; /* Adjust color if needed */
    display: inline; /* Ensures it stays inline */
}




.section__unilogo-container {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    height: 70px;
    width: 70px;
    margin: 0; /* Remove auto margin if it's not needed */
}

.section__unilogo-container img {
    max-height: 100%; /* Limit height to container's height */
    max-width: 100%; /* Limit width to container's width */
    object-fit: contain; /* Preserve aspect ratio without cropping */
}


/* EXPERIENCE */

#experience {
    position: relative;
}

.experience-containers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    margin: auto;
    margin-top: 2.5rem;
    width: 100%;
}

/* Timeline Vertical Line */
.experience-containers::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: #555;
    transform: translateX(-50%);
}

/* Alternating Layout */
.timeline-box {
    display: flex;
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
    padding: 2rem 0;
    position: relative;
    gap: 12rem;
}
.timeline-box-2 {
    display: flex;
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
    padding: 2rem 0;
    position: relative;
    gap: 12rem;
    flex-direction: row-reverse; /* Reverse the content */
    text-align: left; /* Ensure text is aligned properly */
}


/* Odd Rows (Title on Left, Role on Right) */
.timeline-box:nth-child(odd) {
    flex-direction: row;  /* Normal Order */
    text-align: right;
    padding-right: 2rem;
}

/* Even Rows (Role on Left, Title on Right) */
.timeline-box:nth-child(even) {
    flex-direction: row-reverse; /* Reverse Order */
    text-align: left;
    padding-left: 2rem;
}

/* Experience Containers Styling */
.experience-title-container,
.experience-details-container {
    flex: 1;
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
}

/* Timeline Circle Dot */
.timeline-box::before {
    content: "";
    position: absolute;
    top: 30px;
    left: 50%;
    width: 14px;
    height: 14px;
    background-color: rgb(108, 108, 222);
    border-radius: 50%;
    transform: translateX(-50%);
}


.experience-title-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-top: -20px; /* Move text closer to timeline dot */
    padding: 0; /* Remove unnecessary padding */
    text-align: left;
    width: 50%;
}

.experience-title-container-left {
    display: flex;
    flex-direction: column;
    text-align: right; /* Aligns text to the right */
    align-items: flex-end; /* Pushes content to the right */
    width: auto; /* Prevents unnecessary stretching */
    margin-left: auto; /* Pushes it to the right */
    margin-right: -55px; /* Adjust this to fine-tune position near the timeline bar */
}

.experience-title-container-right {
    display: flex;
    flex-direction: column;
    text-align: left; /* Aligns text to the left */
    align-items: flex-start; /* Pushes content to the left */
    width: auto; /* Prevents unnecessary stretching */
    margin-right: auto; /* Pushes it to the left */
    margin-left: -55px; /* Adjust this to fine-tune position near the timeline bar */
}

.experience-details-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Moves content up */
    align-items: flex-start; /* Align text properly */
    padding: 1rem; /* Adjust padding */
    flex: 1;
    background: white;
    border-radius: 2rem;
    border: rgb(53, 53, 53) 0.1rem solid;
    border-color: rgb(163, 163, 163);
    height: auto; /* Allow flexible height */
    margin-top: -40px; /* Move up */
    margin-right: 0;
}

.timeline-item {
    display: flex;
    text-align: justify;
    flex-wrap: wrap; /* Allows content to wrap if needed */
    gap: 10px; /* Adds space between items */
    margin-top: 10px;
}
.timeline-item p {
    display: flex;
    align-items: flex-start; /* Aligns bullet with text */
    gap: 6px; /* Space between bullet and text */
    margin: 0;
}
.timeline-item p::before {
    content: "•"; /* Adds a bullet point */
    font-size: 18px; /* Adjust size */
    color: #555; /* Adjust color */
    margin-top: -4px;
}


/* SKILLS */
#skills {
    position: relative;
}

.skills-item-container {
    flex-direction: column;
}

.skills-row-1 {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.skill-item {
    flex: 0 0 40%;
    max-width: 40%;
    margin-top: 2.5rem;
    flex-direction: column;
}

.skill-item h4 {
    line-height: 40px;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-color);
    text-transform: capitalize;
}
.skill-item .progress{
    background-color: rgb(198, 188, 188);
    height: 10px;
    border-radius: 4px;
    width: 100%;
    position: relative;
}

.skill-item .progress .progress-in {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 4px;
    background-color: rgb(18, 101, 114);
}

.skill-item .skill-percent {
   position: absolute;
   right: 0;
   top: -40px;
   font-weight: 400;
   line-height: 40px;
}

/* PROJECTS */
#projects {
    position: relative;
}

.color-container {
    border-color: rgb(163, 163, 163);
    background: rgb(250, 250, 250);
}

.project-img {
    border-radius: 2rem;
    width: 90%;
    height: 90%;
}

.project-title {
    margin: 1rem;
     /* Ensures paragraph is fully justified */
}

.project-title,
.project-sub-title {
  color: var(--text-color);
}

.project-btn {
    color: var(--text-color);
    border-color: rgb(163, 163, 163);
}


.projects-details-container {
   
    margin-bottom: 4rem;
}




/* CONTACT */

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%; /* Ensure it takes the full width */
}

.contact-info-upper-container {
    display: flex;
    flex-direction: row; /* Align items in a row */
    justify-content: space-around; /* Evenly space the child elements */
    width: 100%;
    gap: 1.2rem; /* Maintain gap for breathing space */
    margin-bottom: 2rem;
}

/* Individual contact boxes */
.contact-info-container {
    display: flex;
    align-items: center;
    
    gap: 1rem;
  
}

.contact-icon {
    cursor: default;
    width: 24px; /* Adjust size as needed */
    height: auto;
    margin-right: 10px;
}

.contact-info-container p {
    color: var(--text-color);
    font-size: larger;
}


.row1 {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    padding: 0 20px;
}

.col-6 {
    flex: 0 0 40%; /* This ensures that the column takes up half the width of its container */
    max-width: 40%; /* This prevents it from exceeding half of the parent width */
    padding: 0 30px; /* Adjust padding as needed */
}

.col-12 {
    justify-content: center;
    align-items: center;
    flex: 0 0 100%;
    max-width: 85%;
    padding: 0 20px;
} 

.form-group {
    margin-top: 20px;  /* Adds space above the form-group */
    /* Other existing styles */
}

.form-control {
    font-family: inherit;
    height: 30px;
    display: block;
    width: 100%; /* Full width of the column */
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: rgb(220, 220, 220);
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.form-item textarea.form-control {
    height: 150px;
}

.contact-form-container {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    margin-top: 2rem;
    height: 10vh; /* Ensure full viewport height */
}

#send-message-btn {
    cursor: pointer !important;
}
#send-message-btn:hover {
    background: rgb(255, 255, 255) !important;
    color: black; /* Ensures text remains visible */
    transition: background 0.3s ease; /* Smooth transition effect */
}

/*FOOTER*/

footer {
    height: 26vh;
    margin: 0 1rem;
}

footer p {
    text-align: center;
}


:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --subtitle-color: rgb(100, 100, 100);
    --btn-bg: none;
    --btn-border: rgb(53, 53, 53);
    --btn-hover-bg: rgb(53, 53, 53);
    --btn-hover-text: white;
    --container-bg: white;
  }
  
  [data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --subtitle-color: #bbbbbb;
    --btn-bg: none;
    --btn-border: #e0e0e0;
    --btn-hover-bg: white;
    --btn-hover-text: black;
    --container-bg: #1e1e1e;
  }
  
  body {
    background-color: var(--bg-color);
    color: var(--text-color);
  }
  
  a, p, h1, h2, h3, h4 {
    color: var(--text-color);
  }
  
  .details-container,
  .university-details-container,
  .experience-details-container,
  .experience-title-container,
  .color-container {
    background-color: var(--container-bg);
  }
  
  #theme-toggle,
#theme-toggle-mobile {
  width: 40px;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  border-radius: 50%;
}

#theme-toggle:hover,
#theme-toggle-mobile:hover {
  box-shadow: 0 0 0 3px var(--text-color); /* clean ring */
  transform: scale(1.05); /* slight zoom on hover */
}
