/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tangerine:wght@400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background: #0f172a;
    color: #e2e8f0;
}


/* NAVBAR */
nav {
    background: #020617;
    padding: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    color: rgb(99, 197, 239);
    transform: scale(1.1);
}

/* HEADER */
header {
    text-align: center;
    padding: 40px;
}

/* SECTIONS */
section {
    padding: 30px;
    max-width: 900px;
    margin: auto;
}

/* IMAGE */
img {
    width: 100%;
    border-radius: 10px;
    margin-top: 15px;
    transition: transform 0.3s;
}

img:hover {
    transform: scale(1.03);
}

/* FADE IN ANIMATION from css tricks and w3school*/
.fade-in {
    animation: fadeIn 1.5s ease-in;
}

@keyframes fadeIn { 
    from {opacity: 0;}
    to {opacity: 1;}
    /* from w3school */
}

/* COMPANIES CARDS from w3school and gemini*/
.company-card {
    background: #1e293b;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.company-card img {
    width: 25%;
    float: bottom;
    margin-right: 20px;
    
}

/* VERTICAL TIMELINE */
.timeline {
    position: relative;
    margin: 50px 0;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #38bdf8;
}

.timeline-event {
    position: relative;
    margin-bottom: 50px;
}

.timeline-event::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 0;
    width: 20px;
    height: 20px;
    background: #38bdf8;
    border-radius: 50%;
    border: 3px solid #0f172a;
}

/* TIMELINE TEXT */
.timeline-event h3 {
    margin: 0;
    color: #fff;
}



/* RESPONSIVE */
@media(max-width: 768px){
    .company-card img {
        float: none;
        display: block;
        margin: 0 auto 15px auto;
    }
}
/* Final Touch */
#elonabout {
  width: auto;
  height: 300px;
  float: left;
  margin-right: 15px;
}
#elonmuskfont1 { /*from google fonts*/
  font-family: "Tangerine", cursive;
  font-weight: 1000;
  font-style: normal;
  font-size: 100px;
  margin-bottom: 0px;
  margin-top: 0px;
}

#tagline {
  font-family: "Montserrat", 'Sans-serif';
  font-size: 25px;
  font-style:oblique;
}

#earlylifepic {
  width: auto;
  height: 300px;
  
  margin-right: 25px;

}

#childhood {
  font-family: "Tangerine", Static ;
  font-weight: 1000;
  font-style: normal;
  font-size: 50px;
  margin-bottom: 0px;

}

.childhood {
  margin-bottom: 10px;
}

#shortform {
  text-decoration: none;
  color: aqua;
  cursor: pointer;
}

#companies {
  font-family: 'Times New Roman', Times, serif;
  margin-bottom: 0px;
}

.company_link {
  text-decoration: underline;
  color: #e2e8f0;
}


/* FOOTER from chat gpt */
footer {
    text-align: center;
    padding: 20px;
    background: #020617;
    margin-top: 30px;
    
}

/* help was taken from various sources */