/*
Theme Name: Alena Miller
Theme URI: https://templatesjumgle.com/
Author: Template Jungle
Author URI: https://templatejumgle.com/
Description: Alena Miller is specially designed product packaged for Alena Miller by Templates Jumgle.
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trektrack
Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
*/

/*--------------------------------------------------------------
This is main CSS file that contains custom style rules used in this template
--------------------------------------------------------------*/
/*------------------------------------------------
CSS STRUCTURE:

1. VARIABLES
2. GENERAL TYPOGRAPHY

--------------------------------------------------------------*/
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  --heading-font: "Libertinus Sans", sans-serif;
  --heading-font-weight: 400;
  --heading-color: var(--bs-dark);
  --heading-line-height: 1.24;

  --swiper-theme-color: var(--bs-primary);

  --custom-easing: cubic-bezier(0.17, 0.67, 0.83, 0.67);

  /* bootstrap */
  --bs-body-font-family: "Libertinus Sans", sans-serif;
  --bs-body-font-size: 1rem;
  --bs-body-font-weight: 400;
  --bs-body-line-height: 1.7;
  --bs-body-color: #8f8f8f;
  --bs-body-color-rgb: 143, 143, 143;

  --bs-primary: #83a9ac;
  --bs-primary-dark: #5b878a;
  --bs-secondary: #eef7f9;
  --bs-black: #111;
  --bs-light: #f1f1f0;
  --bs-dark: #212529;
  --bs-gray: #9aa1a7;
  --bs-gray-dark: #51565b;

  --bs-primary-rgb: 140, 144, 126;
  --bs-secondary-rgb: 238, 247, 249;
  --bs-black-rgb: 17, 17, 17;
  --bs-light-rgb: 241, 241, 240;
  --bs-dark-rgb: 33, 37, 41;

  --bs-link-color: var(--bs-dark);
  --bs-link-color-rgb: 17, 17, 17;
  --bs-link-decoration: underline;
  --bs-link-hover-color: var(--bs-primary);
  --bs-link-hover-color-rgb: 17, 17, 17;
}

.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6,
h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
  font-family: var(--heading-font);
  font-weight: var(--heading-font-weight);
  color: var(--heading-color);
  line-height: var(--heading-line-height);
}

a {
  text-decoration: none;
  transition: all 0.3s ease-out;
}

/* container fluid */
.container-fluid {
  /* width: 98%; */
  max-width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

/* Dropdown */
.dropdown-menu {
  --bs-dropdown-border-radius: 0;
  --bs-dropdown-border-width: 0;
}

.dropdown-item {
  --bs-dropdown-item-padding-y: 0.25rem;
  --bs-dropdown-item-padding-x: 1rem;
  --bs-dropdown-link-color: var(--bs-black);
  --bs-dropdown-item-border-radius: 0;
}

.dropdown-item.active,
.dropdown-item:active {
  --bs-dropdown-link-active-color: var(--bs-light);
  --bs-dropdown-link-active-bg: var(--bs-black);
}

/* list group */
.list-group-item {
  --bs-list-group-item-padding-x: 0;
  --bs-list-group-border-width: 0;
}

/* btn */
.btn {
  --bs-btn-border-radius: 0;
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--bs-primary-dark);
  --bs-btn-hover-border-color: var(--bs-primary-dark);
  --bs-btn-focus-shadow-rgb: 49, 132, 253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--bs-secondary);
  --bs-btn-active-border-color: var(--bs-secondary);
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--bs-primary);
  --bs-btn-disabled-border-color: var(--bs-primary);
}

.pagination {
  --bs-pagination-active-bg: var(--bs-black);
  --bs-pagination-border-width: 0;
  --bs-pagination-border-radius: 0;
}

/* breadcrumb */
.breadcrumb {
  --bs-breadcrumb-item-padding-x: 1em;
}

/* text white */
.text-white {
  --heading-color: var(--bs-light);
  --bs-breadcrumb-item-active-color: var(--bs-light);
  --bs-breadcrumb-divider-color: var(--bs-light);
  --bs-link-color-rgb: var(--bs-light-rgb);
  --bs-link-hover-color-rgb: var(--bs-light-rgb);
}

.text-white .nav-link {
  --bs-nav-link-color: var(--bs-light);
  --bs-nav-link-hover-color: var(--bs-light);
  --bs-nav-link-active-color: var(--bs-light);
  --bs-navbar-active-color: var(--bs-light);
}

