/* From the :root element you can easily change the colors of the design, its size and so on. */
:root {
  /* You can change the font family in the whole design here. (You need to add the font family to the codes.) */
  --font_family: "Inter", sans-serif;

  /* You can change the font size here, is proportional to all texts. */
  --font_size: 16px;

  /* You can change the background color by typing the color code. (If you do not enter a background-image image, the background-color will be active.) */
  --background_color: #000;
  --background_image: url("../images/ilia-bronskiy-IxqUT4zy89U-unsplash.jpg");
  /* Set the background size */
  --background_size: cover; /* This will cover the entire container */
  /* Other options: contain (fits inside the container), auto (original size), etc. */

  /* You can change the frame thickness and color of the picture by typing the number of pixels and the color code. */
  --image_border_color: orange;
  --image_border_px: 1px;

  /* You can change the width and size of the picture by typing the number of pixels. */
  --image_width: 260px;
  --image_height: 200px;

  /* You can change the colors of the title and description section by typing the color codes. */
  --title_color: #fff;
  --description_color: orangered;

  /* You can change the colors of social media icons by changing the color code. */
  --svg_color: #fff;

  /* You can change the background, text color and active color of the menu by changing the color codes. */
  --menu_background_color: #0e0e0e;
  --menu_text_color: #fff;
  --menu_active_text_color: #f1c40f;

  /* You can change the button's background, text color and active color by changing the color codes. */
  --button_background_color: #0e0e0e;
  --button_text_color: #fff;
  --button_text_hover_color: #f1c40f;

  /* You can change the background, text color and active color of the text field by changing the color codes. */
  --textarea_background_color: #0e0e0e;
  --textarea_text_color: #fff;
  --textarea_link_text_color: #f1c40f;

  /* You can change the background, text color and active color of the footer area by changing the color codes. */
  --footer_background_color: #0e0e0e;
  --footer_text_color: #fff;
  --footer_link_text_color: #f1c40f;
}

/* Basic Codes */

body {
  font: var(--font_size) var(--font_family);
  font-weight: 400;
  line-height: 1.5;
  background: var(--background_color) var(--background_image) no-repeat center;
  /* Set the background image */
  background-image: var(--background_image);

  /* Set the background size */
  background-size: var(--background_size);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  border-radius: var(--image_border_radius);
}
#header_img_div {
  position: relative;
}

.flex_column_center {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.flex_row_center {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.flex_no_wrap_row_center {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
}

/* Logo, Title and Description Codes */

.header_img {
  padding-top: 1em;
}

.header_img img {
  height: var(--image_height);
  width: var(--image_width);
  border: var(--image_border_px) solid var(--image_border_color);
  border-radius: 50%;
  margin-bottom: 0.5em;
}

.header_text h1 {
  color: var(--title_color);
  font-size: 2em;
}

.header_text h2 {
  color: var(--description_color);
  font-size: 1.5em;
}

/* Social Media Icons Codes */

.header_svg_list {
  padding-top: 1em;
}

.header_svg_item {
  width: 2.1em;
  height: 2.1em;
  cursor: pointer;
}

.header_svg_item:hover {
  transform: scale(1.1);
  transition: 0.1s ease;
}

.header_svg_item + .header_svg_item {
  margin-left: 1em;
}

.header_svg_item svg {
  fill: var(--svg_color);
}

/* Menu Codes */

#header_nav_menu_item_1 {
  color: var(--menu_active_text_color);
}

#header_nav_menu_item_2,
#header_nav_menu_item_3 {
  color: var(--menu_text_color);
}

.header_nav_menu_list {
  padding-top: 1em;
  margin-left: 1em;
  margin-right: 1em;
}

.header_nav_menu_item {
  color: var(--menu_text_color);
  background-color: var(--menu_background_color);
  text-align: center;
  list-style-type: none;
  cursor: pointer;
  padding: 0.5em;
  border-radius: 0.3em;
  cursor: pointer;
  transition: 0.1s ease;
  font-size: 1.1em;
}
#header_nav_menu_item_3{
margin-right: 30px;
}

.header_nav_menu_item + .header_nav_menu_item {
  margin-left: 0.4em;
}

/* Menu Container Codes */

main {
  margin-bottom: auto;
}

#main_section_container_2,
#main_section_container_3 {
  display: none;
}

.main_a_item {
  margin-top: 1em;
  text-decoration: none;
}
.main_button_item {
  font-weight: bold;
}
.main_text_item {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--button_text_color);
  background-color: var(--button_background_color);
  width: 41em;
  margin-top: 1em;
  padding: 0.8em;
  border-radius: 0.3em;
  min-height: 3.7em;
  text-align: center;
}

.main_button_item {
  color: var(--button_text_color);
  background-color: var(--button_background_color);
  width: 41em;
  border-radius: 1em;
  min-height: 3.7em;
  text-align: center;
  cursor: pointer;
}

.main_small_button_list {
  display: flex;
  flex-direction: row;
  font-weight: bold;
}

.main_small_a_item {
  margin-top: 1em;
  text-decoration: none;
  font-weight: bold;
}

.main_small_a_item + .main_small_a_item {
  margin-left: 10px;
}

.main_small_button_item:hover,
.main_button_item:hover {
  color: var(--button_text_hover_color);
  transform: scale(1.02);
  transition: 0.1s ease;
}

.main_small_button_item {
  color: var(--button_text_color);
  background-color: var(--button_background_color);
  font-weight: bolder;
  width: calc(41em / 2 - 5px);
  border-radius: 1em;
  min-height: 3.7em;
  text-align: center;
  cursor: pointer;
}

/* .projects {
  display: flex;

} */

