/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
/*===== VARIABLES CSS =====*/
:root {
  --header-height: 3rem;
  --font-semi: 600;
 
  /*===== Colors for Dark Mode (default) =====*/
  
  --background-color: #000000; /* Dark background */
  --text-color: #ffffff; /* Light text */
  --header-background-color: #000000; /* Dark header background */
  --first-color: #00ff99; /* Accent color */
  --second-color: #ffffff; /* Light mode text */
  --nav-menu-background: #000000; /* Dark mode nav background */
  --nav-link-color: #ffffff; /* Light mode link color */
  --footer-background-color: #000000; /* Footer background */
  --button-background: #00ff99; /* Button background */
  --button-text-color: #000000; /* Button text color */
  --section-title-color: #00ff99; /* Section title color */
  --box-shadow: 0 4px 10px rgba(0, 255, 153, 0.4), 0 0 15px rgba(0, 255, 153, 0.3);


  --black-white-color: #000000;
  --green-black-color: #00ff99;
  --green-white-color: #00ff99;
  --white-black-color: #ffffff;
  --white-green-color: #ffffff;
  --green-green-color: #00ff99;
  --White-grey-color: #ffffff;
  --grey-grey-color: #CCCCCC;
  --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);



}

/* Light Mode Styles */
body.light-mode {
  --background-color: #ffffff; /* Light background */
  --text-color: #000000; /* Dark text */
  --header-background-color: #f0f0f0; /* Light header background */
  --first-color: #00FF7F; /* Accent color */
  --second-color: #000000; /* Light mode text */
  --nav-menu-background: #f0f0f0; /* Light mode nav background */
  --nav-link-color: #000000; /* Light mode link color */
  --footer-background-color: #f0f0f0; /* Footer background */
  --button-background: #000000; /* Button background */
  --button-text-color: #000000; /* Button text color */
  --section-title-color: #00FF7F; /* Section title color */

  --black-white-color: #ffffff;
  --green-black-color: #000000;
  --green-white-color: #ffffff;
  --white-black-color: #000000;
  --white-green-color: #00FF7F;
  --green-green-color: #00FF7F;
  --White-grey-color: #222222;
  --grey-grey-color: #222222;


}
  /*===== Fuente y tipografia =====*/
  :root {
  --body-font: "Poppins", sans-serif;
  --big-font-size: 2rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: .938rem;
  --smaller-font-size: .75rem;
  /*===== Margenes =====*/
  --mb-2: 1rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;
  /*===== z index =====*/
  --z-back: -10;
  --z-fixed: 100;
}
@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 3.5rem;
    --h2-font-size: 2rem;
    --normal-font-size: 1rem;
    --smaller-font-size: .875rem;
  }
}


/*===== BASE =====*/
*, ::before, ::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--background-color);
  color: var(--text-color);
}

h1, h2, p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/*===== CLASS CSS ===== */

#timeline {
  padding-top: 25px; /* Add space above the section */
  padding-bottom: -20px;

}

#timeline .section-title {
  margin-bottom: -40px; /* Reduce the gap between title and buttons */
}

.section-title {
  position: relative;
  font-size: var(--h2-font-size);
  color: var(--green-black-color);
  margin-top: var(--mb-2);
  margin-bottom: var(--mb-4);
  text-align: center;
}
.section-title::after {
  position: absolute;
  content: "";
  width: 64px;
  height: 0.18rem;
  left: 0;
  right: 0;
  margin: auto;
  top: 2rem;
  background-color: var(--white-green-color);
}

.section {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

/*===== LAYOUT =====*/
.bd-grid {
  max-width: 1024px;
  display: grid;
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
}



/*===== NAV =====*/
.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: var(--font-semi);
}

.nav__toggle {
  color: var(--second-color);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001; /* Higher than the navigation menu */

}

/* When the 'active-icon' class is applied, change to the "X" icon */
.nav__toggle.active-icon i {
  content: '\f00d'; /* Unicode for the "X" icon if you're using FontAwesome */
  font-family: 'FontAwesome'; /* Make sure you are using FontAwesome or another icon set */
}
@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    top: -100%; /* Initially position it above the screen */
    left: 0; /* Ensure it's aligned to the left side of the screen */
    width: 100%; /* Full width of the screen */
    height: auto; /* You can control the height based on the content */
    display: flex; /* Use flexbox */
    flex-direction: column; /* Stack the links vertically */
    justify-content: center; /* Center links vertically */
    align-items: center; /* Center links horizontally */
    z-index: 1000;
    padding: 2rem;
    background-color: var(--nav-menu-background);
    transition: top 0.5s ease-in-out; /* Smooth slide-down transition */
  }

  /* When the menu is active, bring it down from the top */
  .nav__menu.show {
    top: var(--header-height); /* Bring the menu into view */
  }
  .theme-toggle {
    background-color: var(--black-white-color); /* Dark mode default */
    color: var(--green-black-color); /* Green icon color */
  }
  /* Apply hover effects only if the device has a fine pointer (usually non-touch devices) */
  @media (pointer: coarse) {
    .theme-toggle:active {
      background-color: var(--green-black-color); /* Green background when pressed */
      color: var(--background-color); /* Black icon color when pressed */
      border-color: var(--green-black-color); /* Green border when pressed */
    }
  }

}
.nav__item {
  margin-bottom: var(--mb-4);
}
/* Icon styles for the menu (burger icon) */
.nav__toggle i {
  font-size: 1.5rem;
  transition: all 0.3s ease;
}
.nav__link {
  position: relative;
  color: var(--nav-link-color);
}
.nav__link:hover::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--first-color);
}
.nav__logo {
  .logo-white {
    color: var(--text-color); /* White color */
  }
  
  .logo-green {
    color: var(--first-color); /* Use the first-color variable for green */
    
  }
  
}


/*Active menu*/
.active-link::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--first-color);
}

/*=== Show menu ===*/
.show {
  right: 0;
}

/*===== HOME =====*/
.home {
  position: relative;
  row-gap: 5rem;
}
.home__data {
  order: 1; /* Falling text comes first */
}

.home__img-container {
  order: 2; /* Home image comes second */
}

.home__social {
  order: 3; /* Social icons come third */
}

.home__button {
  order: 4; /* Say hello button comes last */
}