/* accordion */
.accordion {
  --bs-accordion-border-width: 0;
  --bs-accordion-border-radius: 0;
  --bs-accordion-inner-border-radius: 0;
  --bs-accordion-btn-padding-x: 0;
  --bs-accordion-btn-padding-y: 0.1rem;
  --bs-accordion-btn-color: var(--bs-dark);
  --bs-accordion-btn-bg: transparent;
  --bs-accordion-btn-focus-border-color: var(--bs-dark);
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-body-padding-x: 0;
  --bs-accordion-body-padding-y: 0.1rem;
  --bs-accordion-active-color: transparent;
  --bs-accordion-active-bg: transparent;
}

/* form control */
.form-control:focus {
  border-color: #ccc;
  box-shadow: 0 0 0 0.25rem rgba(200, 200, 200, 0.25);
}

/* dark theme */
[data-bs-theme="dark"] {
  color-scheme: dark;

  --heading-color: #fff;
  --bs-link-color: #cccccc;
  --bs-link-hover-color: var(--bs-primary);
  --bs-link-color-rgb: 204, 204, 204;
  --bs-link-hover-color-rgb: 131, 169, 172;
  --bs-body-color: #d1d1d1;
  --bs-body-bg: #111;
  --bs-body-bg-rgb: 17, 17, 41;
}

[data-bs-theme="dark"] .dropdown-item {
  --bs-dropdown-link-color: var(--bs-light);
  --bs-dropdown-link-hover-color: var(--bs-white);
}

[data-bs-theme="dark"] .bg-white,
[data-bs-theme="dark"] .bg-light {
  --bs-bg-opacity: 0.1;
}

/* end of Bootstrap Color Theme */
#filters a {
  color: var(--bs-gray);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

#filters a:hover {
  color: var(--bs-dark);
  background-color: rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

#filters a.is-checked {
  color: var(--bs-dark);
  background-color: rgba(0, 0, 0, 0.1);
  font-weight: 700;
}

/*----- Header Menu
--------------------------------------------------------------*/
#menu-toggle {
  opacity: 0;
}

#menu-toggle:checked ~ .menu-btn > span {
  transform: rotate(45deg);
}

#menu-toggle:checked ~ .menu-btn > span::before {
  top: 0;
  transform: rotate(0);
  background: #fff;
}

#menu-toggle:checked ~ .menu-btn > span::after {
  top: 0;
  transform: rotate(90deg);
  background: #fff;
}

#menu-toggle:checked ~ .navmenu {
  visibility: visible;
  right: 0;
}

.menu-btn {
  display: flex;
  position: relative;
  width: 26px;
  height: 26px;
  cursor: pointer;
  margin: 0 20px 0 40px;
  padding-top: 8px;
}

.menu-btn > span,
.menu-btn > span::before,
.menu-btn > span::after {
  display: block;
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--bs-dark);
  transition-duration: 0.25s;
}

.menu-btn > span::before {
  content: "";
  top: -8px;
}

.menu-btn > span::after {
  content: "";
  top: 8px;
}

/* menu btn close */
.menu-btn-close {
  position: absolute;
  top: 30px;
  right: -97vw;
  display: none;
}
.nav-active .menu-btn-close {
  display: block;
}
.menu-btn-close > span,
.menu-btn-close > span::before,
.menu-btn-close > span::after {
  background-color: var(--bs-white);
}
.menu-btn-close > span {
  transform: rotate(45deg);
}

.menu-btn-close > span::before {
  top: 0;
  transform: rotate(0);
}

.menu-btn-close > span::after {
  top: 0;
  transform: rotate(90deg);
}

/*----- Nav Sidebar
--------------------------------------------------------------*/
.nav-overlay {
  position: fixed;
  z-index: 9999;
}

.nav-overlay:before,
.nav-overlay:after {
  content: "";
  position: fixed;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 10, 10, 0.8);
  border-bottom-left-radius: 200%;
  z-index: -1;
  -webkit-transition: -webkit-transform cubic-bezier(0.77, 0, 0.175, 1) 0.6s,
    border-radius linear 0.8s;
  transition: -webkit-transform cubic-bezier(0.77, 0, 0.175, 1) 0.6s,
    border-radius linear 0.8s;
  transition: transform cubic-bezier(0.77, 0, 0.175, 1) 0.6s,
    border-radius linear 0.8s;
  transition: transform cubic-bezier(0.77, 0, 0.175, 1) 0.6s,
    -webkit-transform cubic-bezier(0.77, 0, 0.175, 1) 0.6s,
    border-radius linear 0.8s;
  -webkit-transform: translateX(100%) translateY(-100%);
  transform: translateX(100%) translateY(-100%);
}

