* {
    text-decoration: none;
}

body {
    margin: 0;
    padding: 0;
    background-color: #121721;
    overflow-x: hidden;
    height: 1900px;
}

/* NAVBAR */

.navbar {
    background-color: #121721;
    font-family: "Space Grotesk", sans-serif;
    border-bottom: #243346 solid 1px;
    padding-right: 15px;
    padding-left: 15px;
    width: 100%;
    top: 0;
    z-index: 1000;
    position: sticky;
}

.navdiv {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    font-size: 18px;
    margin-left: 35px;
    font-weight: 600;
    color: white;
}

li {
    list-style: none; 
    display: inline-block;
}

li a {
    color: white;
    text-decoration-color: #9dc2ff;
    font-size: 14px;
    font-weight: 500;
    margin-right: 26px;
}

.resume-btn {
    background-color: #243347;
    margin-left: 10px;
    border-radius: 25px;
    border: none;
    padding: 10px;
    width: 90px;
    margin-right: 42px;;
}

.resume-btn:hover {
    background-color: #445c7b;
    transition-duration: 0.25s;
    cursor: pointer;
}

.resume-btn a {
    color: white; 
    font-family: "Space Grotesk", sans-serif;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
}

li a:hover {
    text-decoration: underline;
    text-decoration-color: #9dc2ff;
    text-decoration-thickness: 3px;
    transition: 0.5s;
}

/* ************ */
/* HERO SECTION */
/* ************ */

/* LOCATION */

.location {
  display: inline-flex;
  align-items: center;;
  gap: 8px;
  background: #111a2a;
  border-radius: 20px;
  padding: 6px 12px;
  color: #fff;
  margin-left: -10px;
  margin-top: 72px
}

.location i {
  font-size: 16px;       
  line-height: 1;
}

.location h4 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 14px;
}

.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px;
  text-align: left; 
}

/* TYPED IN EFFECT */

#hero-title::after {
  content: "|";
  display: inline-block;
  margin-left: 4px;
  color: #9dc2ff;
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* MAIN SECTION */

.hero h1 {
    color: white;
    font-family: "Space Grotesk", sans-serif;   
    font-weight: 500;
    font-size: 64px;
    margin-top: 10px;
}

.hero p {
    color: #ABB6C3;
    font-family: "Space Grotesk", sans-serif;
    font-weight: lighter;
    width: 462px;
    margin-top: -25px;
}

.experience-btn, .resume-btn2 {
    margin-top: 16px;
    margin-right: 8px;
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 500;
}

.resume-btn2 {
    background-color: white;
}

.experience-btn {
    color: white;
    background-color: #1f2839;
}

.experience-btn a {
  color: white;
}

.experience-btn:hover {
    background-color: #303c56;
}

.resume-btn2:hover {
    background-color: #9dc2ff;
}

.hero .buttons button:hover {
    cursor: pointer;
    transition: 0.25s;
}


/* ICONS */

.icons {
  margin-top: 36px;
}

.icons a {
  margin-right: 15px;
  color: white;         
  font-size: 28px;      
  text-decoration: none;
}

.icons a:hover {
  color: #9dc2ff;       
  transition-duration: 0.25s;
}

/* ARROW */

.scroll-down {
  margin-top: 122px;
  text-align: left;
}

.scroll-down i {
  font-size: 32px;
  color: #9dc2ff;
  animation: bounce 1.5s infinite;
  cursor: pointer;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(20px); }
}

/* STARS */

.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0; 
}

.stars canvas {
  width: 100%;
  height: 100%;
  display: block;
}

main {
  position: relative;
  z-index: 1;
}


/* ************ */
/* ABOUT ME SECTION */
/* ************ */

.about {
    max-width: 1000px;
    margin: 124px auto -16px;
    color: white;
}

.about h2 {
    margin: 228px 0 24px; 
    font: 700 28px/1.2 "Space Grotesk", sans-serif; 
}

.about p {
    color: #ABB6C3;
    font-family: "Space Grotesk", sans-serif;
}

/* ************ */
/* EDUCATION SECTION */
/* ************ */

