/* ============================================================
   FONTS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');


/* ============================================================
   BASE
   ============================================================ */

html {
  -webkit-font-smoothing: antialiased;
}

html,
body {
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-style: normal;
  font-weight: normal;
  overflow-x: hidden;
}

*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

a {
  color: #757557;
  transition: 0.5s;
  text-decoration: none !important;
}

a:hover,
a:active,
a:focus {
  color: #000000;
  outline: none;
}


/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-style: normal;
  font-weight: bold;
  letter-spacing: 0px;
}

h1 {
  font-size: 18px;
}

h2 {
  color: #2b2b2b;
  font-size: 40px;
  line-height: 52px;
  margin-top: 0px;
  margin-bottom: 0px;
}

h4 {
  color: #353535;
  font-size: 20px;
}

p {
  color: #878787;
  font-size: 16px;
  font-weight: normal;
  line-height: 25px;
  letter-spacing: 0.2px;
}

.white-color {
  color: #f0f0f0;
}

.bg-grey {
  background: #2b2b2b !important;
}

.bg-grey .fa {
  color: #d5b7b7;
}


/* ============================================================
   LAYOUT
   ============================================================ */

.parallax-section {
  background-attachment: fixed !important;
  background-size: cover !important;
}

.section-title {
  margin: 0;
  padding-bottom: 32px;
}

#service,
#about,
#work,
#contact,
footer {
  position: relative;
  padding-top: 80px;
  padding-bottom: 80px;
}

#service,
#work {
  background: #c3dde21b;
  text-align: center;
}


/* ============================================================
   COMPONENTS
   ============================================================ */

/* --- Preloader --- */

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
  background: none repeat scroll 0 0 #ffffff;
}

.spinner {
  border: 1px solid transparent;
  border-radius: 5px;
  position: relative;
}

.spinner:before {
  content: '';
  box-sizing: border-box;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 65px;
  height: 65px;
  margin-top: -10px;
  margin-left: -10px;
  border-radius: 50%;
  border: 2px solid #454545;
  border-top-color: #ffffff;
  animation: spinner .9s linear infinite;
}

@keyframes spinner {
  to { transform: rotate(360deg); }
}


/* --- Buttons --- */

.section-btn {
  position: relative;
  background: rgba(3, 194, 252, 0.064);
  border: 1px solid rgba(255, 255, 255, 0.247);
  border-radius: 50px;
  color: hsl(0, 0%, 100%);
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1.5px;
  padding: 18px 32px;
  margin-top: 10px;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  transition: all ease-in-out 0.4s;
  overflow: hidden;
}

.section-btn:before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  height: 40%;
  border-radius: 50px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.section-btn:focus,
.section-btn:hover {
  background: rgba(114, 239, 220, 0);
  border-color: white;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(255, 255, 255, 0.674), inset 0 3px 6px rgba(255, 255, 255, 0.4);
}


/* --- Glass Card --- */

.glass-card {
  position: relative;
  max-width: 900px;
  padding: 28px 32px;
  border-radius: 20px;
  background: rgba(209, 235, 236, 0.25);
  border-color: rgba(27, 64, 79, 0.814);
  background-image: linear-gradient(145deg, rgba(255, 255, 255, 0.4), rgba(180, 220, 255, 0.2));
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(15px) saturate(150%);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, background .1s ease;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0) 42%),
    radial-gradient(120% 60% at 10% -10%, rgba(197, 218, 223, 0.511), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.glass-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 22px;
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.glass-card h2 {
  margin-top: 0;
  letter-spacing: .5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.glass-card a {
  color: #0fb9d3;
  text-decoration-color: rgba(15, 185, 211, 0.35);
}

.glass-card a:hover {
  text-decoration-color: rgba(15, 185, 211, 0.7);
}


/* --- Social Icons --- */

.social-icon {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 12px;
}

.social-icon li a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 22px;
  color: #0086a8;
  text-decoration: none;
  background: linear-gradient(145deg, rgba(60, 59, 59, 0), rgba(66, 66, 66, 0.284));
  border: 0.5px solid rgba(255, 255, 255, 0.597);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 4px 3px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.social-icon li a:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.906), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  text-shadow: 0 5px 5px rgba(255, 255, 255, 0.305);
  color: white;
  border: 1px solid white;
}


/* --- Image Containers (Projects) --- */

.square-image-container {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s ease;
  margin-top: 5%;
  margin-bottom: 5%;
}

.square-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.square-image-container:hover .square-image-overlay {
  opacity: 1;
}

.square-image-overlay .gif-overlay {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.static-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.square-image-container:hover .static-image {
  opacity: 0;
}


/* --- Bullet Points --- */

.bullet {
  position: relative;
  padding-left: 20px;
}

.bullet::before {
  content: '•';
  position: absolute;
  left: 0;
  color: black;
}


/* ============================================================
   SECTIONS
   ============================================================ */

/* --- Home --- */

#bg-ripple {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

#home {
  background:
    linear-gradient(to bottom, rgba(2, 148, 206, 0.278), rgba(6, 62, 147, 0.087)),
    url('../images/backgrounds/bg.jpg') r;
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: center;
  height: 100vh;
  position: relative;
  text-align: right;
}

#home .home-thumb {
  position: relative;
  z-index: 2;
}