.home__title {
  font-size: var(--big-font-size);
  margin-bottom: 0;
}
.home__title-color {
  color: var(--first-color);
}
.home__social {
  display: flex;
  justify-content: left;
  flex-direction: row;
  margin-top: -22rem;
  margin-left: -1rem;
  
}
.home__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; /* Adjust size as needed */
  height: 40px; /* Adjust size as needed */
  background-color: var(--background-color); /* Dynamic background color based on theme */
  color: var(--green-black-color); /* Dynamic icon color based on theme */
  border: 2px solid var(--green-black-color); /* Dynamic border color */
  border-radius: 50%; /* Circular shape */
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
  margin: 15px; /* Space between icons */
  margin-top: 0;

}

.home__social-icon i {
  font-size: 1.5rem; /* Adjust icon size as needed */
}

.home__social-icon:hover {
  background-color: var(--first-color); /* Green background on hover */
  color: var(--background-color); /* Background color becomes icon color on hover */
  border-color: var(--first-color); /* Keep green border on hover */

}

.home__img-container {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-top: 14rem;
  margin-right: 1rem;

}
.home__img {
  display: flex;
  flex-direction: row;
  position: absolute;
  right: 0;
  bottom: 0;
  width: 260px;
  height: auto;
}
.home__blob {
  fill: var(--first-color);
  right: 0px; /* Move the blob to the right */
  top: -50px; /* Move the blob upwards */
  
}
.home__blob-img {
  width: 367px;
}

/*BUTTONS*/
.button {
  display: inline-block;
  background-color: var(--background-color); /* Dynamic background color */
  color: var(--green-black-color); /* Dynamic text color */
  padding: 10px 20px;
  font-weight: var(--font-semi); /* Semi-bold font */
  border-radius: 0.5rem;
  font-size: 16px;
  border: 2px solid var(--green-black-color); /* Green border */
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
  vertical-align: middle; /* Aligns with other inline elements */
  position: relative;
  margin-top: -40rem;
}


.button i {
  margin-right: 8px; /* Space between icon and text */
}

.button:hover {
  background-color: var(--first-color); /* Green background on hover */
  color: var(--background-color); /* Black text color on hover */
  border-color: var(--first-color); /* Green border */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Subtle shadow on hover */

}

/* ===== ABOUT =====*/

.about {
margin-top: -15rem;
}
.about__container {
  row-gap: 2rem;
  text-align: center;
}
.about__subtitle {
  margin-bottom: var(--mb-2);
}
.about__img {
  justify-self: center;
}
.about__img img {
  width: 200px;
  border-radius: 0.5rem;
}

/* ===== SKILLS =====*/
.skills__capsules {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Space between capsules */
    margin-top: 20px;
}

/* Individual skills capsule styling */
.skills__capsule {
  background-color: var(--green-white-color); /* Dynamic background color */
  color: var(--button-text-color); /* Dynamic text color */
  padding: 10px 20px; /* Padding inside the capsule */
  border-radius: 25px; /* Capsule shape */
  font-size: 14px; /* Font size */
  font-weight: bold; /* Font weight */
  text-align: center; /* Center text inside the capsule */
  border: 2px solid transparent; /* Transparent border to maintain size */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Shadow for a subtle 3D effect */
  transition: background-color 0.3s, color 0.3s; /* Smooth transition for hover effect */
}

/* Optionally, add hover effect for capsules */
.skills__capsule:hover {
  background-color: var(--background-color); /* Change background on hover */
  color: var(--green-black-color); /* Change text color on hover for contrast */
  border-color: var(--green-black-color); /* Change border color on hover */
}



/* ===== CONTACT =====*/

.contact__container {
  display: flex;
  justify-items: center;
  align-items: center;
  flex-wrap: nowrap; /* Centers the form in the grid */
  width: 100%;
  min-height: 500px; 
}

.contact__form-conatiner {
  display: flex; /* Enable flexbox for child elements */
  flex-direction: column; /* Stack items vertically */
  align-items: center; /* Center items horizontally */
  flex-basis: 40%; /* Allow the form container to take 40% of available width */
  max-width: 800%; /* Ensure it doesn't exceed full width */
  padding: 1rem; /* Add padding for spacing */
  box-sizing: border-box; /* Ensure padding is included in the width calculation */
}

.contact__details {
  flex-basis: 45%; /* Width of the contact details */
  margin-left: 15rem; /* Pushes the contact details to the right */
  text-align: left; /* Align the text inside the section to the left */
  display: flex;
  margin-bottom: 12rem;
  flex-direction: column;
  justify-content: center; /* Vertically center the content inside the details section */
}




@media (max-width: 1100px) {
  .contact__container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap; /* Allow wrapping in mobile view */
    justify-content: left; /* Center content horizontally */
    align-items: left; /* Align items vertically */
    width: 100%;
  }

  .input-container {
    position: relative;
    flex-basis: 100%; /* Full width for contact details in mobile view */
    margin: 0; /* Remove unnecessary left and right margins */
    text-align: center; /* Center content */
    width: 5rem;
    align-items: center; /* Align items */
  }

  .contact__details {
  position: relative;
  flex-basis: 55%; /* Width of the contact details */
  margin-left: 0; /* Puses the contact details to the right */
  align-items: center;
  text-align: center; /* Align the text inside the section to the left */
  display: flex;
  margin-bottom: 12rem;
  flex-direction: column;
  }
}

@media (max-width: 576px) {
  .contact__form {
    width: 330px;
    padding-top: 2rem;
  }
}

/* For Medium-Sized Mobile Screens (576px - 768px) */
@media screen and (max-width: 768px) and (min-width: 576px) {
  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    text-align: initial;
  }
  .skills__container {
    grid-template-columns: 0.7fr;
    justify-content: center;
    column-gap: 1rem;
  }

  

}

.contact-details-heading {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--green-black-color);
}

.contact__link {
  color: var(--white-black-color); /* Default color for the link */
  text-decoration: none; /* Remove underline */
  position: relative; /* Necessary for the ::after pseudo-element */

}

/* Hover effect for the contact link */
.contact__link:hover {
  color: var(--green-black-color); /* Change color to green on hover */
  text-decoration: none; /* Optionally, underline the link on hover */
}

.contact__link::after {
  content: "";
  position: absolute;
  width: 0; /* Start with no underline */
  height: 2px; /* Thickness of the underline */
  left: 50%; /* Center the underline */
  transform: translateX(-50%); /* Adjust to ensure the underline is centered */
  bottom: -2px; /* Position the underline just below the text */
  background-color: var(--white-green-color); /* Underline color */
  transition: width 0.3s ease; /* Smooth transition for underline */
}

.contact__link:hover::after {
  width: 100%; /* Full width underline on hover */
}

