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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* ==== Background ==== */
body {
  min-height: 100vh;
  background: url("background.png") no-repeat center center / cover;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 5%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}

/* ==== Main Container ==== */
.container {
  width: 100%;
  max-width: 1200px;
  min-height: 90vh;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  backdrop-filter: blur(30px);
  padding-bottom: 60px;
  position: relative;
  animation: zoom-in 1s ease forwards;
}

@keyframes zoom-in {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ==== Header ==== */
header {
  width: 100%;
  padding: 25px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 30px 30px 0 0;
  backdrop-filter: blur(10px);
  z-index: 10;
}

.logo {
  font-size: 25px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

/* ==== Navbar ==== */
.navbar {
  display: flex;
  gap: 30px;
}

.navbar a {
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: 0.4s;
}

.navbar a:hover,
.navbar a.active {
  border-color: #fff;
}

/* ==== Language Switch ==== */
.lang-switch {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
  margin-right: 40px;
}

.lang-btn {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
}

.lang-btn:hover,
.lang-btn.active {
  background: #fff;
  color: #333;
  box-shadow: 0 0 8px #fff;
}

/* ==== Sections ==== */
.home, .page-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 50px;
  padding: 60px 5%;
  color: #fff;
}

.page-section {
  flex-direction: column;
  text-align: left;
}

.page-section h2 {
  font-size: 36px;
  margin-bottom: 15px;
  text-align: center;
}

.page-section p {
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
  max-width: 850px;
}

/* ==== Home Section ==== */
.home-detail {
  max-width: 550px;
}

.home-detail h1 {
  font-size: 55px;
  line-height: 1.1;
}

.home-detail h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.home-detail p {
  margin: 10px 0 25px;
  font-size: 16px;
  line-height: 1.6;
}

/* ==== Buttons ==== */
.btn {
  display: inline-block;
  padding: 10px 30px;
  background: #fff;
  border: 2px solid #fff;
  border-radius: 40px;
  box-shadow: 0 0 10px #fff;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: 0.4s;
}

.btn:hover {
  background: transparent;
  color: #fff;
  box-shadow: none;
}

/* ==== Social Icons ==== */
.download-social {
  display: flex;
  align-items: center;
}

.social-icons {
  margin-left: 20px;
}

.social-icons a {
  display: inline-flex;
  padding: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 20px;
  color: #fff;
  text-decoration: none;
  margin: 0 8px;
  transition: 0.4s;
}

.social-icons a:hover {
  background: #fff;
  box-shadow: 0 0 10px #fff;
  color: #333;
}

/* ==== Profile Image ==== */
.home-img .img-box {
  position: relative;
  width: 28vw;
  height: 28vw;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 20px #fff;
  overflow: hidden;
}

.home-img .img-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ==== Portfolio Categories ==== */
.portfolio-category {
  margin-top: 60px;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  color: #fff;
  border-bottom: 2px solid rgba(255,255,255,0.3);
  padding-bottom: 10px;
  width: 60%;
  margin-left: auto;
  margin-right: auto;
}

/* ==== Portfolio Grid ==== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.project-card {
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  color: #fff;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(255,255,255,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 480px;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px rgba(255,255,255,0.25);
}

.project-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 600;
}

.project-card p {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 20px;
  min-height: 80px;
}

/* ==== Media inside cards ==== */
.preview-img,
.preview-video {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
  outline: none;
}

/* ==== UVIC + Console Screenshots ==== */
.uvic-img {
  width: 70%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* ==== Contact Page ==== */
.contact-section {
  text-align: center;
}

.contact-info {
  margin: 30px 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.contact-card i {
  font-size: 1.8rem;
  color: #fff;
}

.contact-card a,
.contact-card span {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}

.contact-card a:hover {
  color: #f0f0f0;
}

/* ==== Contact Form ==== */
.contact-form {
  margin: 40px auto 0;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 10px;
  border: none;
  outline: none;
  font-size: 15px;
  color: #333;
}

.contact-form button {
  align-self: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  transform: scale(1.05);
}
/* === UVIC ERD Full-Width Responsive Image === */
.uvic-erd-img {
  display: block;
  margin: 25px auto;
  width: 100%;
  max-width: 1100px;  /* Adjust for your desired limit */
  height: auto;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}
/* === VBA Project Image Styling === */
.vba-img {
  display: block;
  margin: 25px auto;
  width: 100%;
  max-width: 1000px;  /* adjust if you want it a bit wider or narrower */
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
  object-fit: contain;
}

/* Mobile adjustment */
@media (max-width: 768px) {
  .vba-img {
    max-width: 95%;
  }
}

/* ==== Responsive ==== */
@media (max-width: 900px) {
  .home {
    flex-direction: column-reverse;
    text-align: center;
  }

  .home-detail {
    max-width: 100%;
  }

  .home-img .img-box {
    width: 60vw;
    height: 60vw;
  }

  .navbar {
    gap: 15px;
  }

  .navbar a {
    font-size: 16px;
  }

  .project-card {
    min-height: 420px;
  }
}