.nav-overlay:after {
  background: rgba(10, 10, 10, 1);
  -webkit-transition-delay: 0s;
  transition-delay: 0s;
}

.nav-overlay:before {
  -webkit-transition-delay: 0.2s;
  transition-delay: 0.2s;
}

.nav__content {
  position: fixed;
  visibility: hidden;
  top: 50%;
  margin-top: 20px;
  -webkit-transform: translate(0%, -50%);
  transform: translate(0%, -50%);
  width: 100%;
  text-align: center;
}

.nav__list {
  position: relative;
  padding: 0;
  margin: 0;
  z-index: 2;
}

.nav__list-item {
  position: relative;
  display: block;
  -webkit-transition-delay: 0.8s;
  transition-delay: 0.8s;
  opacity: 0;
  text-align: center;
  color: #fff;
  overflow: hidden;
  font-family: var(--heading-font);
  font-size: 6vh;
  font-weight: var(--heading-font-weight);
  line-height: 1.15;
  -webkit-transform: translate(100px, 0%);
  transform: translate(100px, 0%);
  -webkit-transition: opacity 0.2s ease, -webkit-transform 0.3s ease;
  transition: opacity 0.2s ease, -webkit-transform 0.3s ease;
  transition: opacity 0.2s ease, transform 0.3s ease;
  transition: opacity 0.2s ease, transform 0.3s ease,
    -webkit-transform 0.3s ease;
  margin-top: 0;
  margin-bottom: 0;
}

.nav__list-item a {
  position: relative;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  overflow: hidden;
  cursor: pointer;
  padding-left: 5px;
  padding-right: 5px;
  z-index: 2;
  display: inline-block;
  -webkit-transition: all 200ms linear;
  transition: all 200ms linear;
}

.nav__list-item a:after {
  position: absolute;
  content: "";
  top: 50%;
  margin-top: -2px;
  left: 50%;
  width: 0;
  height: 0;
  opacity: 0;
  background-color: var(--accent-color);
  z-index: 1;
  -webkit-transition: all 200ms linear;
  transition: all 200ms linear;
}

.nav__list-item a:hover:after {
  height: 4px;
  opacity: 1;
  left: 0;
  width: 100%;
}

.nav__list-item a:hover {
  color: rgba(255, 255, 255, 1);
}

.nav__list-item.active-nav a {
  color: rgba(255, 255, 255, 1);
}

.nav__list-item.active-nav a:after {
  height: 4px;
  opacity: 1;
  left: 0;
  width: 100%;
}

body.nav-active .nav__content {
  visibility: visible;
}

body.nav-active .menu-icon__line {
  background-color: var(--light-background-color);
  -webkit-transform: translate(0px, 0px) rotate(-45deg);
  transform: translate(0px, 0px) rotate(-45deg);
}

body.nav-active .menu-icon__line-left {
  width: 15px;
  -webkit-transform: translate(2px, 4px) rotate(45deg);
  transform: translate(2px, 4px) rotate(45deg);
}

body.nav-active .menu-icon__line-right {
  width: 15px;
  float: right;
  -webkit-transform: translate(-3px, -3.5px) rotate(45deg);
  transform: translate(-3px, -3.5px) rotate(45deg);
}

body.nav-active .menu-icon:hover .menu-icon__line-left,
body.nav-active .menu-icon:hover .menu-icon__line-right {
  width: 15px;
}

body.nav-active .nav-overlay {
  visibility: visible;
}

body.nav-active .nav-overlay:before,
body.nav-active .nav-overlay:after {
  -webkit-transform: translateX(0%) translateY(0%);
  transform: translateX(0%) translateY(0%);
  border-radius: 0;
}

body.nav-active .nav-overlay:after {
  -webkit-transition-delay: 0.1s;
  transition-delay: 0.1s;
}

body.nav-active .nav-overlay:before {
  -webkit-transition-delay: 0s;
  transition-delay: 0s;
}

body.nav-active .nav__list-item {
  opacity: 1;
  -webkit-transform: translateX(0%);
  transform: translateX(0%);
  -webkit-transition: opacity 0.3s ease, color 0.3s ease,
    -webkit-transform 0.3s ease;
  transition: opacity 0.3s ease, color 0.3s ease, -webkit-transform 0.3s ease;
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease,
    -webkit-transform 0.3s ease;
}

body.nav-active .nav__list-item:nth-child(0) {
  -webkit-transition-delay: 0.7s;
  transition-delay: 0.7s;
}