.contact__details p {
  margin: 5px 0; /* Adjust the spacing between the email and phone number */
  display: flex; /* Align icon and text inline */
  align-items: center; /* Vertically center the icon with the text */
}
.contact__details i {
  margin-right: 5px; /* Adds space between the icon and text */
  font-size: 1.1rem; /* Optional: Adjust the size of the icons */
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

/* Floating label styles */
.floating-label {
  position: absolute;
  left: 1rem; /* Align with padding of the input */
  top: 50%;
  transform: translateY(-50%);
  transition: 0.3s ease all;
  font-size: var(--normal-font-size);
  color: var(--second-color);
  pointer-events: none;
  background: none; /* Remove the background to avoid box effect */
  padding: 0; /* Remove padding to eliminate box effect */
}

.contact__input {
  width: 100%;
  padding: 1.2rem 1rem 0.5rem 1rem; /* Space for label */
  border-radius: 0.5rem;
  border: 1.5px solid var(--second-color);
  font-size: var(--normal-font-size);
  font-weight: normal;
  color: var(--white-black-color);
  outline: none;
  margin-bottom: 0.10rem;
  position: relative;
  background-color: var(--black-white-color);
  transition: 0.3s ease all; /* Smooth transition for padding and border */

}

/* Move label when input is focused */
.contact__input:focus ~ .floating-label,
.contact__input:not(:placeholder-shown) ~ .floating-label {
  top: -1px; /* Moves label to top */
  font-size: 0.85rem; /* Make the label smaller */
  background-color: var(--background-color); /* Background for label to make it readable */
  padding: 0 5px; /* Add padding around label */
  left: 1.2rem; /* Keeps label aligned */
  font-size: 0.8rem; /* Smaller font for the label */
  color: var(--green-black-color); /* Change color when floating */
  border-radius: 0.45rem; /* Optional: soften edges */
  box-shadow: none; /* Remove box shadow */
  border: none; /* Remove any borders */
}




/* Focused state for input */
.contact__input:focus {
  
  border-color: var(--green-black-color); /* Change border color on focus */
  outline: none;
}

/* Ensure padding is adjusted when label floats, even if not focused */
.contact__input:not(:placeholder-shown) {
  padding-top: 1.5rem; /* Make space for floating label */
}

/* Input container for positioning */
.input-container {
  position: relative;
  margin-bottom: 2rem;
  width: 30rem;
  max-width: 100%;

}
textarea.contact__input ~ label {
  left: 10px;
  top: 1.1rem;
  background-color: var(--background-color); /* To avoid text overlapping with border */
  padding: 0 5px;
  z-index: 1;
}

/* SEND BUTTON */

/* Styles when the button shows "Sent" with the tick icon */


.contact__form-container {
  text-align: left; /* Ensure the button stays aligned to the left */
  }
  .contact__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--green-black-color); /* Dynamic border color */
    background-color: var(--background-color); /* Dynamic background color */
    color: var(--green-black-color); /* Dynamic text color */
    padding: 10px 20px;
    border-radius: 0.5rem;
    font-size: var(--normal-font-size);
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    margin-left: auto;
    margin-top: -2rem; /* Decreased the gap between fields and button */
    margin-bottom: 5rem;

  }

  .contact__button:hover {
    background-color: var(--first-color); /* Change background on hover */
    color: var(--background-color); /* Change text color on hover */
    border-color: var(--first-color); /* Keep border color on hover */
  }

  .contact__button i {
    margin-left: 8px; /* Space between icon and text */
    font-size: 1.2rem; /* Adjust size of the icon if necessary */
  }

    
  /* For screens between 230px and 315px */
  @media screen and (max-width: 315px) and (min-width: 230px) {
    .contact__button {
      margin-left: 0;
    }
}



/* ===== FOOTER =====*/
.footer {
  background-color: var(--footer-background-color); /* Dynamic background color */
  color: var(--text-color); /* Dynamic text color */
  text-align: center;
  font-weight: var(--font-semi);
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1); /* Thin line at the top of the footer */

}

.footer__title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.footer__name-white {
  color:var(--white-black-colo); /* White for "Ravi" */
}

.footer__name-green {
  color: var(--first-color); /* Dynamic green for "Kiran" */
}

.footer__social {
  margin-bottom: 1rem;
}


.footer__icon {
  font-size: 1.5rem;
  color: var(--text-color); /* Dynamic icon color */
  margin: 0 var(--mb-2);
  transition: color 0.3s ease; /* Smooth transition on hover */
}


.footer__icon:hover {
  color: var(--first-color); /* Dynamic green on hover */
}


.footer__views {
  font-size: var(--smaller-font-size);
  color: var(--button-background);
  margin-top: 10px; /* Adjust the spacing */
  text-align: center;
}

.stoic-quote {
  font-size: 12px; /* Adjust the size of the quote text */
  font-style: italic; /* Italicize the quote */
  margin-top: 1rem; /* Space between the view counter and the quote */
  color: var(--text-color); /* Adjust the text color */
  text-align: center; /* Center align the quote */
  margin-bottom: 10px;
}



/* ===== Global MEDIA QUERIES=====*/

/* For Very Small Screens (230px - 315px) */
@media screen and (max-width: 315px) and (min-width: 230px) {
  .home {
  display: flex;
  flex-direction: column; /* Ensure the items are stacked vertically */
  align-items: center; /* Center elements horizontally */
}
  
  .home__img {
    position: relative;
    bottom: 30rem; /* Adjust vertical position */
    left: -25px;
    right: 0;
    margin: 0 auto; /* Center the image horizontally */
    max-width: 90%; /* Make the width responsive to the screen size */
    width: 20rem; /* Default width */
  }

  .home__social {
    position: relative;
    top: 1rem; /* Moves social icons up */
    left: 0;
    right: 0;  /* Moves social icons to the right */
    margin: 0 auto; /* Centers the social icons horizontally */
    display: flex; /* Use flexbox to handle horizontal alignment */
    justify-content: center; /* Center the social icons */
  }

  .button {
    position: relative;
    top: 18rem;
    left: 0.5rem;  /* Moves the button right */
    margin-top: 10rem;
    justify-content: center;
  }

}

