/* ==========================================
   Base Styles
   ========================================== */
* {
  box-sizing: border-box;
}

html {
  text-size-adjust: none;
  -webkit-text-size-adjust: none;
  -moz-text-size-adjust: none;
  -ms-text-size-adjust: none;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   Layout: Main Page
   ========================================== */
#main-content {
  margin: 225px 425px;
  display: flex;
  flex-direction: column;
  gap: 96px;
}

/* ==========================================
   Portfolio Header
   ========================================== */
#portfolio-header {
  display: flex;
  gap: 20px;
  align-items: center;
}

#portfolio-header-image-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-basis: 50%;
  justify-content: center;
  align-items: center;
}

.portfolio-header-image {
  border-radius: 50%;
  width: 220px;
  height: 220px;
  object-fit: cover;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.2s ease forwards, float 6s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(13, 166, 231, 0.5);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.portfolio-header-image:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 0 40px rgb(13, 166, 231, 0.7);
}

#portfolio-header-text-container {
  display: flex;
  flex-direction: column;
  gap: 34px;
  flex-basis: 50%;
}

/* ==========================================
   About Section
   ========================================== */
#about-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-section-content {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

/* ==========================================
   Projects Section
   ========================================== */
#my-work-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.projects-container {
  display: flex;
  gap: 34px 16px;
  flex-wrap: wrap;
}

/* Project Card Styles */
.project-card {
  max-width: calc((100% - 32px) / 3);
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.project-image {
  width: 80%;
  height: 180px;
  object-fit: contain; /* show the full image */
  object-position: center; /* center the image */
  display: block;
  border-radius: 12px;
  margin: 0 auto 15px; /* center horizontally with margin */
  background-color: #ffffff; /* optional: adds a neutral background if image doesn’t fill space */
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}


.project-image:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.project-card-text-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 10px;
}

/* ==========================================
   Project Pages
   ========================================== */
#project-header,
#project-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-header-image,
.gallery-image {
  width: 100%;
  height: auto;
}

.project-details-content {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

/* Project Gallery */
#project-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-gallery-content {
  display: flex;
  flex-wrap: wrap;
  gap: 34px 16px;
}

.gallery-image-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery-image-container.half-width {
  width: calc((100% - 16px) / 2);
}

/* ==========================================
   Buttons (Grow Right + Background + Icon)
   ========================================== */
a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 5px;
  padding: 12px 22px;
  border: none;
  border-radius: 50px;
  background: #000 url("../assets/images/button-bg.jpg") center center / cover no-repeat;
  background-blend-mode: multiply;
  color: #fff !important;
  font-weight: 500;
  text-decoration: none !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s ease;
  will-change: transform, width, padding;
}

/* Background overlay for better readability */
a.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

/* Text styling */
a.button span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.4s ease;
}

/* Sparkle icon */
a.button::after {
  content: "🗂️";
  position: absolute;
  right: 18px;
  transform: translateX(-100px);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 1;
}

/* Hover effects: expand to the right */
a.button:hover {
  background-color: transparent;
  padding-right: 56px; /* grow to the right */
  transform: translateX(10px); /* gentle rightward shift */
  border: none; /* ✅ ensure no border appears */
}

a.button:hover::before {
  opacity: 1; /* fade in overlay */
}

a.button:hover::after {
  opacity: 1;
  transform: translateX(0) translateY(-3px); /* sparkle slides in */
}

a.button:hover span {
  transform: translateX(10px); /* move text right */
}

/* Optional: icon inside span */
a.button img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
  z-index: 1;
}

a.button:hover img {
  filter: brightness(1) invert(0);
}

/* Accessibility focus style */
a.button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}




/* ==========================================
   Get-in-Touch Button (Expanded Version)
   ========================================== */
a.button.get-in-touch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 10px;
  padding: 12px 25px;
  border: none;
  border-radius: 50px;
  background: #000 url("../assets/images/contact-bg.jpg") center center / cover no-repeat;
  background-blend-mode: multiply;
  color: #fff !important;
  font-weight: 500;
  text-decoration: none !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s ease;
  will-change: transform, width, padding;
}

/* Background overlay */
a.button.get-in-touch::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

/* Text */
a.button.get-in-touch span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.4s ease;
}

/* Decorative arrow (✨) */
a.button.get-in-touch::after {
  content: "✨";
  position: absolute;
  right: 16px;
  transform: translateX(-100px);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 1;
}