body.nav-active .nav__list-item:nth-child(1) {
  -webkit-transition-delay: 0.8s;
  transition-delay: 0.8s;
}

body.nav-active .nav__list-item:nth-child(2) {
  -webkit-transition-delay: 0.9s;
  transition-delay: 0.9s;
}

body.nav-active .nav__list-item:nth-child(3) {
  -webkit-transition-delay: 1s;
  transition-delay: 1s;
}

body.nav-active .nav__list-item:nth-child(4) {
  -webkit-transition-delay: 1.1s;
  transition-delay: 1.1s;
}

body.nav-active .nav__list-item:nth-child(5) {
  -webkit-transition-delay: 1.2s;
  transition-delay: 1.2s;
}

body.nav-active .nav__list-item:nth-child(6) {
  -webkit-transition-delay: 1.3s;
  transition-delay: 1.3s;
}

body.nav-active .nav__list-item:nth-child(7) {
  -webkit-transition-delay: 1.4s;
  transition-delay: 1.4s;
}

body.nav-active .nav__list-item:nth-child(8) {
  -webkit-transition-delay: 1.5s;
  transition-delay: 1.5s;
}

body.nav-active .nav__list-item:nth-child(9) {
  -webkit-transition-delay: 1.6s;
  transition-delay: 1.6s;
}

body.nav-active .nav__list-item:nth-child(10) {
  -webkit-transition-delay: 1.7s;
  transition-delay: 1.7s;
}

/*--------------------------------------------------------------
/** 16. Section Title
--------------------------------------------------------------*/
/* .section-header {
    width: 50%;
}
h2.section-title {
    width: 100%;
} */
.section-title,
.widget-title {
  position: relative;
  margin-bottom: 55px;
}

.section-title:after,
.widget-title:after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 0;
  border-bottom: 1px solid #000;
  width: 40px;
}

.text-center .section-title:after {
  left: calc(50% - 20px);
}

/* header */
header {
  transition: background-color 0.3s ease-out;
}

/* portfolio-item */
/* Portfolio Hover Overlay Styles */
.portfolio-wrapper {
  position: relative;
  overflow: hidden;
}

/* Hide portfolio items initially until Isotope is ready */
.grid {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.grid.isotope-ready {
  opacity: 1;
}

.portfolio-item {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.portfolio-item img {
  transition: transform 0.3s ease-out;
  width: 100%;
  height: auto;
  display: block;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.overlay-content {
  text-align: center;
  color: white;
  transform: translateY(20px);
  transition: transform 0.3s ease-out;
}

.project-description {
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0 0 15px 0;
  color: rgba(255, 255, 255, 0.95);
}

.project-more-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
}

.more-arrow {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  animation: bounce 2s infinite;
}

.more-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}

.project-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin-top: 15px;
  margin-bottom: 20px;
  color: var(--heading-color);
  text-align: center;
  font-family: var(--heading-font);
}

.portfolio-wrapper:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-wrapper:hover .overlay-content {
  transform: translateY(0);
}

.portfolio-wrapper:hover img {
  transform: scale(1.05);
}

/* Design Projects - Bigger Square Cards, exactly 3 per row */
.portfolio-item.fashion {
  flex: 0 0 calc(33.333% - 40px);
  max-width: calc(33.333% - 40px);
  margin: 20px;
  width: calc(33.333% - 40px) !important;
}

.portfolio-item.fashion .portfolio-wrapper {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  width: 100%;
  height: 0;
  padding-bottom: 100%; /* Creates perfect square */
  position: relative;
}

.portfolio-item.fashion img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.portfolio-item.fashion .portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Force 3 per row on all screen sizes except very small */
@media (max-width: 768px) {
  .portfolio-item.fashion {
    flex: 0 0 calc(33.333% - 30px);
    max-width: calc(33.333% - 30px);
    margin: 15px;
    width: calc(33.333% - 30px) !important;
  }
}

@media (max-width: 576px) {
  .portfolio-item.fashion {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
    margin: 10px;
    width: calc(50% - 20px) !important;
  }
}

/* 3D Modeling - Same as Design Projects: Bigger Square Cards, exactly 3 per row */
.portfolio-item.portrait {
  flex: 0 0 calc(33.333% - 40px);
  max-width: calc(33.333% - 40px);
  margin: 20px;
  width: calc(33.333% - 40px) !important;
}

.portfolio-item.portrait .portfolio-wrapper {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  width: 100%;
  height: 0;
  padding-bottom: 100%; /* Creates perfect square */
  position: relative;
}