/* For Small Mobile Screens (315px - 575px) */
@media screen and (max-width: 575px) and (min-width: 315px) {

  .home__img {
    justify-content: center;
    position: relative;
    bottom: 22rem;
    left: 10rem;
    right: 10rem;
    display: flex;
    flex-direction: row;
    left: 0;
    max-width: 90%; /* Responsive width */
    width: 23rem;
    right: 0;
    bottom: 0 ;
    margin: 0 auto; /* Center the image horizontally */
  }

  .home__social {
    position: relative;
    top: 1rem; /* Moves social icons up */
    left: 0;
    right: 0;  /* Moves social icons to the right */
    margin: 0 auto; /* Centers the social icons horizontally */
    display: flex; /* Use flexbox to handle horizontal alignment */
    justify-content: center; /* Center the social icons */    
  }

  .button {
    position: relative;
    top: 11rem;
    margin-top: 2rem;
    display: inline-block;
    left: 7rem;
  }

  .about {
   margin-top: -20rem;
   margin-bottom: 8rem;
  }

  .skills {
   margin-bottom: 8rem;
  }

  .contact {
    margin-bottom: 5rem;
  }
  .theme-toggle {
    position: fixed; /* Ensure it's positioned relative to the viewport */
    top: 0;         /* Align to the top */
    right: 0;       /* Align to the right */
    margin: -10px;   /* Optional: Add some space from the edges */
}


}

@media screen and (max-width: 768px) and (min-width: 574px) {

  .home__social {
    flex-direction: row; /* Make icons horizontal */
    justify-content: center; /* Center the icons */
  }

  .home__social-icon {
    margin: 6px; /* Add some space between icons */
    align-items: center; /* Center vertically */

  }

  .home {
    padding-bottom: 50px; /* Increase padding to prevent the image from overlapping */
  }
}

/* For Medium-Sized Mobile Screens (576px - 768px) */

@media screen and (max-width: 768px) and (min-width: 576px) {
  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    text-align: initial;
  }
  .skills__container {
    grid-template-columns: 0.7fr;
    justify-content: center;
    column-gap: 1rem;
  }

}

/* For Tablet and Up (Screens Larger than 768px) */

@media screen and (min-width: 768px) {
  body {
    margin: 0;
  }
  .section {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }
  .section-title {
    margin-bottom: var(--mb-6);
  }

  .home .section-title {
    margin-bottom: -2rem;
  }

  .section-title::after {
    width: 80px;
    top: 3rem;
  }
  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  .nav__list {
    display: flex;
    padding-top: 0;
  }
  .nav__item {
    margin-left: var(--mb-6);
    margin-bottom: 0;
  }
  .nav__toggle {
    display: none;
  }
  .nav__link {
    color: var(--second-color);
  }
  .home {
    padding: 8rem 0 2rem;
  }
  .home__img {
    width: 300px;
    position: absolute;
    bottom: 8rem;
    right: 1rem;
  }

  .about__container {
    padding-top: 2rem;
  }
  .about__img img {
    width: 300px;
  }
  .skills__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    align-items: center;
    text-align: initial;
  }
 
}

/* For Desktops and Laptops Screens larger than 992px */

@media screen and (min-width: 992px) {
  .bd-grid {
    margin-left: auto;
    margin-right: auto;
  }
  .home {
    padding: 8rem 0 2rem;
  }

  .home__img {
    display: flex;
    flex-direction: column;
    width: 450px;
    bottom: 1rem;
    right: -2rem;
  }
 
  .section-title {
    margin-top: 50px; /* Adjust to create space between the title and the image */
  }

  .about .section-title {
    margin-top: 10px; /* Extra margin specifically for the Work section title */
  }
  .skills .section-title {
    margin-top: 20px; /* Extra margin specifically for the Work section title */
    margin-bottom: 6rem;
  }


  
}

/* Default Dark Mode Styles */
body {
  background-color: var(--background-color);
  color: var(--text-color);
}

/* Theme Toggle Button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px; /* Adjust size as needed */
  height: 35px; /* Adjust size as needed */
  background-color: var(--black-white-color); /* Dark mode default */
  color: var(--green-black-color); /* Green icon color */
  border: 2px solid var(--green-black-color); /* Green border */
  border-radius: 50%; /* Circular shape */
  cursor: pointer;
  position: relative; /* For easier positioning of icons */
  overflow: hidden; /* Ensure icons don't overflow the button */
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

/* Icon rotation animation */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.theme-toggle i {
  font-size: 1.5rem; /* Adjust icon size as needed */
  position: absolute; /* Stack icons on top of each other */
  transition: opacity 0.3s ease, transform 1s ease; /* Smooth transition */
}

.theme-toggle:hover {
  background-color: var(--green-black-color); /* Green background on hover */
  color: var(--background-color); /* Black icon color on hover */
  border-color: var(--green-black-color); /* Green border on hover */
}

.theme-toggle .bx-sun {
  opacity: 1; /* Show sun icon in light mode */
  animation: rotate 15s linear infinite; /* Continuous rotation */

}

.theme-toggle.dark-mode .bx-sun {
  display: block; /* Show sun icon in dark mode */
  animation: rotate s forwards; /* Full rotation and fade in */
  opacity: 51; /* Show sun icon in dark mode */

}

.theme-toggle .bx-moon {
  display: block; /* Show moon icon by default */
}

.theme-toggle.dark-mode .bx-moon {
  animation: rotate-sun-moon 0.5s forwards reverse; /* Rotate moon out */
  opacity: 0; /* Hide moon icon in dark mode */
  transform: rotate(180deg); /* Full rotation */

}

@media (hover: none) and (pointer: coarse) and (max-width: 768px) {
  .theme-toggle:hover {
    background-color: var(--black-white-color); /* Hover color for desktop */
    color: var(--green-black-color); /* Text color on hover for desktop */
    border-color: var(--green-black-color);
  }
}

/* Light Mode Styles */
body.light-mode {
  background-color: var(--background-color);
  color: var(--text-color);
}

/* New Effect*/
.falling-text-container {
  position: relative;
  overflow: hidden;
  height: 2.1em; /* Adjust based on your text size to fit within the container */
  display: flex;
  align-items: center; /* Center text vertically */
}

.falling-text {
  position: absolute;
  width: 100%;
  font-size: 1.1em; /* Adjust to fit your design. Larger size may need a larger container height */
  font-weight: bold; /* Optional: make text bold if desired */
  white-space: nowrap; /* Prevent text wrapping */
  animation: none; /* Match duration with JavaScript */
  opacity: 0; /* Initially hidden */

  animation-fill-mode: none; /* No final state retention */

}

@keyframes fall {
  0% {
    transform: translateY(-100%); /* Start above the container */
    opacity: 0; /* Invisible */
  }
25% {
    transform: translateY(0); /* Reach the middle */
    opacity: 1; /* Fully visible */
  }
75% {
    transform: translateY(0); /* Stay in the middle */
    opacity: 1; /* Fully visible */
  }
100% {
    transform: translateY(100%); /* Move below the container */
    opacity: 0; /* Fade out */
  }
 
}
.fall-in {
  animation: fall 2.5s ease-in-out; /* Text falls in and out */
}

