body {
  margin: 0;
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
  background: linear-gradient(135deg, #151a23, #222b37 100%);
  color: #fff;
}

/* HERO SECTION: Full-width, top half */
.hero-bg {
  position: relative;
  width: 100vw;
  min-height: 60vh;
  height: 50vh;
  max-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0 0 2.5rem 2.5rem;
  background:
    linear-gradient(to bottom, rgba(22,30,44,0.30) 0%, rgba(22,30,44,0.88) 100%),
    url('powerplant.png') center center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 700px;
  padding: 40px 20px 32px 20px;
  text-align: center;
  margin-top: -0px; /* tweak for balance */
}

/* Profile picture styling */
.profile-pic {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #6ad8ff;
  box-shadow: 0 0 36px #23d5fa66;
  margin-bottom: 1.7rem;
  background: #24344a;
}

/* Name, tagline */
.hero-name {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 0.7rem 0;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 2px 24px #0007;
}
.tagline {
  font-size: 1.25rem;
  color: #d9f7fe;
  margin-bottom: 2.3rem;
  text-shadow: 0 1px 10px #2229;
}

/* Buttons row */
.home-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 0.5rem;
}

.home-btn {
  background: linear-gradient(90deg, #35a2fe 10%, #5ffffb 100%);
  color: #113244;
  font-weight: 700;
  padding: 1.05rem 2.4rem;
  border-radius: 1.3rem;
  font-size: 1.27rem;
  text-decoration: none;
  box-shadow: 0 2px 14px #21d7ff88;
  border: none;
  transition: background 0.16s, color 0.13s, transform 0.11s, box-shadow 0.14s;
  margin-bottom: 0.4rem;
  outline: none;
  display: inline-block;
}
.home-btn:hover,
.home-btn:focus {
  background: linear-gradient(90deg, #5ffffb 10%, #35a2fe 100%);
  color: #fff;
  box-shadow: 0 6px 26px #32c7fa55;
  transform: scale(1.055);
}

/* Responsive: stack buttons on mobile */
@media (max-width: 700px) {
  .hero-content {
    margin-top: 0;
    padding: 32px 7vw 28px 7vw;
  }
  .home-links {
    flex-direction: column;
    gap: 1.2rem;
  }
  .profile-pic {
    width: 120px;
    height: 120px;
  }
  .hero-name {
    font-size: 2.1rem;
  }
}
.about-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 3rem;
  margin-bottom: 4rem;
}

.about-card {
  background: linear-gradient(135deg, #222b37 70%, #1a2230 100%);
  box-shadow: 0 4px 32px #1ed3fa22;
  border-radius: 2rem;
  padding: 2.5rem 2.8rem;
  max-width: 680px;
  width: 100%;
  text-align: center;
  animation: fadeIn 1.1s ease;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(30px);}
  100% { opacity: 1; transform: translateY(0);}
}

.about-title {
  font-size: 2.3rem;
  font-weight: 700;
  background: linear-gradient(90deg, #5ffffb 15%, #7fd0fa 85%);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  margin-bottom: 1.6rem;
  letter-spacing: 0.04em;
}

.about-desc {
  font-size: 1.23rem;
  line-height: 1.8;
  color: #eaf5fb;
  margin: 0 auto;
  max-width: 600px;
  font-weight: 500;
  text-align: center;
}
.resume-container {
  max-width: 850px;
  margin: 3rem auto 2.5rem auto;
  background: #222b37e6;
  border-radius: 2.2rem;
  padding: 2.7rem 2.2rem;
  box-shadow: 0 8px 36px #1ed3fa29;
  text-align: center;
}

.resume-title {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 1.3rem;
  color: #5ffffb;
}

.resume-download-btn {
  display: inline-block;
  background: linear-gradient(90deg, #35a2fe 15%, #5ffffb 90%);
  color: #182b44;
  font-weight: 600;
  padding: 0.8rem 2.1rem;
  border-radius: 1.3rem;
  font-size: 1.12rem;
  text-decoration: none;
  box-shadow: 0 2px 16px #1ed3fa55;
  margin-bottom: 1.7rem;
  margin-top: 0.7rem;
  transition: background 0.2s, color 0.2s, transform 0.13s;
}
.resume-download-btn:hover {
  background: linear-gradient(90deg, #5ffffb 10%, #35a2fe 90%);
  color: #fff;
  transform: scale(1.05);
}

.resume-viewer {
  margin-top: 2.2rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 18px #1ed3fa13;
}
.resume-container {
  max-width: 850px;
  margin: 3rem auto 2.5rem auto;
  background: #222b37e6;
  border-radius: 2.2rem;
  padding: 2.7rem 2.2rem;
  box-shadow: 0 8px 36px #1ed3fa29;
  text-align: center;
}

.resume-title {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 1.3rem;
  color: #5ffffb;
}

.resume-download-btn {
  display: inline-block;
  background: linear-gradient(90deg, #35a2fe 15%, #5ffffb 90%);
  color: #182b44;
  font-weight: 600;
  padding: 0.8rem 2.1rem;
  border-radius: 1.3rem;
  font-size: 1.12rem;
  text-decoration: none;
  box-shadow: 0 2px 16px #1ed3fa55;
  margin-bottom: 1.7rem;
  margin-top: 0.7rem;
  transition: background 0.2s, color 0.2s, transform 0.13s;
}
.site-nav {
  width: 100%;
  background: #161e2cdd;
  padding: 0;
  margin-bottom: 2rem;
  box-shadow: 0 2px 16px #1ed3fa22;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0;
  padding: 0.7rem 2.2rem 0.7rem 2.2rem;
  gap: 2.1rem;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  color: #f6faff;
  text-decoration: none;
  font-size: 1.17rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.25rem 1.2rem;
  border-radius: 0.8rem;
  transition: background 0.18s, color 0.13s;
}

.nav-links a.active,
.nav-links a:hover {
  background: linear-gradient(90deg, #35a2fe 10%, #5ffffb 100%);
  color: #112644;
}
.footer {
  background: #181e29;
  padding: 3.1rem 0 1.3rem 0;
  text-align: center;
  color: #b3e6fc;
  border-top: 2px solid #222b37;
  margin-top: 4rem;
  box-shadow: 0 -1px 24px #21d7ff15;
}

.footer-top {
  margin-bottom: 1.2rem;
}

.footer-title {
  font-size: 2.3rem;
  font-weight: 500;
  color: #e9fcff;
  margin-bottom: 0.9rem;
  letter-spacing: 0.01em;
}

.footer-socials {
  margin-bottom: 1.4rem;
}

.footer-socials a {
  display: inline-block;
  margin: 0 1.3rem;
  opacity: 0.93;
  transition: opacity 0.2s, transform 0.18s;
  color: #38a1fa;
}

.footer-socials a:hover {
  opacity: 1;
  transform: translateY(-5px) scale(1.15);
  color: #5ffffb;
}

.footer-socials svg {
  width: 2.7rem;
  height: 2.7rem;
  vertical-align: middle;
  filter: drop-shadow(0 3px 16px #38a1fa66);
  transition: filter 0.2s;
}

.footer-bottom {
  color: #81b7d8;
  font-size: 1rem;
  opacity: 0.82;
  letter-spacing: 0.01em;
  margin-top: 0.3rem;
}
.projects-hero {
  padding: 3.5rem 2rem 1.8rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #181e29 80%, #24304c 100%);
  border-radius: 0 0 2rem 2rem;
  box-shadow: 0 8px 48px #193b6644;
}

.projects-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.1rem;
  background: linear-gradient(90deg, #7fd0fa, #b6ffe0 80%);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

.projects-lead {
  font-size: 1.15rem;
  color: #c3e8f7;
  margin-bottom: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* Project Cards Grid */
.projects-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  justify-content: center;
  margin: 3rem auto 2.7rem auto;
  max-width: 1200px;
  padding: 0 2rem 2.5rem 2rem;
}

/* Each Project Card */
.project-card {
  background: rgba(32,40,54,0.97);
  box-shadow: 0 4px 32px #2fd5ff23;
  border-radius: 1.5rem;
  padding: 2rem 1.6rem 1.6rem 1.6rem;
  flex: 1 1 340px;
  min-width: 320px;
  max-width: 380px;
  transition: transform 0.13s, box-shadow 0.18s;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1.7rem;
  position: relative;
}

.project-card h2 {
  font-size: 1.23rem;
  font-weight: 700;
  color: #38a1fa;
  margin: 0 0 0.9rem 0;
  letter-spacing: 0.03em;
}

.project-card p {
  color: #e5faff;
  font-size: 1.04rem;
  line-height: 1.6;
  margin: 0 0 0.7rem 0;
}

.project-tags {
  display: inline-block;
  color: #7fd0fa;
  margin: 0.5rem 0 0 0;
  font-size: 0.97rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.project-link {
  align-self: flex-start;
  color: #31caff;
  font-weight: 600;
  text-decoration: none;
  margin-top: 1.1rem;
  transition: color 0.18s, background 0.16s;
  font-size: 1.03rem;
  border-radius: 0.6rem;
  padding: 0.38rem 1.15rem;
  background: #181e2944;
  box-shadow: 0 1px 8px #38a1fa33;
}
.project-link:hover {
  color: #fff;
  background: #32c7fa;
}

.project-card:hover {
  transform: translateY(-7px) scale(1.03) rotate(-1deg);
  box-shadow: 0 14px 48px #38a1fa44;
}

/* Video styling for any video in a card */
.project-card video {
  width: 100%;
  max-width: 340px;
  display: block;
  margin: 0.8rem auto 0.3rem auto;
  border-radius: 1.2rem;
  background: #141e2b;
  box-shadow: 0 4px 32px #38a1fa33;
  outline: none;
}

.project-card video:focus {
  box-shadow: 0 8px 36px #1ed3fa99;
}

/* Responsive adjustments */
@media (max-width: 1000px) {
  .projects-list {
    gap: 1.2rem;
    padding: 0 1rem 2rem 1rem;
  }
  .project-card {
    min-width: 90vw;
    max-width: 96vw;
    margin-bottom: 2rem;
    align-items: stretch;
  }
}

@media (max-width: 700px) {
  .projects-hero {
    padding: 2.4rem 0.5rem 1.1rem 0.5rem;
    border-radius: 0 0 1.1rem 1.1rem;
  }
  .projects-title {
    font-size: 1.6rem;
  }
  .projects-list {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }
  .project-card {
    min-width: 0;
    max-width: 98vw;
    padding: 1.2rem 0.7rem 1.1rem 0.7rem;
  }
  .project-card video {
    max-width: 100vw;
    min-width: 0;
  }
}
/* Project detail hero (top title/desc area) */
.project-detail-hero {
  padding: 4rem 2vw 2rem 2vw;
  text-align: center;
  background: linear-gradient(120deg, #181e29 85%, #28374a 100%);
  border-radius: 0 0 2.2rem 2.2rem;
  box-shadow: 0 8px 44px #1ed3fa18;
  margin-bottom: 2.7rem;
}

.project-detail-hero .projects-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1.1rem;
  background: linear-gradient(90deg, #27e5fd, #6fd7f6 80%);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

.project-detail-hero .projects-lead {
  color: #9ee6fb;
  font-size: 1.22rem;
  max-width: 580px;
  margin: 0 auto 0.5rem auto;
  line-height: 1.55;
}

/* Main project content */
.project-detail-content {
  max-width: 720px;
  margin: 0 auto 2.7rem auto;
  padding: 2.8rem 2.3rem 2rem 2.3rem;
  background: #212a3bda;
  border-radius: 2.2rem;
  box-shadow: 0 4px 38px #1ed3fa21;
}

.project-detail-content h2 {
  font-size: 1.5rem;
  color: #25c3fa;
  font-weight: 800;
  margin-top: 0.5rem;
  margin-bottom: 0.7rem;
  letter-spacing: 0.01em;
}

.project-detail-content h3 {
  color: #7fd0fa;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 2.3rem;
  margin-bottom: 0.4rem;
}

.project-detail-content ul {
  margin-bottom: 1.2rem;
  margin-left: 1.3em;
  color: #c7eafd;
  font-size: 1.08rem;
}

.project-detail-content p {
  color: #e4f8ff;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.project-links {
  margin-top: 2.2rem;
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.project-link {
  align-self: flex-start;
  color: #1ed3fa;
  background: #181e2944;
  font-weight: 700;
  border-radius: 0.9rem;
  padding: 0.6rem 1.3rem;
  text-decoration: none;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  box-shadow: 0 1px 8px #2fd5ff28;
  transition: background 0.17s, color 0.14s, transform 0.12s;
}
.project-link:hover {
  background: #1ed3fa;
  color: #181e29;
  transform: scale(1.06);
}

/* Project media section (img/video) */
.project-media {
  margin: 2.3rem 0 2rem 0;
  text-align: center;
}
.project-media img,
.project-media video {
  max-width: 92%;
  border-radius: 1.2rem;
  box-shadow: 0 4px 32px #29b5fc28;
  margin: 0 auto;
  display: block;
}

.project-media p {
  color: #7fd0fa;
  font-size: 1rem;
  margin-top: 0.6em;
}

/* Responsive: Stack content on small screens */
@media (max-width: 800px) {
  .project-detail-content {
    padding: 1.5rem 0.5rem;
  }
  .project-detail-hero {
    padding: 2.3rem 3vw 1.1rem 3vw;
  }
  .project-media img,
  .project-media video {
    max-width: 99%;
  }
}

/* Optional: improve code display */
.project-detail-content code {
  background: #151e2b;
  color: #24e4fd;
  font-size: 1rem;
  border-radius: 0.3rem;
  padding: 0.18em 0.43em;
}
.project-link {
  align-self: flex-start;
  color: #31caff;
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.7rem;
  transition: color 0.18s, background 0.14s;
  font-size: 1.02rem;
  border-radius: 0.6rem;
  padding: 0.35rem 1.1rem;
  background: #181e2944;
  box-shadow: 0 2px 12px #0082e633;
  border: none;
  display: inline-block;
}
.project-link:hover {
  color: #fff;
  background: #32c7fa;
}
/* --- MOBILE HERO SECTION --- */
@media (max-width: 700px) {
  .hero-bg {
    min-height: 42vh;
    height: 36vh;
    max-height: 280px;
    border-radius: 0 0 1.3rem 1.3rem;
    background-size: cover;
    background-position: center 30%;
  }
  .hero-content {
    padding: 18px 3vw 10px 3vw;
    max-width: 98vw;
  }
  .profile-pic {
    width: 85px;
    height: 85px;
    margin-bottom: 1rem;
  }
  .hero-name {
    font-size: 1.18rem;
    margin-bottom: 0.4rem;
  }
  .tagline {
    font-size: 0.93rem;
    margin-bottom: 1.2rem;
  }
  .home-links {
    flex-direction: column;
    gap: 1.15rem;
    margin-top: 0.2rem;
  }
  .home-btn {
    font-size: 1.06rem;
    padding: 0.65rem 1.1rem;
    border-radius: 0.9rem;
    margin-bottom: 0.25rem;
    width: 90vw;
    max-width: 330px;
  }
}

/* --- ABOUT & PROJECT CARD RESPONSIVE --- */
@media (max-width: 700px) {
  .about-section {
    margin-top: 1.1rem;
    margin-bottom: 2rem;
  }
  .about-card {
    padding: 1.1rem 1vw;
    font-size: 0.97rem;
    border-radius: 1.2rem;
    max-width: 99vw;
  }
  .about-title {
    font-size: 1.38rem;
    margin-bottom: 1.1rem;
  }
  .about-desc {
    font-size: 0.99rem;
    line-height: 1.5;
    padding: 0 0.5rem;
  }
}

/* --- PROJECTS --- */
@media (max-width: 700px) {
  .projects-hero {
    padding: 1.1rem 0.4rem 0.9rem 0.4rem;
    border-radius: 0 0 0.9rem 0.9rem;
  }
  .projects-title {
    font-size: 1.28rem;
  }
  .projects-list {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0 0.5rem 1.5rem 0.5rem;
  }
  .project-card {
    min-width: 0;
    max-width: 99vw;
    padding: 0.85rem 0.4rem 0.7rem 0.4rem;
    border-radius: 1.1rem;
  }
  .project-card h2 {
    font-size: 1.04rem;
  }
  .project-card p, .project-tags {
    font-size: 0.95rem;
  }
}

/* --- RESUME PAGE --- */
@media (max-width: 700px) {
  .resume-container {
    padding: 1.2rem 0.5rem;
    border-radius: 1.1rem;
    max-width: 99vw;
  }
  .resume-title {
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
  }
  .resume-download-btn {
    font-size: 0.98rem;
    padding: 0.6rem 1.1rem;
    border-radius: 0.9rem;
  }
  .resume-viewer img,
  .resume-viewer iframe {
    width: 97vw;
    max-width: 99vw;
    height: auto;
    border-radius: 0.7rem;
  }
}

/* --- NAV BAR --- */
@media (max-width: 700px) {
  .site-nav {
    padding: 0;
    font-size: 0.91rem;
  }
  .nav-links {
    gap: 0.5rem;
    padding: 0.2rem 1vw 0.2rem 1vw;
  }
  .nav-links a {
    font-size: 0.98rem;
    padding: 0.12rem 0.5rem;
    border-radius: 0.7rem;
  }
}

/* --- FOOTER --- */
@media (max-width: 700px) {
  .footer {
    padding: 1.2rem 0 0.7rem 0;
    font-size: 0.88rem;
  }
  .footer-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  .footer-socials svg {
    width: 1.7rem;
    height: 1.7rem;
  }
}
.project-media-gallery {
  max-width: 850px;
  margin: 2.5rem auto 3.2rem auto;
  background: #202837ee;
  border-radius: 1.7rem;
  box-shadow: 0 2px 22px #1ed3fa19;
  padding: 2rem 2rem 1.3rem 2rem;
  text-align: center;
  animation: fadeIn 1.1s;
}

.gallery-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  justify-content: center;
  margin-bottom: 2.2rem;
}

.gallery-photos img {
  max-width: 240px;
  max-height: 180px;
  border-radius: 1rem;
  box-shadow: 0 2px 18px #1ed3fa28;
  background: #162336;
  object-fit: cover;
  transition: transform 0.15s;
}
.gallery-photos img:hover {
  transform: scale(1.045) rotate(-1deg);
  box-shadow: 0 4px 36px #1ed3fa55;
}

.gallery-video video {
  width: 99%;
  max-width: 420px;
  border-radius: 1.2rem;
  box-shadow: 0 3px 20px #25d4fa24;
  margin: 0 auto 0.7rem auto;
  background: #121f2e;
  display: block;
}
.video-caption {
  color: #7fd0fa;
  font-size: 1.07rem;
  margin-top: 0.5rem;
  margin-bottom: 0.2rem;
}

@media (max-width: 700px) {
  .project-media-gallery {
    padding: 1.1rem 0.5rem 1.1rem 0.5rem;
  }
  .gallery-photos img {
    max-width: 99vw;
    min-width: 0;
    height: auto;
  }
  .gallery-video video {
    max-width: 99vw;
  }
  .gallery-photos {
    gap: 0.8rem;
  }
}
.contact-hero {
  max-width: 700px;
  margin: 3rem auto 3.5rem auto;
  background: #212b37f3;
  border-radius: 2rem;
  padding: 3rem 2rem 2.2rem 2rem;
  text-align: center;
  box-shadow: 0 8px 38px #1ed3fa24;
}
.contact-title {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(90deg, #5ffffb 12%, #7fd0fa 88%);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  margin-bottom: 1.1rem;
}
.contact-lead {
  font-size: 1.21rem;
  color: #b5f4fc;
  margin-bottom: 2.2rem;
  line-height: 1.6;
}
.contact-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3.3rem;
  margin-bottom: 0.7rem;
}
.contact-icons a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #38a1fa;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.18rem;
  transition: color 0.17s, transform 0.13s;
}
.contact-icons a:hover {
  color: #5ffffb;
  transform: translateY(-6px) scale(1.08);
}
.contact-label {
  margin-top: 0.7em;
  font-size: 1.07rem;
  color: #b3e6fc;
  letter-spacing: 0.01em;
  text-align: center;
}
@media (max-width: 700px) {
  .contact-hero {
    padding: 1.3rem 0.5rem 1.3rem 0.5rem;
  }
  .contact-icons {
    gap: 1.5rem;
  }
  .contact-title {
    font-size: 1.6rem;
  }
}
.project-detail-content img {
  max-width: 96%;
  height: auto;
  display: block;
  margin: 1rem auto;
}