.portfolio-item.portrait img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease-out;
}

.portfolio-item.portrait .portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.portfolio-item.portrait .portfolio-wrapper:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item.portrait .portfolio-wrapper:hover img {
  transform: scale(1.05);
}

/* Force 3 per row on all screen sizes except very small */
@media (max-width: 768px) {
  .portfolio-item.portrait {
    flex: 0 0 calc(33.333% - 30px);
    max-width: calc(33.333% - 30px);
    margin: 15px;
    width: calc(33.333% - 30px) !important;
  }
}

@media (max-width: 576px) {
  .portfolio-item.portrait {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
    margin: 10px;
    width: calc(50% - 20px) !important;
  }
}

/* - Billboard Section
--------------------------------------------------------------*/
#billboard .text-content {
  position: absolute;
  left: calc(-85vw / 2);
  top: 25vh;
  max-width: 520px;
  z-index: 2;
}
#billboard .text-content h1.display-4 {
  font-family: "Libertinus Sans", sans-serif;
  font-size: 3rem !important;
  font-weight: normal !important;
  line-height: 1.4;
}
@media screen and (max-width: 767px) {
  #billboard .text-content {
    position: relative;
    left: 0;
    top: 0;
    margin-top: 130px;
    margin-bottom: 40px;
  }
}

/* Interactive Canvas Styles */
.interactive-canvas {
  max-width: 520px; /* Match the text content width */
}

.canvas-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.brush-btn {
  padding: 6px 10px;
  border: none;
  border-radius: 15px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  min-width: 35px;
}

.brush-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.brush-btn.active {
  background: var(--bs-primary);
  color: white;
  border-color: var(--bs-primary);
}

.clear-btn-small {
  padding: 6px 12px;
  border: none;
  border-radius: 15px;
  background: #ff6b6b;
  color: white;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: auto;
}

.clear-btn-small:hover {
  background: #ff5252;
  transform: translateY(-1px);
}

.save-btn-small {
  padding: 6px 12px;
  border: none;
  border-radius: 15px;
  background: #87ceeb;
  color: white;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 8px;
}

.save-btn-small:hover {
  background: #5f9ea0;
  transform: translateY(-1px);
}

.canvas-wrapper-small {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: #fbf8f3;
  border: 1px solid #e9ecef;
}

@media (max-width: 768px) {
  .interactive-canvas {
    max-width: 100%;
    margin-top: 2rem;
  }
}

/* contact image  */
.contact-image {
  margin-bottom: 0;
  margin-top: -150px;
  text-align: right;
  margin-right: -200px;
}
.contact-image img {
  max-width: 1600px;
  max-height: 1600px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Extracurricular Activities Styles */
.extracurricular-activities {
  margin-top: 2rem;
}

.activity-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 0.5rem;
  font-family: var(--heading-font);
}

.activity-description {
  color: var(--bs-body-color);
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}
@media screen and (max-width: 767px) {
  .contact-detail {
    overflow: hidden;
  }
  .contact-image {
    margin-bottom: 0;
    margin-top: 0;
  }
}

/* Research Section Styles - Full Width */
.research-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.research-teaser {
  flex: 0 0 300px; /* Fixed width for image */
}

.research-teaser img {
  width: 100%;
  height: auto; /* Shows full height of image */
  max-height: 300px; /* Optional: set a max height limit */
  object-fit: cover;
  object-position: left; /* Crops from the right side */
  border-radius: 4px;
}

/* Experience section: square thumbnails */
#experience .research-teaser {
  flex: 0 0 200px;
}

#experience .research-teaser .experience-thumbnail-link {
  display: block;
  line-height: 0;
}

#experience .research-teaser .experience-logo-card {
  align-items: center;
  background: #f5f5f7;
  border-radius: 4px;
  color: #1d1d1f;
  display: flex;
  height: 200px;
  justify-content: center;
  text-decoration: none;
  width: 200px;
}

#experience .experience-logo-card .fa-apple {
  font-size: 6rem;
  line-height: 1;
}

#experience .research-teaser img {
  width: 200px;
  height: 200px;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.research-details {
  flex: 1; /* Takes remaining space */
}