/* Media Queries for falling text */
@media screen and (min-width: 576px) {

  .falling-text-container {
    height: 2.1em; /* Increase the container height for larger screens */
  }

  .falling-text {
    font-size: 1.1em; /* Increase the font size for larger screens */
  }

}

@media screen and (min-width: 769px) {

  .falling-text-container {
    height: 2.1em; /* Further increase the container height */
  }

  .falling-text {
    font-size: 1.1em; /* Further increase the font size */
  }

}

@media screen and (min-width: 941px) {

  .falling-text-container {
    height: 2.1em; /* Further increase the container height */
  }

  .falling-text {
    font-size: 1.1em; /* Further increase the font size */
  }

}

/* Timeline Toggle Buttons */

  .timeline-toggle-buttons {
    justify-content: center;
    margin-top: 20px; /* Adjust this value to move the buttons down */
    margin-bottom: 20px;
    display: flex;
    gap: 20px; /* Add space between the buttons */

  }

  .toggle-btn {
    background: none; /* No background */
    border: none; /* No border */
    color: var(--white-black-color); /* Text color to match section titles */
    font-size: 1.2rem; /* Font size similar to section titles */
    font-weight: bold; /* Bold text */
    cursor: pointer;
    margin: 0 20px; /* Horizontal spacing between buttons */
    padding: 10px 0; /* No padding */
    position: relative; /* Necessary for ::after positioning */

  }

.toggle-btn::after {
  content: "";
  position: absolute;
  width: 0; /* Start with no underline */
  height: 2px; /* Thickness of the underline */
  left: 50%; /* Center the underline */
  transform: translateX(-50%); /* Adjust to ensure the underline is centered */
  bottom: 3px; /* Position the underline just below the text */
  background-color: var(--white-black-color); /* Underline color */
  transition: width 0.3s ease; /* Smooth transition for underline */
}

.toggle-btn:hover::after {
  width: 100%; /* Full width underline on hover */
}

.toggle-btn.active::after {
  width: 100%; /* Full width underline */
}

.toggle-btn.active {
  color: var(--first-color); /* Change text color for active button */
}



/* ===== Timeline Section (Experience, Education) ===== */

.highlight {
  color: var(--green-green-color); /* Choose your desired color, e.g., Tomato color */
  font-weight: bold; /* Optional: Make it bold */
  font-size: 15px;
}
* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	font-family: Poppins;
}

.main {
	width: 100%;
	height: auto;
	display: flex;
	place-items: center;
	background-color: var(--black-white-color);
	padding: 80px 0;
  margin-top: 5px; /* Add margin-top to move it further down */
  margin-bottom: -10px;
  justify-content: center; /* Center the buttons inside the 'main' */


}
.main .head {
	font-size: 29px;
	color: var(--button-background);
	position: relative;
	margin-bottom: 10px;
	font-weight: 50;
  place-items: center;
  text-align: center;

}
.main .head::after {
	content: " ";
	position: relative;
	width: 50%;
	height: 3px;
	left: 50%;
	bottom: -5px;
	transform: translateX(-50%);
	background-image: var(--button-background);
}

/* Container Css Start  */

.container {
  display: flex;
  flex-direction: column;
	width: 80%;
	height: auto;
	margin: -30px 0;
	position: relative;
}

ul {
  flex-grow: 1;
     position: relative;
    padding: 0;
    list-style: none; /* Let the ul expand and take up all available space */
}
.container ul {
	list-style: none;
}
.container ul::after {
	content: " ";
	position: absolute;
	width: 2px;
	height: 100%;
	left: 50%;
	top: 0;
	transform: translateX(-50%);
	background-image: linear-gradient(to bottom, var(--first-color), var(--first-color));
}
.container ul li {
	width: 50%;
	height: auto;
	padding: 15px 20px;
	background-color: var(--black-white-color);;
	border-radius: 10px;
	box-shadow: 1px 1px 15px rgba(0, 0, 0, 0.218);
	position: relative;
	margin-bottom: 30px;
	z-index: 99;
  margin-top: 0px; /* Add margin-top to give more spacing between items */

}
.container ul li:nth-child(4) {
	margin-bottom: 0;
}
/* for circle border colour*/
.container ul li .circle {
	position: absolute;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background-color: var(--first-color);
	top: 0;
	display: grid;
	place-items: center;
}

/* full circle colour*/
.circle::after{
	content: ' ';
	width: 12px;
	height: 12px;
	background-color: var(--first-color);
	border-radius: 50%;
}
ul li:nth-child(odd) .circle {
	transform: translate(50%, -50%);
	right: -30px;
}
ul li:nth-child(even) .circle {
	transform: translate(-50%, -50%);
	left: -30px;
}

/* Date adjustment colour*/

ul li .date {
	position: absolute;
	width: 150px;
	height: 33px;
	background-image: linear-gradient(to right, var(--first-color), var(--first-color));
	border-radius: 15px;
	top: -45px;
	display: grid;
	place-items: center;
	color: #000000;
	font-size: 13px;
	box-shadow: 1px 2px 12px rgba(0, 0, 0, 0.318);
}
.container ul li:nth-child(odd) {
	float: left;
	clear: right;
	text-align: right;
	transform: translateX(-30px);
}
ul li:nth-child(odd) .date {
	right: 20px;
}
.container ul li:nth-child(even) {
	float: right;
	clear: left;
	transform: translateX(30px);
}
ul li .heading {
	font-size: 18px;
	color: var(--white-grey-color);
}



.timeline-cap {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;  /* Left side of the triangle */
  border-right: 12px solid transparent; /* Right side of the triangle */
  border-bottom: 14px solid var(--first-color); /* Bottom side of the triangle, pointing up */
  margin: 0px auto 0 auto; /* Increase the top margin to move the triangle down */
}

.timeline-cap-education {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;  /* Left side of the triangle */
  border-right: 12px solid transparent; /* Right side of the triangle */
  border-bottom: 14px solid var(--first-color); /* Bottom side of the triangle, pointing up */
  margin: 20px auto 0 auto; /* Increase the top margin to move the triangle down */
}

/* General styles for the list items */
ul li .left, ul li .right {
  opacity: 0; /* Hidden initially */
  transition: transform 0.5s ease, opacity 0.5s ease; /* Smooth transition */
}

