:root {
  --orange: orange;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;

  background:
    linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.88)),
    url('../../kukus.webp');

  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  color: white;
}



nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 60px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  color: orange;
}

.nav-links a {
  color: white;
  text-decoration: none;
  margin-left: 25px;
  font-weight: 600;
  transition: 0.3s;
}

.nav-links a:hover {
  color: orange;
}



.cd-main-header {
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;

  text-align: center;
}

.cd-main-header nav {
  align-self: stretch;
  box-sizing: border-box;
}

.cd-main-header__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  padding: 40px;
}

.cd-main-header h1 {
  font-size: 5rem;
  color: var(--orange);

  text-shadow: 0 0 20px rgba(255,140,0,0.7);
}

.cd-main-header p {
  max-width: 700px;
  line-height: 1.8;
  font-size: 1.2rem;
}

footer {
    text-align: center;
    padding: 25px;
    background: rgba(0,0,0,0.7);
    margin-top: 50px;
}

.cd-timeline {
  overflow: hidden;
  padding: 2em 0;
}

.cd-timeline__container {
  position: relative;
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 2em 0;
}



.cd-timeline__container::before {
  content: '';

  position: absolute;
  top: 0;
  left: 18px;

  width: 4px;
  height: 100%;

  background: linear-gradient(
    to bottom,
    rgba(255,140,0,0.2),
    orange,
    rgba(255,140,0,0.2)
  );

  border-radius: 20px;

  box-shadow: 0 0 15px rgba(255,140,0,0.5);
}

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

  .cd-timeline__container::before {
    left: 50%;
    margin-left: -2px;
  }
}



.cd-timeline__block {
  position: relative;
  margin: 6em 0;
}

.cd-timeline__block::after {
  content: "";
  display: table;
  clear: both;
}



.cd-timeline__img {
  position: absolute;
  top: 0;
  left: 0;

  width: 40px;
  height: 40px;

  border-radius: 50%;

  background: var(--orange);

  display: flex;
  justify-content: center;
  align-items: center;

  box-shadow: 0 0 20px rgba(255,140,0,0.5);

  z-index: 10;
}

.cd-timeline__img img {
  width: 24px;
}

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

  .cd-timeline__img {
    width: 60px;
    height: 60px;

    left: 50%;
    margin-left: -30px;
  }
}



.cd-timeline__content {
  position: relative;

  margin-left: 80px;
  padding: 2em;

  width: calc(100% - 120px);

  background: rgba(0,0,0,0.72);

  border-radius: 18px;

  color: white;

  box-shadow: 0 0 25px rgba(0,0,0,0.4);
}

.cd-timeline__content h2 {
  margin-top: 0;
  color: var(--orange);
}

.cd-timeline__content p {
  line-height: 1.8;
}



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

  .cd-timeline__content {
    width: 42%;
    margin-left: 0;
  }



  .cd-timeline__block:nth-child(odd) .cd-timeline__content {
    float: left;
    margin-right: 8%;
  }


  .cd-timeline__block:nth-child(even) .cd-timeline__content {
    float: right;
    margin-left: 8%;
  }



  .cd-timeline__block:nth-child(odd) .cd-timeline__content::before {

    content: '';

    position: absolute;
    top: 20px;

  
    right: -20px;

    width: 0;
    height: 0;

    border-style: solid;

   
    border-width: 10px 0 10px 20px;

    border-color:
      transparent
      transparent
      transparent
      rgba(0,0,0,0.72);
  }


  .cd-timeline__block:nth-child(even) .cd-timeline__content::before {

    content: '';

    position: absolute;
    top: 20px;

   
    left: -20px;

    width: 0;
    height: 0;

    border-style: solid;

    
    border-width: 10px 20px 10px 0;

    border-color:
      transparent
      rgba(0,0,0,0.72)
      transparent
      transparent;
  }
}


.btn {
  background: var(--orange);
  color: black;

  padding: 12px 22px;

  border-radius: 40px;

  text-decoration: none;
  font-weight: bold;

  transition: 0.3s;
}

.btn:hover {
  background: white;
}

.cd-timeline__date {
  color: var(--orange);
  font-weight: bold;
}


@media(max-width:768px){

  nav {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }

  .cd-main-header h1 {
    font-size: 3rem;
  }

  .cd-main-header p {
    font-size: 1rem;
  }

  .cd-timeline__content {
    padding: 1.5em;
  }
}