:root {
  --primary: #2E5339;
  --secondary: #2C3E50;
  --dark: #2E5339;
  --light: #A9B0A6;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', 'Nunito Sans', 'Roboto', sans-serif;
}
 
body {
  scroll-behavior: smooth;
}

/******************************************************** NAVIGATION SECTION ********************************************************/
.navbar {
  width: 100%;
}

.nav-link {
  margin-right: 20px; /* Space between the links */
  color: #2E5339; /* Color of the links */
  font-weight: bold;  /* Make navigation links bold */
}

.nav-link:hover { /* nav links has hover effect */
  color: #332211; /* Color when hovering over the link */
  transform: scale(1.1);
  transition: 0.5s;
}

body, html {
    height: 100%;
    margin: 0;
    font-family: 'Montserrat', 'Nunito Sans', 'Roboto', sans-serif;
}

/******************************************************** HOME SECTION ********************************************************/
/* HOME SECTION */
#home {
  color: #2E5339;
  text-shadow: 1px 1px 2px #A9B0A6; /* Enhances text visibility against backgrounds */
}

/* Alpha Llanderal */
#home h1 { 
  font-size: 4rem;
  margin-bottom: 0.5em;
  font-weight: bold;
}

/* Hello... and I'm an... */
#home p { 
  font-size: 1.5rem;
  margin-bottom: 2em;
}

/* connect */
.connect form {
  width: 500px;
  max-width: 100%;
  position: relative;
}

/* Enter Your Email */
.connect form input:first-child {
  display: inline-block;
  width: 100%;
  padding: 14px 130px 14px 15px;
  border: 2px solid white;
  outline: none;
  border-radius: 30px;
}

/* Let's Connect */
.connect form input:last-child {
  position: absolute;
  display: inline-block;
  outline: none;
  border: none;
  padding: 10px 30px;
  border-radius: 30px;
  color: white;
  box-shadow: 0px 0px 15px #A9B0A6, 0px 0px 15px #2C3E50;
  top: 6px;
  right: 6px;
  font-weight: bold
  
}

.btn-success {
  background-color: #4CAF50; /* Standard green button */
  border-radius: 20px; /* Rounded corners */
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Soft shadow */
  font-size: 16px;
}

.btn-success:hover {
  background-color: #2C3E50; /* Darker green on hover */
}

/******************************************************** ABOUT SECTION ********************************************************/
#about {
  background-color: #f5f5f5;
  color: #2E5339;
  text-shadow: 1px 1px 2px #A9B0A6; /* Enhances text visibility against backgrounds */
}

#about img {
    width: 100%;
    max-width: 300px;
    margin-bottom: 20px;
}

#about h1 {
    font-size: 4rem;
    font-weight: bold;
}

#about h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

#about p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

#about .btn {
    font-size: 1.1rem;
    padding: 10px 20px;
    font-weight: bold
}

/* Ensure the next section does not overlap */
#projects + section {
  margin-top: 50px;
}

/******************************************************** PROJECTS SECTION ********************************************************/
#projects {
  color: #2E5339;
  text-shadow: 1px 1px 2px #A9B0A6;
  padding-top: 80px; /* Adds spacing from the previous section */
  margin-top: 50px;  /* Ensures it does not overlap with the top section */
}

#projects h1 {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 30px; /* Adds spacing below the title */
}

#projects .card {
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#projects .card-img-top {
    border-radius: 0;
}

#projects .card-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 10px;
}

#projects .card-text {
    font-size: 0.75rem;
}

.btn-success {
  color: #FFFCEC;
  background-color: #2E5339;
  border-color: #A9B0A6;
}

.btn-success:hover {
  color: white;
  background-color: #332211;
  border-color: #A9B0A6;
}

/* Ensure the next section does not overlap */
#projects + section {
    margin-top: 50px;
}


/******************************************************** SKILLS SECTION ********************************************************/
#skills{
  background-color: #f5f5f5;
  color: #2E5339;
  text-shadow: 1px 1px 2px #A9B0A6; /* Enhances text visibility against backgrounds */
}

#skills h1{
  font-size: 4rem;
  font-weight: bold;
}

#skills img {
    height: 100px; 
    width: auto;
}

#skills h4 {
  font-size: 1.5rem;
  margin-top: 15px;
  margin-bottom: 40px;
}

/******************************************************** WORK HISTORY SECTION ********************************************************/
#work{
  background-color: #f5f5f5;
  color: #2E5339;
  text-shadow: 1px 1px 2px #A9B0A6; /* Enhances text visibility against backgrounds */
}

.full-height-container {
  height: 100%;
}

#work h1{
  font-size: 4rem;
  font-weight: bold;
  }

.timeline {
  margin: 0 auto;
  max-width: 1500px;
  padding: 25px;
  display: grid;
  grid-template-columns: 1fr 3px 1fr;
  font-family: 'Montserrat', 'Nunito Sans', 'Roboto', sans-serif;
  color: #2E5339;
}

.timeline__component {
  margin: 0 20px 20px 20px;
}

.timeline__component--bg { /* work experience box */
  padding: 1.5em;
  background: #F5F6F1;
  box-shadow: 0 0 5px#A9B0A6;
  border-radius: 10px;
}

.timeline__component--bottom {
  margin-bottom: 0;
}

.timeline__middle {  /* middle line */
  position: relative;
  background: #2E5339;
}

.timeline__point { /* middle point */
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: #2E5339;
  border-radius: 50%;
}

.timeline__point--bottom { /* top point */
  top: initial;
  bottom: 0;
}

.timeline__date--right {
  text-align: right;
}

.timeline__title { /* title */
  margin: 0;
  font-size: 1.15em;
  font-weight: bold;
}

.timeline__paragraph { /* job description */
  margin-top: 10px;
  line-height: 1.5;
}



/******************************************************** CONTACT ME SECTION ********************************************************/

/* Crafting Digital Masterpieces */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Montserrat', 'Nunito Sans', 'Roboto', sans-serif;
}

#contact h1{
  font-size: 4rem;
  font-weight: bold;
  color: #2E5339;
  }

.form-container {
  background: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  text-align: center;
}

.form-container h1, .form-container p {
  margin-bottom: 20px;
}

.input-group {
  margin-bottom: 15px;
}

.input-group input, .input-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.input-group textarea {
  height: 150px;
}

button {
  width: 100%;
  padding: 10px;
  background-color: #2E5339; /* Green button */
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  background-color: #332211;
}

/******************************************************** FOOTER SECTION ********************************************************/

#footer {
  background-color: #F5F6F1 ; /* Light background */
  color: #2E5339;
  text-align: center;
  padding: 1em;
  font-family: 'Montserrat', 'Nunito Sans', 'Roboto', sans-serif;
}

#footer p {
  margin: 5px 0;
}

.social-links {
  font-size: 30px; 
}

.social-icon {
  color: #2E5339;
  margin: 0 10px;
  text-decoration: none;
}

.social-icon:hover {
  color: #332211;
}