/* Left animation - Off-screen initially */
ul li.left *:not(.circle) {
transform: translateX(-100px); /* Off-screen to the left */
opacity: 0; /* Initially invisible */
transition: transform 0.6s ease-out, opacity 0.6s ease-out; /* Smooth transition */
}

/* Right animation - Off-screen initially */
ul li.right *:not(.circle) {
transform: translateX(100px); /* Off-screen to the right */
opacity: 0; /* Initially invisible */
transition: transform 0.6s ease-out, opacity 0.6s ease-out; /* Smooth transition */
}

/* Reveal items - Once revealed, they remain visible */
ul li.left *:not(.circle),
ul li.right *:not(.circle) {
transform: translate(0); /* Move to original position */
opacity: 1; /* Fully visible after animation */

}

/* Up animation - Off-screen initially */



/* Ensure no elements reset to opacity: 0 when sections toggle */
.timeline-content-section ul li *:not(.circle) {
opacity: 1 !important; /* Force visibility after animation */
}



/* Responsibilities adjustment colour*/
ul li p {
	font-size: 13px;
	color: var(--grey-grey-color);
	line-height: 18px;
	margin: 6px 0 4px 0;
}



@media only screen and (min-width:798px) and (max-width: 1100px) {
	.container{
		width: 80%;
    
	}
}

@media only screen and (max-width: 798px) {
	.container{
		width: 70%;
		transform: translateX(20px);
    padding-bottom: 30px; /* Ensure space at the bottom */

	}

  .timeline-cap {
    position: absolute;
    width: 0px;
    height: 0px;
    background-color: var(--first-color); /* Cap color */
    bottom: 100px; /* Align it vertically */
    left: -40px; /* Align it horizontally */
    transform: translate(-50%, 50%); /* Align it similarly to the .circle */
    z-index: 2;
}

	.container ul::after{
    content: ''; /* Ensures the pseudo-element appears */
    position: absolute;
    top: 0;
    z-index: 1;
		left: -40px;
    height: 94%; /* Adjust the height of the line (percentage of its container) */

	}



  .container ul li:nth-child(5) {
    margin-top: 90px; /* Add more space below the Lead Recruiter section */
  }
	.container ul li {
		width: 100%;
		float: none;
		clear: none;
		margin-bottom: 100px;
	}
	.container ul li .circle{
		left: -40px;
		transform: translate(-50%, -50%);
	}
	.container ul li .date{
		left: 20px;
	}
	.container ul li:nth-child(odd) {
		transform: translateX(0px);
		text-align: left;
	}
	.container ul li:nth-child(even) {
		transform: translateX(0px);
	}
}

@media only screen and (min-width: 230px) and (max-width: 500px) {

  .timeline-cap {
    position: absolute;
    width: 0px;
    height: 0px;
    background-color: var(--first-color); /* Cap color */
    bottom: 100px; /* Align it vertically */
    left: -40px; /* Align it horizontally */
    z-index: 2;
}
.timeline-cap-education{
  position: absolute;
  width: 0px;
  height: 0px;
  bottom: 10vh; /* Align it vertically */
  left: -40px; /* Align it horizontally */
  transform: translate(-50%, 50%); /* Align it similarly to the .circle */
  z-index: 2;
}
.container ul::after{
  content: ''; /* Ensures the pseudo-element appears */
  position: absolute;
  top: 0;
  z-index: 1;
  left: -40px;
  height: 95.5%; /* Adjust the height of the line (percentage of its container) */  
}

}
/* Initially hide the circle only in the experience section */
#experience-section .circle {
  opacity: 0;
  transition: opacity 0.5s ease-in; /* Smooth transition when it becomes visible */
}




/* EDUCATION SECTION STYLES CSS */
#education-section .timeline-cap-education {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 14px solid var(--green-green-color);
  margin: 0px auto 0 auto;
}
#education-section ul li .date {
  position: absolute;
  width: 130px;
  height: 33px;
  background-image: linear-gradient(to right, var(--green-green-color), var(--green-green-color));
  border-radius: 15px;
  top: -45px;
  display: grid;
  place-items: center;
  color: black;
  font-size: 13px;
  box-shadow: 1px 2px 12px rgba(0, 0, 0, 0.318);
}
#education-section .container ul::after{
  height: 101%; /* Adjust the height of the line (percentage of its container) */  
}



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

    /* Adjustments for the triangle (timeline cap) in the education section */
    #education-section .timeline-cap-education {
      width: 0;
      height: 0;
      border-left: 12px solid transparent; /* Adjusted size for smaller screens */
      border-right: 12px solid transparent; /* Adjusted size for smaller screens */
      border-bottom: 12px solid var(--green-black-color); /* Adjusted height for smaller screens */
      bottom: -90px; /* Adjust the position of the triangle if needed */
      margin-left: -52.6px; /* Optional: Add some spacing from the left edge */
      }
  
    /* Adjustments for the date in the education section */
    #education-section ul li .date {
      position: absolute;
      width: 120px; /* Reduce width for smaller screens */
      height: 28px; /* Reduce height for smaller screens */
      background-image: linear-gradient(to right, var(--secondary-color), var(--secondary-color));
      border-radius: 12px; /* Adjust the border-radius */
      top: -35px; /* Adjust vertical position */
      display: grid;
      place-items: center;
      color: #000000;
      font-size: 11px; /* Reduce font size for smaller screens */
      box-shadow: 1px 2px 12px rgba(0, 0, 0, 0.318);
    }
  
    #education-section ul li {
      margin-bottom: 40px; /* Adjust this value to control the gap */
      padding: 10px 15px; /* You can adjust padding as needed */
    }
    
    #education-section .container ul::after{
      content: ''; /* Ensures the pseudo-element appears */
      position: absolute;
      top: 0;
      z-index: 1;
      left: -40px;
      height: 101%; /* Adjust the height of the line (percentage of its container) */  
    }
  
}

@media only screen and (min-width: 230px) and (max-width: 500px) {
  #education-section .timeline-cap-education {
    width: 0;
    height: 0;
    border-left: 13px solid transparent; /* Adjusted size for smaller screens */
    border-right: 13px solid transparent; /* Adjusted size for smaller screens */
    border-bottom: 12px solid var(--green-green-color); /* Adjusted height for smaller screens */
    bottom: 17px; /* Adjust the position of the triangle if needed */
    margin-left: 0px; /* Optional: Add some spacing from the left edge */
    }
}

.request-cv-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.request-cv-btn {
  background-color: var(--background-color); /* Dynamic background color */
  color: var(--green-black-color); /* Dynamic text color */
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
  border: none;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: var(--font-semi); /* Semi-bold font */
  cursor: pointer;
  border-radius: 0.5rem;
  border: 2px solid var(--green-black-color); /* Green border */
  transition: background-color 0.3s ease;
}

