/* Base Styles */
:root {
  --color-bg: #ffffff;
  --color-text: #1C1C1C;
  --color-secondary: #454545;
  --color-tietary: #868686;
  --color-text-light: #BABABA;
  --color-primary: rgba(240, 244, 255, 0.5);  /* Light blue with transparency for hover */
  --color-highlight-orange: #F05E1C;
  --color-highlight-purple: #B28FCE;
  --font-inter: 'Inter';
  --font-montserrat: 'Montserrat', 'Montserrat Alternates', 'Inter';
}

body {
  font-family: var(--font-inter);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.5;
  background-image: linear-gradient(to right, #F2F2F2 1px, transparent 1px),
                    linear-gradient(to bottom, #F2F2F2 1px, transparent 1px);
  background-size: 60px 60px;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  /* CONTROL main spacing here: */
  padding-left: 60px;
  padding-right: 60px;
  box-sizing: border-box;
}

/* Adjust at breakpoints */
@media (max-width: 1200px) {
  .container { padding-left: 30px; padding-right: 30px; }
}
@media (max-width: 768px) {
  .container { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 480px) {
  .container { padding-left: 10px; padding-right: 10px; }
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(255,255,255,0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1001;
  min-height: 76px;
  height: 76px;
  /* DO NOT set side paddings here! */
  /* No box-sizing here either */
  display: flex;
  align-items: center;
  /* If you want a bottom border or shadow for visibility */
  /* box-shadow: 0 2px 12px rgba(0,0,0,0.03),
              0px 1.5px 0 rgba(181,181,181, 0.13); */
}

/* .container is as before, used globally, and handles all max-width, and padding.
   Responsive rules already cascade for all .container uses (footer, main, header-inner, etc). */

.header-inner {
  /* This is a .container, so inherits all the padding/max-width! */
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding-left: 60px;
  padding-right: 60px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: center;
}

/* Responsive padding for header-inner */
@media (max-width: 1200px) {
  .header-inner { padding-left: 30px; padding-right: 30px; }
}
@media (max-width: 768px) {
  .header-inner { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 480px) {
  .header-inner { padding-left: 10px; padding-right: 10px; }
}

/* --- Make sure next content clears the fixed header --- */
.project-main-fullpage,
main,
.body-content, /* whatever is your top-level main class */
.container > main {  /* or use your selector for main content */
  padding-top: 96px; /* adjust to at least header height + 20 for margin */
}
@media (max-width: 480px) {
  .project-main-fullpage,
  main,
  .body-content,
  .container > main {
    padding-top: 70px;
  }
}

.logo img {
  width: 36px;
  height: 36px;
}

.nav ul {
  display: flex;
  gap: 30px;
}

.nav ul li a {
  font-family: 'Satoshi-Regular', 'Satoshi', 'Inter', 'Montserrat', 'Montserrat Alternates' !important;
  font-weight: 400 !important;
  font-size: 16px;
  color: var(--color-text-light);
  transition: color 0.3s ease;
}

.nav ul li.active a {
  color: var(--color-text);
}

.nav ul li a:hover {
  color: var(--color-text);
}

/* Intro Section Styles */
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 130px;
  margin-top: 36px;
}

.intro-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  width: 50%;
}

.intro-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.intro-secondary {
  color: var(--Black-Primary, #1C1C1C);
  font-family: 'Inter';
  font-size: 16px;
  font-style: normal;
  font-weight: 200;
  line-height: 140%;
}

.intro-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.intro-text h2 {
  font-family: var(--font-inter);
  font-weight: 300;
  font-size: 72px;
  color: var(--color-text-light);
  line-height: 1.2;
}

.intro-text h1 {
  font-family: var(--font-montserrat);
  font-weight: 700;
  font-size: 72px;
  line-height: 1.2;
  color: var(--color-text);
}

.intro-text p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  max-width: 550px;
}

.intro-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50%;
  position: relative;
}

/* Modified hexagon styles to make icons more responsive */
.hexagon {
  position: relative;
  width: 505px;
  height: 505px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: hidden;
}

.hexagon img {
  max-width: 85%;
  max-height: 85%;
  position: relative;
  z-index: 1;
  background-color: transparent;
  /* filter: drop-shadow(0 0px 16px rgba(0, 0, 0, 0.16)); */
}

/* Modified to better position icons relative to container size */
.icon-sidebar {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 4px;
  left: 10%;
  top: 25%; /* Adjusted to align with top part of image */
  z-index: 2;
}

.icon-corner {
  position: absolute;
  display: flex;
  gap: 4px;
  right: 10%;
  bottom: 15%; /* Adjusted to align with bottom part of image */
  z-index: 2;
}

.icon {
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  border-radius: 6px;
  padding: 0;
  margin: 0;
  transition: box-shadow 0.3s ease, border 0.3s ease;
}

.icon img {
  width: 100%;
  height: 100%;
  filter: none;
  transition: transform 0.5s ease;
}

.icon.orange-icon img,
.icon.purple-icon img {
  /* Keep the shadow directly under the colored icons */
  filter: drop-shadow(0 0px 10px rgba(0, 0, 0, 0.15));
}

/* Purple highlight style */
.icon.purple-icon {
  box-shadow: 0px 0px 0px 0px rgba(178, 143, 206, 0.25);
}

.icon.purple-icon img {
  width: 100%;
  height: 100%;
}

/* Orange highlight for icons */
.icon.orange-icon {
  box-shadow: 0px 0px 0px 0px rgba(240, 94, 28, 0.25);
}

.icon.orange-icon img {
  width: 100%;
  height: 100%;
}

/* Updated Projects Section Styles */
.projects {

  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Modified card styles with glass effect */
.project-card {
  cursor: pointer;
  transition: opacity 1.0s cubic-bezier(.6,0,.4,1), transform 1.0s ease;
  border-radius: 24px;
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(33px);
  -webkit-backdrop-filter: blur(33px);
  box-shadow: 0 10px 15px rgb(0 0 0 / 10%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background-blend-mode: overlay;
  overflow: hidden;
}

.project-card.large:hover,
.project-card.small:hover {
  transform: translateY(-5px);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.project-card.project-nexus:hover {
  background: linear-gradient(180deg, #ffffff 0%, #ffeff0 100%);
  border: #f8c3cd;
}
.project-card.project-hitchhiker:hover {
  background: linear-gradient(180deg, #ffffff 0%, #d9fbff 100%);
  border: #d9fbff;
}
.project-card.project-vistoria:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f1e8ff 100%);
  border: #d9fbff;
}
.project-card.project-carecorgi:hover {
  background: linear-gradient(180deg, #ffffff 0%, #e4e1ec 100%);
  border: #C0D9FF;
}
.project-card.project-moodai:hover {
  background: linear-gradient(180deg, #ffffff 0%, #171717 100%);
  border: #171717;
}
.project-card.project-vchnl:hover {
  background: linear-gradient(180deg, #ffffff 0%, #D7E5EC 100%);
  border: #D7E5EC;
}
.project-card.project-whale:hover {
  background: linear-gradient(180deg, #ffffff 0%, #e4eeff 100%);
  border: #2568D5;
}
.project-card:hover .project-image img {
  transform: scale(1.05);
  transition: opacity 1.0s cubic-bezier(.6,0,.4,1), transform 1.0s ease;
}

.project-card.large {
  display: flex;
  padding: 36px 36px 12px 36px;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  align-self: stretch;
}

.project-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Modified to make small projects responsive */
.small-projects-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

.project-card.small {
  display: flex;
  padding: 36px 36px 12px 36px;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  height: 100%;
}

.project-card.large .project-image {
  width: 100%;
  aspect-ratio: 1248 / 502;
  position: relative;
  overflow: hidden;
  /* Optional: background-color: #f0f0f0; */
}

/* For small cards (576x504, nearly 1.14:1 ratio) */
.project-card.small .project-image {
  width: 100%;
  aspect-ratio: 576 / 504;
  /* Mobile-friendly height; prevents blank gaps on narrow widths */
  height: clamp(200px, 50vw, 320px);
  position: relative;
  overflow: hidden;
  min-height: 1px;
  /* Optional: background-color: #f0f0f0; */
}

.project-card.small .project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
}

/* Keep small-card text block heights consistent so tags align */
.project-info-small {
  display: flex;
  gap: 12px;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  min-height: 90px;
  margin-bottom: 12px;
}


.project-info {
  padding: 0 0px;
  display: flex;
  width: 100%;
  margin-bottom: 12px;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
}

.project-info-small {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
}

.project-info h3 {
  color: var(--Black-Primary, #1C1C1C);
  font-family: Inter;
  font-size: 36px;
  height: 36px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  display: flex;
  width: 460px;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
}

.project-info-small h3 {
  color: var(--Black-Primary, #1C1C1C);
  font-family: Inter;
  font-size: 36px;
  height: 36px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  display: flex;
  width: 460px;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
}

.project-info p {
  display: flex;
  width: 460px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  color: var(--Black-Secondary, #454545);
  font-family: Inter;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.project-info-small p {
  display: flex;
  width: 460px;
  /* height: 36px; */
  flex-direction: column;
  justify-content: center;
  color: var(--Black-Secondary, #454545);
  font-family: Inter;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.project-info .role {
  display: flex;
  width: 460px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  color: var(--Black-quaternary, #BABABA);
  text-align: right;
  font-family: Inter;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.project-info-small .role {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--Black-quaternary, #BABABA);
  text-align: right;
  font-family: Inter;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.project-image {
  width: 100%;
  overflow: hidden;
  margin: 0;
  border-radius: 20px 20px 0px 0px;
}

.project-image img {
  width: 100%;
  height:  100%;
  object-fit: cover; /* <-- Add/Ensure This is present */
  top: 0; left: 0;
  display: block;
  transition: opacity 1.0s cubic-bezier(.6,0,.4,1), transform 1.0s ease;
  border-radius: 20px 20px 0px 0px;
}

/* Simplified hover effect - only image scales */
.project-card .project-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 0;
  min-height: 1px;  /* avoids collapse if default image is hidden */
  border-radius: 20px 20px 0px 0px;
  opacity: 1;
}

.project-image .hover-image {
  display: none;
  position: relative;
  left: 0; top: 0; width: 100%; height: 100%;
  object-fit: cover; /* or contain, as you wish */
  z-index: 2;
  border-radius: 20px 20px 0px 0px;
  opacity: 0;
}
/* .project-card .project-image {
  position: relative;
} */
.project-card:hover .project-image .default-image {
  display: none;
  opacity: 0;
}
.project-card:hover .project-image .hover-image {
  display: block;
  opacity: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0px;
  width: 100%;
}

.project-tags span {
  color: var(--Black-quaternary, #BABABA);
  font-family: Inter;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

/* Footer Styles */
.footer {
  display: flex;
  padding-top: 88px;
  padding-bottom: 24px;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  width: 100%;
  box-sizing: border-box;
  /* REMOVE PADDING L/R: margin/padding comes from .container */
}

.copyright p {
  color: #1E1E1E;
  font-family: Inter;
  font-size: 14px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
}

.social-links {
  display: flex;
  align-items: right;
  gap: 24px;
}

.social-links a {
  color: var(--color-deactive);
  text-align: center;
  font-family: Inter;
  font-size: 14px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
}

.social-links a:hover {
  color: var(--color-text);
}

.project-card-link {
  display: block;
  color: inherit;
}

/* Updated media queries for enhanced responsive design */
@media (max-width: 1200px) {
  .hexagon {
    width: 450px;
    height: 450px;
  }
  
  .icon-sidebar {
    left: 10%;
    top: 25%;
  }
  
  .icon-corner {
    right: 10%;
    bottom: 15%;
  }
  
  .icon {
    width: 42px;
    height: 42px;
  }
  
  .intro-text h1, .intro-text h2 {
    font-size: 60px;
  }
  
  .project-info h3, .project-info-small h3 {
    width: auto;
    font-size: 32px;
  }
  
  .project-info p, .project-info-small p, .project-info .role {
    width: auto;
  }
}

/* New breakpoint for cards layout change */
@media (max-width: 1140px) {
  .small-projects-container {
    grid-template-columns: 1fr;
  }
  .project-card.small {
    width: 100%;
    min-height: auto;
  }
}

@media (min-width: 769px) {
  /* Slightly taller small-card images on desktop/tablet */
  .project-card.small .project-image {
    height: clamp(320px, 28vw, 420px);
  }
}

@media (max-width: 992px) {
  .intro {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 80px;
  }
  
  .intro-text, .intro-image {
    width: 100%;
  }
  
  .intro-image {
    display: flex;
    justify-content: center;
  }
  
  .hexagon {
    width: 420px;
    height: 420px;
  }

  .icon {
    width: 42px;
    height: 42px;
  }
  
  .icon-sidebar {
    left: 10%;
    top: 15%;
  }
  
  .icon-corner {
    right: 10%;
    bottom: 5%;
  }
  
  .intro-text h1, .intro-text h2 {
    font-size: 48px;
  }
  
  .project-card.large, .project-card.small {
    padding: 24px 24px 12px 24px;
  }
}

@media (max-width: 768px) {
  .header, .intro, .projects, .footer {
    padding-left: 30px;
    padding-right: 30px;
  }
  
  .hexagon {
    width: 360px;
    height: 360px;
  }
  
  .icon {
    width: 36px;
    height: 36px;
  }
  
  .project-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .project-info h3, .project-info-small h3 {
    font-size: 28px;
    height: auto;
  }
  
  .project-info p, .project-info-small p {
    font-size: 14px;
    height: auto;
  }
  
  .project-info .role {
    text-align: left;
    height: auto;
    font-size: 14px;
  }
  
  .footer {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  .header, .intro, .projects, .footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .hexagon {
    width: 420px;
    height: 420px;
  }
  
  .icon {
    width: 36px;
    height: 36px;
  }
  
  .intro-text h1, .intro-text h2 {
    font-size: 36px;
  }
  
  .intro-text p {
    font-size: 14px;
  }
  
  .project-card.large, .project-card.small {
    padding: 16px 16px 8px 16px;
  }
  
  .project-info h3, .project-info-small h3 {
    font-size: 24px;
  }

  /* Ensure header height aligns with project pages on mobile */
  .header {
    height: 70px;
    min-height: 70px;
  }
}