
* {
      box-sizing: border-box;
}
.roboto-custom {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "width" 100;
}



body {
  font-family: "Roboto", sans-serif;
  color: #35250e;

  background-image: 
   linear-gradient(to right, 
    rgba(245,245,245,1) 0%, 
    rgba(245,245,245,0) 50%,
    rgba(245,245,245,1) 100%),
  url("images/desk_photo.jpg");
  
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
  color: #363535;
  margin: 0;
 /* min-height: 100vh;*/
  
  

}



h2 {
  color: #35250e;
  text-align: center;
  border-bottom: 2px solid #cac1b8; /* Add a border below the heading */
  border-top: 2px solid #eee; /* Add a border above the heading */
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

p {
  color: #363535;
  font-weight: 300;
  text-align: center;
  margin-bottom: 1rem;
}

.items {
  width: 100%;
  padding: 0 1rem;
  color: #201c1a;
}




a {
  text-decoration: none;
  color: #201c1a;
  font-weight: 500;
}

.navbar a:hover { /* Change color during hover */
  color: #f5ae33; 
}





.navbar {
  width: 100%;
  display: flex;
  flex-direction: column; /* Mobile: stacked */
  gap: 1rem;
  padding: 1rem 0;
  
}



.nav_links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}


.navbar .nav_links a {
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}



/* Mobile Menu Styles */
.menu-toggle {
    display: none; /* Hide checkbox */

}

/* Style the hamburger icon */
.hamburger {   /*NEEDS TO GO A LITTLE BIT UP/*/
  margin-left: auto;/* Pushes it to the right */
  margin-top: -3.3rem; /* Adjust as needed */
  font-size: 2rem;
  cursor: pointer;
  padding: 0 1rem; /* Spacing */
  cursor: pointer; /* Changes cursor to pointer on hover */
  user-select: none; /* Prevents text selection when clicking */
}



.menu-toggle:checked ~ .nav_links {
    max-height: 300px; /* Adjust based on content */
    padding: 1rem 0;
}

/* Hamburger animation */
.menu-toggle:checked + .hamburger span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
}
.menu-toggle:checked + .hamburger span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}



.hero h2 {
  border: 0;
  color: #35250e;
  font-weight: 500;
  text-align: center;
  margin-bottom: 0.5rem;
}
    
.hero p {
  color: #5e503e;
  font-weight: 100;
  text-align: center;
  margin-bottom: 1rem;
}

.typewriter {
  display: inline-block;
  overflow: hidden;
  border-right: 2px solid #333; /* Cursor */
  white-space: nowrap; /* Keep text in one line */
  margin: 0;
  letter-spacing: 0.05em;
  animation: 
    typing 3s steps(40, end),
    blink-caret 0.75s step-end infinite;
}

/* Typing effect */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

/* Cursor blink */
@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: #333; }
}


.card {
  width: 100%;
  max-width: 350px; /* Adjust as needed */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 1rem;
}

/* Hover Effect */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* Card Image */
.card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* Card Content */
.card-content {
  padding: 1.2rem;
}

.card-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  color: #333;
}

.card-text {
  margin: 0 0 1rem 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Card Actions */
.card-actions {
  display: flex;
  gap: 0.8rem;
  padding-top: 0.5rem;
}

.card-button {
  padding: 0.5rem 1rem;
  
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.card-button.secondary {
  color: #1F63E0;
}

.card-button:hover {
  background: #3a7bc8;
}

.card-button.secondary:hover {
  background: #e0e0e0;
}



.education p {
  color: #776854;
  font-weight: 100;
  text-align: center;
  margin-bottom: 1rem;
}


.marquee-container {
  width: 100%; /* Or a fixed width */
  overflow: hidden; /* Hides the overflowing text */
  white-space: nowrap; /* Prevents text from wrapping */
  box-sizing: border-box; /* Includes padding and border in the element's total width */
}

.marquee-text {
  display: inline-block; /* Allows animation of horizontal movement */
  padding-left: 100%; /* Starts the text off-screen to the right */
  animation: scroll-left 30s linear infinite; /* Applies the animation */
  
}

@keyframes scroll-left {
  0% {
    transform: translateX(0); /* Starting position */
  }
  100% {
    transform: translateX(-100%); /* Ending position (moves left by its full width) */
  }
}


.contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;  
 
}


.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  border: 2px solid #f5ae33;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background-color: transparent;
  padding: 0.8rem;
  border: 1px solid #f5ae33;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background-color: #f5ae332f;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.radio-group label {

  display: inline-block;
  margin-right: 3rem;
}
.radio-group input[type="radio"] {
  margin-right: 10rem; /* Space between radio button and label */
  vertical-align: middle; /* Aligns the radio button with the label */
} 


.submit-btn {
  border: 2px solid  #1F63E0;
  background-color: #1f62e098;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background: #1F63E0;
}

.icons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;}


.icons svg{
  display: flex;
  flex-direction: row;
  width: 3em;
  gap: 1rem;
}

.download_resume {
  position: fixed;
  z-index: 1000;
  bottom: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease;
}

.download_resume:hover {
  background-color: #f5ae33;
} 
.download_resume img {
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle; /* Aligns the icon with the text */
  margin-right: 0.5rem; /* Adds space between the icon and text */
}


   /* For tablets and above*/
@media (min-width: 768px) {

  body {
    background-position: 15% ; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .items {
    width: 80%;
    margin: 0 auto;
    
  } 


  .navbar{
    flex-direction: row;
    justify-content: space-between;
    
  }

.nav_links {
  display: flex !important; /* Always show on desktop */
  flex-direction: row;
  justify-content: right;
  gap: 1rem;
  width: auto;
  position: static;
  background: transparent;
  padding: 1rem 0;
}


.hamburger {
    display: none; /* Hide hamburger on desktop */
  }

.project_cards {
  display: flex;
  flex-direction: row; /* Align cards in a row */
  flex-wrap: wrap; /* Allow wrapping to next line */
  justify-content: center; /* Center cards horizontally */
  gap: 1rem; /* Space between cards */
  padding: 1rem;
}



.education .contacts {
  display: flex;
  flex-direction: column; 
  flex-wrap: nowrap; 
  justify-content: center; 
  gap: 1rem; 
  padding: 1rem;
}



.contact-form {
  min-width: 600px;
  padding: 1.5rem;
}


.radio-group label {

  display: inline-block;
  margin-right: 0.5rem;
}

.radio-group input[type="radio"] {
  margin-right: 1rem; /* Space between radio button and label */
}