.request-cv-btn:hover {
  background-color: var(--first-color); /* Green background on hover */
  color: var(--background-color); /* Black text color on hover */
  border-color: var(--first-color); /* Green border */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Subtle shadow on hover */
}

.request-cv-btn i {
  margin-right: 3px; /* Space between icon and text */
  position: relative;
  top: 1.5px; /* Move the icon down by 3px */
}

input:-webkit-autofill,
textarea:-webkit-autofill {
    background-color: white !important; /* Use variable for background */
    color: white !important;                    /* Use variable for text color */
    -webkit-box-shadow: 0 0 0px 1000px var(--green-white-color) inset; /* Use variable for shadow background */
    transition: var(--button-background) 5000s ease-in-out 0s;      /* Prevent background revert */
}

input:-webkit-autofill {
    border: 1px solid black; /* Use variable for border */
}


/* Style for the button when it's in the "Sent" state */


.contact__button.submitted {
  background-color: var(--background-color); /* Keep same background color */
  color: var(--green-black-color); /* Same text color */
  border-color: var(--green-black-color); /* Keep border color */
}

.contact__button.submitted i {
  font-size: 1.4rem; /* Keep icon size consistent */
  margin-left: 6px; /* Adjust space between icon and text in the "Sent" state */
  margin-bottom: 3px;
  animation: draw-check 0.5s ease-in-out forwards;
  opacity: 1;  /* Show the icon */
  transform: scale(1);  /* Make sure the icon appears fully */

}


/* Tick icon animation */
@keyframes draw-check {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/*=============== CARD SECTION: Featured Landscapes ===============*/
.featured-landscapes .featured-container {
  display: grid;
  place-items: center;
  margin-inline: 1.5rem;
  padding-block: 5rem;
}

.featured-landscapes .featured-card__container {
  display: grid;
  row-gap: 3.5rem;
}

.featured-landscapes .featured-card__article {
  position: relative;
  overflow: hidden;
}

.featured-landscapes .featured-card__img {
  width: 328px;
  border-radius: 1.5rem;
}

.featured-landscapes .featured-card__data {
  width: 280px;
  background-color: transparent;
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  position: absolute;
  bottom: -8rem;
  left: 0;
  right: 0;
  margin-inline: auto;
  opacity: 0;
  transition: opacity 1s 1s;
}

.featured-landscapes .featured-card__description {
  display: block;
  font-size: var(--small-font-size);
  margin-bottom: .25rem;
  color: #e6e6e6;
}

.featured-landscapes .featured-card__title {
  font-size: var(--h2-font-size);
  font-weight: 500;
  color: white;
  margin-bottom: .75rem;
}

.featured-landscapes .featured-card__button {
  position: relative; /* Needed for the ::after pseudo-element */
  text-decoration: none; /* Remove the default underline */
  font-size: var(--small-font-size);
  font-weight: 500;
  color: var(--green-green-color);
  cursor: pointer;
}

.featured-landscapes .featured-card__button::after {
  content: "";
  position: absolute;
  width: 0; /* Initially no underline */
  height: 2px; /* Thickness of the underline */
  left: 50%; /* Center the underline */
  transform: translateX(-50%); /* Ensure it's centered */
  bottom: -3px; /* Position just below the text */
  background-color: var(--green-green-color); /* Same color as the button text */
  transition: width 0.3s ease; /* Smooth transition effect */
}


.featured-landscapes .featured-card__button:hover::after {
  width: 100%; /* Expand the underline to full width on hover */
}

/* Optional: Add an active state for full underline when button is 'active' */
.featured-landscapes .featured-card__button.active::after {
  width: 100%; /* Full underline */
}

/* Naming animations in hover */
.featured-landscapes .featured-card__article:hover .featured-card__data {
  animation: show-data 1s forwards;
  opacity: 1;
  transition: opacity .3s;
}

.featured-landscapes .featured-card__article:hover {
  animation: remove-overflow 2s forwards;
}

.featured-landscapes .featured-card__article:not(:hover) {
  animation: show-overflow 2s forwards;
}

.featured-landscapes .featured-card__article:not(:hover) .featured-card__data {
  animation: remove-data 1s forwards;
}

/* Card animation */
@keyframes show-data {
  50% {
    transform: translateY(-10rem);
  }
  100% {
    transform: translateY(-7rem);
  }
}

@keyframes remove-overflow {
  to {
    overflow: initial;
  }
}

@keyframes remove-data {
  0% {
    transform: translateY(-7rem);
  }
  50% {
    transform: translateY(-10rem);
  }
  100% {
    transform: translateY(.5rem);
  }
}

@keyframes show-overflow {
  0% {
    overflow: initial;
    pointer-events: none;
  }
  50% {
    overflow: hidden;
  }
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .featured-landscapes .featured-container {
    margin-inline: 1rem;
  }

  .featured-landscapes .featured-card__data {
    width: 250px;
    padding: 1rem;
  }
}

/* For medium devices */
@media screen and (min-width: 768px) {
  .featured-landscapes .featured-card__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.5rem;
  }
}

/* For large devices */
@media screen and (min-width: 1120px) {
  .featured-landscapes .featured-container {
    height: 80vh;
    padding-block: 1rem 1rem; /* Adjusted top padding for large screens */

  }

  .featured-landscapes .featured-card__container {
    grid-template-columns: repeat(3, 1fr);
  }
  .featured-landscapes .featured-card__img {
    width: 348px;
  }
  .featured-landscapes .featured-card__data {
    width: 316px;
    padding-inline: 2.5rem;
  }
}

#projects {
  padding-top: 3rem; /* Adjust this value based on the desired spacing */
  /* Alternatively, you can use margin-top */ }


  /* Modal Styles */
  .modal {
    
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000; /* Ensure it appears above other elements */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark background */
    justify-content: center;
    align-items: center;
  }
  
  /* Modal Content */
  .modal-content {
    background-color: var(--black-white-color);
    margin: auto;
    padding: 20px;
    border-radius: 1rem;
    width: 90%;
    max-width: 900px; /* Increase max-width to accommodate image and form side by side */
    position: relative;
    /* Border with gradient */
    border: 2px solid var(--green-white-color); /* Set the thickness of the border */
    
  }
  
  /* Close Button */
  .close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .close:hover {
    color: var(--green-black-color);
  }
  
  /* Adjustments for the login form inside the modal */
  .login__content {
    display: flex;
    flex-direction: row; /* Change to row layout to display image beside form */
    align-items: center;
    text-align: left; /* Align text to the left */
    padding: 2rem;
  }
  
  /* Image styling */
