*{
    font-size: 1rem;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    overflow-x: clip;
    font-family: Inter var,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;
}

html {
  scroll-behavior: smooth;
}

.nav{padding: 0em;}

:root{
    --clr-1: white;
    --clr-2: #1c285a;
    --clr-3: #FFCBCB;
    --clr-4: #102C57;
    --clr-5: #0A5EB0;
}

.nav-link {
    color: #000;
    position: relative;
}
.nav-link:hover {
    color: var(--clr-2);
    text-decoration: none;
}
.nav-link.active {
    text-decoration: underline;
}
.navbar {
    justify-content: center;
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1030;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 50%;
    width: 90%;  
}

.navbar-nav {
    gap: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

#aboutme, #services, #resume, #portfolio {
  scroll-margin-top: 3rem;
}

#intro {
    background-image: url('../img/hero3.jpg');
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--clr-1);
}

.gradpic {
    border-radius: .2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.profile-pic img {
    border-radius: 100%;
    border: .6rem solid var(--clr-1);
}

.homeBtn {
    display: flex;
}

.btn {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.downloadcv-btn, #submit-btn-1 {
    display: inline-block; 
    background-color: var(--clr-2);
    color: var(--clr-1);
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    text-decoration: none;
    box-shadow: 2px 4px 0 2px var(--clr-3);
    transition: all 0.3s ease;
    text-decoration: none !important;
    border: none;
}

#submit-btn-1 {
    width: 28%;
}

.downloadcv-btn:hover, #submit-btn-1:hover {
    background-color: var(--clr-5);
    color: var(--clr-1);
}

.section-underline {
  text-decoration: none; 
  position: relative;
  display: inline;
  z-index: 0;
}

.section-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.4rem; 
  width: 100%;
  height: 0.5rem;
  background: var(--clr-3);
  z-index: -1;
}


#aboutme {
    background-image: url('../img/stacked-waves-haikei1.svg');
    background-size: cover;
    margin: 60px 0 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;    
    align-content: center;
    justify-content: center;
    overflow-x: hidden;
}

#techstack {
    background-image: url('../img/pink-holo.png');
    background-size: cover;
    height: 100vh;
    margin: 60px 0 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;    
    align-content: center;
    justify-content: center;
    overflow-x: hidden;
}

.techstack {
    margin: 1rem;
}

#techstack .row {
    display: flex;
    flex-direction: row;
    text-align: center;
}

.container-techstack i {
    padding: 1rem;
    font-size: 3.5rem;
}

.container-techstack i p {
    font-size: 0.75rem;
    text-align: center;
    margin-top: 0.5rem;
    text-decoration: none;
    font-weight: normal;
}

h1 {
    text-align: center;
    font-weight: bold;
}

#aboutme p {
    font-size: 1.25rem;
    display: flex;
    align-content: center;
    justify-content: center;
}

#aboutme .row {
    padding: 20px 0 20px 0;
    display: flex;
    flex-direction: row;
}

#aboutme .col {
    display: flex;
    flex-direction: column;
}


.section-name {
    font-size: 1.25rem;
    background-color: var(--clr-4);
    color: var(--clr-1);
    display: inline-block;
    padding: 0.25em 1em;
    margin-top: 2em;
    margin-bottom: 1em;
}

.section-name .row {
    display: flex;
    flex-direction: row;
    text-align: center;
}

#services {
    margin: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;    
    align-content: center;
    justify-content: center;
}


#services .row {
    display: flex;
    flex-direction: row;
    text-align: center;
}

#services .col {
    display: flex;
    flex-direction: column;
}

#services #section-name p {
    font-size: 1rem;
    background-color: var(--clr-4);
    color: var(--clr-1);
}


#resume {
    margin: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;    
    align-content: center;
    justify-content: center;
}

#resume .row {
    display: flex;
    flex-direction: row;
}

#resume .col {
    display: flex;
    flex-direction: column;
}

#resume #section-name p {
    font-size: 1rem;
    background-color: var(--clr-4);
    color: var(--clr-1);
}

.resume-desc {
    border-left: solid 2px var(--clr-5);
}

.portfolio {
    width: 100%;
    padding: 4rem;
    background-image: url('../img/stacked-waves-haikei2.svg');
    background-size: cover;
}

#portfolio{
    display: flex;
    flex-direction: column;
    align-items: center;    
    align-content: center;
    justify-content: center;
}

#portfolio #section-name p {
    font-size: 1rem;
    background-color: var(--clr-4);
    color: var(--clr-1);
}

#portfolio .row {
    display: flex;
    flex-direction: row;
}

#portfolio .col {
    display: flex;
    flex-direction: column;
}

.projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    margin: 2rem 0;;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

.project-desc {
    display: flex;
    flex-direction: column;
    padding: 1rem 0 0 0;
    align-items: center;
}

.project-desc p {
    margin: 0;
}

.project-desc a {
  color: #3182ce;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.projects img {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    width: 100%;
}

.demo {
  width: 50%;
}

.youtube-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}


.youtube-embed iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.project-link {
  display: inline-block;
  margin-top: .5rem;
  color: #3182ce;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}


.link {
  color: #3182ce;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.project-link:hover, .project-desc a:hover {
  color: #2c5282;
  text-decoration: underline;
}

.hire-me {
    height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;    
    align-content: center;
    justify-content: center;
    color: var(--clr-2);
    border-top-left-radius: 12%;
    border-top-right-radius: 12%;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg width='44' height='12' viewBox='0 0 44 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 12v-2L0 0v10l4 2h16zm18 0l4-2V0L22 10v2h16zM20 0v8L4 0h16zm18 0L22 8V0h16z' fill='%23ffcbcb' fill-opacity='0.91' fill-rule='evenodd'/%3E%3C/svg%3E");
}


#contact{
    height: 100vh;
    background-image: url('../img/hero-landing.jpg');
    display: flex;
    flex-direction: column;
    align-items: center;    
    align-content: center;
    justify-content: center;
}

#contact .container {
    padding: 6rem;
}

#contact-form .row {
    display: flex;
    flex-direction: column;
}

#contact-form .col {
    margin: 0.5rem 0;
    display: flex;
    flex-direction: column;
}

#contact .card {
    padding: 2rem;
    color: #000;
}

.footer {
    height: 20vh;
    background-color: rgb(26, 26, 26);
    color: var(--clr-1);
    display: flex;
    flex-direction: column;
    align-items: center;    
    align-content: center;
    justify-content: center;
}

.footer-links a {
    margin-right: .75rem;
    align-items: center;
    color: rgb(26, 26, 26);
    text-decoration: none;
    overflow: hidden;
}

/* contact JS stuff */
/* loading spinner */
.fa-spinner {
  margin-left: 8px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* status icons */
.fa-check { color: #28a745; margin-right: 8px; }
.fa-exclamation-triangle { color: #dc3545; margin-right: 8px; }