/* Hover: expand to the left */
a.button.get-in-touch:hover {
  background-color: transparent;
  padding-left: 36px; /* increase left padding = visually grows left */
  transform: translateX(-5px); /* shift button slightly left */
}

a.button.get-in-touch:hover::before {
  opacity: 1;
}

a.button.get-in-touch:hover::after {
  opacity: 1;
  transform: translateX(0) translateY(-3px);
}

/* Text slides left slightly */
a.button.get-in-touch:hover span {
  transform: translateX(-15px);
}

/* Accessibility: focus ring */
a.button.get-in-touch:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}


/* ==========================================
   Social Buttons (Minimal Style)
   ========================================== */
.social-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid #ccc;
  font-weight: 500;
  text-decoration: none;
  color: var(--fg);
  background: #fff;

  transition: all 0.25s ease;
  border: 1px solid #ccc;
}

.social-btn img {
  width: 18px;
  height: 18px;
  filter: none;
}

.social-btn span {
  position: relative;
}

.social-btn:hover {
  border-color: #007bffd5;
  box-shadow: 0 0 10px rgba(73, 92, 111, 0.5);
  transform: translateY(-2px);
}




/* ==========================================
   Footer
   ========================================== */
#footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 30px 20px 20px;
  background: transparent;
  color: #141414;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.footer-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease, filter 0.3s ease;
  transform: translateY(6px); /* move icon 6px lower */
}

.footer-icon:hover {
  transform: scale(1.5);
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.8;
  letter-spacing: 0.3px;
  text-align: center;
  margin-top: 6px;
}

/* ==========================================
   Animations
   ========================================== */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}





/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  display: none; /* hidden by default */
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
}

#back-to-top:hover {
  background-color: #555;
  transform: translateY(-4px);
}



/* ================================
   Education & Experience Section
================================ */
#education-experience-section {
  text-align: right;
  font-family: 'Pacifico', cursive;
}

/* ---------- Title Styling ---------- */
.subheader-text {
  display: block;
  margin-bottom: 0;
  line-height: 1;
  font-size: 42px;
  font-weight: 400;
  color: #222;
  letter-spacing: 1px;
}

/* "Recent" Word */
.subheader-text .recent {
  font-size: 40px;
  color: #222;
  display: block;
  margin-bottom: 0;
}

/* "Adventures" Word */
.subheader-text .adventures {
  font-size: 60px; /* Emphasis */
  color: #2a211c;
  display: block;
  letter-spacing: 1px;
  text-shadow: 3px 3px 0 #716d69; /* Retro glow */
  margin-top: -15px;
}

/* ---------- Info Table ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px auto 0;
  font-family: 'Bitcount Grid Single', sans-serif;
  font-size: 18px;
  border: none;
}

.info-table td {
  border: none;
  border-bottom: 1px solid #e5e5e5;
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
}

.info-table tr:last-child td {
  border-bottom: none;
}

.info-table tr:hover {
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
}

/* ---------- Text Styling ---------- */
.info-table .role {
  font-weight: 600;
  color: #555;
  width: 40%;
  padding-right: 8px;
}

.info-table .org {
  color: #555;
  width: 40%;
  padding-left: 4px;
}

.info-table .year {
  text-align: right;
  color: #777;
  font-style: italic;
  width: 20%;
}











/* Responsive adjustments */
@media (max-width: 700px) {
  .info-table {
    font-size: 14px;
  }

  .info-table td {
    display: block;
    width: 100%;
    text-align: left;
    border-bottom: none;
    padding: 8px 0;
  }

  .info-table tr {
    margin-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
    display: block;
  }

  .info-table .year {
    text-align: left;
    color: #999;
    font-size: 13px;
  }
}









/* ==========================================
   Media Queries
   ========================================== */
@media (max-width: 1600px) {
  #main-content { margin: 225px 275px; }
}

@media (max-width: 1200px) {
  #main-content { margin: 225px 175px; }
}

@media (max-width: 1000px) {
  #main-content { margin: 225px 75px; }
}

@media (max-width: 800px) {
  #main-content { margin: 150px 50px; }
  #portfolio-header { flex-direction: column; }
  .project-card { max-width: calc((100% - 16px) / 2); }
}

@media (max-width: 600px) {
  #main-content { margin: 125px 20px; }
  .project-card { max-width: 100%; }
  .social-buttons { flex-direction: column; align-items: center; }
}

@media (prefers-color-scheme: dark) {
  #footer { color: #e0e0e0; }
  .footer-icon:hover { filter: brightness(2); }
}
