* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-dark: #01311F;
    --color-gold: #C6AA58;
    --color-cream: #F3F2ED;
}


body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Ubuntu', 'Cantarell',
     'Fira Sans', 'Droid Sans','Helvetica Neue', sans-serif; 
     line-height: 1.6;
     color: #333;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container{
    max-width: 1200px;
    margin: 0 auto ; /* css shorthand that sets no vertical margin and browser automatically calcs l and R margins */
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;

}

.nav-logo{
    font-family: Ink Free;
    font-size: 2rem;
    color: var(--color-gold);
    font-weight: 600;
    text-decoration: none;
}

.nav-links {
    font-family: Ink Free;
    font-size: 1.5rem;
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--color-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover{
    color: var(--color-gold);
}

/* Hero Section */
.hero{
    position: relative; 
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; 
}
.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 200px; /* adjust fade height */
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        var(--color-cream) 100%
    );
    z-index: 1;
    pointer-events: none;
}
/* VIDEO */
.vid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}
.hero-content{
    position: relative;
    z-index: 2;
    backdrop-filter: invert(80%) blur(10px);
    text-align: center;
    border-radius: 1cap;
    width: stretch;
}

.hero-greeting{
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.hero-name{
    font-size: 4rem;
    color: var(--color-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-title{
    font-size: 2rem;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
}

.hero-description{
    font-size: 1.1rem;
    color: var(--color-dark);
    margin-bottom: 2rem;
}


/* Social Links */
.social-links{
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.social-link{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.social-link:hover{
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Section Styles */
.section{
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;

}
.section-title{
    font-size: 3rem;
    color: var(--color-dark);
    text-align: center;
    margin-bottom: 1rem;
}

.section-divider{
    width: 80px;
    height: 4px;
    background: var(--color-gold);
    margin: 0 auto 3rem;
}


/* About Section */

.about-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.about-text h3{
    color: var(--color-dark);
    font-size: 1.8rem;  
    margin-bottom: 1rem;  
}

.about-text p{
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.skill{
    margin-bottom: 1.5rem;
}
.skill-header{
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-name{
    color: var(--color-dark);
    font-weight: 500;
}

.skill-level{
    color: #666;
}

.skill-bar{
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress{
    height: 100%;
    background-color: var(--color-gold);
    transition: width 1s ease-out;
}

/* Highlights Section */
.highlights-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.highlight-card{
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.highlight-card:hover{
    transform: translateY(-5px);
    box-shadow: rgba(0, 0, 0, 0.15);
}

.highlight-icon{
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    color: var(--color-gold)
}

.highlight-card h4{
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.highlight-card p{
    color: #666;
    font-size: 0.9rem;
}

/* Projects Section */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card{
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 5px 5px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover{
    transform: translateY(-20px);
    box-shadow: 0 8px 16px var(--color-gold);
}

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

.project-content{
    padding: 1.5rem;
}

.project-title{
    color: var(--color-dark);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.project-description{
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.project-tags{
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tag{
    padding: 0.25rem 0.75rem;
    background: rgba(198, 170, 88, 0.1);
    color: var(--color-dark);
    border-radius: 2px;
    font-size: 0.85rem;
}

.project-links{
    display: flex;
    gap: 2rem
}

.project-link{
    color: var(--color-gold);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.project-link:hover {
    opacity: 0.8;
}

/* Experience Section */

.timeline{
    position: relative;
    padding: 2rem 0;
}

.timeline::before{
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--color-gold);
}

.timeline-item{
    display: flex; /* this part is critical to allow the alternating behavior*/
    margin-bottom: 3rem;
    position: relative;
    
}

.timeline-content{
    width: 45%;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* The following selectors are what allow us to alternate the timeline-item elements. */
.timeline-item:nth-child(odd){
    justify-content: flex-start;
}
.timeline-item:nth-child(even){
    justify-content: flex-end;
}

.timeline-item::after{
    content: '';
    position:absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--color-gold);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2)
}

.timeline-date{
    color: var(--color-gold);
    font-size: 1rem;
}

.timeline-title{
    color: var(--color-dark);
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.timeline-org{
    color:var(--color-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-description{
    color: #666;
    margin-bottom: 1rem;
}

.timeline-highlights{
    list-style: none;
    padding-left: 0rem;
}
.timeline-highlights li{
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.timeline-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    background: var(--color-gold);
    border-radius: 50%;
}

.contact-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info{
    padding: 2rem;
}
.contact-info h3 {
  color: var(--color-dark);
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(198, 170, 88, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
}

.contact-details {
  flex: 1;
}

.contact-label {
  color: #999;
  font-size: 0.85rem;
}

.contact-value {
  color: var(--color-dark);
}

.contact-value a {
  color: var(--color-dark);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-value a:hover {
  color: var(--color-gold);
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

.form-group label {
  display: block;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}

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

.submit-button {
  width: 100%;
  padding: 1rem;
  background: var(--color-gold);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.3s;
}

.submit-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: white;
  border-top: 1px solid #e0e0e0;
  padding: 2rem;
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-social a {
  color: #666;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: var(--color-gold);
}

.footer-text {
  color: #666;
  font-size: 0.9rem;
}
.alert {
  gap: 20px;
  font-weight: 600;
}

.alert.success {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--color-gold);
    padding: 1rem;
    margin: 1rem;
    background-color: var(--color-dark);
    border-radius: 1cap;
    flex-shrink: 0;
}

.alert.error {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--color-gold);
    padding: 1rem;
    margin: 1rem;
    background-color: var(--color-dark);
    border-radius: 1cap;
    flex-shrink: 0;
}
.fa-solid.fa-circle-xmark{
    color: red;
}
.message {
    font-size:3rem;
}
/* MOBILE FIX */
@media (max-width: 768px) {

    /* NAV */
    .nav-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        font-size: 1.2rem;
        gap: 1rem;
    }

    /* HERO */
    .hero-name {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* ABOUT */
    .about-grid {
        grid-template-columns: 1fr;
    }

    /* CONTACT */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* TIMELINE (THIS IS A BIG ONE) */
    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-content {
        width: 100%;
    }

    .timeline-item::after {
        left: -.5px;
        transform: none;
        top: 75px;

    }

    /* SECTIONS */
    .section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* PROJECT CARDS */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* SOCIAL ICONS */
    .social-link {
        width: 40px;
        height: 40px;
    }
}