#JO {
  color: var(--menu_text_color);
  background-color: var(--menu_background_color);
  text-align: center;
  list-style-type: none;
  cursor: pointer;
  padding: 0.5em;
  border-radius: 0.3em;
  cursor: pointer;
  transition: 0.5s ease;
  font-size: 1.1em;
}
#HEAD {
  font-weight: bolder;
}
#JO a:hover {
  color: orangered;
  transition: 0.5s;
}

.projects ul {
  list-style-type: none;
  display: flex;
}
.projects ul li {
  padding-left: 50px;
  padding-right: 110px;
  margin-left: 15px;
}
.projects ul li,
a {
  text-decoration: none;
  color: white;
  cursor: pointer;
  transition: 0.5s ease;
}

/* Footer Codes */

.footer_div_item {
  color: var(--footer_text_color);
  background: var(--footer_background_color);
  padding: 1em;
  margin-top: 1.5em;
}

.footer_a_item {
  color: var(--footer_link_text_color);
  text-decoration: none;
}

/* Responsive Codes */

@media (max-width: 768px) {
  .main_text_item {
    width: 92vw;
  }

  .main_small_button_item {
    width: calc(92vw / 2 - 5px);
  }

  .main_button_item {
    width: 92vw;
  }

  .header_h_item {
    width: 92vw;
    text-align: center;
  }
  .bubble {
    width: 8vw; /* Adjust bubble size for smaller screens */
    height: 8vw; /* Adjust bubble size for smaller screens */
  }

  #HEAD {
    font-weight: bolder;
  }
  #header_nav_menu_item_3{
    margin-right: 0;
    }

}

/* Add these styles for project cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  width: 100%;
  max-width: 1200px;
}

.project-card {
  background: var(--menu_background_color);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  color: var(--title_color);
  margin-bottom: 0.5rem;
}

.project-content p {
  color: var(--button_text_color);
  margin-bottom: 1rem;
  opacity: 0.8;
}

.project-link {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--menu_active_text_color);
  color: var(--menu_background_color);
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.project-link:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
}

/* CV Download Section Styles */
.cv-download-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin: 2rem 0;
  padding: 2rem;
  background: var(--menu_background_color);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
/* 
.cv-preview {
  width: 100%;
  height: 3px;
  max-width: 300px;
  border: 2px solid var(--menu_active_text_color);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
} */

.cv-preview:hover {
  transform: scale(1.02);
}

.cv-thumbnail {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.cv-download-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--menu_active_text_color);
  color: var(--menu_background_color);
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.cv-download-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
}

.download-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Add to your existing media queries */
@media (max-width: 768px) {
  .cv-download-container {
    padding: 1rem;
  }
  
  .cv-preview {
    height: 250px;
    max-width: 200px;
  }
  
  .cv-download-button {
    padding: 0.8rem 1.5rem;
  }
  
  .cv-thumbnail {
    height: 250px;
  }
}

/* ------------------------------
   Visual refresh overrides
------------------------------ */

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

body {
  position: relative;
  margin: 0;
  color: #f8fafc;
  background-attachment: fixed;
}

.page-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.35), rgba(2, 6, 23, 0.85));
  pointer-events: none;
  z-index: 0;
}

.site-header,
.site-main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  padding: 2rem 1rem 1rem;
}

.header_text {
  gap: 0.2rem;
}

.hero_subtitle {
  max-width: 640px;
  margin: 0.5rem auto 0;
  text-align: center;
  color: #cbd5e1;
  font-size: 1.02rem;
}

.header_img img {
  border: 3px solid rgba(241, 196, 15, 0.9);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

.header_svg_list {
  margin-top: 0.6rem;
}

.header_nav_menu_list {
  margin-top: 1rem;
  padding: 0.5rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.22);
  backdrop-filter: blur(8px);
}

.header_nav_menu_item {
  background: transparent;
  border-radius: 999px;
  padding: 0.55rem 1rem;
}

.header_nav_menu_item:hover {
  background: rgba(241, 196, 15, 0.12);
}

.site-main {
  width: min(1100px, 94vw);
  margin: 0 auto;
}

.content-section {
  margin-top: 1rem;
}

.section-card {
  width: 100%;
  max-width: 900px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  padding: 1.25rem 1.2rem;
}

.main_text_item {
  width: 100%;
  line-height: 1.7;
}

.project-grid {
  padding: 1rem 0;
  gap: 1.2rem;
  width: 100%;
}

.project-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.88);
}

.project-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.3);
}

.project-content p {
  min-height: 70px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(241, 196, 15, 0.6);
  color: #fde68a;
  background: rgba(15, 23, 42, 0.84);
  text-decoration: none;
  font-weight: 600;
}

.contact-chip:hover {
  color: #111827;
  background: #f1c40f;
  transform: translateY(-2px);
}

.cv-download-container {
  width: 100%;
  max-width: 520px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.cv-preview {
  height: 300px;
}

.site-footer .footer_div_item {
  background: rgba(15, 23, 42, 0.82);
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

@media (max-width: 768px) {
  .site-header {
    padding-top: 1.4rem;
  }

  .header_nav_menu_list {
    flex-wrap: wrap;
    border-radius: 16px;
    padding: 0.6rem;
    gap: 0.4rem;
  }

  .header_nav_menu_item + .header_nav_menu_item {
    margin-left: 0;
  }

  .project-grid {
    grid-template-columns: 1fr;
    padding: 1rem 0;
  }

  .project-content p {
    min-height: 0;
  }

  .section-card {
    padding: 1rem;
  }

  .cv-preview {
    height: 250px;
    max-width: 100%;
  }
}