.login__img {
  flex: 1;
  margin-right: 1.5rem;
}

.login__img img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
}

/* Form styling */
.login__forms {
  flex: 1;
  position: relative;
  height: auto;
}

.login__title {
  font-size: 24px;
  margin-bottom: 1.5rem;
  text-align: center;
  width: 100%;
  color: var(--green-black-color);
}

.login__box {
  display: flex;
  align-items: center;
  padding: 0.6rem 1rem;
  margin-top: 1rem;
  border-radius: 0.5rem;
  border: 1.5px solid var(--second-color);
  width: 100%;
  max-width: 30rem;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  height: auto;
  background-color: var(--black-white-color);
  transition: 0.3s ease all;
}

.login__box:focus-within {
  border-color: var(--green-green-color);
}

/* Floating label styling */
.form__label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  transition: 0.3s ease all;
  font-size: var(--normal-font-size);
  color: var(--second-color);
  pointer-events: none;
  background: none;
  padding: 0;
}

.login__input:focus ~ .form__label,
.login__input:not(:placeholder-shown) ~ .form__label {
  top: -1px;
  font-size: 0.85rem;
  background-color: var(--background-color);
  padding: 0 5px;
  left: 1.2rem;
  font-size: 0.8rem;
  color: var(--green-black-color);
  border-radius: 0.45rem;
}
#purpose-label {
  top: -10px; /* Adjust as needed */
  left: 10px; /* Adjust as needed */
  background: white; /* Optional: to cover the textarea background */
  padding: 0 5px; /* Optional: to add some padding around the label */
  font-size: 12px; /* Adjust as needed */
}



.thank-you-message {
  margin-bottom: 1.5rem; /* Optional: Adds spacing below the message */
  font-size: 1rem; /* Optional: Adjust font size */
  line-height: 1.5; /* Optional: Improves readability */
  text-align: center;
}


.login__input {
  width: 100%;
  padding: 0.2rem 0rem;
  font-size: var(--normal-font-size);
  font-weight: normal;
  color: var(--white-black-color);
  outline: none;
  margin-bottom: 0.10rem;
  position: relative;
  background-color: var(--black-white-color);
  transition: 0.3s ease all;
  border: none;
}

.login__input:focus {
  border-color: var(--green-black-color);
  outline: none;
}

/* Send OTP button styling */
.login__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--green-black-color);
  background-color: var(--background-color);
  color: var(--green-black-color);
  padding: 10px 20px;
  border-radius: 0.5rem;
  font-size: var(--normal-font-size);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
  margin-top: 1rem;
}

.login__button:hover {
  background-color: var(--first-color);
  color: var(--background-color);
  border-color: var(--first-color);
}

.login__button i {
    margin-left: 4px; /* Adds space between text and icon */
    font-size: 1.3rem; /* Adjust the icon size */
}
/* Heading styling for 'Enter OTP' */
.form__heading {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  color: var(--second-color);
  margin-bottom: 1rem; /* Add space between heading and OTP fields */
  color: var(--green-black-color);

}

/* Flex container for OTP input fields */
#otpFields {
  display: flex;
  justify-content: center; /* Center horizontally */
  width: 100%; /* Ensure the container is full width */
}

.otp__input {
  width: 40px;
  height: 40px;
  text-align: center;
  font-size: 1.5rem;
  margin: 0 5px;
  border-radius: 0.5rem;
  border: 1.5px solid var(--second-color);
  background-color: var(--black-white-color);
  color: var(--white-black-color);
  outline: none;
  transition: 0.3s ease all;
  margin-bottom: 1rem; /* Add more space below the description */

}

#enterOtpForm {
  width: 100%;
  text-align: center; /* Ensures contents are centered inside form */
}
#verifyOtpButton {
  margin-top: 1rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.otp__input:focus {
  border-color: var(--green-black-color);
}

/* When the input contains a valid number */
.otp__input:valid {
  border-color: var(--green-black-color); /* Keep green border when a number is entered */
}
/* Remove border around the OTP input group */
#enterOtpForm .login__box {
  border: none; /* Remove the border */
  padding: 0; /* Optional: Adjust padding if needed */
  background: none; /* Optional: Remove background if needed */
}

/* Styling for OTP description message */
.otp-description {
  text-align: center; /* Center the text */
  color: var(--second-color); /* Adjust color as per your theme */
  font-size: 1rem; /* Adjust the size */
  margin-bottom: 2rem; /* Add more space below the description */
}

/* Disable scrolling when modal is open */
body.modal-open {
  overflow: hidden;
}


/* Media Query for Mobile Devices */
@media screen and (max-width: 768px) {
  .modal-content {
      width: 95%;
      max-width: 600px; /* Adjust the modal width for tablets and smaller screens */
      padding: 1rem;
  }

  .login__content {
      flex-direction: column; /* Stack image and form vertically */
      text-align: center; /* Center text for mobile */
      padding: 1rem;
  }

  .login__img {
      width: 100%;
      margin-bottom: 1rem;
  }

  .login__img img {
      width: 100%;
      max-width: 200px; /* Adjust image size for smaller screens */
      margin: auto;
  }

  .login__title {
      font-size: 22px;
      margin-bottom: 1rem;
  }

  .login__box {
      flex-direction: column;
      align-items: flex-start;
  }

  .login__input {
      width: 100%; /* Full width on mobile */
  }

  .login__button {
      font-size: 16px;
      width: 100%; /* Full width button */
  }
}

/* Media Query for Tablets and Medium Screens */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .modal-content {
      width: 90%;
      max-width: 700px;
      padding: 1.5rem;
  }

  .login__content {
      flex-direction: row; /* Image and form side by side */
      text-align: left;
  }

  .login__img {
      width: 40%; /* Adjust the image size */
      margin-right: 1.5rem;
  }

  .login__img img {
      width: 100%;
      height: auto;
      border-radius: 1rem;
  }

  .login__title {
      font-size: 24px;
  }

  .login__button {
      font-size: 18px;
  }
}

/* Media Query for Large Desktops */
@media screen and (min-width: 1025px) {
  .modal-content {
      max-width: 800px; /* Full width on large screens */
      padding: 2rem;
  }

  .login__img {
      width: 40%; /* Ensure the image takes 40% of the space */
  }

  .login__forms {
      width: 60%; /* Form takes the remaining 60% */
  }
}
