:root {
    --regal-navy: #134074;
    --oxford-navy: #13315c;
    --prussian-blue: #0b2545;
    --powder-blue: #8da9c4;
    --mint-cream: #eef4ed;
    --white: #ffffff;
    --top-strip-height: 12px;
    --nav-content-height: 64px;
    --nav-padding-x: 2rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
        
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: calc(var(--top-strip-height) + var(--nav-content-height));
  background: transparent;

  transition: background-color 200ms ease, box-shadow 200ms ease, height 200ms ease;
}

nav::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--top-strip-height);
  background-color: var(--prussian-blue);

  transition: height 200ms ease;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  height: var(--nav-content-height);
  margin-top: var(--top-strip-height);
  padding: 0 var(--nav-padding-x);
  transition: margin-top 200ms ease;
}

nav a {
  text-decoration: none;
  color: var(--prussian-blue);
  font-weight: 700;
  font-size: 1.35rem;
  transition: color 200ms ease;
}


nav.scrolled {
  height: var(--nav-content-height);
  background-color: var(--prussian-blue);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

nav.scrolled::before {
  height: 0;
}

nav.scrolled ul {
  margin-top: 0;
}

nav.scrolled a {
  color: var(--mint-cream);
}

nav.scrolled a:hover {
  color: var(--powder-blue);
}

h1 {
    font-size: 2.7rem;
    margin-bottom: 1rem;
    font-weight: 900;
}

#intro p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

section {
    padding: 5rem 2rem;
    scroll-margin-top: calc(var(--top-strip-height) + var(--nav-content-height) + 16px);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

#intro {
    background-color: var(--mint-cream);
    color: var(--prussian-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 80vh;
}

.profile-pic {
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--regal-navy);
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}


#projects {
    background-color: var(--regal-navy);
    color: var(--mint-cream);
    text-align: center;
}

.section-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}


.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
}


.project-card {
    background-color: var(--white);
    color: var(--prussian-blue); 
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.2s ease;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 350px;
}

.project-card:hover {
    transform: translateY(-5px);
}

.card-icon { font-size: 3rem; margin-bottom: 1rem; display: block; }
.project-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; font-weight: 700; }
.project-card p { font-size: 1rem; margin-bottom: 1.5rem; }


.tech-stack {
    margin-top: auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.tech-tag {
    background-color: var(--mint-cream);
    color: var(--oxford-navy);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--powder-blue);
}

#extras {
    background-color: var(--white);
    color: var(--oxford-navy);
    text-align: center;
}

.extras-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
}

#contact {
    background-color: var(--oxford-navy);
    color: var(--mint-cream);
    text-align: center;
    padding-bottom: 5rem;
}

.contact-form-container {
    max-width: 600px;
    margin: 3rem auto 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--mint-cream);
}

.form-input {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid transparent;
    background-color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    color: var(--prussian-blue);
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: var(--powder-blue);
    outline: none;
}

textarea.form-input {
    min-height: 150px;
    resize: vertical;
}

.btn {
    display: inline-block;
    background-color: var(--powder-blue);
    color: var(--prussian-blue);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;

}

.btn:hover {
    background-color: var(--mint-cream);
}

#form-status {
    margin-top: 1rem;
    font-weight: bold;
    color: var(--mint-cream);
}