#home .bg-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(36, 44, 54, 0.45), rgba(0, 0, 0, 0.1));
}

.front-page-caption {
  color: #fff;
  font-style: normal;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.741);
  font-size: clamp(14px, 3vw, 18px);
  line-height: 1.4;
}

.typewriter {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow: hidden;
  color: white;
  font-size: 40px;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.photo-label {
  position: absolute;
  bottom: 20px;
  right: 24px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  color: #fff;
  font-size: 13px;
  padding: 6px 14px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}


/* --- About --- */

#about {
  padding-top: 100px;
}

.about-image-thumb img {
  border-radius: 50%;
  margin-bottom: 22px;
  border: 3px solid rgba(100, 160, 180, 0.6);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.about-image-thumb .social-icon li a {
  background: #f0f0f0;
}

.about-thumb {
  padding: 32px 12px;
}

.about-thumb p {
  padding: 2px 0;
}


/* --- Experience --- */

.experience-row h3 {
  color: #292d33;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: bold;
  font-size: 24px;
}

.experience-row h4 {
  color: #292d33;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: bold;
  font-size: 20px;
}

.experience-row .date {
  font-style: italic;
  color: #777;
}

.experience-row .tech-stack {
  font-style: normal;
  font-family: monospace;
  color: #777;
}

.experience-row p {
  margin-bottom: 0;
}

.experience .row {
  display: flex;
  align-items: flex-start;
}

.company-logo {
  margin-top: 13%;
  width: 100%;
}


/* --- Projects / Coursework --- */

.work-thumb {
  margin: 22px 0 12px 0;
  padding: 0;
  overflow: hidden;
  position: relative;
  text-align: left;
}

.work-thumb img {
  border-radius: 5px;
}

.work-thumb h2 {
  font-size: 25px;
}

.work-thumb-overlay {
  position: absolute;
  background: #7682cc;
  border-radius: 6px;
  cursor: crosshair;
  opacity: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  transition: all ease-in-out 0.4s;
}

.work-thumb:hover .work-thumb-overlay {
  opacity: 1;
}

.semester {
  margin-bottom: 20px;
}

.course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.course {
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}


/* --- Service (currently hidden) --- */

.service-thumb {
  border-radius: 20px;
  padding: 42px 22px;
  cursor: crosshair;
  position: relative;
  top: 0;
  backdrop-filter: blur(15px) saturate(150%);
  -webkit-backdrop-filter: blur(15px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-color: rgba(57, 47, 47, 0.19);
  background-image: linear-gradient(145deg, rgba(255, 255, 255, 0.082), rgba(180, 220, 255, 0.2));
  transition: all 0.4s ease-in-out;
}

.service-thumb:hover {
  top: -10px;
  box-shadow: 0 12px 30px rgba(60, 59, 59, 0.448), inset 0 2px 2px rgba(255, 255, 255, 0.8);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.96);
}

.service-thumb h4 {
  padding-bottom: 5px;
  color: #0a1a2f;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.4);
}

.service-thumb .fa {
  font-size: 80px;
  text-align: center;
  margin-top: 32px;
  margin-bottom: 22px;
  color: #0086a8;
}


/* --- Contact --- */

.contact-info .fa {
  padding-right: 5px;
}

#contact .form-control {
  border: none;
  border-bottom: 2px solid #f0f0f0;
  border-radius: 0px;
  box-shadow: none;
  font-size: 18px;
  margin-top: 10px;
  margin-bottom: 10px;
  transition: all ease-in-out 0.4s;
}

#contact .form-control:focus {
  border-bottom-color: #999999;
}

#contact input {
  height: 55px;
}

#contact button#submit {
  background: #2b2b2b;
  border: none;
  border-radius: 50px;
  color: #ffffff;
  height: 50px;
  margin-top: 24px;
}

#contact button#submit:hover {
  background: #7682cc;
  color: #ffffff;
}


/* --- Footer --- */

footer {
  background-image: url('../images/backgrounds/home-bg1.jpg');
  text-align: center;
  padding: 30px 0;
}

footer p {
  padding-bottom: 16px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (prefers-reduced-transparency: reduce) {
  .glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .social-icon li a::after {
    display: none;
  }

  .social-icon li a:hover {
    transform: none;
  }
}

@media (min-width: 992px) {
  #about .row.about-flex {
    display: flex;
    align-items: center;
  }

  #about .row.about-flex::before,
  #about .row.about-flex::after {
    display: none !important;
    content: none !important;
  }
}

@media (max-width: 980px) {
  #home {
    height: 55vh;
  }

  .service-thumb {
    margin-top: 12px;
    margin-bottom: 22px;
  }

  .contact-info {
    margin-top: 22px;
  }
}

@media (max-width: 768px) {
  #home {
    height: 85vh;
  }
}

@media (max-width: 580px) {
  h1 {
    font-size: 29px;
  }

  h2 {
    font-size: 23px;
  }

  #home {
    height: 95vh;
  }

  .contact-info {
    margin-top: 42px;
  }
}

@media (max-width: 500px) {
  .home-thumb h1 {
    font-size: 50px;
    white-space: normal;
    word-break: break-word;
  }

  .home-thumb p {
    font-size: 30px;
  }

  .home-thumb a {
    font-size: 15px;
  }
}

@media (max-width: 320px) {
  #home {
    height: 125vh;
  }
}