.education { 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 56px 20px; 
    color:#fff; }


.education h2 { 
    margin: 0 0 24px; 
    font: 700 28px/1.2 "Space Grotesk", sans-serif; 
}

.timeline {
  position: relative;
  margin-left: 24px;      
  padding-left: 28px;    
}
.timeline::before {
  content: "";
  position: absolute;
  left: 12px;            
  top: 6px; bottom: 6px;
  width: 2px;
  background: #2b3442;    
}

.tl-item { 
    position: relative; 
    margin-bottom: 18px; 
}


.tl-dot {
  position: absolute;
  left: -4px;             
  top: 22px;              
  width: 14px; height: 14px;
  background: #9dc2ff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #121721; 
}

.tl-card {
  display: flex; 
  align-items: flex-start; 
  gap: 14px;
  background: #1b222c;
  border: 1px solid #243346;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,.25) inset;
}
.tl-card:hover { border-color:#355075; }

.tl-logo {
  width: 48px; 
  height: 48px; 
  border-radius: 50%; 
  object-fit: cover;
  background: transparent;
}

.tl-card h3 {
  margin: 0 0 4px;
  font: 600 18px/1.2 "Space Grotesk", sans-serif;
}
.meta {
  margin: 0;
  color: #aab6c3;
  font: 400 14px/1.5 "Space Grotesk", sans-serif;
}

.hs-honours {
    color: #aab6c3;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 200;
    font-size: 14px;
}

/* responsive */
@media (max-width: 640px){
  .tl-card { padding: 14px; }
  .tl-card h3 { font-size: 16px; }
  .meta { font-size: 13px; }
}

/* ************ */
/* SKILLS SECTION */
/* ************ */

.skills {
    max-width: 1000px;
    margin: -18px auto;
}

.skills h2 {
    color: white;
    margin: 0 0 24px; 
    font: 700 28px/1.2 "Space Grotesk", sans-serif; 
}

.skills ul {
    color: white;
    font-family: "Space Grotesk", sans-serif;
    margin-left: -42px;
}

.skills ul li {
    margin-right: 32px;
    background-color: #1b222c;
    padding: 8px 25px;
    border-radius: 20px;
    border: 1px solid #243346;
}

.skills ul li:hover {
    border-color: #355075;
}

/* ************ */
/* PROJECTS SECTION */
/* ************ */

.projects {
  max-width: 1000px;
  margin: 0 auto;
  padding: 56px 20px;
}

.projects h2 {
    color: white;
    margin: 0 0 24px; 
    font: 700 28px/1.2 "Space Grotesk", sans-serif; 
}

.projects .tech-used {
  margin-left: -40px;
}

.projects .tech-used ul li {
  color: white;
  background-color: #1e2a39;
  border: 1px solid #355075;
  border-radius: 10px;
  padding: 3px 10px;
  margin-top: 10px;
}

/* Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 22px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Card */
.project-card {
  background: #1b222c;               
  border: 1px solid #243346;
  border-radius: 14px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: #355075;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}

/* Make whole card clickable */
.card-link { display:block; color: inherit; text-decoration: none; }

/* Image */
.project-card .thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;                
  object-fit: cover;
}

/* Text block */
.project-card .meta {    
  display: flex;
  flex-direction: column;       
  padding: 18px 18px 54px;
  height: 100%;
}
.project-card .meta h3 {
  margin: 0 0 8px;
  margin-bottom: -10px;
  font: 700 20px/1.2 "Space Grotesk", sans-serif;
  color: #ffffff;
}
.project-card .meta p {
  margin: 0;
  font: 400 14px/1.6 "Space Grotesk", sans-serif;
  color: #aab6c3;
}

.project-icons {
  position: absolute;
  bottom: 14px;
  margin-left: -8px;
  display: flex;
  gap: 10px;
}

.project-icons a {
  color: #496b9b;
  font-size: 22px;
}

 

.project-icons a:hover {
  color: #79a2db;
}



/* Responsive */
@media (max-width: 1000px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .projects-grid { grid-template-columns: 1fr; }
}

/* ************ */
/* PHOTO BUTTON */
/* ************ */

.photo-btn {
    color: white;
    background-color: #1f2839;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 300;
    font-size: 20px;
    border: none;
    margin: 0 auto;
    margin-bottom: 72px;
    padding: 20px 398px;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.photo-btn:hover {
    background-color: #303c56;
    cursor: pointer;
}

/* ************ */
/* CONTACT SECTION */
/* ************ */

.contact {
  max-width: 1000px;          
  margin: -72px auto;
  padding: 56px 20px;
}

.contact h2 {
    color: white;
    margin: 0 0 24px; 
    font: 700 28px/1.2 "Space Grotesk", sans-serif; 
}

.contact-card {
  background: #1b222c;
  border: 1px solid #243346;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 6px 18px rgba(0,0,0,.25) inset;
}

.contact-form { display: grid; gap: 18px; }

.field textarea {
    resize: none;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font: 600 14px/1 "Space Grotesk", sans-serif;
  color: #aab6c3;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #2a3442;
  background: #0f1622;
  color: black;
  font: 400 14px/1.4 "Space Grotesk", sans-serif;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.field input::placeholder,
.field textarea::placeholder { color: #8fa0b3; }

.field input:focus,
.field textarea:focus {
  border-color: #9dc2ff;
  box-shadow: 0 0 0 3px rgba(59,130,246,.2);
}

.btn-primary {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: #9dc2ff;        
  color: #2a3442;
  font: 600 15px/1 "Space Grotesk", sans-serif;
  cursor: pointer;
  transition: background .15s ease, transform .05s ease;
}
.btn-primary:hover { border-color: darkgrey; }
.btn-primary:active { transform: translateY(1px); }

.contact-card,
.field input,
.field textarea {
  max-width: 100%;
  box-sizing: border-box;
}

/* Mobile */
@media (max-width: 640px){
  .contact-card { padding: 16px; }
}

/* ************ */
/* FOOTER SECTION */
/* ************ */

footer {
  text-align: center;
  padding: 24px 0; 
}

footer .icons a {
  margin: 0 10px;  
  font-size: 28px;
  color: white;
}

footer h3 {
    color: white;
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    font-weight: 200;
}

/* ************ */
/* MOBILE OVERRIDES */
/* ************ */


@media (max-width: 768px) {
  .navdiv { 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    padding: 8px 0;
  }
  .navbar ul, .navbar li, .navdiv ul, .navdiv li { 
    display: none !important;  
  }
  .logo a { margin-left: 0; font-size: 18px; }
  .resume-btn { margin: 6px 0 0 0; width: auto; padding: 8px 14px; }
}

@media (max-width: 640px) {
  * {
  box-sizing: border-box;
  }

  body {
    max-width: 100vw;
    overflow-x: hidden;
  }
    
  body { height: auto; }
  img, video { max-width: 100%; height: auto; display: block; }

  .hero, .about, .education, .skills, .projects, .contact, footer { 
    text-align: center; 
  }

  .hero { padding: 48px 16px; }
  .location { margin: 24px auto 0; justify-content: center; }
  .hero h1 { font-size: 36px; margin-top: 8px; }
  .hero p { width: auto; margin: 10px auto 0; font-size: 16px; }
  .icons, .scroll-down { text-align: center; }
  .icons a { font-size: 24px; margin-right: 12px; }
  .scroll-down { margin-top: 48px; }

  /* Shared section box sizing/spacing */
  .about, .education, .skills, .projects, .contact { 
    max-width: 680px; 
    padding: 32px 16px; 
    margin: 40px auto; 
  }

  .timeline { margin: 0; padding: 0; }
  .timeline::before, .tl-dot { display: none; }
  .tl-card { margin: 0 auto 14px; padding: 14px; }
  .tl-card h3 { font-size: 16px; }
  .meta { font-size: 13px; }

  .skills ul { 
    margin: 0; padding: 0; 
    display: flex; flex-wrap: wrap; 
    justify-content: center; gap: 10px; 
  }
  .skills ul li { margin-right: 0; }

  .projects-grid { grid-template-columns: 1fr; }
  .project-card .meta { align-items: center; text-align: center; padding: 14px 14px 48px; }
  .project-card .meta h3 { font-size: 18px; }
  .project-icons { left: 50%; transform: translateX(-50%); bottom: 10px; position: absolute; }

  .photo-btn { width: 100%; padding: 16px; justify-content: center; }

  .contact { margin: 0 auto; }
  .contact-card { padding: 16px; }

  footer .icons a { font-size: 24px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 30px; }
  .icons a { font-size: 22px; }
}

@media (max-width: 768px) {
  .navdiv { 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    padding: 8px 0;
  }
  .navbar ul, .navbar li, .navdiv ul, .navdiv li { 
    display: none !important;  
  }
  .logo a { margin-left: 0; font-size: 18px; }
  .resume-btn { margin: 6px 0 0 0; width: auto; padding: 8px 14px; }
}

@media (max-width: 640px) {
  body { height: auto; }
  img, video { max-width: 100%; height: auto; display: block; }

  .hero, .about, .education, .skills, .projects, .contact, footer { 
    text-align: center; 
  }

  .hero { 
    min-height: calc(100dvh - 96px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 32px 16px 72px;
    margin-bottom: 56px;
  }

  .location { margin: 24px auto 0; justify-content: center; }
  .hero h1 { font-size: 36px; margin-top: 8px; }
  .hero p { width: auto; margin: 10px auto 0; font-size: 16px; }
  .icons, .scroll-down { text-align: center; }
  .icons a { font-size: 24px; margin-right: 12px; }
  .scroll-down { margin-top: 48px; }

  .about, .education, .skills, .projects, .contact { 
    max-width: 680px; 
    padding: 32px 16px; 
    margin: 40px auto; 
  }

  .timeline { margin: 0; padding: 0; }
  .timeline::before, .tl-dot { display: none; }
  .tl-card { margin: 0 auto 14px; padding: 14px; }
  .tl-card h3 { font-size: 16px; }
  .meta { font-size: 13px; }

  .skills ul { 
    margin: 0; padding: 0; 
    display: flex; flex-wrap: wrap; 
    justify-content: center; gap: 10px; 
  }
  .skills ul li { margin-right: 0; }

  .projects-grid { grid-template-columns: 1fr; }
  .project-card .meta { align-items: center; text-align: center; padding: 14px 14px 48px; }
  .project-card .meta h3 { font-size: 18px; }
  .project-icons { left: 50%; transform: translateX(-50%); bottom: 10px; position: absolute; }

  .photo-btn { 
  width: auto; 
  display: block; 
  padding: 12px 24px; 
  margin: 16px auto 0; 
  text-align: center; 
}

  .contact { margin: 0 auto; }
  .contact-card { padding: 16px; }

  footer .icons a { font-size: 24px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 30px; }
  .icons a { font-size: 22px; }
}