.research-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.research-authors {
  color: var(--bs-gray);
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.research-links .btn {
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
  border-radius: 4px;
  margin-right: 0.5rem;
}

.meta-conference a {
  color: var(--bs-primary);
  text-decoration: none;
  font-weight: 500;
}

.meta-conference a:hover {
  color: var(--bs-primary-dark);
  text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .research-content {
    flex-direction: column;
    gap: 1rem;
  }

  .research-teaser {
    flex: none;
  }

  #experience .research-teaser {
    width: 100%;
  }

  #experience .research-teaser img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  #experience .research-teaser .experience-logo-card {
    aspect-ratio: 1;
    height: auto;
    width: 100%;
  }
}

/* MITIT Hover Effect */
.mitit-link {
  color: var(--bs-primary);
  cursor: pointer;
  font-weight: 600;
  transition: color 0.3s ease;
}

.mitit-link:hover {
  color: var(--bs-primary-dark);
}

.mitit-hover-trigger {
  position: relative;
  cursor: pointer;
}

.mitit-popup {
  position: fixed;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transform: scale(0.8) translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
  top: 50%;
  left: 50%;
}

.mitit-popup.show {
  opacity: 1;
  transform: scale(1) translate(-50%, -50%);
  pointer-events: auto;
}

.mitit-popup-content {
  position: relative;
  max-width: 300px;
  max-height: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 3px solid var(--bs-primary);
}

.mitit-popup-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.mitit-circle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--bs-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.mitit-circle-button:hover {
  background: var(--bs-primary);
  color: white;
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.mitit-circle-button span {
  font-size: 16px;
  font-weight: bold;
  margin-left: 2px;
}

/* Ringcomm Hover Effect - Same as MITIT */
.ringcomm-link {
  color: var(--bs-primary);
  cursor: pointer;
  font-weight: 600;
  transition: color 0.3s ease;
}

.ringcomm-link:hover {
  color: var(--bs-primary-dark);
}

.ringcomm-hover-trigger {
  position: relative;
  cursor: pointer;
}

.ringcomm-popup {
  position: fixed;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transform: scale(0.8) translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
  top: 50%;
  left: 50%;
}

.ringcomm-popup.show {
  opacity: 1;
  transform: scale(1) translate(-50%, -50%);
  pointer-events: auto;
}

.ringcomm-popup-content {
  position: relative;
  max-width: 300px;
  max-height: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 3px solid var(--bs-primary);
}

.ringcomm-popup-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.ringcomm-circle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--bs-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.ringcomm-circle-button:hover {
  background: var(--bs-primary);
  color: white;
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.ringcomm-circle-button span {
  font-size: 16px;
  font-weight: bold;
  margin-left: 2px;
}

/* HackMIT Hover Effect - Same as MITIT and Ringcomm */
.hackmit-link {
  color: var(--bs-primary);
  cursor: pointer;
  font-weight: 600;
  transition: color 0.3s ease;
}

.hackmit-link:hover {
  color: var(--bs-primary-dark);
}

.hackmit-hover-trigger {
  position: relative;
  cursor: pointer;
}

.hackmit-popup {
  position: fixed;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transform: scale(0.8) translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
  top: 50%;
  left: 50%;
}

.hackmit-popup.show {
  opacity: 1;
  transform: scale(1) translate(-50%, -50%);
  pointer-events: auto;
}

.hackmit-popup-content {
  position: relative;
  max-width: 300px;
  max-height: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 3px solid var(--bs-primary);
}

.hackmit-popup-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.hackmit-circle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--bs-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.hackmit-circle-button:hover {
  background: var(--bs-primary);
  color: white;
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hackmit-circle-button span {
  font-size: 16px;
  font-weight: bold;
  margin-left: 2px;
}

/* Infinite Magazine Hover Effect - Same as MITIT, Ringcomm, and HackMIT */
.infinite-link {
  color: var(--bs-primary);
  cursor: pointer;
  font-weight: 600;
  transition: color 0.3s ease;
}

.infinite-link:hover {
  color: var(--bs-primary-dark);
}

.infinite-hover-trigger {
  position: relative;
  cursor: pointer;
}

.infinite-popup {
  position: fixed;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transform: scale(0.8) translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
  top: 50%;
  left: 50%;
}

.infinite-popup.show {
  opacity: 1;
  transform: scale(1) translate(-50%, -50%);
  pointer-events: auto;
}

.infinite-popup-content {
  position: relative;
  max-width: 300px;
  max-height: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 3px solid var(--bs-primary);
}

.infinite-popup-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.infinite-circle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--bs-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.infinite-circle-button:hover {
  background: var(--bs-primary);
  color: white;
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.infinite-circle-button span {
  font-size: 16px;
  font-weight: bold;
  margin-left: 2px;
}
